Class: Aws::APIGateway::Types::CreateModelRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::APIGateway::Types::CreateModelRequest
- Defined in:
- gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb
Overview
Request to add a new Model to an existing RestApi resource.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#content_type ⇒ String
The content-type for the model.
-
#description ⇒ String
The description of the model.
-
#name ⇒ String
The name of the model.
-
#rest_api_id ⇒ String
The RestApi identifier under which the Model will be created.
-
#schema ⇒ String
The schema for the model.
Instance Attribute Details
#content_type ⇒ String
The content-type for the model.
901 902 903 904 905 906 907 908 909 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 901 class CreateModelRequest < Struct.new( :rest_api_id, :name, :description, :schema, :content_type) SENSITIVE = [] include Aws::Structure end |
#description ⇒ String
The description of the model.
901 902 903 904 905 906 907 908 909 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 901 class CreateModelRequest < Struct.new( :rest_api_id, :name, :description, :schema, :content_type) SENSITIVE = [] include Aws::Structure end |
#name ⇒ String
The name of the model. Must be alphanumeric.
901 902 903 904 905 906 907 908 909 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 901 class CreateModelRequest < Struct.new( :rest_api_id, :name, :description, :schema, :content_type) SENSITIVE = [] include Aws::Structure end |
#rest_api_id ⇒ String
The RestApi identifier under which the Model will be created.
901 902 903 904 905 906 907 908 909 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 901 class CreateModelRequest < Struct.new( :rest_api_id, :name, :description, :schema, :content_type) SENSITIVE = [] include Aws::Structure end |
#schema ⇒ String
The schema for the model. For application/json
models, this should
be JSON schema draft 4 model. The maximum size of the model is 400
KB.
901 902 903 904 905 906 907 908 909 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 901 class CreateModelRequest < Struct.new( :rest_api_id, :name, :description, :schema, :content_type) SENSITIVE = [] include Aws::Structure end |