« blib/lib/Paws/CodeArtifact/GetDomainPermissionsPolicyResult.pm
↑ Summary
blib/lib/Paws/CodeArtifact/GetPackageVersionAssetResult.pm »
| 1 | |||
| 2 | package Paws::CodeArtifact::GetPackageVersionAsset; | ||
| 3 | use Moose; | ||
| 4 | has Asset => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'asset', required => 1); | ||
| 5 | has Domain => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'domain', required => 1); | ||
| 6 | has DomainOwner => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'domain-owner'); | ||
| 7 | has Format => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'format', required => 1); | ||
| 8 | has Namespace => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'namespace'); | ||
| 9 | has Package => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'package', required => 1); | ||
| 10 | has PackageVersion => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'version', required => 1); | ||
| 11 | has PackageVersionRevision => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'revision'); | ||
| 12 | has Repository => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'repository', required => 1); | ||
| 13 | |||
| 14 | use MooseX::ClassAttribute; | ||
| 15 | |||
| 16 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetPackageVersionAsset'); | ||
| 17 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/package/version/asset'); | ||
| 18 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'GET'); | ||
| 19 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeArtifact::GetPackageVersionAssetResult'); | ||
| 20 | 1; | ||
| 21 | |||
| 22 | ### main pod documentation begin ### | ||
| 23 | |||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | Paws::CodeArtifact::GetPackageVersionAsset - Arguments for method GetPackageVersionAsset on L<Paws::CodeArtifact> | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | This class represents the parameters used for calling the method GetPackageVersionAsset on the | ||
| 31 | L<CodeArtifact|Paws::CodeArtifact> service. Use the attributes of this class | ||
| 32 | as arguments to method GetPackageVersionAsset. | ||
| 33 | |||
| 34 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetPackageVersionAsset. | ||
| 35 | |||
| 36 | =head1 SYNOPSIS | ||
| 37 | |||
| 38 | my $codeartifact = Paws->service('CodeArtifact'); | ||
| 39 | my $GetPackageVersionAssetResult = $codeartifact->GetPackageVersionAsset( | ||
| 40 | Asset => 'MyAssetName', | ||
| 41 | Domain => 'MyDomainName', | ||
| 42 | Format => 'npm', | ||
| 43 | Package => 'MyPackageName', | ||
| 44 | PackageVersion => 'MyPackageVersion', | ||
| 45 | Repository => 'MyRepositoryName', | ||
| 46 | DomainOwner => 'MyAccountId', # OPTIONAL | ||
| 47 | Namespace => 'MyPackageNamespace', # OPTIONAL | ||
| 48 | PackageVersionRevision => 'MyPackageVersionRevision', # OPTIONAL | ||
| 49 | ); | ||
| 50 | |||
| 51 | # Results: | ||
| 52 | my $Asset = $GetPackageVersionAssetResult->Asset; | ||
| 53 | my $AssetName = $GetPackageVersionAssetResult->AssetName; | ||
| 54 | my $PackageVersion = $GetPackageVersionAssetResult->PackageVersion; | ||
| 55 | my $PackageVersionRevision = | ||
| 56 | $GetPackageVersionAssetResult->PackageVersionRevision; | ||
| 57 | |||
| 58 | # Returns a L<Paws::CodeArtifact::GetPackageVersionAssetResult> object. | ||
| 59 | |||
| 60 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 61 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codeartifact/GetPackageVersionAsset> | ||
| 62 | |||
| 63 | =head1 ATTRIBUTES | ||
| 64 | |||
| 65 | |||
| 66 | =head2 B<REQUIRED> Asset => Str | ||
| 67 | |||
| 68 | The name of the requested asset. | ||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | =head2 B<REQUIRED> Domain => Str | ||
| 73 | |||
| 74 | The name of the domain that contains the repository that contains the | ||
| 75 | package version with the requested asset. | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head2 DomainOwner => Str | ||
| 80 | |||
| 81 | The 12-digit account number of the AWS account that owns the domain. It | ||
| 82 | does not include dashes or spaces. | ||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | =head2 B<REQUIRED> Format => Str | ||
| 87 | |||
| 88 | A format that specifies the type of the package version with the | ||
| 89 | requested asset file. The valid values are: | ||
| 90 | |||
| 91 | =over | ||
| 92 | |||
| 93 | =item * | ||
| 94 | |||
| 95 | C<npm> | ||
| 96 | |||
| 97 | =item * | ||
| 98 | |||
| 99 | C<pypi> | ||
| 100 | |||
| 101 | =item * | ||
| 102 | |||
| 103 | C<maven> | ||
| 104 | |||
| 105 | =back | ||
| 106 | |||
| 107 | |||
| 108 | Valid values are: C<"npm">, C<"pypi">, C<"maven">, C<"nuget"> | ||
| 109 | |||
| 110 | =head2 Namespace => Str | ||
| 111 | |||
| 112 | The namespace of the package. The package component that specifies its | ||
| 113 | namespace depends on its type. For example: | ||
| 114 | |||
| 115 | =over | ||
| 116 | |||
| 117 | =item * | ||
| 118 | |||
| 119 | The namespace of a Maven package is its C<groupId>. | ||
| 120 | |||
| 121 | =item * | ||
| 122 | |||
| 123 | The namespace of an npm package is its C<scope>. | ||
| 124 | |||
| 125 | =item * | ||
| 126 | |||
| 127 | A Python package does not contain a corresponding component, so Python | ||
| 128 | packages do not have a namespace. | ||
| 129 | |||
| 130 | =back | ||
| 131 | |||
| 132 | |||
| 133 | |||
| 134 | |||
| 135 | =head2 B<REQUIRED> Package => Str | ||
| 136 | |||
| 137 | The name of the package that contains the requested asset. | ||
| 138 | |||
| 139 | |||
| 140 | |||
| 141 | =head2 B<REQUIRED> PackageVersion => Str | ||
| 142 | |||
| 143 | A string that contains the package version (for example, C<3.5.2>). | ||
| 144 | |||
| 145 | |||
| 146 | |||
| 147 | =head2 PackageVersionRevision => Str | ||
| 148 | |||
| 149 | The name of the package version revision that contains the requested | ||
| 150 | asset. | ||
| 151 | |||
| 152 | |||
| 153 | |||
| 154 | =head2 B<REQUIRED> Repository => Str | ||
| 155 | |||
| 156 | The repository that contains the package version with the requested | ||
| 157 | asset. | ||
| 158 | |||
| 159 | |||
| 160 | |||
| 161 | |||
| 162 | =head1 SEE ALSO | ||
| 163 | |||
| 164 | This class forms part of L<Paws>, documenting arguments for method GetPackageVersionAsset in L<Paws::CodeArtifact> | ||
| 165 | |||
| 166 | =head1 BUGS and CONTRIBUTIONS | ||
| 167 | |||
| 168 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 169 | |||
| 170 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 171 | |||
| 172 | =cut | ||
| 173 |