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

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Proton::UpdateServicePipeline;
3 use Moose;
4 has DeploymentType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'deploymentType' , required => 1);
5 has ServiceName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'serviceName' , required => 1);
6 has Spec => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'spec' , required => 1);
7 has TemplateMajorVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'templateMajorVersion' );
8 has TemplateMinorVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'templateMinorVersion' );
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateServicePipeline');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Proton::UpdateServicePipelineOutput');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::Proton::UpdateServicePipeline - Arguments for method UpdateServicePipeline on L<Paws::Proton>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method UpdateServicePipeline on the
26 L<AWS Proton|Paws::Proton> service. Use the attributes of this class
27 as arguments to method UpdateServicePipeline.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateServicePipeline.
30  
31 =head1 SYNOPSIS
32  
33 my $proton = Paws->service('Proton');
34 my $UpdateServicePipelineOutput = $proton->UpdateServicePipeline(
35 DeploymentType => 'NONE',
36 ServiceName => 'MyResourceName',
37 Spec => 'MySpecContents',
38 TemplateMajorVersion => 'MyTemplateVersionPart', # OPTIONAL
39 TemplateMinorVersion => 'MyTemplateVersionPart', # OPTIONAL
40 );
41  
42 # Results:
43 my $Pipeline = $UpdateServicePipelineOutput->Pipeline;
44  
45 # Returns a L<Paws::Proton::UpdateServicePipelineOutput> object.
46  
47 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.
48 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/proton/UpdateServicePipeline>
49  
50 =head1 ATTRIBUTES
51  
52  
53 =head2 B<REQUIRED> DeploymentType => Str
54  
55 The deployment type.
56  
57 There are four modes for updating a service pipeline as described in
58 the following. The C<deploymentType> field defines the mode.
59  
60 =over
61  
62 =item C<NONE>
63  
64 In this mode, a deployment I<doesn't> occur. Only the requested
65 metadata parameters are updated.
66  
67 =item C<CURRENT_VERSION>
68  
69 In this mode, the service pipeline is deployed and updated with the new
70 spec that you provide. Only requested parameters are updated.
71 I<DonE<rsquo>t> include minor or major version parameters when you use
72 this C<deployment-type>.
73  
74 =item C<MINOR_VERSION>
75  
76 In this mode, the service pipeline is deployed and updated with the
77 published, recommended (latest) minor version of the current major
78 version in use, by default. You can also specify a different minor
79 version of the current major version in use.
80  
81 =item C<MAJOR_VERSION>
82  
83 In this mode, the service pipeline is deployed and updated with the
84 published, recommended (latest) major and minor version of the current
85 template, by default. You can also specify a different major version
86 that is higher than the major version in use and a minor version
87 (optional).
88  
89 =back
90  
91  
92 Valid values are: C<"NONE">, C<"CURRENT_VERSION">, C<"MINOR_VERSION">, C<"MAJOR_VERSION">
93  
94 =head2 B<REQUIRED> ServiceName => Str
95  
96 The name of the service to that the pipeline is associated with.
97  
98  
99  
100 =head2 B<REQUIRED> Spec => Str
101  
102 The spec for the service pipeline to update.
103  
104  
105  
106 =head2 TemplateMajorVersion => Str
107  
108 The major version of the service template that was used to create the
109 service that the pipeline is associated with.
110  
111  
112  
113 =head2 TemplateMinorVersion => Str
114  
115 The minor version of the service template that was used to create the
116 service that the pipeline is associated with.
117  
118  
119  
120  
121 =head1 SEE ALSO
122  
123 This class forms part of L<Paws>, documenting arguments for method UpdateServicePipeline in L<Paws::Proton>
124  
125 =head1 BUGS and CONTRIBUTIONS
126  
127 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
128  
129 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
130  
131 =cut
132