blib/lib/Paws/CodeArtifact/PutRepositoryPermissionsPolicy.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::PutRepositoryPermissionsPolicy;
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 PolicyDocument => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'policyDocument', required => 1);
7 has PolicyRevision => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'policyRevision');
8 has Repository => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'repository', required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutRepositoryPermissionsPolicy');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/repository/permissions/policy');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeArtifact::PutRepositoryPermissionsPolicyResult');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::CodeArtifact::PutRepositoryPermissionsPolicy - Arguments for method PutRepositoryPermissionsPolicy on L<Paws::CodeArtifact>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method PutRepositoryPermissionsPolicy on the
27 L<CodeArtifact|Paws::CodeArtifact> service. Use the attributes of this class
28 as arguments to method PutRepositoryPermissionsPolicy.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutRepositoryPermissionsPolicy.
31  
32 =head1 SYNOPSIS
33  
34 my $codeartifact = Paws->service('CodeArtifact');
35 my $PutRepositoryPermissionsPolicyResult =
36 $codeartifact->PutRepositoryPermissionsPolicy(
37 Domain => 'MyDomainName',
38 PolicyDocument => 'MyPolicyDocument',
39 Repository => 'MyRepositoryName',
40 DomainOwner => 'MyAccountId', # OPTIONAL
41 PolicyRevision => 'MyPolicyRevision', # OPTIONAL
42 );
43  
44 # Results:
45 my $Policy = $PutRepositoryPermissionsPolicyResult->Policy;
46  
47 # Returns a L<Paws::CodeArtifact::PutRepositoryPermissionsPolicyResult> object.
48  
49 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.
50 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codeartifact/PutRepositoryPermissionsPolicy>
51  
52 =head1 ATTRIBUTES
53  
54  
55 =head2 B<REQUIRED> Domain => Str
56  
57 The name of the domain containing the repository to set the resource
58 policy on.
59  
60  
61  
62 =head2 DomainOwner => Str
63  
64 The 12-digit account number of the AWS account that owns the domain. It
65 does not include dashes or spaces.
66  
67  
68  
69 =head2 B<REQUIRED> PolicyDocument => Str
70  
71 A valid displayable JSON Aspen policy string to be set as the access
72 control resource policy on the provided repository.
73  
74  
75  
76 =head2 PolicyRevision => Str
77  
78 Sets the revision of the resource policy that specifies permissions to
79 access the repository. This revision is used for optimistic locking,
80 which prevents others from overwriting your changes to the repository's
81 resource policy.
82  
83  
84  
85 =head2 B<REQUIRED> Repository => Str
86  
87 The name of the repository to set the resource policy on.
88  
89  
90  
91  
92 =head1 SEE ALSO
93  
94 This class forms part of L<Paws>, documenting arguments for method PutRepositoryPermissionsPolicy in L<Paws::CodeArtifact>
95  
96 =head1 BUGS and CONTRIBUTIONS
97  
98 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
99  
100 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
101  
102 =cut
103