Skip to content

Commit

Permalink
Add support for the Cargo package format.
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-dotnet-automation committed Jun 20, 2024
1 parent 613bd93 commit 4e02f34
Show file tree
Hide file tree
Showing 36 changed files with 190 additions and 113 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
"endpointPrefix":"codeartifact",
"jsonVersion":"1.1",
"protocol":"rest-json",
"protocols":["rest-json"],
"serviceFullName":"CodeArtifact",
"serviceId":"codeartifact",
"signatureVersion":"v4",
"signingName":"codeartifact",
"uid":"codeartifact-2018-09-22"
"uid":"codeartifact-2018-09-22",
"auth":["aws.auth#sigv4"]
},
"operations":{
"AssociateExternalConnection":{
Expand Down Expand Up @@ -2621,7 +2623,8 @@
"nuget",
"generic",
"ruby",
"swift"
"swift",
"cargo"
]
},
"PackageGroupAllowedRepository":{
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ internal bool IsSetDomainOwner()
/// <para>
/// <c>public:maven-clojars</c> - for the Clojars repository.
/// </para>
/// </li> <li>
/// <para>
/// <c>public:ruby-gems-org</c> - for RubyGems.org.
/// </para>
/// </li> <li>
/// <para>
/// <c>public:crates-io</c> - for Crates.io.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=2, Max=100)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ internal bool IsSetIncludeFromUpstream()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ namespace Amazon.CodeArtifact.Model
///
/// <ul> <li>
/// <para>
/// <c>cargo</c>
/// </para>
/// </li> <li>
/// <para>
/// <c>generic</c>
/// </para>
/// </li> <li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ internal bool IsSetMaxResults()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,30 +123,18 @@ internal bool IsSetFormat()
/// <para>
/// Maven
/// </para>
/// </li> <li>
/// <para>
/// Swift
/// </para>
/// </li> <li>
/// <para>
/// generic
/// </para>
/// </li> </ul> </note> <ul> <li>
/// <para>
/// The namespace of a Maven package version is its <c>groupId</c>.
/// </para>
/// </li> <li>
/// <para>
/// The namespace of an npm or Swift package version is its <c>scope</c>.
/// </para>
/// </li> <li>
/// <para>
/// The namespace of a generic package is its <c>namespace</c>.
/// The namespace of an npm package version is its <c>scope</c>.
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// Python and NuGet package versions do not contain a corresponding component, package
/// versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,27 @@ internal bool IsSetFormat()
/// The namespace of the package version that contains the returned dependencies. The
/// package component that specifies its namespace depends on its type. For example:
/// </para>
/// <note>
/// <para>
/// The namespace is required when listing dependencies from package versions of the following
/// formats:
/// </para>
/// <ul> <li>
/// <para>
/// The namespace of a Maven package version is its <c>groupId</c>.
/// Maven
/// </para>
/// </li> <li>
/// </li> </ul> </note> <ul> <li>
/// <para>
/// The namespace of an npm or Swift package version is its <c>scope</c>.
/// The namespace of a Maven package version is its <c>groupId</c>.
/// </para>
/// </li> <li>
/// <para>
/// The namespace of a generic package is its <c>namespace</c>.
/// The namespace of an npm package version is its <c>scope</c>.
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// Python and NuGet package versions do not contain a corresponding component, package
/// versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ internal bool IsSetMaxResults()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ internal bool IsSetMaxResults()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ internal bool IsSetDependencyType()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ internal bool IsSetName()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ internal bool IsSetLicenses()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ internal bool IsSetFormat()
/// </para>
/// </li> <li>
/// <para>
/// Python, NuGet, and Ruby package versions do not contain a corresponding component,
/// Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component,
/// package versions of those formats do not have a namespace.
/// </para>
/// </li> </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ public static HashAlgorithm FindValue(string value)
public class PackageFormat : ConstantClass
{

/// <summary>
/// Constant Cargo for PackageFormat
/// </summary>
public static readonly PackageFormat Cargo = new PackageFormat("cargo");
/// <summary>
/// Constant Generic for PackageFormat
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ namespace Amazon.CodeArtifact
/// <para>
/// <b>Package</b>: A <i>package</i> is a bundle of software and the metadata required
/// to resolve dependencies and install the software. CodeArtifact supports npm, PyPI,
/// Maven, NuGet, Swift, Ruby, and generic package formats. For more information about
/// the supported package formats and how to use CodeArtifact with them, see the <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html">CodeArtifact
/// Maven, NuGet, Swift, Ruby, Cargo, and generic package formats. For more information
/// about the supported package formats and how to use CodeArtifact with them, see the
/// <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html">CodeArtifact
/// User Guide</a>.
/// </para>
///
Expand Down Expand Up @@ -272,6 +273,10 @@ namespace Amazon.CodeArtifact
/// </para>
/// <ul> <li>
/// <para>
/// <c>cargo</c>
/// </para>
/// </li> <li>
/// <para>
/// <c>generic</c>
/// </para>
/// </li> <li>
Expand Down Expand Up @@ -2525,6 +2530,10 @@ public virtual GetPackageVersionReadmeResponse EndGetPackageVersionReadme(IAsync
///
/// <ul> <li>
/// <para>
/// <c>cargo</c>
/// </para>
/// </li> <li>
/// <para>
/// <c>generic</c>
/// </para>
/// </li> <li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ namespace Amazon.CodeArtifact
/// <para>
/// <b>Package</b>: A <i>package</i> is a bundle of software and the metadata required
/// to resolve dependencies and install the software. CodeArtifact supports npm, PyPI,
/// Maven, NuGet, Swift, Ruby, and generic package formats. For more information about
/// the supported package formats and how to use CodeArtifact with them, see the <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html">CodeArtifact
/// Maven, NuGet, Swift, Ruby, Cargo, and generic package formats. For more information
/// about the supported package formats and how to use CodeArtifact with them, see the
/// <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html">CodeArtifact
/// User Guide</a>.
/// </para>
///
Expand Down Expand Up @@ -266,6 +267,10 @@ namespace Amazon.CodeArtifact
/// </para>
/// <ul> <li>
/// <para>
/// <c>cargo</c>
/// </para>
/// </li> <li>
/// <para>
/// <c>generic</c>
/// </para>
/// </li> <li>
Expand Down Expand Up @@ -1971,6 +1976,10 @@ public partial interface IAmazonCodeArtifact : IAmazonService, IDisposable
///
/// <ul> <li>
/// <para>
/// <c>cargo</c>
/// </para>
/// </li> <li>
/// <para>
/// <c>generic</c>
/// </para>
/// </li> <li>
Expand Down
Loading

0 comments on commit 4e02f34

Please sign in to comment.