InvokeRawJsonCommandDetails

class oci.iot.models.InvokeRawJsonCommandDetails(**kwargs)

Bases: InvokeRawCommandDetails

Json data payload definition

Attributes:

REQUEST_DATA_FORMAT_BINARY

A constant which can be used with the request_data_format property of a InvokeRawCommandDetails.

REQUEST_DATA_FORMAT_JSON

A constant which can be used with the request_data_format property of a InvokeRawCommandDetails.

REQUEST_DATA_FORMAT_TEXT

A constant which can be used with the request_data_format property of a InvokeRawCommandDetails.

request_data

Gets the request_data of this InvokeRawJsonCommandDetails.

request_data_content_type

Gets the request_data_content_type of this InvokeRawJsonCommandDetails.

request_data_format

[Required] Gets the request_data_format of this InvokeRawCommandDetails.

request_duration

Gets the request_duration of this InvokeRawCommandDetails.

request_endpoint

[Required] Gets the request_endpoint of this InvokeRawCommandDetails.

response_duration

Gets the response_duration of this InvokeRawCommandDetails.

response_endpoint

Gets the response_endpoint of this InvokeRawCommandDetails.

Methods:

__init__(**kwargs)

Initializes a new InvokeRawJsonCommandDetails object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

REQUEST_DATA_FORMAT_BINARY = 'BINARY'

A constant which can be used with the request_data_format property of a InvokeRawCommandDetails. This constant has a value of “BINARY”

REQUEST_DATA_FORMAT_JSON = 'JSON'

A constant which can be used with the request_data_format property of a InvokeRawCommandDetails. This constant has a value of “JSON”

REQUEST_DATA_FORMAT_TEXT = 'TEXT'

A constant which can be used with the request_data_format property of a InvokeRawCommandDetails. This constant has a value of “TEXT”

__init__(**kwargs)

Initializes a new InvokeRawJsonCommandDetails object with values from keyword arguments. The default value of the request_data_format attribute of this class is JSON and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • request_duration (str) – The value to assign to the request_duration property of this InvokeRawJsonCommandDetails.

  • response_duration (str) – The value to assign to the response_duration property of this InvokeRawJsonCommandDetails.

  • request_endpoint (str) – The value to assign to the request_endpoint property of this InvokeRawJsonCommandDetails.

  • response_endpoint (str) – The value to assign to the response_endpoint property of this InvokeRawJsonCommandDetails.

  • request_data_format (str) – The value to assign to the request_data_format property of this InvokeRawJsonCommandDetails. Allowed values for this property are: “TEXT”, “JSON”, “BINARY”

  • request_data_content_type (str) – The value to assign to the request_data_content_type property of this InvokeRawJsonCommandDetails.

  • request_data (dict(str, object)) – The value to assign to the request_data property of this InvokeRawJsonCommandDetails.

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property request_data

Gets the request_data of this InvokeRawJsonCommandDetails. request data, maximum 256k

Returns

The request_data of this InvokeRawJsonCommandDetails.

Return type

dict(str, object)

property request_data_content_type

Gets the request_data_content_type of this InvokeRawJsonCommandDetails. Mime content type of json data, default is application/json

Returns

The request_data_content_type of this InvokeRawJsonCommandDetails.

Return type

str

property request_data_format

[Required] Gets the request_data_format of this InvokeRawCommandDetails. data format: json, binary, text

Allowed values for this property are: “TEXT”, “JSON”, “BINARY”

Returns

The request_data_format of this InvokeRawCommandDetails.

Return type

str

property request_duration

Gets the request_duration of this InvokeRawCommandDetails. Specified duration by which to send the request by.

Returns

The request_duration of this InvokeRawCommandDetails.

Return type

str

property request_endpoint

[Required] Gets the request_endpoint of this InvokeRawCommandDetails. Device endpoint where request should be forwarded to.

Returns

The request_endpoint of this InvokeRawCommandDetails.

Return type

str

property response_duration

Gets the response_duration of this InvokeRawCommandDetails. Specified duration by which to receive the response by.

Returns

The response_duration of this InvokeRawCommandDetails.

Return type

str

property response_endpoint

Gets the response_endpoint of this InvokeRawCommandDetails. Device endpoint from which response is expected to come.

Returns

The response_endpoint of this InvokeRawCommandDetails.

Return type

str