blib/lib/Paws/LicenseManager/CreateGrantVersion.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::LicenseManager::CreateGrantVersion;
3 use Moose;
4 has AllowedOperations => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
5 has ClientToken => (is => 'ro', isa => 'Str', required => 1);
6 has GrantArn => (is => 'ro', isa => 'Str', required => 1);
7 has GrantName => (is => 'ro', isa => 'Str');
8 has SourceVersion => (is => 'ro', isa => 'Str');
9 has Status => (is => 'ro', isa => 'Str');
10 has StatusReason => (is => 'ro', isa => 'Str');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateGrantVersion');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LicenseManager::CreateGrantVersionResponse');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::LicenseManager::CreateGrantVersion - Arguments for method CreateGrantVersion on L<Paws::LicenseManager>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateGrantVersion on the
28 L<AWS License Manager|Paws::LicenseManager> service. Use the attributes of this class
29 as arguments to method CreateGrantVersion.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateGrantVersion.
32  
33 =head1 SYNOPSIS
34  
35 my $license-manager = Paws->service('LicenseManager');
36 my $CreateGrantVersionResponse = $license -manager->CreateGrantVersion(
37 ClientToken => 'MyClientToken',
38 GrantArn => 'MyArn',
39 AllowedOperations => [
40 'CreateGrant',
41 ... # values: CreateGrant, CheckoutLicense, CheckoutBorrowLicense, CheckInLicense, ExtendConsumptionLicense, ListPurchasedLicenses, CreateToken
42 ], # OPTIONAL
43 GrantName => 'MyString', # OPTIONAL
44 SourceVersion => 'MyString', # OPTIONAL
45 Status => 'PENDING_WORKFLOW', # OPTIONAL
46 StatusReason => 'MyStatusReasonMessage', # OPTIONAL
47 );
48  
49 # Results:
50 my $GrantArn = $CreateGrantVersionResponse->GrantArn;
51 my $Status = $CreateGrantVersionResponse->Status;
52 my $Version = $CreateGrantVersionResponse->Version;
53  
54 # Returns a L<Paws::LicenseManager::CreateGrantVersionResponse> object.
55  
56 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.
57 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/license-manager/CreateGrantVersion>
58  
59 =head1 ATTRIBUTES
60  
61  
62 =head2 AllowedOperations => ArrayRef[Str|Undef]
63  
64 Allowed operations for the grant.
65  
66  
67  
68 =head2 B<REQUIRED> ClientToken => Str
69  
70 Unique, case-sensitive identifier that you provide to ensure the
71 idempotency of the request.
72  
73  
74  
75 =head2 B<REQUIRED> GrantArn => Str
76  
77 Amazon Resource Name (ARN) of the grant.
78  
79  
80  
81 =head2 GrantName => Str
82  
83 Grant name.
84  
85  
86  
87 =head2 SourceVersion => Str
88  
89 Current version of the grant.
90  
91  
92  
93 =head2 Status => Str
94  
95 Grant status.
96  
97 Valid values are: C<"PENDING_WORKFLOW">, C<"PENDING_ACCEPT">, C<"REJECTED">, C<"ACTIVE">, C<"FAILED_WORKFLOW">, C<"DELETED">, C<"PENDING_DELETE">, C<"DISABLED">, C<"WORKFLOW_COMPLETED">
98  
99 =head2 StatusReason => Str
100  
101  
102  
103  
104  
105  
106 =head1 SEE ALSO
107  
108 This class forms part of L<Paws>, documenting arguments for method CreateGrantVersion in L<Paws::LicenseManager>
109  
110 =head1 BUGS and CONTRIBUTIONS
111  
112 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
113  
114 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
115  
116 =cut
117