class Amazonite::ApiGateway::GetResourceRequest

Overview

Request to list information about a resource.

Included Modules

Defined in:

api_gateway/get_resource_request.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rest_api_id : String, resource_id : String, embed : Array(String) | Nil = nil) #

[View source]
def self.new(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 embed : Array(String) | Nil #

A query parameter to retrieve the specified resources embedded in the returned Resource representation in the response. This #embed parameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the "methods" string. For example, GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods.


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

A query parameter to retrieve the specified resources embedded in the returned Resource representation in the response. This #embed parameter value is a list of comma-separated strings. Currently, the request supports only retrieval of the embedded Method resources this way. The query parameter value must be a single-valued list and contain the "methods" string. For example, GET /restapis/{restapi_id}/resources/{resource_id}?embed=methods.


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

See Object#hash(hasher)


def resource_id : String #

The identifier for the Resource resource.


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

The identifier for the Resource resource.


[View source]
def rest_api_id : String #

The string identifier of the associated RestApi.


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

The string identifier of the associated RestApi.


[View source]
def validate! : Nil #

[View source]