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

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ApiGatewayV2::CreateRouteResponse;
3 use Moose;
4 has ApiId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'apiId', required => 1);
5 has ModelSelectionExpression => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'modelSelectionExpression');
6 has ResponseModels => (is => 'ro', isa => 'Paws::ApiGatewayV2::RouteModels', traits => ['NameInRequest'], request_name => 'responseModels');
7 has ResponseParameters => (is => 'ro', isa => 'Paws::ApiGatewayV2::RouteParameters', traits => ['NameInRequest'], request_name => 'responseParameters');
8 has RouteId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'routeId', required => 1);
9 has RouteResponseKey => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'routeResponseKey', required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateRouteResponse');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v2/apis/{apiId}/routes/{routeId}/routeresponses');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ApiGatewayV2::CreateRouteResponseResponse');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::ApiGatewayV2::CreateRouteResponse - Arguments for method CreateRouteResponse on L<Paws::ApiGatewayV2>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateRouteResponse on the
28 L<AmazonApiGatewayV2|Paws::ApiGatewayV2> service. Use the attributes of this class
29 as arguments to method CreateRouteResponse.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRouteResponse.
32  
33 =head1 SYNOPSIS
34  
35 my $apigateway = Paws->service('ApiGatewayV2');
36 my $CreateRouteResponseResponse = $apigateway->CreateRouteResponse(
37 ApiId => 'My__string',
38 RouteId => 'My__string',
39 RouteResponseKey => 'MySelectionKey',
40 ModelSelectionExpression => 'MySelectionExpression', # OPTIONAL
41 ResponseModels => { 'My__string' => 'MyStringWithLengthBetween1And128', }
42 , # OPTIONAL
43 ResponseParameters => {
44 'My__string' => {
45 Required => 1, # OPTIONAL
46 },
47 }, # OPTIONAL
48 );
49  
50 # Results:
51 my $ModelSelectionExpression =
52 $CreateRouteResponseResponse->ModelSelectionExpression;
53 my $ResponseModels = $CreateRouteResponseResponse->ResponseModels;
54 my $ResponseParameters = $CreateRouteResponseResponse->ResponseParameters;
55 my $RouteResponseId = $CreateRouteResponseResponse->RouteResponseId;
56 my $RouteResponseKey = $CreateRouteResponseResponse->RouteResponseKey;
57  
58 # Returns a L<Paws::ApiGatewayV2::CreateRouteResponseResponse> object.
59  
60 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.
61 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/apigateway/CreateRouteResponse>
62  
63 =head1 ATTRIBUTES
64  
65  
66 =head2 B<REQUIRED> ApiId => Str
67  
68 The API identifier.
69  
70  
71  
72 =head2 ModelSelectionExpression => Str
73  
74 The model selection expression for the route response. Supported only
75 for WebSocket APIs.
76  
77  
78  
79 =head2 ResponseModels => L<Paws::ApiGatewayV2::RouteModels>
80  
81 The response models for the route response.
82  
83  
84  
85 =head2 ResponseParameters => L<Paws::ApiGatewayV2::RouteParameters>
86  
87 The route response parameters.
88  
89  
90  
91 =head2 B<REQUIRED> RouteId => Str
92  
93 The route ID.
94  
95  
96  
97 =head2 B<REQUIRED> RouteResponseKey => Str
98  
99 The route response key.
100  
101  
102  
103  
104 =head1 SEE ALSO
105  
106 This class forms part of L<Paws>, documenting arguments for method CreateRouteResponse in L<Paws::ApiGatewayV2>
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