Skip to content

Commit

Permalink
feat(client-codeartifact): Add support for the Swift package format.
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Sep 20, 2023
1 parent 9ebf966 commit 24d8dfe
Show file tree
Hide file tree
Showing 24 changed files with 39 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export interface AssociateExternalConnectionCommandOutput extends AssociateExter
* // externalConnections: [ // RepositoryExternalConnectionInfoList
* // { // RepositoryExternalConnectionInfo
* // externalConnectionName: "STRING_VALUE",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // status: "Available",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface CopyPackageVersionsCommandOutput extends CopyPackageVersionsRes
* domainOwner: "STRING_VALUE",
* sourceRepository: "STRING_VALUE", // required
* destinationRepository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* versions: [ // PackageVersionList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface CreateRepositoryCommandOutput extends CreateRepositoryResult, _
* // externalConnections: [ // RepositoryExternalConnectionInfoList
* // { // RepositoryExternalConnectionInfo
* // externalConnectionName: "STRING_VALUE",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // status: "Available",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ export interface DeletePackageCommandOutput extends DeletePackageResult, __Metad
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* };
* const command = new DeletePackageCommand(input);
* const response = await client.send(command);
* // { // DeletePackageResult
* // deletedPackage: { // PackageSummary
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // originConfiguration: { // PackageOriginConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface DeletePackageVersionsCommandOutput extends DeletePackageVersion
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* versions: [ // PackageVersionList // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface DeleteRepositoryCommandOutput extends DeleteRepositoryResult, _
* // externalConnections: [ // RepositoryExternalConnectionInfoList
* // { // RepositoryExternalConnectionInfo
* // externalConnectionName: "STRING_VALUE",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // status: "Available",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ export interface DescribePackageCommandOutput extends DescribePackageResult, __M
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* };
* const command = new DescribePackageCommand(input);
* const response = await client.send(command);
* // { // DescribePackageResult
* // package: { // PackageDescription
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // namespace: "STRING_VALUE",
* // name: "STRING_VALUE",
* // originConfiguration: { // PackageOriginConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface DescribePackageVersionCommandOutput extends DescribePackageVers
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* packageVersion: "STRING_VALUE", // required
Expand All @@ -60,7 +60,7 @@ export interface DescribePackageVersionCommandOutput extends DescribePackageVers
* const response = await client.send(command);
* // { // DescribePackageVersionResult
* // packageVersion: { // PackageVersionDescription
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // namespace: "STRING_VALUE",
* // packageName: "STRING_VALUE",
* // displayName: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface DescribeRepositoryCommandOutput extends DescribeRepositoryResul
* // externalConnections: [ // RepositoryExternalConnectionInfoList
* // { // RepositoryExternalConnectionInfo
* // externalConnectionName: "STRING_VALUE",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // status: "Available",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export interface DisassociateExternalConnectionCommandOutput
* // externalConnections: [ // RepositoryExternalConnectionInfoList
* // { // RepositoryExternalConnectionInfo
* // externalConnectionName: "STRING_VALUE",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // status: "Available",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface DisposePackageVersionsCommandOutput extends DisposePackageVersi
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* versions: [ // PackageVersionList // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export interface GetPackageVersionAssetCommandOutput
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* packageVersion: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ export interface GetPackageVersionReadmeCommandOutput extends GetPackageVersionR
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* packageVersion: "STRING_VALUE", // required
* };
* const command = new GetPackageVersionReadmeCommand(input);
* const response = await client.send(command);
* // { // GetPackageVersionReadmeResult
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // version: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export interface GetRepositoryEndpointCommandOutput extends GetRepositoryEndpoin
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* };
* const command = new GetRepositoryEndpointCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface ListPackageVersionAssetsCommandOutput extends ListPackageVersio
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* packageVersion: "STRING_VALUE", // required
Expand All @@ -61,7 +61,7 @@ export interface ListPackageVersionAssetsCommandOutput extends ListPackageVersio
* const command = new ListPackageVersionAssetsCommand(input);
* const response = await client.send(command);
* // { // ListPackageVersionAssetsResult
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // version: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface ListPackageVersionDependenciesCommandOutput
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* packageVersion: "STRING_VALUE", // required
Expand All @@ -67,7 +67,7 @@ export interface ListPackageVersionDependenciesCommandOutput
* const command = new ListPackageVersionDependenciesCommand(input);
* const response = await client.send(command);
* // { // ListPackageVersionDependenciesResult
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // version: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface ListPackageVersionsCommandOutput extends ListPackageVersionsRes
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* status: "Published" || "Unfinished" || "Unlisted" || "Archived" || "Disposed" || "Deleted",
Expand All @@ -64,7 +64,7 @@ export interface ListPackageVersionsCommandOutput extends ListPackageVersionsRes
* const response = await client.send(command);
* // { // ListPackageVersionsResult
* // defaultDisplayVersion: "STRING_VALUE",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // versions: [ // PackageVersionSummaryList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface ListPackagesCommandOutput extends ListPackagesResult, __Metadat
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic",
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* namespace: "STRING_VALUE",
* packagePrefix: "STRING_VALUE",
* maxResults: Number("int"),
Expand All @@ -64,7 +64,7 @@ export interface ListPackagesCommandOutput extends ListPackagesResult, __Metadat
* // { // ListPackagesResult
* // packages: [ // PackageSummaryList
* // { // PackageSummary
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // originConfiguration: { // PackageOriginConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface PublishPackageVersionCommandOutput extends PublishPackageVersio
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* packageVersion: "STRING_VALUE", // required
Expand All @@ -76,7 +76,7 @@ export interface PublishPackageVersionCommandOutput extends PublishPackageVersio
* const command = new PublishPackageVersionCommand(input);
* const response = await client.send(command);
* // { // PublishPackageVersionResult
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // version: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface PutPackageOriginConfigurationCommandOutput
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* restrictions: { // PackageOriginRestrictions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface UpdatePackageVersionsStatusCommandOutput extends UpdatePackageV
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* versions: [ // PackageVersionList // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export interface UpdateRepositoryCommandOutput extends UpdateRepositoryResult, _
* // externalConnections: [ // RepositoryExternalConnectionInfoList
* // { // RepositoryExternalConnectionInfo
* // externalConnectionName: "STRING_VALUE",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
* // status: "Available",
* // },
* // ],
Expand Down
1 change: 1 addition & 0 deletions clients/client-codeartifact/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export const PackageFormat = {
NPM: "npm",
NUGET: "nuget",
PYPI: "pypi",
SWIFT: "swift",
} as const;

/**
Expand Down
8 changes: 7 additions & 1 deletion codegen/sdk-codegen/aws-models/codeartifact.json
Original file line number Diff line number Diff line change
Expand Up @@ -4702,6 +4702,12 @@
"traits": {
"smithy.api#enumValue": "generic"
}
},
"SWIFT": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "swift"
}
}
}
},
Expand Down Expand Up @@ -6520,4 +6526,4 @@
}
}
}
}
}

0 comments on commit 24d8dfe

Please sign in to comment.