class Amazonite::ApiGateway::CreateModelRequest

Overview

Request to add a new Model to an existing RestApi resource.

Included Modules

Defined in:

api_gateway/create_model_request.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rest_api_id : String, name : String, content_type : String, description : String | Nil = nil, schema : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def content_type : String #

The content-type for the model.


[View source]
def content_type=(content_type : String) #

The content-type for the model.


[View source]
def description : String | Nil #

The description of the model.


[View source]
def description=(description : String | Nil) #

The description of the model.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def name : String #

The name of the model. Must be alphanumeric.


[View source]
def name=(name : String) #

The name of the model. Must be alphanumeric.


[View source]
def rest_api_id : String #

The RestApi identifier under which the Model will be created.


[View source]
def rest_api_id=(rest_api_id : String) #

The RestApi identifier under which the Model will be created.


[View source]
def schema : String | Nil #

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.


[View source]
def schema=(schema : String | Nil) #

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.


[View source]
def validate! : Nil #

[View source]