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

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

Instance Attribute Details

#content_typeString

The content-type for the model.

Returns:

  • (String)


900
901
902
903
904
905
906
907
908
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 900

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

#descriptionString

The description of the model.

Returns:

  • (String)


900
901
902
903
904
905
906
907
908
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 900

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

#nameString

The name of the model. Must be alphanumeric.

Returns:

  • (String)


900
901
902
903
904
905
906
907
908
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 900

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

#rest_api_idString

The RestApi identifier under which the Model will be created.

Returns:

  • (String)


900
901
902
903
904
905
906
907
908
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 900

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

#schemaString

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

Returns:

  • (String)


900
901
902
903
904
905
906
907
908
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 900

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