blib/lib/Paws/Proton/UpdateServiceTemplateVersion.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Proton::UpdateServiceTemplateVersion;
3 use Moose;
4 has CompatibleEnvironmentTemplates => (is => 'ro', isa => 'ArrayRef[Paws::Proton::CompatibleEnvironmentTemplateInput]', traits => ['NameInRequest'], request_name => 'compatibleEnvironmentTemplates' );
5 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
6 has MajorVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'majorVersion' , required => 1);
7 has MinorVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'minorVersion' , required => 1);
8 has Status => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'status' );
9 has TemplateName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'templateName' , required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateServiceTemplateVersion');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Proton::UpdateServiceTemplateVersionOutput');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::Proton::UpdateServiceTemplateVersion - Arguments for method UpdateServiceTemplateVersion on L<Paws::Proton>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method UpdateServiceTemplateVersion on the
27 L<AWS Proton|Paws::Proton> service. Use the attributes of this class
28 as arguments to method UpdateServiceTemplateVersion.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateServiceTemplateVersion.
31  
32 =head1 SYNOPSIS
33  
34 my $proton = Paws->service('Proton');
35 my $UpdateServiceTemplateVersionOutput =
36 $proton->UpdateServiceTemplateVersion(
37 MajorVersion => 'MyTemplateVersionPart',
38 MinorVersion => 'MyTemplateVersionPart',
39 TemplateName => 'MyResourceName',
40 CompatibleEnvironmentTemplates => [
41 {
42 MajorVersion => 'MyTemplateVersionPart', # min: 1, max: 20
43 TemplateName => 'MyResourceName', # min: 1, max: 100
44  
45 },
46 ...
47 ], # OPTIONAL
48 Description => 'MyDescription', # OPTIONAL
49 Status => 'REGISTRATION_IN_PROGRESS', # OPTIONAL
50 );
51  
52 # Results:
53 my $ServiceTemplateVersion =
54 $UpdateServiceTemplateVersionOutput->ServiceTemplateVersion;
55  
56 # Returns a L<Paws::Proton::UpdateServiceTemplateVersionOutput> object.
57  
58 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.
59 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/proton/UpdateServiceTemplateVersion>
60  
61 =head1 ATTRIBUTES
62  
63  
64 =head2 CompatibleEnvironmentTemplates => ArrayRef[L<Paws::Proton::CompatibleEnvironmentTemplateInput>]
65  
66 An array of compatible environment names for a service template major
67 or minor version to update.
68  
69  
70  
71 =head2 Description => Str
72  
73 A description of a service template version to update.
74  
75  
76  
77 =head2 B<REQUIRED> MajorVersion => Str
78  
79 To update a major version of a service template, include
80 C<majorVersion>.
81  
82  
83  
84 =head2 B<REQUIRED> MinorVersion => Str
85  
86 To update a minor version of a service template, include
87 C<minorVersion>.
88  
89  
90  
91 =head2 Status => Str
92  
93 The status of the service template minor version to update.
94  
95 Valid values are: C<"REGISTRATION_IN_PROGRESS">, C<"REGISTRATION_FAILED">, C<"DRAFT">, C<"PUBLISHED">
96  
97 =head2 B<REQUIRED> TemplateName => Str
98  
99 The name of the service template.
100  
101  
102  
103  
104 =head1 SEE ALSO
105  
106 This class forms part of L<Paws>, documenting arguments for method UpdateServiceTemplateVersion in L<Paws::Proton>
107  
108 =head1 BUGS and CONTRIBUTIONS
109  
110 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
111  
112 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
113  
114 =cut
115