blib/lib/Paws/Schemas/CreateSchema.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Schemas::CreateSchema;
3 use Moose;
4 has Content => (is => 'ro', isa => 'Str', required => 1);
5 has Description => (is => 'ro', isa => 'Str');
6 has RegistryName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'registryName', required => 1);
7 has SchemaName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'schemaName', required => 1);
8 has Tags => (is => 'ro', isa => 'Paws::Schemas::Tags', traits => ['NameInRequest'], request_name => 'tags');
9 has Type => (is => 'ro', isa => 'Str', required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateSchema');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/registries/name/{registryName}/schemas/name/{schemaName}');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Schemas::CreateSchemaResponse');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::Schemas::CreateSchema - Arguments for method CreateSchema on L<Paws::Schemas>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateSchema on the
28 L<Schemas|Paws::Schemas> service. Use the attributes of this class
29 as arguments to method CreateSchema.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateSchema.
32  
33 =head1 SYNOPSIS
34  
35 my $schemas = Paws->service('Schemas');
36 my $CreateSchemaResponse = $schemas->CreateSchema(
37 Content => 'My__stringMin1Max100000',
38 RegistryName => 'My__string',
39 SchemaName => 'My__string',
40 Type => 'OpenApi3',
41 Description => 'My__stringMin0Max256', # OPTIONAL
42 Tags => { 'My__string' => 'My__string', }, # OPTIONAL
43 );
44  
45 # Results:
46 my $Description = $CreateSchemaResponse->Description;
47 my $LastModified = $CreateSchemaResponse->LastModified;
48 my $SchemaArn = $CreateSchemaResponse->SchemaArn;
49 my $SchemaName = $CreateSchemaResponse->SchemaName;
50 my $SchemaVersion = $CreateSchemaResponse->SchemaVersion;
51 my $Tags = $CreateSchemaResponse->Tags;
52 my $Type = $CreateSchemaResponse->Type;
53 my $VersionCreatedDate = $CreateSchemaResponse->VersionCreatedDate;
54  
55 # Returns a L<Paws::Schemas::CreateSchemaResponse> object.
56  
57 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.
58 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/schemas/CreateSchema>
59  
60 =head1 ATTRIBUTES
61  
62  
63 =head2 B<REQUIRED> Content => Str
64  
65 The source of the schema definition.
66  
67  
68  
69 =head2 Description => Str
70  
71 A description of the schema.
72  
73  
74  
75 =head2 B<REQUIRED> RegistryName => Str
76  
77 The name of the registry.
78  
79  
80  
81 =head2 B<REQUIRED> SchemaName => Str
82  
83 The name of the schema.
84  
85  
86  
87 =head2 Tags => L<Paws::Schemas::Tags>
88  
89 Tags associated with the schema.
90  
91  
92  
93 =head2 B<REQUIRED> Type => Str
94  
95 The type of schema.
96  
97 Valid values are: C<"OpenApi3">, C<"JSONSchemaDraft4">
98  
99  
100 =head1 SEE ALSO
101  
102 This class forms part of L<Paws>, documenting arguments for method CreateSchema in L<Paws::Schemas>
103  
104 =head1 BUGS and CONTRIBUTIONS
105  
106 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
107  
108 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
109  
110 =cut
111