blib/lib/Paws/ApiGatewayV2/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::ApiGatewayV2::CreateModel;
3 use Moose;
4 has ApiId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'apiId', required => 1);
5 has ContentType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'contentType');
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 Schema => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'schema', required => 1);
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 => '/v2/apis/{apiId}/models');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ApiGatewayV2::CreateModelResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::ApiGatewayV2::CreateModel - Arguments for method CreateModel on L<Paws::ApiGatewayV2>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateModel on the
27 L<AmazonApiGatewayV2|Paws::ApiGatewayV2> 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('ApiGatewayV2');
35 my $CreateModelResponse = $apigateway->CreateModel(
36 ApiId => 'My__string',
37 Name => 'MyStringWithLengthBetween1And128',
38 Schema => 'MyStringWithLengthBetween0And32K',
39 ContentType => 'MyStringWithLengthBetween1And256', # OPTIONAL
40 Description => 'MyStringWithLengthBetween0And1024', # OPTIONAL
41 );
42  
43 # Results:
44 my $ContentType = $CreateModelResponse->ContentType;
45 my $Description = $CreateModelResponse->Description;
46 my $ModelId = $CreateModelResponse->ModelId;
47 my $Name = $CreateModelResponse->Name;
48 my $Schema = $CreateModelResponse->Schema;
49  
50 # Returns a L<Paws::ApiGatewayV2::CreateModelResponse> 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> ApiId => Str
59  
60 The API identifier.
61  
62  
63  
64 =head2 ContentType => Str
65  
66 The content-type for the model, for example, "application/json".
67  
68  
69  
70 =head2 Description => Str
71  
72 The description of the model.
73  
74  
75  
76 =head2 B<REQUIRED> Name => Str
77  
78 The name of the model. Must be alphanumeric.
79  
80  
81  
82 =head2 B<REQUIRED> Schema => Str
83  
84 The schema for the model. For application/json models, this should be
85 JSON schema draft 4 model.
86  
87  
88  
89  
90 =head1 SEE ALSO
91  
92 This class forms part of L<Paws>, documenting arguments for method CreateModel in L<Paws::ApiGatewayV2>
93  
94 =head1 BUGS and CONTRIBUTIONS
95  
96 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
97  
98 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
99  
100 =cut
101