models.value_data module

class models.value_data.ValueData(bytes_value=None, double_value=None, int_64_value=None, string_value=None)[source]

Bases: object

Implementation of the ‘Value_Data’ model.

Specifies the fields to store data of a given type. Specify data in the appropriate field for the current data type.

Attributes:
bytes_value (list of int): Specifies the field to store an array of

bytes if the current data type is bytes. Specify a value for this field when type is equal to 4.

double_value (float): Specifies the field to store data if the current

data type is a double value. Specify a value for this field when type is equal to 2.

int_64_value (long|int): Specifies the field to store data if the

current data type is a int64 value. Specify a value for this field when type is equal to 1.

string_value (string): Specifies the field to store data if the

current data type is a string value. Specify a value for this field when type is equal to 3.

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.