models.value module¶
-
class
models.value.
Value
(data=None, mtype=None)[source]¶ Bases:
object
Implementation of the ‘Value’ model.
Specifies a data type and data field used to store data.
- Attributes:
- data (ValueData): Specifies the fields to store data of a given type.
Specify data in the appropriate field for the current data type.
- mtype (int): Specifies the type of value. 0 specifies a data point of
type Int64. 1 specifies a data point of type Double. 2 specifies a data point of type String. 3 specifies a data point of type Bytes.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.