aws_sdk_codeartifact/client/list_package_version_assets.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`ListPackageVersionAssets`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`domain(impl Into<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::set_domain):<br>required: **true**<br><p>The name of the domain that contains the repository associated with the package version assets.</p><br>
8 /// - [`domain_owner(impl Into<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::domain_owner) / [`set_domain_owner(Option<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::set_domain_owner):<br>required: **false**<br><p>The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.</p><br>
9 /// - [`repository(impl Into<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::repository) / [`set_repository(Option<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::set_repository):<br>required: **true**<br><p>The name of the repository that contains the package that contains the requested package version assets.</p><br>
10 /// - [`format(PackageFormat)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::format) / [`set_format(Option<PackageFormat>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::set_format):<br>required: **true**<br><p>The format of the package that contains the requested package version assets.</p><br>
11 /// - [`namespace(impl Into<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::namespace) / [`set_namespace(Option<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::set_namespace):<br>required: **false**<br><p>The namespace of the package version that contains the requested package version assets. The package component that specifies its namespace depends on its type. For example:</p><note> <p>The namespace is required requesting assets from package versions of the following formats:</p> <ul> <li> <p>Maven</p></li> <li> <p>Swift</p></li> <li> <p>generic</p></li> </ul> </note> <ul> <li> <p>The namespace of a Maven package version is its <code>groupId</code>.</p></li> <li> <p>The namespace of an npm or Swift package version is its <code>scope</code>.</p></li> <li> <p>The namespace of a generic package is its <code>namespace</code>.</p></li> <li> <p>Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.</p></li> </ul><br>
12 /// - [`package(impl Into<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::package) / [`set_package(Option<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::set_package):<br>required: **true**<br><p>The name of the package that contains the requested package version assets.</p><br>
13 /// - [`package_version(impl Into<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::package_version) / [`set_package_version(Option<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::set_package_version):<br>required: **true**<br><p>A string that contains the package version (for example, <code>3.5.2</code>).</p><br>
14 /// - [`max_results(i32)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page.</p><br>
15 /// - [`next_token(impl Into<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p><br>
16 /// - On success, responds with [`ListPackageVersionAssetsOutput`](crate::operation::list_package_version_assets::ListPackageVersionAssetsOutput) with field(s):
17 /// - [`format(Option<PackageFormat>)`](crate::operation::list_package_version_assets::ListPackageVersionAssetsOutput::format): <p>The format of the package that contains the requested package version assets.</p>
18 /// - [`namespace(Option<String>)`](crate::operation::list_package_version_assets::ListPackageVersionAssetsOutput::namespace): <p>The namespace of the package version that contains the requested package version assets. The package component that specifies its namespace depends on its type. For example:</p> <ul> <li> <p>The namespace of a Maven package version is its <code>groupId</code>.</p></li> <li> <p>The namespace of an npm or Swift package version is its <code>scope</code>.</p></li> <li> <p>The namespace of a generic package is its <code>namespace</code>.</p></li> <li> <p>Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.</p></li> </ul>
19 /// - [`package(Option<String>)`](crate::operation::list_package_version_assets::ListPackageVersionAssetsOutput::package): <p>The name of the package that contains the requested package version assets.</p>
20 /// - [`version(Option<String>)`](crate::operation::list_package_version_assets::ListPackageVersionAssetsOutput::version): <p>The version of the package associated with the requested assets.</p>
21 /// - [`version_revision(Option<String>)`](crate::operation::list_package_version_assets::ListPackageVersionAssetsOutput::version_revision): <p>The current revision associated with the package version.</p>
22 /// - [`next_token(Option<String>)`](crate::operation::list_package_version_assets::ListPackageVersionAssetsOutput::next_token): <p>If there are additional results, this is the token for the next set of results.</p>
23 /// - [`assets(Option<Vec::<AssetSummary>>)`](crate::operation::list_package_version_assets::ListPackageVersionAssetsOutput::assets): <p>The returned list of <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html">AssetSummary</a> objects.</p>
24 /// - On failure, responds with [`SdkError<ListPackageVersionAssetsError>`](crate::operation::list_package_version_assets::ListPackageVersionAssetsError)
25 pub fn list_package_version_assets(&self) -> crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder {
26 crate::operation::list_package_version_assets::builders::ListPackageVersionAssetsFluentBuilder::new(self.handle.clone())
27 }
28}