huaweicloud-sdk-python-v3/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/query_admin_result_dto.py

290 lines
8.2 KiB
Python
Raw Normal View History

# coding: utf-8
import six
2021-07-26 11:24:08 +00:00
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class QueryAdminResultDTO:
"""
Attributes:
openapi_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.
"""
sensitive_list = []
openapi_types = {
'id': 'str',
'account': 'str',
'name': 'str',
'admin_type': 'int',
'email': 'str',
'phone': 'str',
'country': 'str'
}
attribute_map = {
'id': 'id',
'account': 'account',
'name': 'name',
'admin_type': 'adminType',
'email': 'email',
'phone': 'phone',
'country': 'country'
}
def __init__(self, id=None, account=None, name=None, admin_type=None, email=None, phone=None, country=None):
2022-04-21 12:03:46 +00:00
"""QueryAdminResultDTO
The model defined in huaweicloud sdk
2022-09-22 11:38:02 +00:00
:param id: 用户UUID
2022-04-21 12:03:46 +00:00
:type id: str
2022-09-22 11:38:02 +00:00
:param account: 用户华为云会议帐号
2022-04-21 12:03:46 +00:00
:type account: str
2022-09-22 11:38:02 +00:00
:param name: 名称
2022-04-21 12:03:46 +00:00
:type name: str
2022-09-22 11:38:02 +00:00
:param admin_type: 管理员类型 - 0默认管理员 - 1普通管理员
2022-04-21 12:03:46 +00:00
:type admin_type: int
2022-09-22 11:38:02 +00:00
:param email: 邮箱地址
2022-04-21 12:03:46 +00:00
:type email: str
2022-09-22 11:38:02 +00:00
:param phone: 联系电话
2022-04-21 12:03:46 +00:00
:type phone: str
2022-09-22 11:38:02 +00:00
:param country: [[手机号所属的国家](https://support.huaweicloud.com/api-meeting/meeting_21_0109.html#ZH-CN_TOPIC_0212714591__table19371178135314)](tag:hws)[[手机号所属的国家](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0109.html#ZH-CN_TOPIC_0212714591__table19371178135314)](tag:hk) 。
2022-04-21 12:03:46 +00:00
:type country: str
"""
self._id = None
self._account = None
self._name = None
self._admin_type = None
self._email = None
self._phone = None
self._country = None
self.discriminator = None
if id is not None:
self.id = id
if account is not None:
self.account = account
if name is not None:
self.name = name
if admin_type is not None:
self.admin_type = admin_type
if email is not None:
self.email = email
if phone is not None:
self.phone = phone
if country is not None:
self.country = country
@property
def id(self):
"""Gets the id of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
用户UUID
:return: The id of this QueryAdminResultDTO.
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
用户UUID
:param id: The id of this QueryAdminResultDTO.
2022-04-21 12:03:46 +00:00
:type id: str
"""
self._id = id
@property
def account(self):
"""Gets the account of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
用户华为云会议帐号
:return: The account of this QueryAdminResultDTO.
:rtype: str
"""
return self._account
@account.setter
def account(self, account):
"""Sets the account of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
用户华为云会议帐号
:param account: The account of this QueryAdminResultDTO.
2022-04-21 12:03:46 +00:00
:type account: str
"""
self._account = account
@property
def name(self):
"""Gets the name of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
名称
:return: The name of this QueryAdminResultDTO.
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
名称
:param name: The name of this QueryAdminResultDTO.
2022-04-21 12:03:46 +00:00
:type name: str
"""
self._name = name
@property
def admin_type(self):
"""Gets the admin_type of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
管理员类型 - 0默认管理员 - 1普通管理员
:return: The admin_type of this QueryAdminResultDTO.
:rtype: int
"""
return self._admin_type
@admin_type.setter
def admin_type(self, admin_type):
"""Sets the admin_type of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
管理员类型 - 0默认管理员 - 1普通管理员
:param admin_type: The admin_type of this QueryAdminResultDTO.
2022-04-21 12:03:46 +00:00
:type admin_type: int
"""
self._admin_type = admin_type
@property
def email(self):
"""Gets the email of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
邮箱地址
:return: The email of this QueryAdminResultDTO.
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
邮箱地址
:param email: The email of this QueryAdminResultDTO.
2022-04-21 12:03:46 +00:00
:type email: str
"""
self._email = email
@property
def phone(self):
"""Gets the phone of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
联系电话
:return: The phone of this QueryAdminResultDTO.
:rtype: str
"""
return self._phone
@phone.setter
def phone(self, phone):
"""Sets the phone of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
联系电话
:param phone: The phone of this QueryAdminResultDTO.
2022-04-21 12:03:46 +00:00
:type phone: str
"""
self._phone = phone
@property
def country(self):
"""Gets the country of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
[[手机号所属的国家](https://support.huaweicloud.com/api-meeting/meeting_21_0109.html#ZH-CN_TOPIC_0212714591__table19371178135314)](tag:hws)[[手机号所属的国家](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0109.html#ZH-CN_TOPIC_0212714591__table19371178135314)](tag:hk) 。
:return: The country of this QueryAdminResultDTO.
:rtype: str
"""
return self._country
@country.setter
def country(self, country):
"""Sets the country of this QueryAdminResultDTO.
2022-09-22 11:38:02 +00:00
[[手机号所属的国家](https://support.huaweicloud.com/api-meeting/meeting_21_0109.html#ZH-CN_TOPIC_0212714591__table19371178135314)](tag:hws)[[手机号所属的国家](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0109.html#ZH-CN_TOPIC_0212714591__table19371178135314)](tag:hk) 。
:param country: The country of this QueryAdminResultDTO.
2022-04-21 12:03:46 +00:00
:type country: str
"""
self._country = country
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_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:
if attr in self.sensitive_list:
result[attr] = "****"
else:
result[attr] = value
return result
def to_str(self):
2021-08-10 12:26:18 +00:00
"""Returns the string representation of the model"""
2021-07-09 10:57:08 +00:00
import simplejson as json
2021-08-10 12:26:18 +00:00
if six.PY2:
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
def __repr__(self):
2021-08-10 12:26:18 +00:00
"""For `print`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, QueryAdminResultDTO):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other