Class: Aws::APIGateway::Types::CreateModelRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::APIGateway::Types::CreateModelRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-apigateway/types.rb
Overview
Note:
When making an API call, you may pass CreateModelRequest data as a hash:
{
rest_api_id: "String", # required
name: "String", # required
description: "String",
schema: "String",
content_type: "String", # required
}
Request to add a new Model to an existing RestApi resource.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#content_type ⇒ String
[Required] The content-type for the model.
-
#description ⇒ String
The description of the model.
-
#name ⇒ String
[Required] The name of the model.
-
#rest_api_id ⇒ String
[Required] The RestApi identifier under which the Model will be created.
-
#schema ⇒ String
The schema for the model.
Instance Attribute Details
#content_type ⇒ String
[Required] The content-type for the model.
1186 1187 1188 1189 1190 1191 1192 1193 1194 |
# File 'lib/aws-sdk-apigateway/types.rb', line 1186 class CreateModelRequest < Struct.new( :rest_api_id, :name, :description, :schema, :content_type) SENSITIVE = [] include Aws::Structure end |
#description ⇒ String
The description of the model.
1186 1187 1188 1189 1190 1191 1192 1193 1194 |
# File 'lib/aws-sdk-apigateway/types.rb', line 1186 class CreateModelRequest < Struct.new( :rest_api_id, :name, :description, :schema, :content_type) SENSITIVE = [] include Aws::Structure end |
#name ⇒ String
[Required] The name of the model. Must be alphanumeric.
1186 1187 1188 1189 1190 1191 1192 1193 1194 |
# File 'lib/aws-sdk-apigateway/types.rb', line 1186 class CreateModelRequest < Struct.new( :rest_api_id, :name, :description, :schema, :content_type) SENSITIVE = [] include Aws::Structure end |
#rest_api_id ⇒ String
[Required] The RestApi identifier under which the Model will be created.
1186 1187 1188 1189 1190 1191 1192 1193 1194 |
# File 'lib/aws-sdk-apigateway/types.rb', line 1186 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.
1186 1187 1188 1189 1190 1191 1192 1193 1194 |
# File 'lib/aws-sdk-apigateway/types.rb', line 1186 class CreateModelRequest < Struct.new( :rest_api_id, :name, :description, :schema, :content_type) SENSITIVE = [] include Aws::Structure end |