blib/lib/Paws/ApiGateway/CreateModel.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ApiGateway::CreateModel;
3 use Moose;
4 has ContentType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'contentType', required => 1);
5 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
6 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name', required => 1);
7 has RestApiId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'restapi_id', required => 1);
8 has Schema => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'schema');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateModel');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/restapis/{restapi_id}/models');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ApiGateway::Model');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::ApiGateway::CreateModel - Arguments for method CreateModel on L<Paws::ApiGateway>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateModel on the
27 L<Amazon API Gateway|Paws::ApiGateway> service. Use the attributes of this class
28 as arguments to method CreateModel.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateModel.
31  
32 =head1 SYNOPSIS
33  
34 my $apigateway = Paws->service('ApiGateway');
35 my $Model = $apigateway->CreateModel(
36 ContentType => 'MyString',
37 Name => 'MyString',
38 RestApiId => 'MyString',
39 Description => 'MyString', # OPTIONAL
40 Schema => 'MyString', # OPTIONAL
41 );
42  
43 # Results:
44 my $ContentType = $Model->ContentType;
45 my $Description = $Model->Description;
46 my $Id = $Model->Id;
47 my $Name = $Model->Name;
48 my $Schema = $Model->Schema;
49  
50 # Returns a L<Paws::ApiGateway::Model> object.
51  
52 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.
53 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/apigateway/CreateModel>
54  
55 =head1 ATTRIBUTES
56  
57  
58 =head2 B<REQUIRED> ContentType => Str
59  
60 [Required] The content-type for the model.
61  
62  
63  
64 =head2 Description => Str
65  
66 The description of the model.
67  
68  
69  
70 =head2 B<REQUIRED> Name => Str
71  
72 [Required] The name of the model. Must be alphanumeric.
73  
74  
75  
76 =head2 B<REQUIRED> RestApiId => Str
77  
78 [Required] The RestApi identifier under which the Model will be
79 created.
80  
81  
82  
83 =head2 Schema => Str
84  
85 The schema for the model. For C<application/json> models, this should
86 be JSON schema draft 4
87 (https://tools.ietf.org/html/draft-zyp-json-schema-04) model.
88  
89  
90  
91  
92 =head1 SEE ALSO
93  
94 This class forms part of L<Paws>, documenting arguments for method CreateModel in L<Paws::ApiGateway>
95  
96 =head1 BUGS and CONTRIBUTIONS
97  
98 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
99  
100 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
101  
102 =cut
103