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

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Schemas::UpdateSchema;
3 use Moose;
4 has ClientTokenId => (is => 'ro', isa => 'Str');
5 has Content => (is => 'ro', isa => 'Str');
6 has Description => (is => 'ro', isa => 'Str');
7 has RegistryName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'registryName', required => 1);
8 has SchemaName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'schemaName', required => 1);
9 has Type => (is => 'ro', isa => 'Str');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateSchema');
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 => 'PUT');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Schemas::UpdateSchemaResponse');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::Schemas::UpdateSchema - Arguments for method UpdateSchema on L<Paws::Schemas>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method UpdateSchema on the
28 L<Schemas|Paws::Schemas> service. Use the attributes of this class
29 as arguments to method UpdateSchema.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateSchema.
32  
33 =head1 SYNOPSIS
34  
35 my $schemas = Paws->service('Schemas');
36 my $UpdateSchemaResponse = $schemas->UpdateSchema(
37 RegistryName => 'My__string',
38 SchemaName => 'My__string',
39 ClientTokenId => 'My__stringMin0Max36', # OPTIONAL
40 Content => 'My__stringMin1Max100000', # OPTIONAL
41 Description => 'My__stringMin0Max256', # OPTIONAL
42 Type => 'OpenApi3', # OPTIONAL
43 );
44  
45 # Results:
46 my $Description = $UpdateSchemaResponse->Description;
47 my $LastModified = $UpdateSchemaResponse->LastModified;
48 my $SchemaArn = $UpdateSchemaResponse->SchemaArn;
49 my $SchemaName = $UpdateSchemaResponse->SchemaName;
50 my $SchemaVersion = $UpdateSchemaResponse->SchemaVersion;
51 my $Tags = $UpdateSchemaResponse->Tags;
52 my $Type = $UpdateSchemaResponse->Type;
53 my $VersionCreatedDate = $UpdateSchemaResponse->VersionCreatedDate;
54  
55 # Returns a L<Paws::Schemas::UpdateSchemaResponse> 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/UpdateSchema>
59  
60 =head1 ATTRIBUTES
61  
62  
63 =head2 ClientTokenId => Str
64  
65 The ID of the client token.
66  
67  
68  
69 =head2 Content => Str
70  
71 The source of the schema definition.
72  
73  
74  
75 =head2 Description => Str
76  
77 The description of the schema.
78  
79  
80  
81 =head2 B<REQUIRED> RegistryName => Str
82  
83 The name of the registry.
84  
85  
86  
87 =head2 B<REQUIRED> SchemaName => Str
88  
89 The name of the schema.
90  
91  
92  
93 =head2 Type => Str
94  
95 The schema type for the events 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 UpdateSchema 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