blib/lib/Paws/CodeArtifact/DescribePackageVersion.pm untested

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