Class: Aws::APIGateway::Types::CreateModelRequest

Inherits:
Struct
  • Object
show all
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.

Instance Attribute Summary collapse

Instance Attribute Details

#content_typeString

[Required] The content-type for the model.

Returns:

  • (String)


1138
1139
1140
1141
1142
1143
1144
1145
# File 'lib/aws-sdk-apigateway/types.rb', line 1138

class CreateModelRequest < Struct.new(
  :rest_api_id,
  :name,
  :description,
  :schema,
  :content_type)
  include Aws::Structure
end

#descriptionString

The description of the model.

Returns:

  • (String)


1138
1139
1140
1141
1142
1143
1144
1145
# File 'lib/aws-sdk-apigateway/types.rb', line 1138

class CreateModelRequest < Struct.new(
  :rest_api_id,
  :name,
  :description,
  :schema,
  :content_type)
  include Aws::Structure
end

#nameString

[Required] The name of the model. Must be alphanumeric.

Returns:

  • (String)


1138
1139
1140
1141
1142
1143
1144
1145
# File 'lib/aws-sdk-apigateway/types.rb', line 1138

class CreateModelRequest < Struct.new(
  :rest_api_id,
  :name,
  :description,
  :schema,
  :content_type)
  include Aws::Structure
end

#rest_api_idString

[Required] The RestApi identifier under which the Model will be created.

Returns:

  • (String)


1138
1139
1140
1141
1142
1143
1144
1145
# File 'lib/aws-sdk-apigateway/types.rb', line 1138

class CreateModelRequest < Struct.new(
  :rest_api_id,
  :name,
  :description,
  :schema,
  :content_type)
  include Aws::Structure
end

#schemaString

The schema for the model. For ‘application/json` models, this should be [JSON schema draft 4] model.

[1]: tools.ietf.org/html/draft-zyp-json-schema-04

Returns:

  • (String)


1138
1139
1140
1141
1142
1143
1144
1145
# File 'lib/aws-sdk-apigateway/types.rb', line 1138

class CreateModelRequest < Struct.new(
  :rest_api_id,
  :name,
  :description,
  :schema,
  :content_type)
  include Aws::Structure
end