File Coverage

blib/lib/Paws/ApiGateway/PutMethodResponse.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::ApiGateway::PutMethodResponse;
3 1     1   896 use Moose;
  1         5  
  1         13  
4             has HttpMethod => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'httpMethod' , required => 1);
5             has ResourceId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'resourceId' , required => 1);
6             has ResponseModels => (is => 'ro', isa => 'Paws::ApiGateway::MapOfStringToString');
7             has ResponseParameters => (is => 'ro', isa => 'Paws::ApiGateway::MapOfStringToBoolean');
8             has RestApiId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'restApiId' , required => 1);
9             has StatusCode => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'statusCode' , required => 1);
10              
11 1     1   11931 use MooseX::ClassAttribute;
  1         5  
  1         12  
12              
13             class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutMethodResponse');
14             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}');
15             class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
16             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ApiGateway::MethodResponse');
17             class_has _result_key => (isa => 'Str', is => 'ro');
18             1;
19              
20             ### main pod documentation begin ###
21              
22             =head1 NAME
23              
24             Paws::ApiGateway::PutMethodResponse - Arguments for method PutMethodResponse on Paws::ApiGateway
25              
26             =head1 DESCRIPTION
27              
28             This class represents the parameters used for calling the method PutMethodResponse on the
29             Amazon API Gateway service. Use the attributes of this class
30             as arguments to method PutMethodResponse.
31              
32             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutMethodResponse.
33              
34             As an example:
35              
36             $service_obj->PutMethodResponse(Att1 => $value1, Att2 => $value2, ...);
37              
38             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.
39              
40             =head1 ATTRIBUTES
41              
42              
43             =head2 B<REQUIRED> HttpMethod => Str
44              
45             The HTTP verb of the Method resource.
46              
47              
48              
49             =head2 B<REQUIRED> ResourceId => Str
50              
51             The Resource identifier for the Method resource.
52              
53              
54              
55             =head2 ResponseModels => L<Paws::ApiGateway::MapOfStringToString>
56              
57             Specifies the Model resources used for the response's content type.
58             Response models are represented as a key/value map, with a content type
59             as the key and a Model name as the value.
60              
61              
62              
63             =head2 ResponseParameters => L<Paws::ApiGateway::MapOfStringToBoolean>
64              
65             A key-value map specifying required or optional response parameters
66             that Amazon API Gateway can send back to the caller. A key defines a
67             method response header name and the associated value is a Boolean flag
68             indicating whether the method response parameter is required or not.
69             The method response header names must match the pattern of
70             C<method.response.header.{name}>, where C<name> is a valid and unique
71             header name. The response parameter names defined here are available in
72             the integration response to be mapped from an integration response
73             header expressed in C<integration.response.header.{name}>, a static
74             value enclosed within a pair of single quotes (e.g.,
75             C<'application/json'>), or a JSON expression from the back-end response
76             payload in the form of C<integration.response.body.{JSON-expression}>,
77             where C<JSON-expression> is a valid JSON expression without the C<$>
78             prefix.)
79              
80              
81              
82             =head2 B<REQUIRED> RestApiId => Str
83              
84             The RestApi identifier for the Method resource.
85              
86              
87              
88             =head2 B<REQUIRED> StatusCode => Str
89              
90             The method response's status code.
91              
92              
93              
94              
95             =head1 SEE ALSO
96              
97             This class forms part of L<Paws>, documenting arguments for method PutMethodResponse in L<Paws::ApiGateway>
98              
99             =head1 BUGS and CONTRIBUTIONS
100              
101             The source code is located here: https://github.com/pplu/aws-sdk-perl
102              
103             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
104              
105             =cut
106