# 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 V1MemoNameBody(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 = { 'uid': 'str', 'row_status': 'V1RowStatus', 'creator': 'str', 'create_time': 'datetime', 'update_time': 'datetime', 'display_time': 'datetime', 'content': 'str', 'nodes': 'list[V1Node]', 'visibility': 'V1Visibility', 'pinned': 'bool', 'parent_id': 'int', 'resources': 'list[V1Resource]', 'relations': 'list[V1MemoRelation]', 'reactions': 'list[V1Reaction]' } attribute_map = { 'uid': 'uid', 'row_status': 'rowStatus', 'creator': 'creator', 'create_time': 'createTime', 'update_time': 'updateTime', 'display_time': 'displayTime', 'content': 'content', 'nodes': 'nodes', 'visibility': 'visibility', 'pinned': 'pinned', 'parent_id': 'parentId', 'resources': 'resources', 'relations': 'relations', 'reactions': 'reactions' } def __init__(self, uid=None, row_status=None, creator=None, create_time=None, update_time=None, display_time=None, content=None, nodes=None, visibility=None, pinned=None, parent_id=None, resources=None, relations=None, reactions=None): # noqa: E501 """V1MemoNameBody - a model defined in Swagger""" # noqa: E501 self._uid = None self._row_status = None self._creator = None self._create_time = None self._update_time = None self._display_time = None self._content = None self._nodes = None self._visibility = None self._pinned = None self._parent_id = None self._resources = None self._relations = None self._reactions = None self.discriminator = None if uid is not None: self.uid = uid if row_status is not None: self.row_status = row_status if creator is not None: self.creator = creator if create_time is not None: self.create_time = create_time if update_time is not None: self.update_time = update_time if display_time is not None: self.display_time = display_time if content is not None: self.content = content if nodes is not None: self.nodes = nodes if visibility is not None: self.visibility = visibility if pinned is not None: self.pinned = pinned if parent_id is not None: self.parent_id = parent_id if resources is not None: self.resources = resources if relations is not None: self.relations = relations if reactions is not None: self.reactions = reactions @property def uid(self): """Gets the uid of this V1MemoNameBody. # noqa: E501 The user defined id of the memo. # noqa: E501 :return: The uid of this V1MemoNameBody. # noqa: E501 :rtype: str """ return self._uid @uid.setter def uid(self, uid): """Sets the uid of this V1MemoNameBody. The user defined id of the memo. # noqa: E501 :param uid: The uid of this V1MemoNameBody. # noqa: E501 :type: str """ self._uid = uid @property def row_status(self): """Gets the row_status of this V1MemoNameBody. # noqa: E501 :return: The row_status of this V1MemoNameBody. # noqa: E501 :rtype: V1RowStatus """ return self._row_status @row_status.setter def row_status(self, row_status): """Sets the row_status of this V1MemoNameBody. :param row_status: The row_status of this V1MemoNameBody. # noqa: E501 :type: V1RowStatus """ self._row_status = row_status @property def creator(self): """Gets the creator of this V1MemoNameBody. # noqa: E501 :return: The creator of this V1MemoNameBody. # noqa: E501 :rtype: str """ return self._creator @creator.setter def creator(self, creator): """Sets the creator of this V1MemoNameBody. :param creator: The creator of this V1MemoNameBody. # noqa: E501 :type: str """ self._creator = creator @property def create_time(self): """Gets the create_time of this V1MemoNameBody. # noqa: E501 :return: The create_time of this V1MemoNameBody. # noqa: E501 :rtype: datetime """ return self._create_time @create_time.setter def create_time(self, create_time): """Sets the create_time of this V1MemoNameBody. :param create_time: The create_time of this V1MemoNameBody. # noqa: E501 :type: datetime """ self._create_time = create_time @property def update_time(self): """Gets the update_time of this V1MemoNameBody. # noqa: E501 :return: The update_time of this V1MemoNameBody. # noqa: E501 :rtype: datetime """ return self._update_time @update_time.setter def update_time(self, update_time): """Sets the update_time of this V1MemoNameBody. :param update_time: The update_time of this V1MemoNameBody. # noqa: E501 :type: datetime """ self._update_time = update_time @property def display_time(self): """Gets the display_time of this V1MemoNameBody. # noqa: E501 :return: The display_time of this V1MemoNameBody. # noqa: E501 :rtype: datetime """ return self._display_time @display_time.setter def display_time(self, display_time): """Sets the display_time of this V1MemoNameBody. :param display_time: The display_time of this V1MemoNameBody. # noqa: E501 :type: datetime """ self._display_time = display_time @property def content(self): """Gets the content of this V1MemoNameBody. # noqa: E501 :return: The content of this V1MemoNameBody. # noqa: E501 :rtype: str """ return self._content @content.setter def content(self, content): """Sets the content of this V1MemoNameBody. :param content: The content of this V1MemoNameBody. # noqa: E501 :type: str """ self._content = content @property def nodes(self): """Gets the nodes of this V1MemoNameBody. # noqa: E501 :return: The nodes of this V1MemoNameBody. # noqa: E501 :rtype: list[V1Node] """ return self._nodes @nodes.setter def nodes(self, nodes): """Sets the nodes of this V1MemoNameBody. :param nodes: The nodes of this V1MemoNameBody. # noqa: E501 :type: list[V1Node] """ self._nodes = nodes @property def visibility(self): """Gets the visibility of this V1MemoNameBody. # noqa: E501 :return: The visibility of this V1MemoNameBody. # noqa: E501 :rtype: V1Visibility """ return self._visibility @visibility.setter def visibility(self, visibility): """Sets the visibility of this V1MemoNameBody. :param visibility: The visibility of this V1MemoNameBody. # noqa: E501 :type: V1Visibility """ self._visibility = visibility @property def pinned(self): """Gets the pinned of this V1MemoNameBody. # noqa: E501 :return: The pinned of this V1MemoNameBody. # noqa: E501 :rtype: bool """ return self._pinned @pinned.setter def pinned(self, pinned): """Sets the pinned of this V1MemoNameBody. :param pinned: The pinned of this V1MemoNameBody. # noqa: E501 :type: bool """ self._pinned = pinned @property def parent_id(self): """Gets the parent_id of this V1MemoNameBody. # noqa: E501 :return: The parent_id of this V1MemoNameBody. # noqa: E501 :rtype: int """ return self._parent_id @parent_id.setter def parent_id(self, parent_id): """Sets the parent_id of this V1MemoNameBody. :param parent_id: The parent_id of this V1MemoNameBody. # noqa: E501 :type: int """ self._parent_id = parent_id @property def resources(self): """Gets the resources of this V1MemoNameBody. # noqa: E501 :return: The resources of this V1MemoNameBody. # noqa: E501 :rtype: list[V1Resource] """ return self._resources @resources.setter def resources(self, resources): """Sets the resources of this V1MemoNameBody. :param resources: The resources of this V1MemoNameBody. # noqa: E501 :type: list[V1Resource] """ self._resources = resources @property def relations(self): """Gets the relations of this V1MemoNameBody. # noqa: E501 :return: The relations of this V1MemoNameBody. # noqa: E501 :rtype: list[V1MemoRelation] """ return self._relations @relations.setter def relations(self, relations): """Sets the relations of this V1MemoNameBody. :param relations: The relations of this V1MemoNameBody. # noqa: E501 :type: list[V1MemoRelation] """ self._relations = relations @property def reactions(self): """Gets the reactions of this V1MemoNameBody. # noqa: E501 :return: The reactions of this V1MemoNameBody. # noqa: E501 :rtype: list[V1Reaction] """ return self._reactions @reactions.setter def reactions(self, reactions): """Sets the reactions of this V1MemoNameBody. :param reactions: The reactions of this V1MemoNameBody. # noqa: E501 :type: list[V1Reaction] """ self._reactions = reactions 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(V1MemoNameBody, 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, V1MemoNameBody): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other