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

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CodeArtifact::UpdateRepository;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
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 Repository => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'repository', required => 1);
8 has Upstreams => (is => 'ro', isa => 'ArrayRef[Paws::CodeArtifact::UpstreamRepository]', traits => ['NameInRequest'], request_name => 'upstreams');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateRepository');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/repository');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeArtifact::UpdateRepositoryResult');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::CodeArtifact::UpdateRepository - Arguments for method UpdateRepository on L<Paws::CodeArtifact>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method UpdateRepository on the
27 L<CodeArtifact|Paws::CodeArtifact> service. Use the attributes of this class
28 as arguments to method UpdateRepository.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateRepository.
31  
32 =head1 SYNOPSIS
33  
34 my $codeartifact = Paws->service('CodeArtifact');
35 my $UpdateRepositoryResult = $codeartifact->UpdateRepository(
36 Domain => 'MyDomainName',
37 Repository => 'MyRepositoryName',
38 Description => 'MyDescription', # OPTIONAL
39 DomainOwner => 'MyAccountId', # OPTIONAL
40 Upstreams => [
41 {
42 RepositoryName => 'MyRepositoryName', # min: 2, max: 100
43  
44 },
45 ...
46 ], # OPTIONAL
47 );
48  
49 # Results:
50 my $Repository = $UpdateRepositoryResult->Repository;
51  
52 # Returns a L<Paws::CodeArtifact::UpdateRepositoryResult> object.
53  
54 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.
55 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codeartifact/UpdateRepository>
56  
57 =head1 ATTRIBUTES
58  
59  
60 =head2 Description => Str
61  
62 An updated repository description.
63  
64  
65  
66 =head2 B<REQUIRED> Domain => Str
67  
68 The name of the domain associated with the repository to update.
69  
70  
71  
72 =head2 DomainOwner => Str
73  
74 The 12-digit account number of the AWS account that owns the domain. It
75 does not include dashes or spaces.
76  
77  
78  
79 =head2 B<REQUIRED> Repository => Str
80  
81 The name of the repository to update.
82  
83  
84  
85 =head2 Upstreams => ArrayRef[L<Paws::CodeArtifact::UpstreamRepository>]
86  
87 A list of upstream repositories to associate with the repository. The
88 order of the upstream repositories in the list determines their
89 priority order when AWS CodeArtifact looks for a requested package
90 version. For more information, see Working with upstream repositories
91 (https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html).
92  
93  
94  
95  
96 =head1 SEE ALSO
97  
98 This class forms part of L<Paws>, documenting arguments for method UpdateRepository in L<Paws::CodeArtifact>
99  
100 =head1 BUGS and CONTRIBUTIONS
101  
102 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
103  
104 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
105  
106 =cut
107