blib/lib/Paws/ApiGatewayV2/UpdateStage.pm untested

filter: Statementstmt 0.0% 0 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 32 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ApiGatewayV2::UpdateStage;
3 use Moose;
4 has AccessLogSettings => (is => 'ro', isa => 'Paws::ApiGatewayV2::AccessLogSettings', traits => ['NameInRequest'], request_name => 'accessLogSettings');
5 has ApiId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'apiId', required => 1);
6 has AutoDeploy => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'autoDeploy');
7 has ClientCertificateId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientCertificateId');
8 has DefaultRouteSettings => (is => 'ro', isa => 'Paws::ApiGatewayV2::RouteSettings', traits => ['NameInRequest'], request_name => 'defaultRouteSettings');
9 has DeploymentId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'deploymentId');
10 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
11 has RouteSettings => (is => 'ro', isa => 'Paws::ApiGatewayV2::RouteSettingsMap', traits => ['NameInRequest'], request_name => 'routeSettings');
12 has StageName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'stageName', required => 1);
13 has StageVariables => (is => 'ro', isa => 'Paws::ApiGatewayV2::StageVariablesMap', traits => ['NameInRequest'], request_name => 'stageVariables');
14  
15 use MooseX::ClassAttribute;
16  
17 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateStage');
18 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v2/apis/{apiId}/stages/{stageName}');
19 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PATCH');
20 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ApiGatewayV2::UpdateStageResponse');
21 1;
22  
23 ### main pod documentation begin ###
24  
25 =head1 NAME
26  
27 Paws::ApiGatewayV2::UpdateStage - Arguments for method UpdateStage on L<Paws::ApiGatewayV2>
28  
29 =head1 DESCRIPTION
30  
31 This class represents the parameters used for calling the method UpdateStage on the
32 L<AmazonApiGatewayV2|Paws::ApiGatewayV2> service. Use the attributes of this class
33 as arguments to method UpdateStage.
34  
35 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateStage.
36  
37 =head1 SYNOPSIS
38  
39 my $apigateway = Paws->service('ApiGatewayV2');
40 my $UpdateStageResponse = $apigateway->UpdateStage(
41 ApiId => 'My__string',
42 StageName => 'My__string',
43 AccessLogSettings => {
44 DestinationArn => 'MyArn', # OPTIONAL
45 Format => 'MyStringWithLengthBetween1And1024', # OPTIONAL
46 }, # OPTIONAL
47 AutoDeploy => 1, # OPTIONAL
48 ClientCertificateId => 'MyId', # OPTIONAL
49 DefaultRouteSettings => {
50 DataTraceEnabled => 1,
51 DetailedMetricsEnabled => 1,
52 LoggingLevel => 'ERROR', # values: ERROR, INFO, OFF; OPTIONAL
53 ThrottlingBurstLimit => 1, # OPTIONAL
54 ThrottlingRateLimit => 1, # OPTIONAL
55 }, # OPTIONAL
56 DeploymentId => 'MyId', # OPTIONAL
57 Description => 'MyStringWithLengthBetween0And1024', # OPTIONAL
58 RouteSettings => {
59 'My__string' => {
60 DataTraceEnabled => 1,
61 DetailedMetricsEnabled => 1,
62 LoggingLevel => 'ERROR', # values: ERROR, INFO, OFF; OPTIONAL
63 ThrottlingBurstLimit => 1, # OPTIONAL
64 ThrottlingRateLimit => 1, # OPTIONAL
65 },
66 }, # OPTIONAL
67 StageVariables =>
68 { 'My__string' => 'MyStringWithLengthBetween0And2048', }, # OPTIONAL
69 );
70  
71 # Results:
72 my $AccessLogSettings = $UpdateStageResponse->AccessLogSettings;
73 my $ApiGatewayManaged = $UpdateStageResponse->ApiGatewayManaged;
74 my $AutoDeploy = $UpdateStageResponse->AutoDeploy;
75 my $ClientCertificateId = $UpdateStageResponse->ClientCertificateId;
76 my $CreatedDate = $UpdateStageResponse->CreatedDate;
77 my $DefaultRouteSettings = $UpdateStageResponse->DefaultRouteSettings;
78 my $DeploymentId = $UpdateStageResponse->DeploymentId;
79 my $Description = $UpdateStageResponse->Description;
80 my $LastDeploymentStatusMessage =
81 $UpdateStageResponse->LastDeploymentStatusMessage;
82 my $LastUpdatedDate = $UpdateStageResponse->LastUpdatedDate;
83 my $RouteSettings = $UpdateStageResponse->RouteSettings;
84 my $StageName = $UpdateStageResponse->StageName;
85 my $StageVariables = $UpdateStageResponse->StageVariables;
86 my $Tags = $UpdateStageResponse->Tags;
87  
88 # Returns a L<Paws::ApiGatewayV2::UpdateStageResponse> object.
89  
90 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.
91 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/apigateway/UpdateStage>
92  
93 =head1 ATTRIBUTES
94  
95  
96 =head2 AccessLogSettings => L<Paws::ApiGatewayV2::AccessLogSettings>
97  
98 Settings for logging access in this stage.
99  
100  
101  
102 =head2 B<REQUIRED> ApiId => Str
103  
104 The API identifier.
105  
106  
107  
108 =head2 AutoDeploy => Bool
109  
110 Specifies whether updates to an API automatically trigger a new
111 deployment. The default value is false.
112  
113  
114  
115 =head2 ClientCertificateId => Str
116  
117 The identifier of a client certificate for a Stage.
118  
119  
120  
121 =head2 DefaultRouteSettings => L<Paws::ApiGatewayV2::RouteSettings>
122  
123 The default route settings for the stage.
124  
125  
126  
127 =head2 DeploymentId => Str
128  
129 The deployment identifier for the API stage. Can't be updated if
130 autoDeploy is enabled.
131  
132  
133  
134 =head2 Description => Str
135  
136 The description for the API stage.
137  
138  
139  
140 =head2 RouteSettings => L<Paws::ApiGatewayV2::RouteSettingsMap>
141  
142 Route settings for the stage.
143  
144  
145  
146 =head2 B<REQUIRED> StageName => Str
147  
148 The stage name. Stage names can contain only alphanumeric characters,
149 hyphens, and underscores, or be $default. Maximum length is 128
150 characters.
151  
152  
153  
154 =head2 StageVariables => L<Paws::ApiGatewayV2::StageVariablesMap>
155  
156 A map that defines the stage variables for a Stage. Variable names can
157 have alphanumeric and underscore characters, and the values must match
158 [A-Za-z0-9-._~:/?#&=,]+.
159  
160  
161  
162  
163 =head1 SEE ALSO
164  
165 This class forms part of L<Paws>, documenting arguments for method UpdateStage in L<Paws::ApiGatewayV2>
166  
167 =head1 BUGS and CONTRIBUTIONS
168  
169 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
170  
171 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
172  
173 =cut
174