class
Amazonite::ApiGateway::Model
- Amazonite::ApiGateway::Model
- Reference
- Object
Overview
Represents the data structure of a method's request or response payload.
Included Modules
- JSON::Serializable
Defined in:
api_gateway/model.crConstructors
- .new(pull : JSON::PullParser)
- .new(id : String | Nil = nil, name : String | Nil = nil, description : String | Nil = nil, schema : String | Nil = nil, content_type : String | Nil = nil)
- .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 | Nil
The content-type for the model.
-
#content_type=(content_type : String | Nil)
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) -
#id : String | Nil
The identifier for the model resource.
-
#id=(id : String | Nil)
The identifier for the model resource.
-
#name : String | Nil
The name of the model.
-
#name=(name : String | Nil)
The name of the model.
-
#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 schema for the model. For application/json models, this should be JSON schema draft 4
model. Do not include "*/" characters in the description of any properties because such "*/"
characters may be interpreted as the closing marker for comments in some languages, such as Java
or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.
The schema for the model. For application/json models, this should be JSON schema draft 4
model. Do not include "*/" characters in the description of any properties because such "*/"
characters may be interpreted as the closing marker for comments in some languages, such as Java
or JavaScript, causing the installation of your API's SDK generated by API Gateway to fail.