DigitalTwinAdapterJsonPayload

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

Bases: oci.iot.models.digital_twin_adapter_payload.DigitalTwinAdapterPayload

A payload structure containing JSON-formatted data from the digital twin device. This schema should be used when the parent payload ‘dataFormat’ is set to JSON. The data property contains the reference JSON content being passed from the device.

Example: {“temperature”: 0,”location”: {“type”: “point”},”serialNumber”: “<serialNumber>”}

Attributes

DATA_FORMAT_JSON str(object=’’) -> str
data [Required] Gets the data of this DigitalTwinAdapterJsonPayload.
data_format [Required] Gets the data_format of this DigitalTwinAdapterPayload.

Methods

__init__(**kwargs) Initializes a new DigitalTwinAdapterJsonPayload 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.
DATA_FORMAT_JSON = 'JSON'
__init__(**kwargs)

Initializes a new DigitalTwinAdapterJsonPayload object with values from keyword arguments. The default value of the 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:
  • data_format (str) – The value to assign to the data_format property of this DigitalTwinAdapterJsonPayload. Allowed values for this property are: “JSON”
  • data (dict(str, object)) – The value to assign to the data property of this DigitalTwinAdapterJsonPayload.
data

[Required] Gets the data of this DigitalTwinAdapterJsonPayload. JSON raw data.

Returns:The data of this DigitalTwinAdapterJsonPayload.
Return type:dict(str, object)
data_format

[Required] Gets the data_format of this DigitalTwinAdapterPayload. Data format of the payload.

Allowed values for this property are: “JSON”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The data_format of this DigitalTwinAdapterPayload.
Return type:str
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.