class
Amazonite::ApiGateway::CreateModelRequest
- Amazonite::ApiGateway::CreateModelRequest
- Reference
- Object
Overview
Request to add a new Model to an existing RestApi resource.
Included Modules
- JSON::Serializable
Defined in:
api_gateway/create_model_request.crConstructors
- .new(rest_api_id : String, name : String, content_type : String, description : String | Nil = nil, schema : String | Nil = nil)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#content_type : String
The content-type for the model.
-
#content_type=(content_type : String)
The content-type for the model.
-
#description : String | Nil
The description of the model.
-
#description=(description : String | Nil)
The description of the model.
-
#hash(hasher)
See
Object#hash(hasher) -
#name : String
The name of the model.
-
#name=(name : String)
The name of the model.
-
#rest_api_id : String
The RestApi identifier under which the Model will be created.
-
#rest_api_id=(rest_api_id : String)
The RestApi identifier under which the Model will be created.
-
#schema : String | Nil
The schema for the model.
-
#schema=(schema : String | Nil)
The schema for the model.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The RestApi identifier under which the Model will be created.
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.
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.