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

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