feat: 更新 api

This commit is contained in:
Ching 2024-04-30 11:31:11 +08:00
parent c2643e6b5d
commit bad37e4498
87 changed files with 0 additions and 12119 deletions

View File

@ -1,136 +0,0 @@
# coding: utf-8
"""
api/v2/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 Apiv2ActivityMemoCommentPayload(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 = {
'memo_id': 'int',
'related_memo_id': 'int'
}
attribute_map = {
'memo_id': 'memoId',
'related_memo_id': 'relatedMemoId'
}
def __init__(self, memo_id=None, related_memo_id=None): # noqa: E501
"""Apiv2ActivityMemoCommentPayload - a model defined in Swagger""" # noqa: E501
self._memo_id = None
self._related_memo_id = None
self.discriminator = None
if memo_id is not None:
self.memo_id = memo_id
if related_memo_id is not None:
self.related_memo_id = related_memo_id
@property
def memo_id(self):
"""Gets the memo_id of this Apiv2ActivityMemoCommentPayload. # noqa: E501
:return: The memo_id of this Apiv2ActivityMemoCommentPayload. # noqa: E501
:rtype: int
"""
return self._memo_id
@memo_id.setter
def memo_id(self, memo_id):
"""Sets the memo_id of this Apiv2ActivityMemoCommentPayload.
:param memo_id: The memo_id of this Apiv2ActivityMemoCommentPayload. # noqa: E501
:type: int
"""
self._memo_id = memo_id
@property
def related_memo_id(self):
"""Gets the related_memo_id of this Apiv2ActivityMemoCommentPayload. # noqa: E501
:return: The related_memo_id of this Apiv2ActivityMemoCommentPayload. # noqa: E501
:rtype: int
"""
return self._related_memo_id
@related_memo_id.setter
def related_memo_id(self, related_memo_id):
"""Sets the related_memo_id of this Apiv2ActivityMemoCommentPayload.
:param related_memo_id: The related_memo_id of this Apiv2ActivityMemoCommentPayload. # noqa: E501
:type: int
"""
self._related_memo_id = related_memo_id
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(Apiv2ActivityMemoCommentPayload, 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, Apiv2ActivityMemoCommentPayload):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,136 +0,0 @@
# coding: utf-8
"""
api/v2/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 Apiv2ActivityPayload(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 = {
'memo_comment': 'Apiv2ActivityMemoCommentPayload',
'version_update': 'Apiv2ActivityVersionUpdatePayload'
}
attribute_map = {
'memo_comment': 'memoComment',
'version_update': 'versionUpdate'
}
def __init__(self, memo_comment=None, version_update=None): # noqa: E501
"""Apiv2ActivityPayload - a model defined in Swagger""" # noqa: E501
self._memo_comment = None
self._version_update = None
self.discriminator = None
if memo_comment is not None:
self.memo_comment = memo_comment
if version_update is not None:
self.version_update = version_update
@property
def memo_comment(self):
"""Gets the memo_comment of this Apiv2ActivityPayload. # noqa: E501
:return: The memo_comment of this Apiv2ActivityPayload. # noqa: E501
:rtype: Apiv2ActivityMemoCommentPayload
"""
return self._memo_comment
@memo_comment.setter
def memo_comment(self, memo_comment):
"""Sets the memo_comment of this Apiv2ActivityPayload.
:param memo_comment: The memo_comment of this Apiv2ActivityPayload. # noqa: E501
:type: Apiv2ActivityMemoCommentPayload
"""
self._memo_comment = memo_comment
@property
def version_update(self):
"""Gets the version_update of this Apiv2ActivityPayload. # noqa: E501
:return: The version_update of this Apiv2ActivityPayload. # noqa: E501
:rtype: Apiv2ActivityVersionUpdatePayload
"""
return self._version_update
@version_update.setter
def version_update(self, version_update):
"""Sets the version_update of this Apiv2ActivityPayload.
:param version_update: The version_update of this Apiv2ActivityPayload. # noqa: E501
:type: Apiv2ActivityVersionUpdatePayload
"""
self._version_update = version_update
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(Apiv2ActivityPayload, 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, Apiv2ActivityPayload):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 Apiv2ActivityVersionUpdatePayload(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 = {
'version': 'str'
}
attribute_map = {
'version': 'version'
}
def __init__(self, version=None): # noqa: E501
"""Apiv2ActivityVersionUpdatePayload - a model defined in Swagger""" # noqa: E501
self._version = None
self.discriminator = None
if version is not None:
self.version = version
@property
def version(self):
"""Gets the version of this Apiv2ActivityVersionUpdatePayload. # noqa: E501
:return: The version of this Apiv2ActivityVersionUpdatePayload. # noqa: E501
:rtype: str
"""
return self._version
@version.setter
def version(self, version):
"""Sets the version of this Apiv2ActivityVersionUpdatePayload.
:param version: The version of this Apiv2ActivityVersionUpdatePayload. # noqa: E501
:type: str
"""
self._version = version
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(Apiv2ActivityVersionUpdatePayload, 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, Apiv2ActivityVersionUpdatePayload):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,188 +0,0 @@
# coding: utf-8
"""
api/v2/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 Apiv2Reaction(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 = {
'id': 'int',
'creator': 'str',
'content_id': 'str',
'reaction_type': 'Apiv2ReactionType'
}
attribute_map = {
'id': 'id',
'creator': 'creator',
'content_id': 'contentId',
'reaction_type': 'reactionType'
}
def __init__(self, id=None, creator=None, content_id=None, reaction_type=None): # noqa: E501
"""Apiv2Reaction - a model defined in Swagger""" # noqa: E501
self._id = None
self._creator = None
self._content_id = None
self._reaction_type = None
self.discriminator = None
if id is not None:
self.id = id
if creator is not None:
self.creator = creator
if content_id is not None:
self.content_id = content_id
if reaction_type is not None:
self.reaction_type = reaction_type
@property
def id(self):
"""Gets the id of this Apiv2Reaction. # noqa: E501
:return: The id of this Apiv2Reaction. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Apiv2Reaction.
:param id: The id of this Apiv2Reaction. # noqa: E501
:type: int
"""
self._id = id
@property
def creator(self):
"""Gets the creator of this Apiv2Reaction. # noqa: E501
:return: The creator of this Apiv2Reaction. # noqa: E501
:rtype: str
"""
return self._creator
@creator.setter
def creator(self, creator):
"""Sets the creator of this Apiv2Reaction.
:param creator: The creator of this Apiv2Reaction. # noqa: E501
:type: str
"""
self._creator = creator
@property
def content_id(self):
"""Gets the content_id of this Apiv2Reaction. # noqa: E501
:return: The content_id of this Apiv2Reaction. # noqa: E501
:rtype: str
"""
return self._content_id
@content_id.setter
def content_id(self, content_id):
"""Sets the content_id of this Apiv2Reaction.
:param content_id: The content_id of this Apiv2Reaction. # noqa: E501
:type: str
"""
self._content_id = content_id
@property
def reaction_type(self):
"""Gets the reaction_type of this Apiv2Reaction. # noqa: E501
:return: The reaction_type of this Apiv2Reaction. # noqa: E501
:rtype: Apiv2ReactionType
"""
return self._reaction_type
@reaction_type.setter
def reaction_type(self, reaction_type):
"""Sets the reaction_type of this Apiv2Reaction.
:param reaction_type: The reaction_type of this Apiv2Reaction. # noqa: E501
:type: Apiv2ReactionType
"""
self._reaction_type = reaction_type
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(Apiv2Reaction, 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, Apiv2Reaction):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,101 +0,0 @@
# coding: utf-8
"""
api/v2/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 Apiv2ReactionType(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
allowed enum values
"""
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED"
THUMBS_UP = "THUMBS_UP"
THUMBS_DOWN = "THUMBS_DOWN"
HEART = "HEART"
FIRE = "FIRE"
CLAPPING_HANDS = "CLAPPING_HANDS"
LAUGH = "LAUGH"
OK_HAND = "OK_HAND"
ROCKET = "ROCKET"
EYES = "EYES"
THINKING_FACE = "THINKING_FACE"
CLOWN_FACE = "CLOWN_FACE"
QUESTION_MARK = "QUESTION_MARK"
"""
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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""Apiv2ReactionType - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(Apiv2ReactionType, 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, Apiv2ReactionType):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,91 +0,0 @@
# coding: utf-8
"""
api/v2/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 Apiv2RowStatus(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
allowed enum values
"""
ROW_STATUS_UNSPECIFIED = "ROW_STATUS_UNSPECIFIED"
ACTIVE = "ACTIVE"
ARCHIVED = "ARCHIVED"
"""
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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""Apiv2RowStatus - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(Apiv2RowStatus, 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, Apiv2RowStatus):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,222 +0,0 @@
# coding: utf-8
"""
api/v2/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 Apiv2UserSetting(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 = {
'name': 'str',
'locale': 'str',
'appearance': 'str',
'memo_visibility': 'str',
'telegram_user_id': 'str'
}
attribute_map = {
'name': 'name',
'locale': 'locale',
'appearance': 'appearance',
'memo_visibility': 'memoVisibility',
'telegram_user_id': 'telegramUserId'
}
def __init__(self, name=None, locale=None, appearance=None, memo_visibility=None, telegram_user_id=None): # noqa: E501
"""Apiv2UserSetting - a model defined in Swagger""" # noqa: E501
self._name = None
self._locale = None
self._appearance = None
self._memo_visibility = None
self._telegram_user_id = None
self.discriminator = None
if name is not None:
self.name = name
if locale is not None:
self.locale = locale
if appearance is not None:
self.appearance = appearance
if memo_visibility is not None:
self.memo_visibility = memo_visibility
if telegram_user_id is not None:
self.telegram_user_id = telegram_user_id
@property
def name(self):
"""Gets the name of this Apiv2UserSetting. # noqa: E501
:return: The name of this Apiv2UserSetting. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this Apiv2UserSetting.
:param name: The name of this Apiv2UserSetting. # noqa: E501
:type: str
"""
self._name = name
@property
def locale(self):
"""Gets the locale of this Apiv2UserSetting. # noqa: E501
The preferred locale of the user. # noqa: E501
:return: The locale of this Apiv2UserSetting. # noqa: E501
:rtype: str
"""
return self._locale
@locale.setter
def locale(self, locale):
"""Sets the locale of this Apiv2UserSetting.
The preferred locale of the user. # noqa: E501
:param locale: The locale of this Apiv2UserSetting. # noqa: E501
:type: str
"""
self._locale = locale
@property
def appearance(self):
"""Gets the appearance of this Apiv2UserSetting. # noqa: E501
The preferred appearance of the user. # noqa: E501
:return: The appearance of this Apiv2UserSetting. # noqa: E501
:rtype: str
"""
return self._appearance
@appearance.setter
def appearance(self, appearance):
"""Sets the appearance of this Apiv2UserSetting.
The preferred appearance of the user. # noqa: E501
:param appearance: The appearance of this Apiv2UserSetting. # noqa: E501
:type: str
"""
self._appearance = appearance
@property
def memo_visibility(self):
"""Gets the memo_visibility of this Apiv2UserSetting. # noqa: E501
The default visibility of the memo. # noqa: E501
:return: The memo_visibility of this Apiv2UserSetting. # noqa: E501
:rtype: str
"""
return self._memo_visibility
@memo_visibility.setter
def memo_visibility(self, memo_visibility):
"""Sets the memo_visibility of this Apiv2UserSetting.
The default visibility of the memo. # noqa: E501
:param memo_visibility: The memo_visibility of this Apiv2UserSetting. # noqa: E501
:type: str
"""
self._memo_visibility = memo_visibility
@property
def telegram_user_id(self):
"""Gets the telegram_user_id of this Apiv2UserSetting. # noqa: E501
The telegram user id of the user. # noqa: E501
:return: The telegram_user_id of this Apiv2UserSetting. # noqa: E501
:rtype: str
"""
return self._telegram_user_id
@telegram_user_id.setter
def telegram_user_id(self, telegram_user_id):
"""Sets the telegram_user_id of this Apiv2UserSetting.
The telegram user id of the user. # noqa: E501
:param telegram_user_id: The telegram_user_id of this Apiv2UserSetting. # noqa: E501
:type: str
"""
self._telegram_user_id = telegram_user_id
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(Apiv2UserSetting, 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, Apiv2UserSetting):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,266 +0,0 @@
# coding: utf-8
"""
api/v2/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 Apiv2Webhook(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 = {
'id': 'int',
'creator_id': 'int',
'created_time': 'datetime',
'updated_time': 'datetime',
'row_status': 'Apiv2RowStatus',
'name': 'str',
'url': 'str'
}
attribute_map = {
'id': 'id',
'creator_id': 'creatorId',
'created_time': 'createdTime',
'updated_time': 'updatedTime',
'row_status': 'rowStatus',
'name': 'name',
'url': 'url'
}
def __init__(self, id=None, creator_id=None, created_time=None, updated_time=None, row_status=None, name=None, url=None): # noqa: E501
"""Apiv2Webhook - a model defined in Swagger""" # noqa: E501
self._id = None
self._creator_id = None
self._created_time = None
self._updated_time = None
self._row_status = None
self._name = None
self._url = None
self.discriminator = None
if id is not None:
self.id = id
if creator_id is not None:
self.creator_id = creator_id
if created_time is not None:
self.created_time = created_time
if updated_time is not None:
self.updated_time = updated_time
if row_status is not None:
self.row_status = row_status
if name is not None:
self.name = name
if url is not None:
self.url = url
@property
def id(self):
"""Gets the id of this Apiv2Webhook. # noqa: E501
:return: The id of this Apiv2Webhook. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Apiv2Webhook.
:param id: The id of this Apiv2Webhook. # noqa: E501
:type: int
"""
self._id = id
@property
def creator_id(self):
"""Gets the creator_id of this Apiv2Webhook. # noqa: E501
:return: The creator_id of this Apiv2Webhook. # noqa: E501
:rtype: int
"""
return self._creator_id
@creator_id.setter
def creator_id(self, creator_id):
"""Sets the creator_id of this Apiv2Webhook.
:param creator_id: The creator_id of this Apiv2Webhook. # noqa: E501
:type: int
"""
self._creator_id = creator_id
@property
def created_time(self):
"""Gets the created_time of this Apiv2Webhook. # noqa: E501
:return: The created_time of this Apiv2Webhook. # noqa: E501
:rtype: datetime
"""
return self._created_time
@created_time.setter
def created_time(self, created_time):
"""Sets the created_time of this Apiv2Webhook.
:param created_time: The created_time of this Apiv2Webhook. # noqa: E501
:type: datetime
"""
self._created_time = created_time
@property
def updated_time(self):
"""Gets the updated_time of this Apiv2Webhook. # noqa: E501
:return: The updated_time of this Apiv2Webhook. # noqa: E501
:rtype: datetime
"""
return self._updated_time
@updated_time.setter
def updated_time(self, updated_time):
"""Sets the updated_time of this Apiv2Webhook.
:param updated_time: The updated_time of this Apiv2Webhook. # noqa: E501
:type: datetime
"""
self._updated_time = updated_time
@property
def row_status(self):
"""Gets the row_status of this Apiv2Webhook. # noqa: E501
:return: The row_status of this Apiv2Webhook. # noqa: E501
:rtype: Apiv2RowStatus
"""
return self._row_status
@row_status.setter
def row_status(self, row_status):
"""Sets the row_status of this Apiv2Webhook.
:param row_status: The row_status of this Apiv2Webhook. # noqa: E501
:type: Apiv2RowStatus
"""
self._row_status = row_status
@property
def name(self):
"""Gets the name of this Apiv2Webhook. # noqa: E501
:return: The name of this Apiv2Webhook. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this Apiv2Webhook.
:param name: The name of this Apiv2Webhook. # noqa: E501
:type: str
"""
self._name = name
@property
def url(self):
"""Gets the url of this Apiv2Webhook. # noqa: E501
:return: The url of this Apiv2Webhook. # noqa: E501
:rtype: str
"""
return self._url
@url.setter
def url(self, url):
"""Sets the url of this Apiv2Webhook.
:param url: The url of this Apiv2Webhook. # noqa: E501
:type: str
"""
self._url = url
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(Apiv2Webhook, 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, Apiv2Webhook):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,224 +0,0 @@
# coding: utf-8
"""
api/v2/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 Apiv2WorkspaceGeneralSetting(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 = {
'instance_url': 'str',
'disallow_signup': 'bool',
'disallow_password_login': 'bool',
'additional_script': 'str',
'additional_style': 'str'
}
attribute_map = {
'instance_url': 'instanceUrl',
'disallow_signup': 'disallowSignup',
'disallow_password_login': 'disallowPasswordLogin',
'additional_script': 'additionalScript',
'additional_style': 'additionalStyle'
}
def __init__(self, instance_url=None, disallow_signup=None, disallow_password_login=None, additional_script=None, additional_style=None): # noqa: E501
"""Apiv2WorkspaceGeneralSetting - a model defined in Swagger""" # noqa: E501
self._instance_url = None
self._disallow_signup = None
self._disallow_password_login = None
self._additional_script = None
self._additional_style = None
self.discriminator = None
if instance_url is not None:
self.instance_url = instance_url
if disallow_signup is not None:
self.disallow_signup = disallow_signup
if disallow_password_login is not None:
self.disallow_password_login = disallow_password_login
if additional_script is not None:
self.additional_script = additional_script
if additional_style is not None:
self.additional_style = additional_style
@property
def instance_url(self):
"""Gets the instance_url of this Apiv2WorkspaceGeneralSetting. # noqa: E501
instance_url is the instance URL. # noqa: E501
:return: The instance_url of this Apiv2WorkspaceGeneralSetting. # noqa: E501
:rtype: str
"""
return self._instance_url
@instance_url.setter
def instance_url(self, instance_url):
"""Sets the instance_url of this Apiv2WorkspaceGeneralSetting.
instance_url is the instance URL. # noqa: E501
:param instance_url: The instance_url of this Apiv2WorkspaceGeneralSetting. # noqa: E501
:type: str
"""
self._instance_url = instance_url
@property
def disallow_signup(self):
"""Gets the disallow_signup of this Apiv2WorkspaceGeneralSetting. # noqa: E501
disallow_signup is the flag to disallow signup. # noqa: E501
:return: The disallow_signup of this Apiv2WorkspaceGeneralSetting. # noqa: E501
:rtype: bool
"""
return self._disallow_signup
@disallow_signup.setter
def disallow_signup(self, disallow_signup):
"""Sets the disallow_signup of this Apiv2WorkspaceGeneralSetting.
disallow_signup is the flag to disallow signup. # noqa: E501
:param disallow_signup: The disallow_signup of this Apiv2WorkspaceGeneralSetting. # noqa: E501
:type: bool
"""
self._disallow_signup = disallow_signup
@property
def disallow_password_login(self):
"""Gets the disallow_password_login of this Apiv2WorkspaceGeneralSetting. # noqa: E501
disallow_password_login is the flag to disallow password login. # noqa: E501
:return: The disallow_password_login of this Apiv2WorkspaceGeneralSetting. # noqa: E501
:rtype: bool
"""
return self._disallow_password_login
@disallow_password_login.setter
def disallow_password_login(self, disallow_password_login):
"""Sets the disallow_password_login of this Apiv2WorkspaceGeneralSetting.
disallow_password_login is the flag to disallow password login. # noqa: E501
:param disallow_password_login: The disallow_password_login of this Apiv2WorkspaceGeneralSetting. # noqa: E501
:type: bool
"""
self._disallow_password_login = disallow_password_login
@property
def additional_script(self):
"""Gets the additional_script of this Apiv2WorkspaceGeneralSetting. # noqa: E501
additional_script is the additional script. # noqa: E501
:return: The additional_script of this Apiv2WorkspaceGeneralSetting. # noqa: E501
:rtype: str
"""
return self._additional_script
@additional_script.setter
def additional_script(self, additional_script):
"""Sets the additional_script of this Apiv2WorkspaceGeneralSetting.
additional_script is the additional script. # noqa: E501
:param additional_script: The additional_script of this Apiv2WorkspaceGeneralSetting. # noqa: E501
:type: str
"""
self._additional_script = additional_script
@property
def additional_style(self):
"""Gets the additional_style of this Apiv2WorkspaceGeneralSetting. # noqa: E501
additional_style is the additional style. # noqa: E501
:return: The additional_style of this Apiv2WorkspaceGeneralSetting. # noqa: E501
:rtype: str
"""
return self._additional_style
@additional_style.setter
def additional_style(self, additional_style):
"""Sets the additional_style of this Apiv2WorkspaceGeneralSetting.
additional_style is the additional style. # noqa: E501
:param additional_style: The additional_style of this Apiv2WorkspaceGeneralSetting. # noqa: E501
:type: str
"""
self._additional_style = additional_style
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(Apiv2WorkspaceGeneralSetting, 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, Apiv2WorkspaceGeneralSetting):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,136 +0,0 @@
# coding: utf-8
"""
api/v2/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 Apiv2WorkspaceSetting(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 = {
'name': 'str',
'general_setting': 'Apiv2WorkspaceGeneralSetting'
}
attribute_map = {
'name': 'name',
'general_setting': 'generalSetting'
}
def __init__(self, name=None, general_setting=None): # noqa: E501
"""Apiv2WorkspaceSetting - a model defined in Swagger""" # noqa: E501
self._name = None
self._general_setting = None
self.discriminator = None
if name is not None:
self.name = name
if general_setting is not None:
self.general_setting = general_setting
@property
def name(self):
"""Gets the name of this Apiv2WorkspaceSetting. # noqa: E501
:return: The name of this Apiv2WorkspaceSetting. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this Apiv2WorkspaceSetting.
:param name: The name of this Apiv2WorkspaceSetting. # noqa: E501
:type: str
"""
self._name = name
@property
def general_setting(self):
"""Gets the general_setting of this Apiv2WorkspaceSetting. # noqa: E501
:return: The general_setting of this Apiv2WorkspaceSetting. # noqa: E501
:rtype: Apiv2WorkspaceGeneralSetting
"""
return self._general_setting
@general_setting.setter
def general_setting(self, general_setting):
"""Sets the general_setting of this Apiv2WorkspaceSetting.
:param general_setting: The general_setting of this Apiv2WorkspaceSetting. # noqa: E501
:type: Apiv2WorkspaceGeneralSetting
"""
self._general_setting = general_setting
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(Apiv2WorkspaceSetting, 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, Apiv2WorkspaceSetting):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,450 +0,0 @@
# coding: utf-8
"""
api/v2/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 MemosMemoIdBody(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 = {
'name': 'str',
'row_status': 'Apiv2RowStatus',
'creator': 'str',
'creator_id': 'int',
'create_time': 'datetime',
'update_time': 'datetime',
'display_time': 'datetime',
'content': 'str',
'visibility': 'V2Visibility',
'pinned': 'bool',
'parent_id': 'int',
'resources': 'list[V2Resource]',
'relations': 'list[V2MemoRelation]',
'reactions': 'list[Apiv2Reaction]'
}
attribute_map = {
'name': 'name',
'row_status': 'rowStatus',
'creator': 'creator',
'creator_id': 'creatorId',
'create_time': 'createTime',
'update_time': 'updateTime',
'display_time': 'displayTime',
'content': 'content',
'visibility': 'visibility',
'pinned': 'pinned',
'parent_id': 'parentId',
'resources': 'resources',
'relations': 'relations',
'reactions': 'reactions'
}
def __init__(self, name=None, row_status=None, creator=None, creator_id=None, create_time=None, update_time=None, display_time=None, content=None, visibility=None, pinned=None, parent_id=None, resources=None, relations=None, reactions=None): # noqa: E501
"""MemosMemoIdBody - a model defined in Swagger""" # noqa: E501
self._name = None
self._row_status = None
self._creator = None
self._creator_id = None
self._create_time = None
self._update_time = None
self._display_time = None
self._content = None
self._visibility = None
self._pinned = None
self._parent_id = None
self._resources = None
self._relations = None
self._reactions = None
self.discriminator = None
if name is not None:
self.name = name
if row_status is not None:
self.row_status = row_status
if creator is not None:
self.creator = creator
if creator_id is not None:
self.creator_id = creator_id
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 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 name(self):
"""Gets the name of this MemosMemoIdBody. # noqa: E501
name is the user provided name. # noqa: E501
:return: The name of this MemosMemoIdBody. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this MemosMemoIdBody.
name is the user provided name. # noqa: E501
:param name: The name of this MemosMemoIdBody. # noqa: E501
:type: str
"""
self._name = name
@property
def row_status(self):
"""Gets the row_status of this MemosMemoIdBody. # noqa: E501
:return: The row_status of this MemosMemoIdBody. # noqa: E501
:rtype: Apiv2RowStatus
"""
return self._row_status
@row_status.setter
def row_status(self, row_status):
"""Sets the row_status of this MemosMemoIdBody.
:param row_status: The row_status of this MemosMemoIdBody. # noqa: E501
:type: Apiv2RowStatus
"""
self._row_status = row_status
@property
def creator(self):
"""Gets the creator of this MemosMemoIdBody. # noqa: E501
:return: The creator of this MemosMemoIdBody. # noqa: E501
:rtype: str
"""
return self._creator
@creator.setter
def creator(self, creator):
"""Sets the creator of this MemosMemoIdBody.
:param creator: The creator of this MemosMemoIdBody. # noqa: E501
:type: str
"""
self._creator = creator
@property
def creator_id(self):
"""Gets the creator_id of this MemosMemoIdBody. # noqa: E501
:return: The creator_id of this MemosMemoIdBody. # noqa: E501
:rtype: int
"""
return self._creator_id
@creator_id.setter
def creator_id(self, creator_id):
"""Sets the creator_id of this MemosMemoIdBody.
:param creator_id: The creator_id of this MemosMemoIdBody. # noqa: E501
:type: int
"""
self._creator_id = creator_id
@property
def create_time(self):
"""Gets the create_time of this MemosMemoIdBody. # noqa: E501
:return: The create_time of this MemosMemoIdBody. # noqa: E501
:rtype: datetime
"""
return self._create_time
@create_time.setter
def create_time(self, create_time):
"""Sets the create_time of this MemosMemoIdBody.
:param create_time: The create_time of this MemosMemoIdBody. # noqa: E501
:type: datetime
"""
self._create_time = create_time
@property
def update_time(self):
"""Gets the update_time of this MemosMemoIdBody. # noqa: E501
:return: The update_time of this MemosMemoIdBody. # noqa: E501
:rtype: datetime
"""
return self._update_time
@update_time.setter
def update_time(self, update_time):
"""Sets the update_time of this MemosMemoIdBody.
:param update_time: The update_time of this MemosMemoIdBody. # noqa: E501
:type: datetime
"""
self._update_time = update_time
@property
def display_time(self):
"""Gets the display_time of this MemosMemoIdBody. # noqa: E501
:return: The display_time of this MemosMemoIdBody. # noqa: E501
:rtype: datetime
"""
return self._display_time
@display_time.setter
def display_time(self, display_time):
"""Sets the display_time of this MemosMemoIdBody.
:param display_time: The display_time of this MemosMemoIdBody. # noqa: E501
:type: datetime
"""
self._display_time = display_time
@property
def content(self):
"""Gets the content of this MemosMemoIdBody. # noqa: E501
:return: The content of this MemosMemoIdBody. # noqa: E501
:rtype: str
"""
return self._content
@content.setter
def content(self, content):
"""Sets the content of this MemosMemoIdBody.
:param content: The content of this MemosMemoIdBody. # noqa: E501
:type: str
"""
self._content = content
@property
def visibility(self):
"""Gets the visibility of this MemosMemoIdBody. # noqa: E501
:return: The visibility of this MemosMemoIdBody. # noqa: E501
:rtype: V2Visibility
"""
return self._visibility
@visibility.setter
def visibility(self, visibility):
"""Sets the visibility of this MemosMemoIdBody.
:param visibility: The visibility of this MemosMemoIdBody. # noqa: E501
:type: V2Visibility
"""
self._visibility = visibility
@property
def pinned(self):
"""Gets the pinned of this MemosMemoIdBody. # noqa: E501
:return: The pinned of this MemosMemoIdBody. # noqa: E501
:rtype: bool
"""
return self._pinned
@pinned.setter
def pinned(self, pinned):
"""Sets the pinned of this MemosMemoIdBody.
:param pinned: The pinned of this MemosMemoIdBody. # noqa: E501
:type: bool
"""
self._pinned = pinned
@property
def parent_id(self):
"""Gets the parent_id of this MemosMemoIdBody. # noqa: E501
:return: The parent_id of this MemosMemoIdBody. # noqa: E501
:rtype: int
"""
return self._parent_id
@parent_id.setter
def parent_id(self, parent_id):
"""Sets the parent_id of this MemosMemoIdBody.
:param parent_id: The parent_id of this MemosMemoIdBody. # noqa: E501
:type: int
"""
self._parent_id = parent_id
@property
def resources(self):
"""Gets the resources of this MemosMemoIdBody. # noqa: E501
:return: The resources of this MemosMemoIdBody. # noqa: E501
:rtype: list[V2Resource]
"""
return self._resources
@resources.setter
def resources(self, resources):
"""Sets the resources of this MemosMemoIdBody.
:param resources: The resources of this MemosMemoIdBody. # noqa: E501
:type: list[V2Resource]
"""
self._resources = resources
@property
def relations(self):
"""Gets the relations of this MemosMemoIdBody. # noqa: E501
:return: The relations of this MemosMemoIdBody. # noqa: E501
:rtype: list[V2MemoRelation]
"""
return self._relations
@relations.setter
def relations(self, relations):
"""Sets the relations of this MemosMemoIdBody.
:param relations: The relations of this MemosMemoIdBody. # noqa: E501
:type: list[V2MemoRelation]
"""
self._relations = relations
@property
def reactions(self):
"""Gets the reactions of this MemosMemoIdBody. # noqa: E501
:return: The reactions of this MemosMemoIdBody. # noqa: E501
:rtype: list[Apiv2Reaction]
"""
return self._reactions
@reactions.setter
def reactions(self, reactions):
"""Sets the reactions of this MemosMemoIdBody.
:param reactions: The reactions of this MemosMemoIdBody. # noqa: E501
:type: list[Apiv2Reaction]
"""
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(MemosMemoIdBody, 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, MemosMemoIdBody):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,268 +0,0 @@
# coding: utf-8
"""
api/v2/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 ResourcesResourceIdBody(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 = {
'name': 'str',
'create_time': 'datetime',
'filename': 'str',
'external_link': 'str',
'type': 'str',
'size': 'str',
'memo_id': 'int'
}
attribute_map = {
'name': 'name',
'create_time': 'createTime',
'filename': 'filename',
'external_link': 'externalLink',
'type': 'type',
'size': 'size',
'memo_id': 'memoId'
}
def __init__(self, name=None, create_time=None, filename=None, external_link=None, type=None, size=None, memo_id=None): # noqa: E501
"""ResourcesResourceIdBody - a model defined in Swagger""" # noqa: E501
self._name = None
self._create_time = None
self._filename = None
self._external_link = None
self._type = None
self._size = None
self._memo_id = None
self.discriminator = None
if name is not None:
self.name = name
if create_time is not None:
self.create_time = create_time
if filename is not None:
self.filename = filename
if external_link is not None:
self.external_link = external_link
if type is not None:
self.type = type
if size is not None:
self.size = size
if memo_id is not None:
self.memo_id = memo_id
@property
def name(self):
"""Gets the name of this ResourcesResourceIdBody. # noqa: E501
name is the user provided name. # noqa: E501
:return: The name of this ResourcesResourceIdBody. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this ResourcesResourceIdBody.
name is the user provided name. # noqa: E501
:param name: The name of this ResourcesResourceIdBody. # noqa: E501
:type: str
"""
self._name = name
@property
def create_time(self):
"""Gets the create_time of this ResourcesResourceIdBody. # noqa: E501
:return: The create_time of this ResourcesResourceIdBody. # noqa: E501
:rtype: datetime
"""
return self._create_time
@create_time.setter
def create_time(self, create_time):
"""Sets the create_time of this ResourcesResourceIdBody.
:param create_time: The create_time of this ResourcesResourceIdBody. # noqa: E501
:type: datetime
"""
self._create_time = create_time
@property
def filename(self):
"""Gets the filename of this ResourcesResourceIdBody. # noqa: E501
:return: The filename of this ResourcesResourceIdBody. # noqa: E501
:rtype: str
"""
return self._filename
@filename.setter
def filename(self, filename):
"""Sets the filename of this ResourcesResourceIdBody.
:param filename: The filename of this ResourcesResourceIdBody. # noqa: E501
:type: str
"""
self._filename = filename
@property
def external_link(self):
"""Gets the external_link of this ResourcesResourceIdBody. # noqa: E501
:return: The external_link of this ResourcesResourceIdBody. # noqa: E501
:rtype: str
"""
return self._external_link
@external_link.setter
def external_link(self, external_link):
"""Sets the external_link of this ResourcesResourceIdBody.
:param external_link: The external_link of this ResourcesResourceIdBody. # noqa: E501
:type: str
"""
self._external_link = external_link
@property
def type(self):
"""Gets the type of this ResourcesResourceIdBody. # noqa: E501
:return: The type of this ResourcesResourceIdBody. # noqa: E501
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
"""Sets the type of this ResourcesResourceIdBody.
:param type: The type of this ResourcesResourceIdBody. # noqa: E501
:type: str
"""
self._type = type
@property
def size(self):
"""Gets the size of this ResourcesResourceIdBody. # noqa: E501
:return: The size of this ResourcesResourceIdBody. # noqa: E501
:rtype: str
"""
return self._size
@size.setter
def size(self, size):
"""Sets the size of this ResourcesResourceIdBody.
:param size: The size of this ResourcesResourceIdBody. # noqa: E501
:type: str
"""
self._size = size
@property
def memo_id(self):
"""Gets the memo_id of this ResourcesResourceIdBody. # noqa: E501
:return: The memo_id of this ResourcesResourceIdBody. # noqa: E501
:rtype: int
"""
return self._memo_id
@memo_id.setter
def memo_id(self, memo_id):
"""Sets the memo_id of this ResourcesResourceIdBody.
:param memo_id: The memo_id of this ResourcesResourceIdBody. # noqa: E501
:type: int
"""
self._memo_id = memo_id
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(ResourcesResourceIdBody, 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, ResourcesResourceIdBody):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,240 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2Activity(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 = {
'id': 'int',
'creator_id': 'int',
'type': 'str',
'level': 'str',
'create_time': 'datetime',
'payload': 'Apiv2ActivityPayload'
}
attribute_map = {
'id': 'id',
'creator_id': 'creatorId',
'type': 'type',
'level': 'level',
'create_time': 'createTime',
'payload': 'payload'
}
def __init__(self, id=None, creator_id=None, type=None, level=None, create_time=None, payload=None): # noqa: E501
"""V2Activity - a model defined in Swagger""" # noqa: E501
self._id = None
self._creator_id = None
self._type = None
self._level = None
self._create_time = None
self._payload = None
self.discriminator = None
if id is not None:
self.id = id
if creator_id is not None:
self.creator_id = creator_id
if type is not None:
self.type = type
if level is not None:
self.level = level
if create_time is not None:
self.create_time = create_time
if payload is not None:
self.payload = payload
@property
def id(self):
"""Gets the id of this V2Activity. # noqa: E501
:return: The id of this V2Activity. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this V2Activity.
:param id: The id of this V2Activity. # noqa: E501
:type: int
"""
self._id = id
@property
def creator_id(self):
"""Gets the creator_id of this V2Activity. # noqa: E501
:return: The creator_id of this V2Activity. # noqa: E501
:rtype: int
"""
return self._creator_id
@creator_id.setter
def creator_id(self, creator_id):
"""Sets the creator_id of this V2Activity.
:param creator_id: The creator_id of this V2Activity. # noqa: E501
:type: int
"""
self._creator_id = creator_id
@property
def type(self):
"""Gets the type of this V2Activity. # noqa: E501
:return: The type of this V2Activity. # noqa: E501
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
"""Sets the type of this V2Activity.
:param type: The type of this V2Activity. # noqa: E501
:type: str
"""
self._type = type
@property
def level(self):
"""Gets the level of this V2Activity. # noqa: E501
:return: The level of this V2Activity. # noqa: E501
:rtype: str
"""
return self._level
@level.setter
def level(self, level):
"""Sets the level of this V2Activity.
:param level: The level of this V2Activity. # noqa: E501
:type: str
"""
self._level = level
@property
def create_time(self):
"""Gets the create_time of this V2Activity. # noqa: E501
:return: The create_time of this V2Activity. # noqa: E501
:rtype: datetime
"""
return self._create_time
@create_time.setter
def create_time(self, create_time):
"""Sets the create_time of this V2Activity.
:param create_time: The create_time of this V2Activity. # noqa: E501
:type: datetime
"""
self._create_time = create_time
@property
def payload(self):
"""Gets the payload of this V2Activity. # noqa: E501
:return: The payload of this V2Activity. # noqa: E501
:rtype: Apiv2ActivityPayload
"""
return self._payload
@payload.setter
def payload(self, payload):
"""Sets the payload of this V2Activity.
:param payload: The payload of this V2Activity. # noqa: E501
:type: Apiv2ActivityPayload
"""
self._payload = payload
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(V2Activity, 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, V2Activity):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2BatchUpsertTagResponse(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2BatchUpsertTagResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2BatchUpsertTagResponse, 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, V2BatchUpsertTagResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2CreateMemoCommentResponse(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 = {
'memo': 'V2Memo'
}
attribute_map = {
'memo': 'memo'
}
def __init__(self, memo=None): # noqa: E501
"""V2CreateMemoCommentResponse - a model defined in Swagger""" # noqa: E501
self._memo = None
self.discriminator = None
if memo is not None:
self.memo = memo
@property
def memo(self):
"""Gets the memo of this V2CreateMemoCommentResponse. # noqa: E501
:return: The memo of this V2CreateMemoCommentResponse. # noqa: E501
:rtype: V2Memo
"""
return self._memo
@memo.setter
def memo(self, memo):
"""Sets the memo of this V2CreateMemoCommentResponse.
:param memo: The memo of this V2CreateMemoCommentResponse. # noqa: E501
:type: V2Memo
"""
self._memo = memo
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(V2CreateMemoCommentResponse, 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, V2CreateMemoCommentResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,136 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2CreateMemoRequest(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 = {
'content': 'str',
'visibility': 'V2Visibility'
}
attribute_map = {
'content': 'content',
'visibility': 'visibility'
}
def __init__(self, content=None, visibility=None): # noqa: E501
"""V2CreateMemoRequest - a model defined in Swagger""" # noqa: E501
self._content = None
self._visibility = None
self.discriminator = None
if content is not None:
self.content = content
if visibility is not None:
self.visibility = visibility
@property
def content(self):
"""Gets the content of this V2CreateMemoRequest. # noqa: E501
:return: The content of this V2CreateMemoRequest. # noqa: E501
:rtype: str
"""
return self._content
@content.setter
def content(self, content):
"""Sets the content of this V2CreateMemoRequest.
:param content: The content of this V2CreateMemoRequest. # noqa: E501
:type: str
"""
self._content = content
@property
def visibility(self):
"""Gets the visibility of this V2CreateMemoRequest. # noqa: E501
:return: The visibility of this V2CreateMemoRequest. # noqa: E501
:rtype: V2Visibility
"""
return self._visibility
@visibility.setter
def visibility(self, visibility):
"""Sets the visibility of this V2CreateMemoRequest.
:param visibility: The visibility of this V2CreateMemoRequest. # noqa: E501
:type: V2Visibility
"""
self._visibility = visibility
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(V2CreateMemoRequest, 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, V2CreateMemoRequest):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2CreateMemoResponse(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 = {
'memo': 'V2Memo'
}
attribute_map = {
'memo': 'memo'
}
def __init__(self, memo=None): # noqa: E501
"""V2CreateMemoResponse - a model defined in Swagger""" # noqa: E501
self._memo = None
self.discriminator = None
if memo is not None:
self.memo = memo
@property
def memo(self):
"""Gets the memo of this V2CreateMemoResponse. # noqa: E501
:return: The memo of this V2CreateMemoResponse. # noqa: E501
:rtype: V2Memo
"""
return self._memo
@memo.setter
def memo(self, memo):
"""Sets the memo of this V2CreateMemoResponse.
:param memo: The memo of this V2CreateMemoResponse. # noqa: E501
:type: V2Memo
"""
self._memo = memo
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(V2CreateMemoResponse, 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, V2CreateMemoResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2CreateResourceResponse(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 = {
'resource': 'V2Resource'
}
attribute_map = {
'resource': 'resource'
}
def __init__(self, resource=None): # noqa: E501
"""V2CreateResourceResponse - a model defined in Swagger""" # noqa: E501
self._resource = None
self.discriminator = None
if resource is not None:
self.resource = resource
@property
def resource(self):
"""Gets the resource of this V2CreateResourceResponse. # noqa: E501
:return: The resource of this V2CreateResourceResponse. # noqa: E501
:rtype: V2Resource
"""
return self._resource
@resource.setter
def resource(self, resource):
"""Sets the resource of this V2CreateResourceResponse.
:param resource: The resource of this V2CreateResourceResponse. # noqa: E501
:type: V2Resource
"""
self._resource = resource
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(V2CreateResourceResponse, 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, V2CreateResourceResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2CreateUserAccessTokenResponse(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 = {
'access_token': 'V2UserAccessToken'
}
attribute_map = {
'access_token': 'accessToken'
}
def __init__(self, access_token=None): # noqa: E501
"""V2CreateUserAccessTokenResponse - a model defined in Swagger""" # noqa: E501
self._access_token = None
self.discriminator = None
if access_token is not None:
self.access_token = access_token
@property
def access_token(self):
"""Gets the access_token of this V2CreateUserAccessTokenResponse. # noqa: E501
:return: The access_token of this V2CreateUserAccessTokenResponse. # noqa: E501
:rtype: V2UserAccessToken
"""
return self._access_token
@access_token.setter
def access_token(self, access_token):
"""Sets the access_token of this V2CreateUserAccessTokenResponse.
:param access_token: The access_token of this V2CreateUserAccessTokenResponse. # noqa: E501
:type: V2UserAccessToken
"""
self._access_token = access_token
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(V2CreateUserAccessTokenResponse, 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, V2CreateUserAccessTokenResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2CreateUserResponse(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 = {
'user': 'V2User'
}
attribute_map = {
'user': 'user'
}
def __init__(self, user=None): # noqa: E501
"""V2CreateUserResponse - a model defined in Swagger""" # noqa: E501
self._user = None
self.discriminator = None
if user is not None:
self.user = user
@property
def user(self):
"""Gets the user of this V2CreateUserResponse. # noqa: E501
:return: The user of this V2CreateUserResponse. # noqa: E501
:rtype: V2User
"""
return self._user
@user.setter
def user(self, user):
"""Sets the user of this V2CreateUserResponse.
:param user: The user of this V2CreateUserResponse. # noqa: E501
:type: V2User
"""
self._user = user
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(V2CreateUserResponse, 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, V2CreateUserResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,136 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2CreateWebhookRequest(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 = {
'name': 'str',
'url': 'str'
}
attribute_map = {
'name': 'name',
'url': 'url'
}
def __init__(self, name=None, url=None): # noqa: E501
"""V2CreateWebhookRequest - a model defined in Swagger""" # noqa: E501
self._name = None
self._url = None
self.discriminator = None
if name is not None:
self.name = name
if url is not None:
self.url = url
@property
def name(self):
"""Gets the name of this V2CreateWebhookRequest. # noqa: E501
:return: The name of this V2CreateWebhookRequest. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this V2CreateWebhookRequest.
:param name: The name of this V2CreateWebhookRequest. # noqa: E501
:type: str
"""
self._name = name
@property
def url(self):
"""Gets the url of this V2CreateWebhookRequest. # noqa: E501
:return: The url of this V2CreateWebhookRequest. # noqa: E501
:rtype: str
"""
return self._url
@url.setter
def url(self, url):
"""Sets the url of this V2CreateWebhookRequest.
:param url: The url of this V2CreateWebhookRequest. # noqa: E501
:type: str
"""
self._url = url
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(V2CreateWebhookRequest, 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, V2CreateWebhookRequest):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2CreateWebhookResponse(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 = {
'webhook': 'Apiv2Webhook'
}
attribute_map = {
'webhook': 'webhook'
}
def __init__(self, webhook=None): # noqa: E501
"""V2CreateWebhookResponse - a model defined in Swagger""" # noqa: E501
self._webhook = None
self.discriminator = None
if webhook is not None:
self.webhook = webhook
@property
def webhook(self):
"""Gets the webhook of this V2CreateWebhookResponse. # noqa: E501
:return: The webhook of this V2CreateWebhookResponse. # noqa: E501
:rtype: Apiv2Webhook
"""
return self._webhook
@webhook.setter
def webhook(self, webhook):
"""Sets the webhook of this V2CreateWebhookResponse.
:param webhook: The webhook of this V2CreateWebhookResponse. # noqa: E501
:type: Apiv2Webhook
"""
self._webhook = webhook
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(V2CreateWebhookResponse, 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, V2CreateWebhookResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2DeleteInboxResponse(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2DeleteInboxResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2DeleteInboxResponse, 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, V2DeleteInboxResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2DeleteMemoReactionResponse(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2DeleteMemoReactionResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2DeleteMemoReactionResponse, 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, V2DeleteMemoReactionResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2DeleteMemoResponse(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2DeleteMemoResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2DeleteMemoResponse, 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, V2DeleteMemoResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2DeleteResourceResponse(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2DeleteResourceResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2DeleteResourceResponse, 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, V2DeleteResourceResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2DeleteTagResponse(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2DeleteTagResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2DeleteTagResponse, 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, V2DeleteTagResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2DeleteUserAccessTokenResponse(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2DeleteUserAccessTokenResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2DeleteUserAccessTokenResponse, 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, V2DeleteUserAccessTokenResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2DeleteUserResponse(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2DeleteUserResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2DeleteUserResponse, 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, V2DeleteUserResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2DeleteWebhookResponse(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2DeleteWebhookResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2DeleteWebhookResponse, 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, V2DeleteWebhookResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2ExportMemosResponse(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 = {
'content': 'str'
}
attribute_map = {
'content': 'content'
}
def __init__(self, content=None): # noqa: E501
"""V2ExportMemosResponse - a model defined in Swagger""" # noqa: E501
self._content = None
self.discriminator = None
if content is not None:
self.content = content
@property
def content(self):
"""Gets the content of this V2ExportMemosResponse. # noqa: E501
:return: The content of this V2ExportMemosResponse. # noqa: E501
:rtype: str
"""
return self._content
@content.setter
def content(self, content):
"""Sets the content of this V2ExportMemosResponse.
:param content: The content of this V2ExportMemosResponse. # noqa: E501
:type: str
"""
self._content = content
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(V2ExportMemosResponse, 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, V2ExportMemosResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2GetActivityResponse(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 = {
'activity': 'V2Activity'
}
attribute_map = {
'activity': 'activity'
}
def __init__(self, activity=None): # noqa: E501
"""V2GetActivityResponse - a model defined in Swagger""" # noqa: E501
self._activity = None
self.discriminator = None
if activity is not None:
self.activity = activity
@property
def activity(self):
"""Gets the activity of this V2GetActivityResponse. # noqa: E501
:return: The activity of this V2GetActivityResponse. # noqa: E501
:rtype: V2Activity
"""
return self._activity
@activity.setter
def activity(self, activity):
"""Sets the activity of this V2GetActivityResponse.
:param activity: The activity of this V2GetActivityResponse. # noqa: E501
:type: V2Activity
"""
self._activity = activity
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(V2GetActivityResponse, 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, V2GetActivityResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2GetAuthStatusResponse(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 = {
'user': 'V2User'
}
attribute_map = {
'user': 'user'
}
def __init__(self, user=None): # noqa: E501
"""V2GetAuthStatusResponse - a model defined in Swagger""" # noqa: E501
self._user = None
self.discriminator = None
if user is not None:
self.user = user
@property
def user(self):
"""Gets the user of this V2GetAuthStatusResponse. # noqa: E501
:return: The user of this V2GetAuthStatusResponse. # noqa: E501
:rtype: V2User
"""
return self._user
@user.setter
def user(self, user):
"""Sets the user of this V2GetAuthStatusResponse.
:param user: The user of this V2GetAuthStatusResponse. # noqa: E501
:type: V2User
"""
self._user = user
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(V2GetAuthStatusResponse, 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, V2GetAuthStatusResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2GetMemoByNameResponse(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 = {
'memo': 'V2Memo'
}
attribute_map = {
'memo': 'memo'
}
def __init__(self, memo=None): # noqa: E501
"""V2GetMemoByNameResponse - a model defined in Swagger""" # noqa: E501
self._memo = None
self.discriminator = None
if memo is not None:
self.memo = memo
@property
def memo(self):
"""Gets the memo of this V2GetMemoByNameResponse. # noqa: E501
:return: The memo of this V2GetMemoByNameResponse. # noqa: E501
:rtype: V2Memo
"""
return self._memo
@memo.setter
def memo(self, memo):
"""Sets the memo of this V2GetMemoByNameResponse.
:param memo: The memo of this V2GetMemoByNameResponse. # noqa: E501
:type: V2Memo
"""
self._memo = memo
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(V2GetMemoByNameResponse, 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, V2GetMemoByNameResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2GetMemoResponse(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 = {
'memo': 'V2Memo'
}
attribute_map = {
'memo': 'memo'
}
def __init__(self, memo=None): # noqa: E501
"""V2GetMemoResponse - a model defined in Swagger""" # noqa: E501
self._memo = None
self.discriminator = None
if memo is not None:
self.memo = memo
@property
def memo(self):
"""Gets the memo of this V2GetMemoResponse. # noqa: E501
:return: The memo of this V2GetMemoResponse. # noqa: E501
:rtype: V2Memo
"""
return self._memo
@memo.setter
def memo(self, memo):
"""Sets the memo of this V2GetMemoResponse.
:param memo: The memo of this V2GetMemoResponse. # noqa: E501
:type: V2Memo
"""
self._memo = memo
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(V2GetMemoResponse, 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, V2GetMemoResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2GetResourceByNameResponse(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 = {
'resource': 'V2Resource'
}
attribute_map = {
'resource': 'resource'
}
def __init__(self, resource=None): # noqa: E501
"""V2GetResourceByNameResponse - a model defined in Swagger""" # noqa: E501
self._resource = None
self.discriminator = None
if resource is not None:
self.resource = resource
@property
def resource(self):
"""Gets the resource of this V2GetResourceByNameResponse. # noqa: E501
:return: The resource of this V2GetResourceByNameResponse. # noqa: E501
:rtype: V2Resource
"""
return self._resource
@resource.setter
def resource(self, resource):
"""Sets the resource of this V2GetResourceByNameResponse.
:param resource: The resource of this V2GetResourceByNameResponse. # noqa: E501
:type: V2Resource
"""
self._resource = resource
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(V2GetResourceByNameResponse, 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, V2GetResourceByNameResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2GetResourceResponse(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 = {
'resource': 'V2Resource'
}
attribute_map = {
'resource': 'resource'
}
def __init__(self, resource=None): # noqa: E501
"""V2GetResourceResponse - a model defined in Swagger""" # noqa: E501
self._resource = None
self.discriminator = None
if resource is not None:
self.resource = resource
@property
def resource(self):
"""Gets the resource of this V2GetResourceResponse. # noqa: E501
:return: The resource of this V2GetResourceResponse. # noqa: E501
:rtype: V2Resource
"""
return self._resource
@resource.setter
def resource(self, resource):
"""Sets the resource of this V2GetResourceResponse.
:param resource: The resource of this V2GetResourceResponse. # noqa: E501
:type: V2Resource
"""
self._resource = resource
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(V2GetResourceResponse, 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, V2GetResourceResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2GetTagSuggestionsResponse(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 = {
'tags': 'list[str]'
}
attribute_map = {
'tags': 'tags'
}
def __init__(self, tags=None): # noqa: E501
"""V2GetTagSuggestionsResponse - a model defined in Swagger""" # noqa: E501
self._tags = None
self.discriminator = None
if tags is not None:
self.tags = tags
@property
def tags(self):
"""Gets the tags of this V2GetTagSuggestionsResponse. # noqa: E501
:return: The tags of this V2GetTagSuggestionsResponse. # noqa: E501
:rtype: list[str]
"""
return self._tags
@tags.setter
def tags(self, tags):
"""Sets the tags of this V2GetTagSuggestionsResponse.
:param tags: The tags of this V2GetTagSuggestionsResponse. # noqa: E501
:type: list[str]
"""
self._tags = tags
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(V2GetTagSuggestionsResponse, 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, V2GetTagSuggestionsResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,112 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2GetUserMemosStatsResponse(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 = {
'stats': 'dict(str, int)'
}
attribute_map = {
'stats': 'stats'
}
def __init__(self, stats=None): # noqa: E501
"""V2GetUserMemosStatsResponse - a model defined in Swagger""" # noqa: E501
self._stats = None
self.discriminator = None
if stats is not None:
self.stats = stats
@property
def stats(self):
"""Gets the stats of this V2GetUserMemosStatsResponse. # noqa: E501
stats is the stats of memo creating/updating activities. key is the year-month-day string. e.g. \"2020-01-01\". # noqa: E501
:return: The stats of this V2GetUserMemosStatsResponse. # noqa: E501
:rtype: dict(str, int)
"""
return self._stats
@stats.setter
def stats(self, stats):
"""Sets the stats of this V2GetUserMemosStatsResponse.
stats is the stats of memo creating/updating activities. key is the year-month-day string. e.g. \"2020-01-01\". # noqa: E501
:param stats: The stats of this V2GetUserMemosStatsResponse. # noqa: E501
:type: dict(str, int)
"""
self._stats = stats
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(V2GetUserMemosStatsResponse, 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, V2GetUserMemosStatsResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2GetUserResponse(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 = {
'user': 'V2User'
}
attribute_map = {
'user': 'user'
}
def __init__(self, user=None): # noqa: E501
"""V2GetUserResponse - a model defined in Swagger""" # noqa: E501
self._user = None
self.discriminator = None
if user is not None:
self.user = user
@property
def user(self):
"""Gets the user of this V2GetUserResponse. # noqa: E501
:return: The user of this V2GetUserResponse. # noqa: E501
:rtype: V2User
"""
return self._user
@user.setter
def user(self, user):
"""Sets the user of this V2GetUserResponse.
:param user: The user of this V2GetUserResponse. # noqa: E501
:type: V2User
"""
self._user = user
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(V2GetUserResponse, 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, V2GetUserResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2GetUserSettingResponse(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 = {
'setting': 'Apiv2UserSetting'
}
attribute_map = {
'setting': 'setting'
}
def __init__(self, setting=None): # noqa: E501
"""V2GetUserSettingResponse - a model defined in Swagger""" # noqa: E501
self._setting = None
self.discriminator = None
if setting is not None:
self.setting = setting
@property
def setting(self):
"""Gets the setting of this V2GetUserSettingResponse. # noqa: E501
:return: The setting of this V2GetUserSettingResponse. # noqa: E501
:rtype: Apiv2UserSetting
"""
return self._setting
@setting.setter
def setting(self, setting):
"""Sets the setting of this V2GetUserSettingResponse.
:param setting: The setting of this V2GetUserSettingResponse. # noqa: E501
:type: Apiv2UserSetting
"""
self._setting = setting
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(V2GetUserSettingResponse, 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, V2GetUserSettingResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2GetWebhookResponse(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 = {
'webhook': 'Apiv2Webhook'
}
attribute_map = {
'webhook': 'webhook'
}
def __init__(self, webhook=None): # noqa: E501
"""V2GetWebhookResponse - a model defined in Swagger""" # noqa: E501
self._webhook = None
self.discriminator = None
if webhook is not None:
self.webhook = webhook
@property
def webhook(self):
"""Gets the webhook of this V2GetWebhookResponse. # noqa: E501
:return: The webhook of this V2GetWebhookResponse. # noqa: E501
:rtype: Apiv2Webhook
"""
return self._webhook
@webhook.setter
def webhook(self, webhook):
"""Sets the webhook of this V2GetWebhookResponse.
:param webhook: The webhook of this V2GetWebhookResponse. # noqa: E501
:type: Apiv2Webhook
"""
self._webhook = webhook
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(V2GetWebhookResponse, 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, V2GetWebhookResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2GetWorkspaceProfileResponse(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 = {
'workspace_profile': 'V2WorkspaceProfile'
}
attribute_map = {
'workspace_profile': 'workspaceProfile'
}
def __init__(self, workspace_profile=None): # noqa: E501
"""V2GetWorkspaceProfileResponse - a model defined in Swagger""" # noqa: E501
self._workspace_profile = None
self.discriminator = None
if workspace_profile is not None:
self.workspace_profile = workspace_profile
@property
def workspace_profile(self):
"""Gets the workspace_profile of this V2GetWorkspaceProfileResponse. # noqa: E501
:return: The workspace_profile of this V2GetWorkspaceProfileResponse. # noqa: E501
:rtype: V2WorkspaceProfile
"""
return self._workspace_profile
@workspace_profile.setter
def workspace_profile(self, workspace_profile):
"""Sets the workspace_profile of this V2GetWorkspaceProfileResponse.
:param workspace_profile: The workspace_profile of this V2GetWorkspaceProfileResponse. # noqa: E501
:type: V2WorkspaceProfile
"""
self._workspace_profile = workspace_profile
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(V2GetWorkspaceProfileResponse, 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, V2GetWorkspaceProfileResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2GetWorkspaceSettingResponse(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 = {
'setting': 'Apiv2WorkspaceSetting'
}
attribute_map = {
'setting': 'setting'
}
def __init__(self, setting=None): # noqa: E501
"""V2GetWorkspaceSettingResponse - a model defined in Swagger""" # noqa: E501
self._setting = None
self.discriminator = None
if setting is not None:
self.setting = setting
@property
def setting(self):
"""Gets the setting of this V2GetWorkspaceSettingResponse. # noqa: E501
:return: The setting of this V2GetWorkspaceSettingResponse. # noqa: E501
:rtype: Apiv2WorkspaceSetting
"""
return self._setting
@setting.setter
def setting(self, setting):
"""Sets the setting of this V2GetWorkspaceSettingResponse.
:param setting: The setting of this V2GetWorkspaceSettingResponse. # noqa: E501
:type: Apiv2WorkspaceSetting
"""
self._setting = setting
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(V2GetWorkspaceSettingResponse, 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, V2GetWorkspaceSettingResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,266 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2Inbox(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 = {
'name': 'str',
'sender': 'str',
'receiver': 'str',
'status': 'V2InboxStatus',
'create_time': 'datetime',
'type': 'V2InboxType',
'activity_id': 'int'
}
attribute_map = {
'name': 'name',
'sender': 'sender',
'receiver': 'receiver',
'status': 'status',
'create_time': 'createTime',
'type': 'type',
'activity_id': 'activityId'
}
def __init__(self, name=None, sender=None, receiver=None, status=None, create_time=None, type=None, activity_id=None): # noqa: E501
"""V2Inbox - a model defined in Swagger""" # noqa: E501
self._name = None
self._sender = None
self._receiver = None
self._status = None
self._create_time = None
self._type = None
self._activity_id = None
self.discriminator = None
if name is not None:
self.name = name
if sender is not None:
self.sender = sender
if receiver is not None:
self.receiver = receiver
if status is not None:
self.status = status
if create_time is not None:
self.create_time = create_time
if type is not None:
self.type = type
if activity_id is not None:
self.activity_id = activity_id
@property
def name(self):
"""Gets the name of this V2Inbox. # noqa: E501
:return: The name of this V2Inbox. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this V2Inbox.
:param name: The name of this V2Inbox. # noqa: E501
:type: str
"""
self._name = name
@property
def sender(self):
"""Gets the sender of this V2Inbox. # noqa: E501
:return: The sender of this V2Inbox. # noqa: E501
:rtype: str
"""
return self._sender
@sender.setter
def sender(self, sender):
"""Sets the sender of this V2Inbox.
:param sender: The sender of this V2Inbox. # noqa: E501
:type: str
"""
self._sender = sender
@property
def receiver(self):
"""Gets the receiver of this V2Inbox. # noqa: E501
:return: The receiver of this V2Inbox. # noqa: E501
:rtype: str
"""
return self._receiver
@receiver.setter
def receiver(self, receiver):
"""Sets the receiver of this V2Inbox.
:param receiver: The receiver of this V2Inbox. # noqa: E501
:type: str
"""
self._receiver = receiver
@property
def status(self):
"""Gets the status of this V2Inbox. # noqa: E501
:return: The status of this V2Inbox. # noqa: E501
:rtype: V2InboxStatus
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this V2Inbox.
:param status: The status of this V2Inbox. # noqa: E501
:type: V2InboxStatus
"""
self._status = status
@property
def create_time(self):
"""Gets the create_time of this V2Inbox. # noqa: E501
:return: The create_time of this V2Inbox. # noqa: E501
:rtype: datetime
"""
return self._create_time
@create_time.setter
def create_time(self, create_time):
"""Sets the create_time of this V2Inbox.
:param create_time: The create_time of this V2Inbox. # noqa: E501
:type: datetime
"""
self._create_time = create_time
@property
def type(self):
"""Gets the type of this V2Inbox. # noqa: E501
:return: The type of this V2Inbox. # noqa: E501
:rtype: V2InboxType
"""
return self._type
@type.setter
def type(self, type):
"""Sets the type of this V2Inbox.
:param type: The type of this V2Inbox. # noqa: E501
:type: V2InboxType
"""
self._type = type
@property
def activity_id(self):
"""Gets the activity_id of this V2Inbox. # noqa: E501
:return: The activity_id of this V2Inbox. # noqa: E501
:rtype: int
"""
return self._activity_id
@activity_id.setter
def activity_id(self, activity_id):
"""Sets the activity_id of this V2Inbox.
:param activity_id: The activity_id of this V2Inbox. # noqa: E501
:type: int
"""
self._activity_id = activity_id
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(V2Inbox, 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, V2Inbox):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,240 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2InboxNameBody(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 = {
'sender': 'str',
'receiver': 'str',
'status': 'V2InboxStatus',
'create_time': 'datetime',
'type': 'V2InboxType',
'activity_id': 'int'
}
attribute_map = {
'sender': 'sender',
'receiver': 'receiver',
'status': 'status',
'create_time': 'createTime',
'type': 'type',
'activity_id': 'activityId'
}
def __init__(self, sender=None, receiver=None, status=None, create_time=None, type=None, activity_id=None): # noqa: E501
"""V2InboxNameBody - a model defined in Swagger""" # noqa: E501
self._sender = None
self._receiver = None
self._status = None
self._create_time = None
self._type = None
self._activity_id = None
self.discriminator = None
if sender is not None:
self.sender = sender
if receiver is not None:
self.receiver = receiver
if status is not None:
self.status = status
if create_time is not None:
self.create_time = create_time
if type is not None:
self.type = type
if activity_id is not None:
self.activity_id = activity_id
@property
def sender(self):
"""Gets the sender of this V2InboxNameBody. # noqa: E501
:return: The sender of this V2InboxNameBody. # noqa: E501
:rtype: str
"""
return self._sender
@sender.setter
def sender(self, sender):
"""Sets the sender of this V2InboxNameBody.
:param sender: The sender of this V2InboxNameBody. # noqa: E501
:type: str
"""
self._sender = sender
@property
def receiver(self):
"""Gets the receiver of this V2InboxNameBody. # noqa: E501
:return: The receiver of this V2InboxNameBody. # noqa: E501
:rtype: str
"""
return self._receiver
@receiver.setter
def receiver(self, receiver):
"""Sets the receiver of this V2InboxNameBody.
:param receiver: The receiver of this V2InboxNameBody. # noqa: E501
:type: str
"""
self._receiver = receiver
@property
def status(self):
"""Gets the status of this V2InboxNameBody. # noqa: E501
:return: The status of this V2InboxNameBody. # noqa: E501
:rtype: V2InboxStatus
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this V2InboxNameBody.
:param status: The status of this V2InboxNameBody. # noqa: E501
:type: V2InboxStatus
"""
self._status = status
@property
def create_time(self):
"""Gets the create_time of this V2InboxNameBody. # noqa: E501
:return: The create_time of this V2InboxNameBody. # noqa: E501
:rtype: datetime
"""
return self._create_time
@create_time.setter
def create_time(self, create_time):
"""Sets the create_time of this V2InboxNameBody.
:param create_time: The create_time of this V2InboxNameBody. # noqa: E501
:type: datetime
"""
self._create_time = create_time
@property
def type(self):
"""Gets the type of this V2InboxNameBody. # noqa: E501
:return: The type of this V2InboxNameBody. # noqa: E501
:rtype: V2InboxType
"""
return self._type
@type.setter
def type(self, type):
"""Sets the type of this V2InboxNameBody.
:param type: The type of this V2InboxNameBody. # noqa: E501
:type: V2InboxType
"""
self._type = type
@property
def activity_id(self):
"""Gets the activity_id of this V2InboxNameBody. # noqa: E501
:return: The activity_id of this V2InboxNameBody. # noqa: E501
:rtype: int
"""
return self._activity_id
@activity_id.setter
def activity_id(self, activity_id):
"""Sets the activity_id of this V2InboxNameBody.
:param activity_id: The activity_id of this V2InboxNameBody. # noqa: E501
:type: int
"""
self._activity_id = activity_id
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(V2InboxNameBody, 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, V2InboxNameBody):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,91 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2InboxStatus(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
allowed enum values
"""
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED"
UNREAD = "UNREAD"
ARCHIVED = "ARCHIVED"
"""
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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2InboxStatus - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2InboxStatus, 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, V2InboxStatus):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,91 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2InboxType(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
allowed enum values
"""
UNSPECIFIED = "TYPE_UNSPECIFIED"
MEMO_COMMENT = "TYPE_MEMO_COMMENT"
VERSION_UPDATE = "TYPE_VERSION_UPDATE"
"""
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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2InboxType - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2InboxType, 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, V2InboxType):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2ListInboxesResponse(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 = {
'inboxes': 'list[V2Inbox]'
}
attribute_map = {
'inboxes': 'inboxes'
}
def __init__(self, inboxes=None): # noqa: E501
"""V2ListInboxesResponse - a model defined in Swagger""" # noqa: E501
self._inboxes = None
self.discriminator = None
if inboxes is not None:
self.inboxes = inboxes
@property
def inboxes(self):
"""Gets the inboxes of this V2ListInboxesResponse. # noqa: E501
:return: The inboxes of this V2ListInboxesResponse. # noqa: E501
:rtype: list[V2Inbox]
"""
return self._inboxes
@inboxes.setter
def inboxes(self, inboxes):
"""Sets the inboxes of this V2ListInboxesResponse.
:param inboxes: The inboxes of this V2ListInboxesResponse. # noqa: E501
:type: list[V2Inbox]
"""
self._inboxes = inboxes
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(V2ListInboxesResponse, 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, V2ListInboxesResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2ListMemoCommentsResponse(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 = {
'memos': 'list[V2Memo]'
}
attribute_map = {
'memos': 'memos'
}
def __init__(self, memos=None): # noqa: E501
"""V2ListMemoCommentsResponse - a model defined in Swagger""" # noqa: E501
self._memos = None
self.discriminator = None
if memos is not None:
self.memos = memos
@property
def memos(self):
"""Gets the memos of this V2ListMemoCommentsResponse. # noqa: E501
:return: The memos of this V2ListMemoCommentsResponse. # noqa: E501
:rtype: list[V2Memo]
"""
return self._memos
@memos.setter
def memos(self, memos):
"""Sets the memos of this V2ListMemoCommentsResponse.
:param memos: The memos of this V2ListMemoCommentsResponse. # noqa: E501
:type: list[V2Memo]
"""
self._memos = memos
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(V2ListMemoCommentsResponse, 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, V2ListMemoCommentsResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2ListMemoReactionsResponse(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 = {
'reactions': 'list[Apiv2Reaction]'
}
attribute_map = {
'reactions': 'reactions'
}
def __init__(self, reactions=None): # noqa: E501
"""V2ListMemoReactionsResponse - a model defined in Swagger""" # noqa: E501
self._reactions = None
self.discriminator = None
if reactions is not None:
self.reactions = reactions
@property
def reactions(self):
"""Gets the reactions of this V2ListMemoReactionsResponse. # noqa: E501
:return: The reactions of this V2ListMemoReactionsResponse. # noqa: E501
:rtype: list[Apiv2Reaction]
"""
return self._reactions
@reactions.setter
def reactions(self, reactions):
"""Sets the reactions of this V2ListMemoReactionsResponse.
:param reactions: The reactions of this V2ListMemoReactionsResponse. # noqa: E501
:type: list[Apiv2Reaction]
"""
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(V2ListMemoReactionsResponse, 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, V2ListMemoReactionsResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2ListMemoRelationsResponse(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 = {
'relations': 'list[V2MemoRelation]'
}
attribute_map = {
'relations': 'relations'
}
def __init__(self, relations=None): # noqa: E501
"""V2ListMemoRelationsResponse - a model defined in Swagger""" # noqa: E501
self._relations = None
self.discriminator = None
if relations is not None:
self.relations = relations
@property
def relations(self):
"""Gets the relations of this V2ListMemoRelationsResponse. # noqa: E501
:return: The relations of this V2ListMemoRelationsResponse. # noqa: E501
:rtype: list[V2MemoRelation]
"""
return self._relations
@relations.setter
def relations(self, relations):
"""Sets the relations of this V2ListMemoRelationsResponse.
:param relations: The relations of this V2ListMemoRelationsResponse. # noqa: E501
:type: list[V2MemoRelation]
"""
self._relations = relations
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(V2ListMemoRelationsResponse, 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, V2ListMemoRelationsResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2ListMemoResourcesResponse(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 = {
'resources': 'list[V2Resource]'
}
attribute_map = {
'resources': 'resources'
}
def __init__(self, resources=None): # noqa: E501
"""V2ListMemoResourcesResponse - a model defined in Swagger""" # noqa: E501
self._resources = None
self.discriminator = None
if resources is not None:
self.resources = resources
@property
def resources(self):
"""Gets the resources of this V2ListMemoResourcesResponse. # noqa: E501
:return: The resources of this V2ListMemoResourcesResponse. # noqa: E501
:rtype: list[V2Resource]
"""
return self._resources
@resources.setter
def resources(self, resources):
"""Sets the resources of this V2ListMemoResourcesResponse.
:param resources: The resources of this V2ListMemoResourcesResponse. # noqa: E501
:type: list[V2Resource]
"""
self._resources = resources
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(V2ListMemoResourcesResponse, 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, V2ListMemoResourcesResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,138 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2ListMemosResponse(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 = {
'memos': 'list[V2Memo]',
'next_page_token': 'str'
}
attribute_map = {
'memos': 'memos',
'next_page_token': 'nextPageToken'
}
def __init__(self, memos=None, next_page_token=None): # noqa: E501
"""V2ListMemosResponse - a model defined in Swagger""" # noqa: E501
self._memos = None
self._next_page_token = None
self.discriminator = None
if memos is not None:
self.memos = memos
if next_page_token is not None:
self.next_page_token = next_page_token
@property
def memos(self):
"""Gets the memos of this V2ListMemosResponse. # noqa: E501
:return: The memos of this V2ListMemosResponse. # noqa: E501
:rtype: list[V2Memo]
"""
return self._memos
@memos.setter
def memos(self, memos):
"""Sets the memos of this V2ListMemosResponse.
:param memos: The memos of this V2ListMemosResponse. # noqa: E501
:type: list[V2Memo]
"""
self._memos = memos
@property
def next_page_token(self):
"""Gets the next_page_token of this V2ListMemosResponse. # noqa: E501
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. # noqa: E501
:return: The next_page_token of this V2ListMemosResponse. # noqa: E501
:rtype: str
"""
return self._next_page_token
@next_page_token.setter
def next_page_token(self, next_page_token):
"""Sets the next_page_token of this V2ListMemosResponse.
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. # noqa: E501
:param next_page_token: The next_page_token of this V2ListMemosResponse. # noqa: E501
:type: str
"""
self._next_page_token = next_page_token
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(V2ListMemosResponse, 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, V2ListMemosResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2ListResourcesResponse(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 = {
'resources': 'list[V2Resource]'
}
attribute_map = {
'resources': 'resources'
}
def __init__(self, resources=None): # noqa: E501
"""V2ListResourcesResponse - a model defined in Swagger""" # noqa: E501
self._resources = None
self.discriminator = None
if resources is not None:
self.resources = resources
@property
def resources(self):
"""Gets the resources of this V2ListResourcesResponse. # noqa: E501
:return: The resources of this V2ListResourcesResponse. # noqa: E501
:rtype: list[V2Resource]
"""
return self._resources
@resources.setter
def resources(self, resources):
"""Sets the resources of this V2ListResourcesResponse.
:param resources: The resources of this V2ListResourcesResponse. # noqa: E501
:type: list[V2Resource]
"""
self._resources = resources
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(V2ListResourcesResponse, 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, V2ListResourcesResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2ListTagsResponse(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 = {
'tags': 'list[V2Tag]'
}
attribute_map = {
'tags': 'tags'
}
def __init__(self, tags=None): # noqa: E501
"""V2ListTagsResponse - a model defined in Swagger""" # noqa: E501
self._tags = None
self.discriminator = None
if tags is not None:
self.tags = tags
@property
def tags(self):
"""Gets the tags of this V2ListTagsResponse. # noqa: E501
:return: The tags of this V2ListTagsResponse. # noqa: E501
:rtype: list[V2Tag]
"""
return self._tags
@tags.setter
def tags(self, tags):
"""Sets the tags of this V2ListTagsResponse.
:param tags: The tags of this V2ListTagsResponse. # noqa: E501
:type: list[V2Tag]
"""
self._tags = tags
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(V2ListTagsResponse, 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, V2ListTagsResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2ListUserAccessTokensResponse(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 = {
'access_tokens': 'list[V2UserAccessToken]'
}
attribute_map = {
'access_tokens': 'accessTokens'
}
def __init__(self, access_tokens=None): # noqa: E501
"""V2ListUserAccessTokensResponse - a model defined in Swagger""" # noqa: E501
self._access_tokens = None
self.discriminator = None
if access_tokens is not None:
self.access_tokens = access_tokens
@property
def access_tokens(self):
"""Gets the access_tokens of this V2ListUserAccessTokensResponse. # noqa: E501
:return: The access_tokens of this V2ListUserAccessTokensResponse. # noqa: E501
:rtype: list[V2UserAccessToken]
"""
return self._access_tokens
@access_tokens.setter
def access_tokens(self, access_tokens):
"""Sets the access_tokens of this V2ListUserAccessTokensResponse.
:param access_tokens: The access_tokens of this V2ListUserAccessTokensResponse. # noqa: E501
:type: list[V2UserAccessToken]
"""
self._access_tokens = access_tokens
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(V2ListUserAccessTokensResponse, 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, V2ListUserAccessTokensResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2ListUsersResponse(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 = {
'users': 'list[V2User]'
}
attribute_map = {
'users': 'users'
}
def __init__(self, users=None): # noqa: E501
"""V2ListUsersResponse - a model defined in Swagger""" # noqa: E501
self._users = None
self.discriminator = None
if users is not None:
self.users = users
@property
def users(self):
"""Gets the users of this V2ListUsersResponse. # noqa: E501
:return: The users of this V2ListUsersResponse. # noqa: E501
:rtype: list[V2User]
"""
return self._users
@users.setter
def users(self, users):
"""Sets the users of this V2ListUsersResponse.
:param users: The users of this V2ListUsersResponse. # noqa: E501
:type: list[V2User]
"""
self._users = users
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(V2ListUsersResponse, 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, V2ListUsersResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2ListWebhooksResponse(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 = {
'webhooks': 'list[Apiv2Webhook]'
}
attribute_map = {
'webhooks': 'webhooks'
}
def __init__(self, webhooks=None): # noqa: E501
"""V2ListWebhooksResponse - a model defined in Swagger""" # noqa: E501
self._webhooks = None
self.discriminator = None
if webhooks is not None:
self.webhooks = webhooks
@property
def webhooks(self):
"""Gets the webhooks of this V2ListWebhooksResponse. # noqa: E501
:return: The webhooks of this V2ListWebhooksResponse. # noqa: E501
:rtype: list[Apiv2Webhook]
"""
return self._webhooks
@webhooks.setter
def webhooks(self, webhooks):
"""Sets the webhooks of this V2ListWebhooksResponse.
:param webhooks: The webhooks of this V2ListWebhooksResponse. # noqa: E501
:type: list[Apiv2Webhook]
"""
self._webhooks = webhooks
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(V2ListWebhooksResponse, 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, V2ListWebhooksResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,478 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2Memo(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 = {
'id': 'int',
'name': 'str',
'row_status': 'Apiv2RowStatus',
'creator': 'str',
'creator_id': 'int',
'create_time': 'datetime',
'update_time': 'datetime',
'display_time': 'datetime',
'content': 'str',
'visibility': 'V2Visibility',
'pinned': 'bool',
'parent_id': 'int',
'resources': 'list[V2Resource]',
'relations': 'list[V2MemoRelation]',
'reactions': 'list[Apiv2Reaction]'
}
attribute_map = {
'id': 'id',
'name': 'name',
'row_status': 'rowStatus',
'creator': 'creator',
'creator_id': 'creatorId',
'create_time': 'createTime',
'update_time': 'updateTime',
'display_time': 'displayTime',
'content': 'content',
'visibility': 'visibility',
'pinned': 'pinned',
'parent_id': 'parentId',
'resources': 'resources',
'relations': 'relations',
'reactions': 'reactions'
}
def __init__(self, id=None, name=None, row_status=None, creator=None, creator_id=None, create_time=None, update_time=None, display_time=None, content=None, visibility=None, pinned=None, parent_id=None, resources=None, relations=None, reactions=None): # noqa: E501
"""V2Memo - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._row_status = None
self._creator = None
self._creator_id = None
self._create_time = None
self._update_time = None
self._display_time = None
self._content = None
self._visibility = None
self._pinned = None
self._parent_id = None
self._resources = None
self._relations = None
self._reactions = None
self.discriminator = None
if id is not None:
self.id = id
if name is not None:
self.name = name
if row_status is not None:
self.row_status = row_status
if creator is not None:
self.creator = creator
if creator_id is not None:
self.creator_id = creator_id
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 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 id(self):
"""Gets the id of this V2Memo. # noqa: E501
id is the system generated unique identifier. # noqa: E501
:return: The id of this V2Memo. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this V2Memo.
id is the system generated unique identifier. # noqa: E501
:param id: The id of this V2Memo. # noqa: E501
:type: int
"""
self._id = id
@property
def name(self):
"""Gets the name of this V2Memo. # noqa: E501
name is the user provided name. # noqa: E501
:return: The name of this V2Memo. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this V2Memo.
name is the user provided name. # noqa: E501
:param name: The name of this V2Memo. # noqa: E501
:type: str
"""
self._name = name
@property
def row_status(self):
"""Gets the row_status of this V2Memo. # noqa: E501
:return: The row_status of this V2Memo. # noqa: E501
:rtype: Apiv2RowStatus
"""
return self._row_status
@row_status.setter
def row_status(self, row_status):
"""Sets the row_status of this V2Memo.
:param row_status: The row_status of this V2Memo. # noqa: E501
:type: Apiv2RowStatus
"""
self._row_status = row_status
@property
def creator(self):
"""Gets the creator of this V2Memo. # noqa: E501
:return: The creator of this V2Memo. # noqa: E501
:rtype: str
"""
return self._creator
@creator.setter
def creator(self, creator):
"""Sets the creator of this V2Memo.
:param creator: The creator of this V2Memo. # noqa: E501
:type: str
"""
self._creator = creator
@property
def creator_id(self):
"""Gets the creator_id of this V2Memo. # noqa: E501
:return: The creator_id of this V2Memo. # noqa: E501
:rtype: int
"""
return self._creator_id
@creator_id.setter
def creator_id(self, creator_id):
"""Sets the creator_id of this V2Memo.
:param creator_id: The creator_id of this V2Memo. # noqa: E501
:type: int
"""
self._creator_id = creator_id
@property
def create_time(self):
"""Gets the create_time of this V2Memo. # noqa: E501
:return: The create_time of this V2Memo. # noqa: E501
:rtype: datetime
"""
return self._create_time
@create_time.setter
def create_time(self, create_time):
"""Sets the create_time of this V2Memo.
:param create_time: The create_time of this V2Memo. # noqa: E501
:type: datetime
"""
self._create_time = create_time
@property
def update_time(self):
"""Gets the update_time of this V2Memo. # noqa: E501
:return: The update_time of this V2Memo. # noqa: E501
:rtype: datetime
"""
return self._update_time
@update_time.setter
def update_time(self, update_time):
"""Sets the update_time of this V2Memo.
:param update_time: The update_time of this V2Memo. # noqa: E501
:type: datetime
"""
self._update_time = update_time
@property
def display_time(self):
"""Gets the display_time of this V2Memo. # noqa: E501
:return: The display_time of this V2Memo. # noqa: E501
:rtype: datetime
"""
return self._display_time
@display_time.setter
def display_time(self, display_time):
"""Sets the display_time of this V2Memo.
:param display_time: The display_time of this V2Memo. # noqa: E501
:type: datetime
"""
self._display_time = display_time
@property
def content(self):
"""Gets the content of this V2Memo. # noqa: E501
:return: The content of this V2Memo. # noqa: E501
:rtype: str
"""
return self._content
@content.setter
def content(self, content):
"""Sets the content of this V2Memo.
:param content: The content of this V2Memo. # noqa: E501
:type: str
"""
self._content = content
@property
def visibility(self):
"""Gets the visibility of this V2Memo. # noqa: E501
:return: The visibility of this V2Memo. # noqa: E501
:rtype: V2Visibility
"""
return self._visibility
@visibility.setter
def visibility(self, visibility):
"""Sets the visibility of this V2Memo.
:param visibility: The visibility of this V2Memo. # noqa: E501
:type: V2Visibility
"""
self._visibility = visibility
@property
def pinned(self):
"""Gets the pinned of this V2Memo. # noqa: E501
:return: The pinned of this V2Memo. # noqa: E501
:rtype: bool
"""
return self._pinned
@pinned.setter
def pinned(self, pinned):
"""Sets the pinned of this V2Memo.
:param pinned: The pinned of this V2Memo. # noqa: E501
:type: bool
"""
self._pinned = pinned
@property
def parent_id(self):
"""Gets the parent_id of this V2Memo. # noqa: E501
:return: The parent_id of this V2Memo. # noqa: E501
:rtype: int
"""
return self._parent_id
@parent_id.setter
def parent_id(self, parent_id):
"""Sets the parent_id of this V2Memo.
:param parent_id: The parent_id of this V2Memo. # noqa: E501
:type: int
"""
self._parent_id = parent_id
@property
def resources(self):
"""Gets the resources of this V2Memo. # noqa: E501
:return: The resources of this V2Memo. # noqa: E501
:rtype: list[V2Resource]
"""
return self._resources
@resources.setter
def resources(self, resources):
"""Sets the resources of this V2Memo.
:param resources: The resources of this V2Memo. # noqa: E501
:type: list[V2Resource]
"""
self._resources = resources
@property
def relations(self):
"""Gets the relations of this V2Memo. # noqa: E501
:return: The relations of this V2Memo. # noqa: E501
:rtype: list[V2MemoRelation]
"""
return self._relations
@relations.setter
def relations(self, relations):
"""Sets the relations of this V2Memo.
:param relations: The relations of this V2Memo. # noqa: E501
:type: list[V2MemoRelation]
"""
self._relations = relations
@property
def reactions(self):
"""Gets the reactions of this V2Memo. # noqa: E501
:return: The reactions of this V2Memo. # noqa: E501
:rtype: list[Apiv2Reaction]
"""
return self._reactions
@reactions.setter
def reactions(self, reactions):
"""Sets the reactions of this V2Memo.
:param reactions: The reactions of this V2Memo. # noqa: E501
:type: list[Apiv2Reaction]
"""
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(V2Memo, 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, V2Memo):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,162 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2MemoRelation(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 = {
'memo_id': 'int',
'related_memo_id': 'int',
'type': 'V2MemoRelationType'
}
attribute_map = {
'memo_id': 'memoId',
'related_memo_id': 'relatedMemoId',
'type': 'type'
}
def __init__(self, memo_id=None, related_memo_id=None, type=None): # noqa: E501
"""V2MemoRelation - a model defined in Swagger""" # noqa: E501
self._memo_id = None
self._related_memo_id = None
self._type = None
self.discriminator = None
if memo_id is not None:
self.memo_id = memo_id
if related_memo_id is not None:
self.related_memo_id = related_memo_id
if type is not None:
self.type = type
@property
def memo_id(self):
"""Gets the memo_id of this V2MemoRelation. # noqa: E501
:return: The memo_id of this V2MemoRelation. # noqa: E501
:rtype: int
"""
return self._memo_id
@memo_id.setter
def memo_id(self, memo_id):
"""Sets the memo_id of this V2MemoRelation.
:param memo_id: The memo_id of this V2MemoRelation. # noqa: E501
:type: int
"""
self._memo_id = memo_id
@property
def related_memo_id(self):
"""Gets the related_memo_id of this V2MemoRelation. # noqa: E501
:return: The related_memo_id of this V2MemoRelation. # noqa: E501
:rtype: int
"""
return self._related_memo_id
@related_memo_id.setter
def related_memo_id(self, related_memo_id):
"""Sets the related_memo_id of this V2MemoRelation.
:param related_memo_id: The related_memo_id of this V2MemoRelation. # noqa: E501
:type: int
"""
self._related_memo_id = related_memo_id
@property
def type(self):
"""Gets the type of this V2MemoRelation. # noqa: E501
:return: The type of this V2MemoRelation. # noqa: E501
:rtype: V2MemoRelationType
"""
return self._type
@type.setter
def type(self, type):
"""Sets the type of this V2MemoRelation.
:param type: The type of this V2MemoRelation. # noqa: E501
:type: V2MemoRelationType
"""
self._type = type
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(V2MemoRelation, 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, V2MemoRelation):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,91 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2MemoRelationType(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
allowed enum values
"""
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED"
REFERENCE = "REFERENCE"
COMMENT = "COMMENT"
"""
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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2MemoRelationType - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2MemoRelationType, 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, V2MemoRelationType):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2RenameTagResponse(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 = {
'tag': 'V2Tag'
}
attribute_map = {
'tag': 'tag'
}
def __init__(self, tag=None): # noqa: E501
"""V2RenameTagResponse - a model defined in Swagger""" # noqa: E501
self._tag = None
self.discriminator = None
if tag is not None:
self.tag = tag
@property
def tag(self):
"""Gets the tag of this V2RenameTagResponse. # noqa: E501
:return: The tag of this V2RenameTagResponse. # noqa: E501
:rtype: V2Tag
"""
return self._tag
@tag.setter
def tag(self, tag):
"""Sets the tag of this V2RenameTagResponse.
:param tag: The tag of this V2RenameTagResponse. # noqa: E501
:type: V2Tag
"""
self._tag = tag
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(V2RenameTagResponse, 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, V2RenameTagResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,296 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2Resource(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 = {
'id': 'int',
'name': 'str',
'create_time': 'datetime',
'filename': 'str',
'external_link': 'str',
'type': 'str',
'size': 'str',
'memo_id': 'int'
}
attribute_map = {
'id': 'id',
'name': 'name',
'create_time': 'createTime',
'filename': 'filename',
'external_link': 'externalLink',
'type': 'type',
'size': 'size',
'memo_id': 'memoId'
}
def __init__(self, id=None, name=None, create_time=None, filename=None, external_link=None, type=None, size=None, memo_id=None): # noqa: E501
"""V2Resource - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._create_time = None
self._filename = None
self._external_link = None
self._type = None
self._size = None
self._memo_id = None
self.discriminator = None
if id is not None:
self.id = id
if name is not None:
self.name = name
if create_time is not None:
self.create_time = create_time
if filename is not None:
self.filename = filename
if external_link is not None:
self.external_link = external_link
if type is not None:
self.type = type
if size is not None:
self.size = size
if memo_id is not None:
self.memo_id = memo_id
@property
def id(self):
"""Gets the id of this V2Resource. # noqa: E501
id is the system generated unique identifier. # noqa: E501
:return: The id of this V2Resource. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this V2Resource.
id is the system generated unique identifier. # noqa: E501
:param id: The id of this V2Resource. # noqa: E501
:type: int
"""
self._id = id
@property
def name(self):
"""Gets the name of this V2Resource. # noqa: E501
name is the user provided name. # noqa: E501
:return: The name of this V2Resource. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this V2Resource.
name is the user provided name. # noqa: E501
:param name: The name of this V2Resource. # noqa: E501
:type: str
"""
self._name = name
@property
def create_time(self):
"""Gets the create_time of this V2Resource. # noqa: E501
:return: The create_time of this V2Resource. # noqa: E501
:rtype: datetime
"""
return self._create_time
@create_time.setter
def create_time(self, create_time):
"""Sets the create_time of this V2Resource.
:param create_time: The create_time of this V2Resource. # noqa: E501
:type: datetime
"""
self._create_time = create_time
@property
def filename(self):
"""Gets the filename of this V2Resource. # noqa: E501
:return: The filename of this V2Resource. # noqa: E501
:rtype: str
"""
return self._filename
@filename.setter
def filename(self, filename):
"""Sets the filename of this V2Resource.
:param filename: The filename of this V2Resource. # noqa: E501
:type: str
"""
self._filename = filename
@property
def external_link(self):
"""Gets the external_link of this V2Resource. # noqa: E501
:return: The external_link of this V2Resource. # noqa: E501
:rtype: str
"""
return self._external_link
@external_link.setter
def external_link(self, external_link):
"""Sets the external_link of this V2Resource.
:param external_link: The external_link of this V2Resource. # noqa: E501
:type: str
"""
self._external_link = external_link
@property
def type(self):
"""Gets the type of this V2Resource. # noqa: E501
:return: The type of this V2Resource. # noqa: E501
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
"""Sets the type of this V2Resource.
:param type: The type of this V2Resource. # noqa: E501
:type: str
"""
self._type = type
@property
def size(self):
"""Gets the size of this V2Resource. # noqa: E501
:return: The size of this V2Resource. # noqa: E501
:rtype: str
"""
return self._size
@size.setter
def size(self, size):
"""Sets the size of this V2Resource.
:param size: The size of this V2Resource. # noqa: E501
:type: str
"""
self._size = size
@property
def memo_id(self):
"""Gets the memo_id of this V2Resource. # noqa: E501
:return: The memo_id of this V2Resource. # noqa: E501
:rtype: int
"""
return self._memo_id
@memo_id.setter
def memo_id(self, memo_id):
"""Sets the memo_id of this V2Resource.
:param memo_id: The memo_id of this V2Resource. # noqa: E501
:type: int
"""
self._memo_id = memo_id
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(V2Resource, 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, V2Resource):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2SetMemoRelationsResponse(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2SetMemoRelationsResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2SetMemoRelationsResponse, 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, V2SetMemoRelationsResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2SetMemoResourcesResponse(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2SetMemoResourcesResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2SetMemoResourcesResponse, 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, V2SetMemoResourcesResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2SetWorkspaceSettingResponse(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 = {
'setting': 'Apiv2WorkspaceSetting'
}
attribute_map = {
'setting': 'setting'
}
def __init__(self, setting=None): # noqa: E501
"""V2SetWorkspaceSettingResponse - a model defined in Swagger""" # noqa: E501
self._setting = None
self.discriminator = None
if setting is not None:
self.setting = setting
@property
def setting(self):
"""Gets the setting of this V2SetWorkspaceSettingResponse. # noqa: E501
:return: The setting of this V2SetWorkspaceSettingResponse. # noqa: E501
:rtype: Apiv2WorkspaceSetting
"""
return self._setting
@setting.setter
def setting(self, setting):
"""Sets the setting of this V2SetWorkspaceSettingResponse.
:param setting: The setting of this V2SetWorkspaceSettingResponse. # noqa: E501
:type: Apiv2WorkspaceSetting
"""
self._setting = setting
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(V2SetWorkspaceSettingResponse, 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, V2SetWorkspaceSettingResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,196 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2SettingNameBody(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 = {
'locale': 'str',
'appearance': 'str',
'memo_visibility': 'str',
'telegram_user_id': 'str'
}
attribute_map = {
'locale': 'locale',
'appearance': 'appearance',
'memo_visibility': 'memoVisibility',
'telegram_user_id': 'telegramUserId'
}
def __init__(self, locale=None, appearance=None, memo_visibility=None, telegram_user_id=None): # noqa: E501
"""V2SettingNameBody - a model defined in Swagger""" # noqa: E501
self._locale = None
self._appearance = None
self._memo_visibility = None
self._telegram_user_id = None
self.discriminator = None
if locale is not None:
self.locale = locale
if appearance is not None:
self.appearance = appearance
if memo_visibility is not None:
self.memo_visibility = memo_visibility
if telegram_user_id is not None:
self.telegram_user_id = telegram_user_id
@property
def locale(self):
"""Gets the locale of this V2SettingNameBody. # noqa: E501
The preferred locale of the user. # noqa: E501
:return: The locale of this V2SettingNameBody. # noqa: E501
:rtype: str
"""
return self._locale
@locale.setter
def locale(self, locale):
"""Sets the locale of this V2SettingNameBody.
The preferred locale of the user. # noqa: E501
:param locale: The locale of this V2SettingNameBody. # noqa: E501
:type: str
"""
self._locale = locale
@property
def appearance(self):
"""Gets the appearance of this V2SettingNameBody. # noqa: E501
The preferred appearance of the user. # noqa: E501
:return: The appearance of this V2SettingNameBody. # noqa: E501
:rtype: str
"""
return self._appearance
@appearance.setter
def appearance(self, appearance):
"""Sets the appearance of this V2SettingNameBody.
The preferred appearance of the user. # noqa: E501
:param appearance: The appearance of this V2SettingNameBody. # noqa: E501
:type: str
"""
self._appearance = appearance
@property
def memo_visibility(self):
"""Gets the memo_visibility of this V2SettingNameBody. # noqa: E501
The default visibility of the memo. # noqa: E501
:return: The memo_visibility of this V2SettingNameBody. # noqa: E501
:rtype: str
"""
return self._memo_visibility
@memo_visibility.setter
def memo_visibility(self, memo_visibility):
"""Sets the memo_visibility of this V2SettingNameBody.
The default visibility of the memo. # noqa: E501
:param memo_visibility: The memo_visibility of this V2SettingNameBody. # noqa: E501
:type: str
"""
self._memo_visibility = memo_visibility
@property
def telegram_user_id(self):
"""Gets the telegram_user_id of this V2SettingNameBody. # noqa: E501
The telegram user id of the user. # noqa: E501
:return: The telegram_user_id of this V2SettingNameBody. # noqa: E501
:rtype: str
"""
return self._telegram_user_id
@telegram_user_id.setter
def telegram_user_id(self, telegram_user_id):
"""Sets the telegram_user_id of this V2SettingNameBody.
The telegram user id of the user. # noqa: E501
:param telegram_user_id: The telegram_user_id of this V2SettingNameBody. # noqa: E501
:type: str
"""
self._telegram_user_id = telegram_user_id
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(V2SettingNameBody, 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, V2SettingNameBody):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2SignInResponse(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 = {
'user': 'V2User'
}
attribute_map = {
'user': 'user'
}
def __init__(self, user=None): # noqa: E501
"""V2SignInResponse - a model defined in Swagger""" # noqa: E501
self._user = None
self.discriminator = None
if user is not None:
self.user = user
@property
def user(self):
"""Gets the user of this V2SignInResponse. # noqa: E501
:return: The user of this V2SignInResponse. # noqa: E501
:rtype: V2User
"""
return self._user
@user.setter
def user(self, user):
"""Sets the user of this V2SignInResponse.
:param user: The user of this V2SignInResponse. # noqa: E501
:type: V2User
"""
self._user = user
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(V2SignInResponse, 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, V2SignInResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2SignInWithSSOResponse(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 = {
'user': 'V2User'
}
attribute_map = {
'user': 'user'
}
def __init__(self, user=None): # noqa: E501
"""V2SignInWithSSOResponse - a model defined in Swagger""" # noqa: E501
self._user = None
self.discriminator = None
if user is not None:
self.user = user
@property
def user(self):
"""Gets the user of this V2SignInWithSSOResponse. # noqa: E501
:return: The user of this V2SignInWithSSOResponse. # noqa: E501
:rtype: V2User
"""
return self._user
@user.setter
def user(self, user):
"""Sets the user of this V2SignInWithSSOResponse.
:param user: The user of this V2SignInWithSSOResponse. # noqa: E501
:type: V2User
"""
self._user = user
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(V2SignInWithSSOResponse, 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, V2SignInWithSSOResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2SignOutResponse(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2SignOutResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2SignOutResponse, 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, V2SignOutResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2SignUpResponse(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 = {
'user': 'V2User'
}
attribute_map = {
'user': 'user'
}
def __init__(self, user=None): # noqa: E501
"""V2SignUpResponse - a model defined in Swagger""" # noqa: E501
self._user = None
self.discriminator = None
if user is not None:
self.user = user
@property
def user(self):
"""Gets the user of this V2SignUpResponse. # noqa: E501
:return: The user of this V2SignUpResponse. # noqa: E501
:rtype: V2User
"""
return self._user
@user.setter
def user(self, user):
"""Sets the user of this V2SignUpResponse.
:param user: The user of this V2SignUpResponse. # noqa: E501
:type: V2User
"""
self._user = user
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(V2SignUpResponse, 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, V2SignUpResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,136 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2Tag(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 = {
'name': 'str',
'creator': 'str'
}
attribute_map = {
'name': 'name',
'creator': 'creator'
}
def __init__(self, name=None, creator=None): # noqa: E501
"""V2Tag - a model defined in Swagger""" # noqa: E501
self._name = None
self._creator = None
self.discriminator = None
if name is not None:
self.name = name
if creator is not None:
self.creator = creator
@property
def name(self):
"""Gets the name of this V2Tag. # noqa: E501
:return: The name of this V2Tag. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this V2Tag.
:param name: The name of this V2Tag. # noqa: E501
:type: str
"""
self._name = name
@property
def creator(self):
"""Gets the creator of this V2Tag. # noqa: E501
:return: The creator of this V2Tag. # noqa: E501
:rtype: str
"""
return self._creator
@creator.setter
def creator(self, creator):
"""Sets the creator of this V2Tag.
:param creator: The creator of this V2Tag. # noqa: E501
:type: str
"""
self._creator = creator
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(V2Tag, 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, V2Tag):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2UpdateInboxResponse(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 = {
'inbox': 'V2Inbox'
}
attribute_map = {
'inbox': 'inbox'
}
def __init__(self, inbox=None): # noqa: E501
"""V2UpdateInboxResponse - a model defined in Swagger""" # noqa: E501
self._inbox = None
self.discriminator = None
if inbox is not None:
self.inbox = inbox
@property
def inbox(self):
"""Gets the inbox of this V2UpdateInboxResponse. # noqa: E501
:return: The inbox of this V2UpdateInboxResponse. # noqa: E501
:rtype: V2Inbox
"""
return self._inbox
@inbox.setter
def inbox(self, inbox):
"""Sets the inbox of this V2UpdateInboxResponse.
:param inbox: The inbox of this V2UpdateInboxResponse. # noqa: E501
:type: V2Inbox
"""
self._inbox = inbox
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(V2UpdateInboxResponse, 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, V2UpdateInboxResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2UpdateMemoResponse(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 = {
'memo': 'V2Memo'
}
attribute_map = {
'memo': 'memo'
}
def __init__(self, memo=None): # noqa: E501
"""V2UpdateMemoResponse - a model defined in Swagger""" # noqa: E501
self._memo = None
self.discriminator = None
if memo is not None:
self.memo = memo
@property
def memo(self):
"""Gets the memo of this V2UpdateMemoResponse. # noqa: E501
:return: The memo of this V2UpdateMemoResponse. # noqa: E501
:rtype: V2Memo
"""
return self._memo
@memo.setter
def memo(self, memo):
"""Sets the memo of this V2UpdateMemoResponse.
:param memo: The memo of this V2UpdateMemoResponse. # noqa: E501
:type: V2Memo
"""
self._memo = memo
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(V2UpdateMemoResponse, 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, V2UpdateMemoResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2UpdateResourceResponse(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 = {
'resource': 'V2Resource'
}
attribute_map = {
'resource': 'resource'
}
def __init__(self, resource=None): # noqa: E501
"""V2UpdateResourceResponse - a model defined in Swagger""" # noqa: E501
self._resource = None
self.discriminator = None
if resource is not None:
self.resource = resource
@property
def resource(self):
"""Gets the resource of this V2UpdateResourceResponse. # noqa: E501
:return: The resource of this V2UpdateResourceResponse. # noqa: E501
:rtype: V2Resource
"""
return self._resource
@resource.setter
def resource(self, resource):
"""Sets the resource of this V2UpdateResourceResponse.
:param resource: The resource of this V2UpdateResourceResponse. # noqa: E501
:type: V2Resource
"""
self._resource = resource
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(V2UpdateResourceResponse, 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, V2UpdateResourceResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2UpdateUserResponse(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 = {
'user': 'V2User'
}
attribute_map = {
'user': 'user'
}
def __init__(self, user=None): # noqa: E501
"""V2UpdateUserResponse - a model defined in Swagger""" # noqa: E501
self._user = None
self.discriminator = None
if user is not None:
self.user = user
@property
def user(self):
"""Gets the user of this V2UpdateUserResponse. # noqa: E501
:return: The user of this V2UpdateUserResponse. # noqa: E501
:rtype: V2User
"""
return self._user
@user.setter
def user(self, user):
"""Sets the user of this V2UpdateUserResponse.
:param user: The user of this V2UpdateUserResponse. # noqa: E501
:type: V2User
"""
self._user = user
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(V2UpdateUserResponse, 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, V2UpdateUserResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2UpdateUserSettingResponse(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 = {
'setting': 'Apiv2UserSetting'
}
attribute_map = {
'setting': 'setting'
}
def __init__(self, setting=None): # noqa: E501
"""V2UpdateUserSettingResponse - a model defined in Swagger""" # noqa: E501
self._setting = None
self.discriminator = None
if setting is not None:
self.setting = setting
@property
def setting(self):
"""Gets the setting of this V2UpdateUserSettingResponse. # noqa: E501
:return: The setting of this V2UpdateUserSettingResponse. # noqa: E501
:rtype: Apiv2UserSetting
"""
return self._setting
@setting.setter
def setting(self, setting):
"""Sets the setting of this V2UpdateUserSettingResponse.
:param setting: The setting of this V2UpdateUserSettingResponse. # noqa: E501
:type: Apiv2UserSetting
"""
self._setting = setting
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(V2UpdateUserSettingResponse, 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, V2UpdateUserSettingResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2UpdateWebhookResponse(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 = {
'webhook': 'Apiv2Webhook'
}
attribute_map = {
'webhook': 'webhook'
}
def __init__(self, webhook=None): # noqa: E501
"""V2UpdateWebhookResponse - a model defined in Swagger""" # noqa: E501
self._webhook = None
self.discriminator = None
if webhook is not None:
self.webhook = webhook
@property
def webhook(self):
"""Gets the webhook of this V2UpdateWebhookResponse. # noqa: E501
:return: The webhook of this V2UpdateWebhookResponse. # noqa: E501
:rtype: Apiv2Webhook
"""
return self._webhook
@webhook.setter
def webhook(self, webhook):
"""Sets the webhook of this V2UpdateWebhookResponse.
:param webhook: The webhook of this V2UpdateWebhookResponse. # noqa: E501
:type: Apiv2Webhook
"""
self._webhook = webhook
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(V2UpdateWebhookResponse, 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, V2UpdateWebhookResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2UpsertMemoReactionResponse(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 = {
'reaction': 'Apiv2Reaction'
}
attribute_map = {
'reaction': 'reaction'
}
def __init__(self, reaction=None): # noqa: E501
"""V2UpsertMemoReactionResponse - a model defined in Swagger""" # noqa: E501
self._reaction = None
self.discriminator = None
if reaction is not None:
self.reaction = reaction
@property
def reaction(self):
"""Gets the reaction of this V2UpsertMemoReactionResponse. # noqa: E501
:return: The reaction of this V2UpsertMemoReactionResponse. # noqa: E501
:rtype: Apiv2Reaction
"""
return self._reaction
@reaction.setter
def reaction(self, reaction):
"""Sets the reaction of this V2UpsertMemoReactionResponse.
:param reaction: The reaction of this V2UpsertMemoReactionResponse. # noqa: E501
:type: Apiv2Reaction
"""
self._reaction = reaction
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(V2UpsertMemoReactionResponse, 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, V2UpsertMemoReactionResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2UpsertTagRequest(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 = {
'name': 'str'
}
attribute_map = {
'name': 'name'
}
def __init__(self, name=None): # noqa: E501
"""V2UpsertTagRequest - a model defined in Swagger""" # noqa: E501
self._name = None
self.discriminator = None
if name is not None:
self.name = name
@property
def name(self):
"""Gets the name of this V2UpsertTagRequest. # noqa: E501
:return: The name of this V2UpsertTagRequest. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this V2UpsertTagRequest.
:param name: The name of this V2UpsertTagRequest. # noqa: E501
:type: str
"""
self._name = name
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(V2UpsertTagRequest, 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, V2UpsertTagRequest):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,110 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2UpsertTagResponse(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 = {
'tag': 'V2Tag'
}
attribute_map = {
'tag': 'tag'
}
def __init__(self, tag=None): # noqa: E501
"""V2UpsertTagResponse - a model defined in Swagger""" # noqa: E501
self._tag = None
self.discriminator = None
if tag is not None:
self.tag = tag
@property
def tag(self):
"""Gets the tag of this V2UpsertTagResponse. # noqa: E501
:return: The tag of this V2UpsertTagResponse. # noqa: E501
:rtype: V2Tag
"""
return self._tag
@tag.setter
def tag(self, tag):
"""Sets the tag of this V2UpsertTagResponse.
:param tag: The tag of this V2UpsertTagResponse. # noqa: E501
:type: V2Tag
"""
self._tag = tag
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(V2UpsertTagResponse, 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, V2UpsertTagResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,370 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2User(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 = {
'name': 'str',
'id': 'int',
'role': 'UserRole',
'username': 'str',
'email': 'str',
'nickname': 'str',
'avatar_url': 'str',
'password': 'str',
'row_status': 'Apiv2RowStatus',
'create_time': 'datetime',
'update_time': 'datetime'
}
attribute_map = {
'name': 'name',
'id': 'id',
'role': 'role',
'username': 'username',
'email': 'email',
'nickname': 'nickname',
'avatar_url': 'avatarUrl',
'password': 'password',
'row_status': 'rowStatus',
'create_time': 'createTime',
'update_time': 'updateTime'
}
def __init__(self, name=None, id=None, role=None, username=None, email=None, nickname=None, avatar_url=None, password=None, row_status=None, create_time=None, update_time=None): # noqa: E501
"""V2User - a model defined in Swagger""" # noqa: E501
self._name = None
self._id = None
self._role = None
self._username = None
self._email = None
self._nickname = None
self._avatar_url = None
self._password = None
self._row_status = None
self._create_time = None
self._update_time = None
self.discriminator = None
if name is not None:
self.name = name
if id is not None:
self.id = id
if role is not None:
self.role = role
if username is not None:
self.username = username
if email is not None:
self.email = email
if nickname is not None:
self.nickname = nickname
if avatar_url is not None:
self.avatar_url = avatar_url
if password is not None:
self.password = password
if row_status is not None:
self.row_status = row_status
if create_time is not None:
self.create_time = create_time
if update_time is not None:
self.update_time = update_time
@property
def name(self):
"""Gets the name of this V2User. # noqa: E501
:return: The name of this V2User. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this V2User.
:param name: The name of this V2User. # noqa: E501
:type: str
"""
self._name = name
@property
def id(self):
"""Gets the id of this V2User. # noqa: E501
:return: The id of this V2User. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this V2User.
:param id: The id of this V2User. # noqa: E501
:type: int
"""
self._id = id
@property
def role(self):
"""Gets the role of this V2User. # noqa: E501
:return: The role of this V2User. # noqa: E501
:rtype: UserRole
"""
return self._role
@role.setter
def role(self, role):
"""Sets the role of this V2User.
:param role: The role of this V2User. # noqa: E501
:type: UserRole
"""
self._role = role
@property
def username(self):
"""Gets the username of this V2User. # noqa: E501
:return: The username of this V2User. # noqa: E501
:rtype: str
"""
return self._username
@username.setter
def username(self, username):
"""Sets the username of this V2User.
:param username: The username of this V2User. # noqa: E501
:type: str
"""
self._username = username
@property
def email(self):
"""Gets the email of this V2User. # noqa: E501
:return: The email of this V2User. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this V2User.
:param email: The email of this V2User. # noqa: E501
:type: str
"""
self._email = email
@property
def nickname(self):
"""Gets the nickname of this V2User. # noqa: E501
:return: The nickname of this V2User. # noqa: E501
:rtype: str
"""
return self._nickname
@nickname.setter
def nickname(self, nickname):
"""Sets the nickname of this V2User.
:param nickname: The nickname of this V2User. # noqa: E501
:type: str
"""
self._nickname = nickname
@property
def avatar_url(self):
"""Gets the avatar_url of this V2User. # noqa: E501
:return: The avatar_url of this V2User. # noqa: E501
:rtype: str
"""
return self._avatar_url
@avatar_url.setter
def avatar_url(self, avatar_url):
"""Sets the avatar_url of this V2User.
:param avatar_url: The avatar_url of this V2User. # noqa: E501
:type: str
"""
self._avatar_url = avatar_url
@property
def password(self):
"""Gets the password of this V2User. # noqa: E501
:return: The password of this V2User. # noqa: E501
:rtype: str
"""
return self._password
@password.setter
def password(self, password):
"""Sets the password of this V2User.
:param password: The password of this V2User. # noqa: E501
:type: str
"""
self._password = password
@property
def row_status(self):
"""Gets the row_status of this V2User. # noqa: E501
:return: The row_status of this V2User. # noqa: E501
:rtype: Apiv2RowStatus
"""
return self._row_status
@row_status.setter
def row_status(self, row_status):
"""Sets the row_status of this V2User.
:param row_status: The row_status of this V2User. # noqa: E501
:type: Apiv2RowStatus
"""
self._row_status = row_status
@property
def create_time(self):
"""Gets the create_time of this V2User. # noqa: E501
:return: The create_time of this V2User. # noqa: E501
:rtype: datetime
"""
return self._create_time
@create_time.setter
def create_time(self, create_time):
"""Sets the create_time of this V2User.
:param create_time: The create_time of this V2User. # noqa: E501
:type: datetime
"""
self._create_time = create_time
@property
def update_time(self):
"""Gets the update_time of this V2User. # noqa: E501
:return: The update_time of this V2User. # noqa: E501
:rtype: datetime
"""
return self._update_time
@update_time.setter
def update_time(self, update_time):
"""Sets the update_time of this V2User.
:param update_time: The update_time of this V2User. # noqa: E501
:type: datetime
"""
self._update_time = update_time
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(V2User, 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, V2User):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,188 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2UserAccessToken(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 = {
'access_token': 'str',
'description': 'str',
'issued_at': 'datetime',
'expires_at': 'datetime'
}
attribute_map = {
'access_token': 'accessToken',
'description': 'description',
'issued_at': 'issuedAt',
'expires_at': 'expiresAt'
}
def __init__(self, access_token=None, description=None, issued_at=None, expires_at=None): # noqa: E501
"""V2UserAccessToken - a model defined in Swagger""" # noqa: E501
self._access_token = None
self._description = None
self._issued_at = None
self._expires_at = None
self.discriminator = None
if access_token is not None:
self.access_token = access_token
if description is not None:
self.description = description
if issued_at is not None:
self.issued_at = issued_at
if expires_at is not None:
self.expires_at = expires_at
@property
def access_token(self):
"""Gets the access_token of this V2UserAccessToken. # noqa: E501
:return: The access_token of this V2UserAccessToken. # noqa: E501
:rtype: str
"""
return self._access_token
@access_token.setter
def access_token(self, access_token):
"""Sets the access_token of this V2UserAccessToken.
:param access_token: The access_token of this V2UserAccessToken. # noqa: E501
:type: str
"""
self._access_token = access_token
@property
def description(self):
"""Gets the description of this V2UserAccessToken. # noqa: E501
:return: The description of this V2UserAccessToken. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this V2UserAccessToken.
:param description: The description of this V2UserAccessToken. # noqa: E501
:type: str
"""
self._description = description
@property
def issued_at(self):
"""Gets the issued_at of this V2UserAccessToken. # noqa: E501
:return: The issued_at of this V2UserAccessToken. # noqa: E501
:rtype: datetime
"""
return self._issued_at
@issued_at.setter
def issued_at(self, issued_at):
"""Sets the issued_at of this V2UserAccessToken.
:param issued_at: The issued_at of this V2UserAccessToken. # noqa: E501
:type: datetime
"""
self._issued_at = issued_at
@property
def expires_at(self):
"""Gets the expires_at of this V2UserAccessToken. # noqa: E501
:return: The expires_at of this V2UserAccessToken. # noqa: E501
:rtype: datetime
"""
return self._expires_at
@expires_at.setter
def expires_at(self, expires_at):
"""Sets the expires_at of this V2UserAccessToken.
:param expires_at: The expires_at of this V2UserAccessToken. # noqa: E501
:type: datetime
"""
self._expires_at = expires_at
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(V2UserAccessToken, 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, V2UserAccessToken):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,344 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2UserNameBody(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 = {
'id': 'int',
'role': 'UserRole',
'username': 'str',
'email': 'str',
'nickname': 'str',
'avatar_url': 'str',
'password': 'str',
'row_status': 'Apiv2RowStatus',
'create_time': 'datetime',
'update_time': 'datetime'
}
attribute_map = {
'id': 'id',
'role': 'role',
'username': 'username',
'email': 'email',
'nickname': 'nickname',
'avatar_url': 'avatarUrl',
'password': 'password',
'row_status': 'rowStatus',
'create_time': 'createTime',
'update_time': 'updateTime'
}
def __init__(self, id=None, role=None, username=None, email=None, nickname=None, avatar_url=None, password=None, row_status=None, create_time=None, update_time=None): # noqa: E501
"""V2UserNameBody - a model defined in Swagger""" # noqa: E501
self._id = None
self._role = None
self._username = None
self._email = None
self._nickname = None
self._avatar_url = None
self._password = None
self._row_status = None
self._create_time = None
self._update_time = None
self.discriminator = None
if id is not None:
self.id = id
if role is not None:
self.role = role
if username is not None:
self.username = username
if email is not None:
self.email = email
if nickname is not None:
self.nickname = nickname
if avatar_url is not None:
self.avatar_url = avatar_url
if password is not None:
self.password = password
if row_status is not None:
self.row_status = row_status
if create_time is not None:
self.create_time = create_time
if update_time is not None:
self.update_time = update_time
@property
def id(self):
"""Gets the id of this V2UserNameBody. # noqa: E501
:return: The id of this V2UserNameBody. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this V2UserNameBody.
:param id: The id of this V2UserNameBody. # noqa: E501
:type: int
"""
self._id = id
@property
def role(self):
"""Gets the role of this V2UserNameBody. # noqa: E501
:return: The role of this V2UserNameBody. # noqa: E501
:rtype: UserRole
"""
return self._role
@role.setter
def role(self, role):
"""Sets the role of this V2UserNameBody.
:param role: The role of this V2UserNameBody. # noqa: E501
:type: UserRole
"""
self._role = role
@property
def username(self):
"""Gets the username of this V2UserNameBody. # noqa: E501
:return: The username of this V2UserNameBody. # noqa: E501
:rtype: str
"""
return self._username
@username.setter
def username(self, username):
"""Sets the username of this V2UserNameBody.
:param username: The username of this V2UserNameBody. # noqa: E501
:type: str
"""
self._username = username
@property
def email(self):
"""Gets the email of this V2UserNameBody. # noqa: E501
:return: The email of this V2UserNameBody. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this V2UserNameBody.
:param email: The email of this V2UserNameBody. # noqa: E501
:type: str
"""
self._email = email
@property
def nickname(self):
"""Gets the nickname of this V2UserNameBody. # noqa: E501
:return: The nickname of this V2UserNameBody. # noqa: E501
:rtype: str
"""
return self._nickname
@nickname.setter
def nickname(self, nickname):
"""Sets the nickname of this V2UserNameBody.
:param nickname: The nickname of this V2UserNameBody. # noqa: E501
:type: str
"""
self._nickname = nickname
@property
def avatar_url(self):
"""Gets the avatar_url of this V2UserNameBody. # noqa: E501
:return: The avatar_url of this V2UserNameBody. # noqa: E501
:rtype: str
"""
return self._avatar_url
@avatar_url.setter
def avatar_url(self, avatar_url):
"""Sets the avatar_url of this V2UserNameBody.
:param avatar_url: The avatar_url of this V2UserNameBody. # noqa: E501
:type: str
"""
self._avatar_url = avatar_url
@property
def password(self):
"""Gets the password of this V2UserNameBody. # noqa: E501
:return: The password of this V2UserNameBody. # noqa: E501
:rtype: str
"""
return self._password
@password.setter
def password(self, password):
"""Sets the password of this V2UserNameBody.
:param password: The password of this V2UserNameBody. # noqa: E501
:type: str
"""
self._password = password
@property
def row_status(self):
"""Gets the row_status of this V2UserNameBody. # noqa: E501
:return: The row_status of this V2UserNameBody. # noqa: E501
:rtype: Apiv2RowStatus
"""
return self._row_status
@row_status.setter
def row_status(self, row_status):
"""Sets the row_status of this V2UserNameBody.
:param row_status: The row_status of this V2UserNameBody. # noqa: E501
:type: Apiv2RowStatus
"""
self._row_status = row_status
@property
def create_time(self):
"""Gets the create_time of this V2UserNameBody. # noqa: E501
:return: The create_time of this V2UserNameBody. # noqa: E501
:rtype: datetime
"""
return self._create_time
@create_time.setter
def create_time(self, create_time):
"""Sets the create_time of this V2UserNameBody.
:param create_time: The create_time of this V2UserNameBody. # noqa: E501
:type: datetime
"""
self._create_time = create_time
@property
def update_time(self):
"""Gets the update_time of this V2UserNameBody. # noqa: E501
:return: The update_time of this V2UserNameBody. # noqa: E501
:rtype: datetime
"""
return self._update_time
@update_time.setter
def update_time(self, update_time):
"""Sets the update_time of this V2UserNameBody.
:param update_time: The update_time of this V2UserNameBody. # noqa: E501
:type: datetime
"""
self._update_time = update_time
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(V2UserNameBody, 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, V2UserNameBody):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,92 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2Visibility(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
allowed enum values
"""
VISIBILITY_UNSPECIFIED = "VISIBILITY_UNSPECIFIED"
PRIVATE = "PRIVATE"
PROTECTED = "PROTECTED"
PUBLIC = "PUBLIC"
"""
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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""V2Visibility - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(V2Visibility, 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, V2Visibility):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,250 +0,0 @@
# coding: utf-8
"""
api/v2/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 V2WorkspaceProfile(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 = {
'version': 'str',
'mode': 'str',
'allow_registration': 'bool',
'disable_password_login': 'bool',
'additional_script': 'str',
'additional_style': 'str'
}
attribute_map = {
'version': 'version',
'mode': 'mode',
'allow_registration': 'allowRegistration',
'disable_password_login': 'disablePasswordLogin',
'additional_script': 'additionalScript',
'additional_style': 'additionalStyle'
}
def __init__(self, version=None, mode=None, allow_registration=None, disable_password_login=None, additional_script=None, additional_style=None): # noqa: E501
"""V2WorkspaceProfile - a model defined in Swagger""" # noqa: E501
self._version = None
self._mode = None
self._allow_registration = None
self._disable_password_login = None
self._additional_script = None
self._additional_style = None
self.discriminator = None
if version is not None:
self.version = version
if mode is not None:
self.mode = mode
if allow_registration is not None:
self.allow_registration = allow_registration
if disable_password_login is not None:
self.disable_password_login = disable_password_login
if additional_script is not None:
self.additional_script = additional_script
if additional_style is not None:
self.additional_style = additional_style
@property
def version(self):
"""Gets the version of this V2WorkspaceProfile. # noqa: E501
:return: The version of this V2WorkspaceProfile. # noqa: E501
:rtype: str
"""
return self._version
@version.setter
def version(self, version):
"""Sets the version of this V2WorkspaceProfile.
:param version: The version of this V2WorkspaceProfile. # noqa: E501
:type: str
"""
self._version = version
@property
def mode(self):
"""Gets the mode of this V2WorkspaceProfile. # noqa: E501
mode is the instance mode (e.g. \"prod\", \"dev\" or \"demo\"). # noqa: E501
:return: The mode of this V2WorkspaceProfile. # noqa: E501
:rtype: str
"""
return self._mode
@mode.setter
def mode(self, mode):
"""Sets the mode of this V2WorkspaceProfile.
mode is the instance mode (e.g. \"prod\", \"dev\" or \"demo\"). # noqa: E501
:param mode: The mode of this V2WorkspaceProfile. # noqa: E501
:type: str
"""
self._mode = mode
@property
def allow_registration(self):
"""Gets the allow_registration of this V2WorkspaceProfile. # noqa: E501
allow_registration is whether the registration is allowed. # noqa: E501
:return: The allow_registration of this V2WorkspaceProfile. # noqa: E501
:rtype: bool
"""
return self._allow_registration
@allow_registration.setter
def allow_registration(self, allow_registration):
"""Sets the allow_registration of this V2WorkspaceProfile.
allow_registration is whether the registration is allowed. # noqa: E501
:param allow_registration: The allow_registration of this V2WorkspaceProfile. # noqa: E501
:type: bool
"""
self._allow_registration = allow_registration
@property
def disable_password_login(self):
"""Gets the disable_password_login of this V2WorkspaceProfile. # noqa: E501
allow_password_login is whether the password login is allowed. # noqa: E501
:return: The disable_password_login of this V2WorkspaceProfile. # noqa: E501
:rtype: bool
"""
return self._disable_password_login
@disable_password_login.setter
def disable_password_login(self, disable_password_login):
"""Sets the disable_password_login of this V2WorkspaceProfile.
allow_password_login is whether the password login is allowed. # noqa: E501
:param disable_password_login: The disable_password_login of this V2WorkspaceProfile. # noqa: E501
:type: bool
"""
self._disable_password_login = disable_password_login
@property
def additional_script(self):
"""Gets the additional_script of this V2WorkspaceProfile. # noqa: E501
additional_script is the additional script. # noqa: E501
:return: The additional_script of this V2WorkspaceProfile. # noqa: E501
:rtype: str
"""
return self._additional_script
@additional_script.setter
def additional_script(self, additional_script):
"""Sets the additional_script of this V2WorkspaceProfile.
additional_script is the additional script. # noqa: E501
:param additional_script: The additional_script of this V2WorkspaceProfile. # noqa: E501
:type: str
"""
self._additional_script = additional_script
@property
def additional_style(self):
"""Gets the additional_style of this V2WorkspaceProfile. # noqa: E501
additional_style is the additional style. # noqa: E501
:return: The additional_style of this V2WorkspaceProfile. # noqa: E501
:rtype: str
"""
return self._additional_style
@additional_style.setter
def additional_style(self, additional_style):
"""Sets the additional_style of this V2WorkspaceProfile.
additional_style is the additional style. # noqa: E501
:param additional_style: The additional_style of this V2WorkspaceProfile. # noqa: E501
:type: str
"""
self._additional_style = additional_style
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(V2WorkspaceProfile, 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, V2WorkspaceProfile):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other