« blib/lib/Paws/ApiGatewayV2/UpdateIntegrationResponseShape.pm
↑ Summary
blib/lib/Paws/ApiGatewayV2/UpdateModelInput.pm »
| 1 | |||
| 2 | package Paws::ApiGatewayV2::UpdateModel; | ||
| 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 ModelId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'modelId', required => 1); | ||
| 8 | has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name'); | ||
| 9 | has Schema => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'schema'); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateModel'); | ||
| 14 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v2/apis/{apiId}/models/{modelId}'); | ||
| 15 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PATCH'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ApiGatewayV2::UpdateModelResponse'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::ApiGatewayV2::UpdateModel - Arguments for method UpdateModel on L<Paws::ApiGatewayV2> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method UpdateModel on the | ||
| 28 | L<AmazonApiGatewayV2|Paws::ApiGatewayV2> service. Use the attributes of this class | ||
| 29 | as arguments to method UpdateModel. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateModel. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $apigateway = Paws->service('ApiGatewayV2'); | ||
| 36 | my $UpdateModelResponse = $apigateway->UpdateModel( | ||
| 37 | ApiId => 'My__string', | ||
| 38 | ModelId => 'My__string', | ||
| 39 | ContentType => 'MyStringWithLengthBetween1And256', # OPTIONAL | ||
| 40 | Description => 'MyStringWithLengthBetween0And1024', # OPTIONAL | ||
| 41 | Name => 'MyStringWithLengthBetween1And128', # OPTIONAL | ||
| 42 | Schema => 'MyStringWithLengthBetween0And32K', # OPTIONAL | ||
| 43 | ); | ||
| 44 | |||
| 45 | # Results: | ||
| 46 | my $ContentType = $UpdateModelResponse->ContentType; | ||
| 47 | my $Description = $UpdateModelResponse->Description; | ||
| 48 | my $ModelId = $UpdateModelResponse->ModelId; | ||
| 49 | my $Name = $UpdateModelResponse->Name; | ||
| 50 | my $Schema = $UpdateModelResponse->Schema; | ||
| 51 | |||
| 52 | # Returns a L<Paws::ApiGatewayV2::UpdateModelResponse> object. | ||
| 53 | |||
| 54 | 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. | ||
| 55 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/apigateway/UpdateModel> | ||
| 56 | |||
| 57 | =head1 ATTRIBUTES | ||
| 58 | |||
| 59 | |||
| 60 | =head2 B<REQUIRED> ApiId => Str | ||
| 61 | |||
| 62 | The API identifier. | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | =head2 ContentType => Str | ||
| 67 | |||
| 68 | The content-type for the model, for example, "application/json". | ||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | =head2 Description => Str | ||
| 73 | |||
| 74 | The description of the model. | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | =head2 B<REQUIRED> ModelId => Str | ||
| 79 | |||
| 80 | The model ID. | ||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | =head2 Name => Str | ||
| 85 | |||
| 86 | The name of the model. | ||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | =head2 Schema => Str | ||
| 91 | |||
| 92 | The schema for the model. For application/json models, this should be | ||
| 93 | JSON schema draft 4 model. | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | |||
| 98 | =head1 SEE ALSO | ||
| 99 | |||
| 100 | This class forms part of L<Paws>, documenting arguments for method UpdateModel in L<Paws::ApiGatewayV2> | ||
| 101 | |||
| 102 | =head1 BUGS and CONTRIBUTIONS | ||
| 103 | |||
| 104 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 105 | |||
| 106 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 107 | |||
| 108 | =cut | ||
| 109 |