Skip to content

Commit 6d048ab

Browse files
author
awstools
committed
feat(client-codeartifact): Add support for the Cargo package format.
1 parent 1cf227f commit 6d048ab

30 files changed

+138
-102
lines changed

clients/client-codeartifact/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ across their organization.</p>
4848
<li>
4949
<p>
5050
<b>Package</b>: A <i>package</i> is a bundle of software and the metadata required to
51-
resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, and generic package formats.
51+
resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, Cargo, and generic package formats.
5252
For more information about the supported package formats and how to use CodeArtifact with them, see the
5353
<a href="https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html">CodeArtifact User Guide</a>.</p>
5454
<p>In CodeArtifact, a package consists of:</p>
@@ -223,6 +223,11 @@ package format:
223223
<ul>
224224
<li>
225225
<p>
226+
<code>cargo</code>
227+
</p>
228+
</li>
229+
<li>
230+
<p>
226231
<code>generic</code>
227232
</p>
228233
</li>

clients/client-codeartifact/src/Codeartifact.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ export interface Codeartifact {
11021102
* <li>
11031103
* <p>
11041104
* <b>Package</b>: A <i>package</i> is a bundle of software and the metadata required to
1105-
* resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, and generic package formats.
1105+
* resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, Cargo, and generic package formats.
11061106
* For more information about the supported package formats and how to use CodeArtifact with them, see the
11071107
* <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html">CodeArtifact User Guide</a>.</p>
11081108
* <p>In CodeArtifact, a package consists of:</p>
@@ -1277,6 +1277,11 @@ export interface Codeartifact {
12771277
* <ul>
12781278
* <li>
12791279
* <p>
1280+
* <code>cargo</code>
1281+
* </p>
1282+
* </li>
1283+
* <li>
1284+
* <p>
12801285
* <code>generic</code>
12811286
* </p>
12821287
* </li>

clients/client-codeartifact/src/CodeartifactClient.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export interface CodeartifactClientResolvedConfig extends CodeartifactClientReso
529529
* <li>
530530
* <p>
531531
* <b>Package</b>: A <i>package</i> is a bundle of software and the metadata required to
532-
* resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, and generic package formats.
532+
* resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, Cargo, and generic package formats.
533533
* For more information about the supported package formats and how to use CodeArtifact with them, see the
534534
* <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html">CodeArtifact User Guide</a>.</p>
535535
* <p>In CodeArtifact, a package consists of:</p>
@@ -704,6 +704,11 @@ export interface CodeartifactClientResolvedConfig extends CodeartifactClientReso
704704
* <ul>
705705
* <li>
706706
* <p>
707+
* <code>cargo</code>
708+
* </p>
709+
* </li>
710+
* <li>
711+
* <p>
707712
* <code>generic</code>
708713
* </p>
709714
* </li>

clients/client-codeartifact/src/commands/AssociateExternalConnectionCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export interface AssociateExternalConnectionCommandOutput extends AssociateExter
6666
* // externalConnections: [ // RepositoryExternalConnectionInfoList
6767
* // { // RepositoryExternalConnectionInfo
6868
* // externalConnectionName: "STRING_VALUE",
69-
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
69+
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
7070
* // status: "Available",
7171
* // },
7272
* // ],

clients/client-codeartifact/src/commands/CopyPackageVersionsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export interface CopyPackageVersionsCommandOutput extends CopyPackageVersionsRes
4747
* domainOwner: "STRING_VALUE",
4848
* sourceRepository: "STRING_VALUE", // required
4949
* destinationRepository: "STRING_VALUE", // required
50-
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
50+
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
5151
* namespace: "STRING_VALUE",
5252
* package: "STRING_VALUE", // required
5353
* versions: [ // PackageVersionList

clients/client-codeartifact/src/commands/CreateRepositoryCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export interface CreateRepositoryCommandOutput extends CreateRepositoryResult, _
7272
* // externalConnections: [ // RepositoryExternalConnectionInfoList
7373
* // { // RepositoryExternalConnectionInfo
7474
* // externalConnectionName: "STRING_VALUE",
75-
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
75+
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
7676
* // status: "Available",
7777
* // },
7878
* // ],

clients/client-codeartifact/src/commands/DeletePackageCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ export interface DeletePackageCommandOutput extends DeletePackageResult, __Metad
4040
* domain: "STRING_VALUE", // required
4141
* domainOwner: "STRING_VALUE",
4242
* repository: "STRING_VALUE", // required
43-
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
43+
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
4444
* namespace: "STRING_VALUE",
4545
* package: "STRING_VALUE", // required
4646
* };
4747
* const command = new DeletePackageCommand(input);
4848
* const response = await client.send(command);
4949
* // { // DeletePackageResult
5050
* // deletedPackage: { // PackageSummary
51-
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
51+
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
5252
* // namespace: "STRING_VALUE",
5353
* // package: "STRING_VALUE",
5454
* // originConfiguration: { // PackageOriginConfiguration

clients/client-codeartifact/src/commands/DeletePackageVersionsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface DeletePackageVersionsCommandOutput extends DeletePackageVersion
4343
* domain: "STRING_VALUE", // required
4444
* domainOwner: "STRING_VALUE",
4545
* repository: "STRING_VALUE", // required
46-
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
46+
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
4747
* namespace: "STRING_VALUE",
4848
* package: "STRING_VALUE", // required
4949
* versions: [ // PackageVersionList // required

clients/client-codeartifact/src/commands/DeleteRepositoryCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface DeleteRepositoryCommandOutput extends DeleteRepositoryResult, _
6060
* // externalConnections: [ // RepositoryExternalConnectionInfoList
6161
* // { // RepositoryExternalConnectionInfo
6262
* // externalConnectionName: "STRING_VALUE",
63-
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
63+
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
6464
* // status: "Available",
6565
* // },
6666
* // ],

clients/client-codeartifact/src/commands/DescribePackageCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ export interface DescribePackageCommandOutput extends DescribePackageResult, __M
4141
* domain: "STRING_VALUE", // required
4242
* domainOwner: "STRING_VALUE",
4343
* repository: "STRING_VALUE", // required
44-
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
44+
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
4545
* namespace: "STRING_VALUE",
4646
* package: "STRING_VALUE", // required
4747
* };
4848
* const command = new DescribePackageCommand(input);
4949
* const response = await client.send(command);
5050
* // { // DescribePackageResult
5151
* // package: { // PackageDescription
52-
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
52+
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
5353
* // namespace: "STRING_VALUE",
5454
* // name: "STRING_VALUE",
5555
* // originConfiguration: { // PackageOriginConfiguration

0 commit comments

Comments
 (0)