File Coverage

blib/lib/Paws/ApiGateway/CreateRestApi.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::CreateRestApi;
3 1     1   430 use Moose;
  1         2  
  1         7  
4             has BinaryMediaTypes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'binaryMediaTypes');
5             has CloneFrom => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'cloneFrom');
6             has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
7             has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name', required => 1);
8             has Version => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'version');
9              
10 1     1   5956 use MooseX::ClassAttribute;
  1         4  
  1         10  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateRestApi');
13             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/restapis');
14             class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ApiGateway::RestApi');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::ApiGateway::CreateRestApi - Arguments for method CreateRestApi on Paws::ApiGateway
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method CreateRestApi on the
28             Amazon API Gateway service. Use the attributes of this class
29             as arguments to method CreateRestApi.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRestApi.
32              
33             As an example:
34              
35             $service_obj->CreateRestApi(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 BinaryMediaTypes => ArrayRef[Str|Undef]
43              
44             The list of binary media types supported by the RestApi. By default,
45             the RestApi supports only UTF-8-encoded text payloads.
46              
47              
48              
49             =head2 CloneFrom => Str
50              
51             The ID of the RestApi that you want to clone from.
52              
53              
54              
55             =head2 Description => Str
56              
57             The description of the RestApi.
58              
59              
60              
61             =head2 B<REQUIRED> Name => Str
62              
63             The name of the RestApi.
64              
65              
66              
67             =head2 Version => Str
68              
69             A version identifier for the API.
70              
71              
72              
73              
74             =head1 SEE ALSO
75              
76             This class forms part of L<Paws>, documenting arguments for method CreateRestApi in L<Paws::ApiGateway>
77              
78             =head1 BUGS and CONTRIBUTIONS
79              
80             The source code is located here: https://github.com/pplu/aws-sdk-perl
81              
82             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
83              
84             =cut
85