DigitalTwinAdapterJsonPayload¶
- class oci.iot.models.DigitalTwinAdapterJsonPayload(**kwargs)¶
Bases:
DigitalTwinAdapterPayloadA 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:
A constant which can be used with the data_format property of a DigitalTwinAdapterPayload.
[Required] Gets the data of this DigitalTwinAdapterJsonPayload.
[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'¶
A constant which can be used with the data_format property of a DigitalTwinAdapterPayload. This constant has a value of “JSON”
- __init__(**kwargs)¶
Initializes a new DigitalTwinAdapterJsonPayload object with values from keyword arguments. The default value of the
data_formatattribute of this class isJSONand 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.
- property data¶
[Required] Gets the data of this DigitalTwinAdapterJsonPayload. JSON raw data.
- Returns
The data of this DigitalTwinAdapterJsonPayload.
- Return type
dict(str, object)
- property 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.