-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3c1413
commit 387016f
Showing
140 changed files
with
20,609 additions
and
935 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.30.0 | ||
0.31.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
// Code generated by smithy-swift-codegen. DO NOT EDIT! | ||
|
||
import ClientRuntime | ||
|
||
extension AmplifyClient { | ||
/// Paginate over `[ListAppsOutput]` results. | ||
/// | ||
/// When this operation is called, an `AsyncSequence` is created. AsyncSequences are lazy so no service | ||
/// calls are made until the sequence is iterated over. This also means there is no guarantee that the request is valid | ||
/// until then. If there are errors in your request, you will see the failures only after you start iterating. | ||
/// - Parameters: | ||
/// - input: A `[ListAppsInput]` to start pagination | ||
/// - Returns: An `AsyncSequence` that can iterate over `ListAppsOutput` | ||
public func listAppsPaginated(input: ListAppsInput) -> ClientRuntime.PaginatorSequence<ListAppsInput, ListAppsOutput> { | ||
return ClientRuntime.PaginatorSequence<ListAppsInput, ListAppsOutput>(input: input, inputKey: \ListAppsInput.nextToken, outputKey: \ListAppsOutput.nextToken, paginationFunction: self.listApps(input:)) | ||
} | ||
} | ||
|
||
extension ListAppsInput: ClientRuntime.PaginateToken { | ||
public func usingPaginationToken(_ token: Swift.String) -> ListAppsInput { | ||
return ListAppsInput( | ||
maxResults: self.maxResults, | ||
nextToken: token | ||
)} | ||
} | ||
|
||
extension PaginatorSequence where Input == ListAppsInput, Output == ListAppsOutput { | ||
/// This paginator transforms the `AsyncSequence` returned by `listAppsPaginated` | ||
/// to access the nested member `[AmplifyClientTypes.App]` | ||
/// - Returns: `[AmplifyClientTypes.App]` | ||
public func apps() async throws -> [AmplifyClientTypes.App] { | ||
return try await self.asyncCompactMap { item in item.apps } | ||
} | ||
} | ||
extension AmplifyClient { | ||
/// Paginate over `[ListBranchesOutput]` results. | ||
/// | ||
/// When this operation is called, an `AsyncSequence` is created. AsyncSequences are lazy so no service | ||
/// calls are made until the sequence is iterated over. This also means there is no guarantee that the request is valid | ||
/// until then. If there are errors in your request, you will see the failures only after you start iterating. | ||
/// - Parameters: | ||
/// - input: A `[ListBranchesInput]` to start pagination | ||
/// - Returns: An `AsyncSequence` that can iterate over `ListBranchesOutput` | ||
public func listBranchesPaginated(input: ListBranchesInput) -> ClientRuntime.PaginatorSequence<ListBranchesInput, ListBranchesOutput> { | ||
return ClientRuntime.PaginatorSequence<ListBranchesInput, ListBranchesOutput>(input: input, inputKey: \ListBranchesInput.nextToken, outputKey: \ListBranchesOutput.nextToken, paginationFunction: self.listBranches(input:)) | ||
} | ||
} | ||
|
||
extension ListBranchesInput: ClientRuntime.PaginateToken { | ||
public func usingPaginationToken(_ token: Swift.String) -> ListBranchesInput { | ||
return ListBranchesInput( | ||
appId: self.appId, | ||
maxResults: self.maxResults, | ||
nextToken: token | ||
)} | ||
} | ||
|
||
extension PaginatorSequence where Input == ListBranchesInput, Output == ListBranchesOutput { | ||
/// This paginator transforms the `AsyncSequence` returned by `listBranchesPaginated` | ||
/// to access the nested member `[AmplifyClientTypes.Branch]` | ||
/// - Returns: `[AmplifyClientTypes.Branch]` | ||
public func branches() async throws -> [AmplifyClientTypes.Branch] { | ||
return try await self.asyncCompactMap { item in item.branches } | ||
} | ||
} | ||
extension AmplifyClient { | ||
/// Paginate over `[ListDomainAssociationsOutput]` results. | ||
/// | ||
/// When this operation is called, an `AsyncSequence` is created. AsyncSequences are lazy so no service | ||
/// calls are made until the sequence is iterated over. This also means there is no guarantee that the request is valid | ||
/// until then. If there are errors in your request, you will see the failures only after you start iterating. | ||
/// - Parameters: | ||
/// - input: A `[ListDomainAssociationsInput]` to start pagination | ||
/// - Returns: An `AsyncSequence` that can iterate over `ListDomainAssociationsOutput` | ||
public func listDomainAssociationsPaginated(input: ListDomainAssociationsInput) -> ClientRuntime.PaginatorSequence<ListDomainAssociationsInput, ListDomainAssociationsOutput> { | ||
return ClientRuntime.PaginatorSequence<ListDomainAssociationsInput, ListDomainAssociationsOutput>(input: input, inputKey: \ListDomainAssociationsInput.nextToken, outputKey: \ListDomainAssociationsOutput.nextToken, paginationFunction: self.listDomainAssociations(input:)) | ||
} | ||
} | ||
|
||
extension ListDomainAssociationsInput: ClientRuntime.PaginateToken { | ||
public func usingPaginationToken(_ token: Swift.String) -> ListDomainAssociationsInput { | ||
return ListDomainAssociationsInput( | ||
appId: self.appId, | ||
maxResults: self.maxResults, | ||
nextToken: token | ||
)} | ||
} | ||
|
||
extension PaginatorSequence where Input == ListDomainAssociationsInput, Output == ListDomainAssociationsOutput { | ||
/// This paginator transforms the `AsyncSequence` returned by `listDomainAssociationsPaginated` | ||
/// to access the nested member `[AmplifyClientTypes.DomainAssociation]` | ||
/// - Returns: `[AmplifyClientTypes.DomainAssociation]` | ||
public func domainAssociations() async throws -> [AmplifyClientTypes.DomainAssociation] { | ||
return try await self.asyncCompactMap { item in item.domainAssociations } | ||
} | ||
} | ||
extension AmplifyClient { | ||
/// Paginate over `[ListJobsOutput]` results. | ||
/// | ||
/// When this operation is called, an `AsyncSequence` is created. AsyncSequences are lazy so no service | ||
/// calls are made until the sequence is iterated over. This also means there is no guarantee that the request is valid | ||
/// until then. If there are errors in your request, you will see the failures only after you start iterating. | ||
/// - Parameters: | ||
/// - input: A `[ListJobsInput]` to start pagination | ||
/// - Returns: An `AsyncSequence` that can iterate over `ListJobsOutput` | ||
public func listJobsPaginated(input: ListJobsInput) -> ClientRuntime.PaginatorSequence<ListJobsInput, ListJobsOutput> { | ||
return ClientRuntime.PaginatorSequence<ListJobsInput, ListJobsOutput>(input: input, inputKey: \ListJobsInput.nextToken, outputKey: \ListJobsOutput.nextToken, paginationFunction: self.listJobs(input:)) | ||
} | ||
} | ||
|
||
extension ListJobsInput: ClientRuntime.PaginateToken { | ||
public func usingPaginationToken(_ token: Swift.String) -> ListJobsInput { | ||
return ListJobsInput( | ||
appId: self.appId, | ||
branchName: self.branchName, | ||
maxResults: self.maxResults, | ||
nextToken: token | ||
)} | ||
} | ||
|
||
extension PaginatorSequence where Input == ListJobsInput, Output == ListJobsOutput { | ||
/// This paginator transforms the `AsyncSequence` returned by `listJobsPaginated` | ||
/// to access the nested member `[AmplifyClientTypes.JobSummary]` | ||
/// - Returns: `[AmplifyClientTypes.JobSummary]` | ||
public func jobSummaries() async throws -> [AmplifyClientTypes.JobSummary] { | ||
return try await self.asyncCompactMap { item in item.jobSummaries } | ||
} | ||
} |
Oops, something went wrong.