models.task_attribute module

class models.task_attribute.TaskAttribute(name=None, value=None, value_type=None)[source]

Bases: object

Implementation of the ‘TaskAttribute’ model.

This contains a string name, a value, and a type for the value.

Attributes:

name (string): Specifies the name of this Task Attribute. value (string): Specifies the value of this Task Attribute. value_type (ValueTypeEnum): Specifies the type of the value contained

here. All values are returned as pointers to strings, but they can be casted to the type indicated here. ‘kInt64’ indicates that the value stored in the Task Attribute is a 64-bit integer. ‘kDouble’ indicates that the value stored in the Task Attribute is a 64 bit floating point number. ‘kString’ indicates that the value stored in the Task Attribute is a string. ‘kBytes’ indicates that the value stored in the Task Attribute is an array of 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.