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

filter: Statementstmt 0.0% 0 / 36 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 38 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ApiGatewayV2::UpdateRoute;
3 use Moose;
4 has ApiId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'apiId', required => 1);
5 has ApiKeyRequired => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'apiKeyRequired');
6 has AuthorizationScopes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'authorizationScopes');
7 has AuthorizationType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'authorizationType');
8 has AuthorizerId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'authorizerId');
9 has ModelSelectionExpression => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'modelSelectionExpression');
10 has OperationName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'operationName');
11 has RequestModels => (is => 'ro', isa => 'Paws::ApiGatewayV2::RouteModels', traits => ['NameInRequest'], request_name => 'requestModels');
12 has RequestParameters => (is => 'ro', isa => 'Paws::ApiGatewayV2::RouteParameters', traits => ['NameInRequest'], request_name => 'requestParameters');
13 has RouteId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'routeId', required => 1);
14 has RouteKey => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'routeKey');
15 has RouteResponseSelectionExpression => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'routeResponseSelectionExpression');
16 has Target => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'target');
17  
18 use MooseX::ClassAttribute;
19  
20 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateRoute');
21 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v2/apis/{apiId}/routes/{routeId}');
22 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PATCH');
23 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ApiGatewayV2::UpdateRouteResult');
24 1;
25  
26 ### main pod documentation begin ###
27  
28 =head1 NAME
29  
30 Paws::ApiGatewayV2::UpdateRoute - Arguments for method UpdateRoute on L<Paws::ApiGatewayV2>
31  
32 =head1 DESCRIPTION
33  
34 This class represents the parameters used for calling the method UpdateRoute on the
35 L<AmazonApiGatewayV2|Paws::ApiGatewayV2> service. Use the attributes of this class
36 as arguments to method UpdateRoute.
37  
38 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateRoute.
39  
40 =head1 SYNOPSIS
41  
42 my $apigateway = Paws->service('ApiGatewayV2');
43 my $UpdateRouteResult = $apigateway->UpdateRoute(
44 ApiId => 'My__string',
45 RouteId => 'My__string',
46 ApiKeyRequired => 1, # OPTIONAL
47 AuthorizationScopes => [ 'MyStringWithLengthBetween1And64', ... ]
48 , # OPTIONAL
49 AuthorizationType => 'NONE', # OPTIONAL
50 AuthorizerId => 'MyId', # OPTIONAL
51 ModelSelectionExpression => 'MySelectionExpression', # OPTIONAL
52 OperationName => 'MyStringWithLengthBetween1And64', # OPTIONAL
53 RequestModels => { 'My__string' => 'MyStringWithLengthBetween1And128', }
54 , # OPTIONAL
55 RequestParameters => { 'My__string' => { Required => 1, }, }, # OPTIONAL
56 RouteKey => 'MySelectionKey', # OPTIONAL
57 RouteResponseSelectionExpression => 'MySelectionExpression', # OPTIONAL
58 Target => 'MyStringWithLengthBetween1And128', # OPTIONAL
59 );
60  
61 # Results:
62 my $ApiGatewayManaged = $UpdateRouteResult->ApiGatewayManaged;
63 my $ApiKeyRequired = $UpdateRouteResult->ApiKeyRequired;
64 my $AuthorizationScopes = $UpdateRouteResult->AuthorizationScopes;
65 my $AuthorizationType = $UpdateRouteResult->AuthorizationType;
66 my $AuthorizerId = $UpdateRouteResult->AuthorizerId;
67 my $ModelSelectionExpression = $UpdateRouteResult->ModelSelectionExpression;
68 my $OperationName = $UpdateRouteResult->OperationName;
69 my $RequestModels = $UpdateRouteResult->RequestModels;
70 my $RequestParameters = $UpdateRouteResult->RequestParameters;
71 my $RouteId = $UpdateRouteResult->RouteId;
72 my $RouteKey = $UpdateRouteResult->RouteKey;
73 my $RouteResponseSelectionExpression =
74 $UpdateRouteResult->RouteResponseSelectionExpression;
75 my $Target = $UpdateRouteResult->Target;
76  
77 # Returns a L<Paws::ApiGatewayV2::UpdateRouteResult> object.
78  
79 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.
80 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/apigateway/UpdateRoute>
81  
82 =head1 ATTRIBUTES
83  
84  
85 =head2 B<REQUIRED> ApiId => Str
86  
87 The API identifier.
88  
89  
90  
91 =head2 ApiKeyRequired => Bool
92  
93 Specifies whether an API key is required for the route. Supported only
94 for WebSocket APIs.
95  
96  
97  
98 =head2 AuthorizationScopes => ArrayRef[Str|Undef]
99  
100 The authorization scopes supported by this route.
101  
102  
103  
104 =head2 AuthorizationType => Str
105  
106 The authorization type for the route. For WebSocket APIs, valid values
107 are NONE for open access, AWS_IAM for using AWS IAM permissions, and
108 CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are
109 NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using
110 AWS IAM permissions, and CUSTOM for using a Lambda authorizer.
111  
112 Valid values are: C<"NONE">, C<"AWS_IAM">, C<"CUSTOM">, C<"JWT">
113  
114 =head2 AuthorizerId => Str
115  
116 The identifier of the Authorizer resource to be associated with this
117 route. The authorizer identifier is generated by API Gateway when you
118 created the authorizer.
119  
120  
121  
122 =head2 ModelSelectionExpression => Str
123  
124 The model selection expression for the route. Supported only for
125 WebSocket APIs.
126  
127  
128  
129 =head2 OperationName => Str
130  
131 The operation name for the route.
132  
133  
134  
135 =head2 RequestModels => L<Paws::ApiGatewayV2::RouteModels>
136  
137 The request models for the route. Supported only for WebSocket APIs.
138  
139  
140  
141 =head2 RequestParameters => L<Paws::ApiGatewayV2::RouteParameters>
142  
143 The request parameters for the route. Supported only for WebSocket
144 APIs.
145  
146  
147  
148 =head2 B<REQUIRED> RouteId => Str
149  
150 The route ID.
151  
152  
153  
154 =head2 RouteKey => Str
155  
156 The route key for the route.
157  
158  
159  
160 =head2 RouteResponseSelectionExpression => Str
161  
162 The route response selection expression for the route. Supported only
163 for WebSocket APIs.
164  
165  
166  
167 =head2 Target => Str
168  
169 The target for the route.
170  
171  
172  
173  
174 =head1 SEE ALSO
175  
176 This class forms part of L<Paws>, documenting arguments for method UpdateRoute in L<Paws::ApiGatewayV2>
177  
178 =head1 BUGS and CONTRIBUTIONS
179  
180 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
181  
182 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
183  
184 =cut
185