189 lines
5.0 KiB
Python
189 lines
5.0 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
api/v1/activity_service.proto
|
|
|
|
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
|
|
OpenAPI spec version: version not set
|
|
|
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
"""
|
|
|
|
import pprint
|
|
import re # noqa: F401
|
|
|
|
import six
|
|
|
|
class V1TaskListNode(object):
|
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
|
|
Do not edit the class manually.
|
|
"""
|
|
"""
|
|
Attributes:
|
|
swagger_types (dict): The key is attribute name
|
|
and the value is attribute type.
|
|
attribute_map (dict): The key is attribute name
|
|
and the value is json key in definition.
|
|
"""
|
|
swagger_types = {
|
|
'symbol': 'str',
|
|
'indent': 'int',
|
|
'complete': 'bool',
|
|
'children': 'list[V1Node]'
|
|
}
|
|
|
|
attribute_map = {
|
|
'symbol': 'symbol',
|
|
'indent': 'indent',
|
|
'complete': 'complete',
|
|
'children': 'children'
|
|
}
|
|
|
|
def __init__(self, symbol=None, indent=None, complete=None, children=None): # noqa: E501
|
|
"""V1TaskListNode - a model defined in Swagger""" # noqa: E501
|
|
self._symbol = None
|
|
self._indent = None
|
|
self._complete = None
|
|
self._children = None
|
|
self.discriminator = None
|
|
if symbol is not None:
|
|
self.symbol = symbol
|
|
if indent is not None:
|
|
self.indent = indent
|
|
if complete is not None:
|
|
self.complete = complete
|
|
if children is not None:
|
|
self.children = children
|
|
|
|
@property
|
|
def symbol(self):
|
|
"""Gets the symbol of this V1TaskListNode. # noqa: E501
|
|
|
|
|
|
:return: The symbol of this V1TaskListNode. # noqa: E501
|
|
:rtype: str
|
|
"""
|
|
return self._symbol
|
|
|
|
@symbol.setter
|
|
def symbol(self, symbol):
|
|
"""Sets the symbol of this V1TaskListNode.
|
|
|
|
|
|
:param symbol: The symbol of this V1TaskListNode. # noqa: E501
|
|
:type: str
|
|
"""
|
|
|
|
self._symbol = symbol
|
|
|
|
@property
|
|
def indent(self):
|
|
"""Gets the indent of this V1TaskListNode. # noqa: E501
|
|
|
|
|
|
:return: The indent of this V1TaskListNode. # noqa: E501
|
|
:rtype: int
|
|
"""
|
|
return self._indent
|
|
|
|
@indent.setter
|
|
def indent(self, indent):
|
|
"""Sets the indent of this V1TaskListNode.
|
|
|
|
|
|
:param indent: The indent of this V1TaskListNode. # noqa: E501
|
|
:type: int
|
|
"""
|
|
|
|
self._indent = indent
|
|
|
|
@property
|
|
def complete(self):
|
|
"""Gets the complete of this V1TaskListNode. # noqa: E501
|
|
|
|
|
|
:return: The complete of this V1TaskListNode. # noqa: E501
|
|
:rtype: bool
|
|
"""
|
|
return self._complete
|
|
|
|
@complete.setter
|
|
def complete(self, complete):
|
|
"""Sets the complete of this V1TaskListNode.
|
|
|
|
|
|
:param complete: The complete of this V1TaskListNode. # noqa: E501
|
|
:type: bool
|
|
"""
|
|
|
|
self._complete = complete
|
|
|
|
@property
|
|
def children(self):
|
|
"""Gets the children of this V1TaskListNode. # noqa: E501
|
|
|
|
|
|
:return: The children of this V1TaskListNode. # noqa: E501
|
|
:rtype: list[V1Node]
|
|
"""
|
|
return self._children
|
|
|
|
@children.setter
|
|
def children(self, children):
|
|
"""Sets the children of this V1TaskListNode.
|
|
|
|
|
|
:param children: The children of this V1TaskListNode. # noqa: E501
|
|
:type: list[V1Node]
|
|
"""
|
|
|
|
self._children = children
|
|
|
|
def to_dict(self):
|
|
"""Returns the model properties as a dict"""
|
|
result = {}
|
|
|
|
for attr, _ in six.iteritems(self.swagger_types):
|
|
value = getattr(self, attr)
|
|
if isinstance(value, list):
|
|
result[attr] = list(map(
|
|
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
value
|
|
))
|
|
elif hasattr(value, "to_dict"):
|
|
result[attr] = value.to_dict()
|
|
elif isinstance(value, dict):
|
|
result[attr] = dict(map(
|
|
lambda item: (item[0], item[1].to_dict())
|
|
if hasattr(item[1], "to_dict") else item,
|
|
value.items()
|
|
))
|
|
else:
|
|
result[attr] = value
|
|
if issubclass(V1TaskListNode, dict):
|
|
for key, value in self.items():
|
|
result[key] = value
|
|
|
|
return result
|
|
|
|
def to_str(self):
|
|
"""Returns the string representation of the model"""
|
|
return pprint.pformat(self.to_dict())
|
|
|
|
def __repr__(self):
|
|
"""For `print` and `pprint`"""
|
|
return self.to_str()
|
|
|
|
def __eq__(self, other):
|
|
"""Returns true if both objects are equal"""
|
|
if not isinstance(other, V1TaskListNode):
|
|
return False
|
|
|
|
return self.__dict__ == other.__dict__
|
|
|
|
def __ne__(self, other):
|
|
"""Returns true if both objects are not equal"""
|
|
return not self == other
|