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

145 lines
3.8 KiB
Python

# coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class RealTimeConfInfo:
"""
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 = {
'chair_id': 'str',
'co_hosts': 'list[str]'
}
attribute_map = {
'chair_id': 'chairID',
'co_hosts': 'coHosts'
}
def __init__(self, chair_id=None, co_hosts=None):
"""RealTimeConfInfo
The model defined in huaweicloud sdk
:param chair_id: 主持人与会者标识。
:type chair_id: str
:param co_hosts: 联席主持人会场id。
:type co_hosts: list[str]
"""
self._chair_id = None
self._co_hosts = None
self.discriminator = None
if chair_id is not None:
self.chair_id = chair_id
if co_hosts is not None:
self.co_hosts = co_hosts
@property
def chair_id(self):
"""Gets the chair_id of this RealTimeConfInfo.
主持人与会者标识。
:return: The chair_id of this RealTimeConfInfo.
:rtype: str
"""
return self._chair_id
@chair_id.setter
def chair_id(self, chair_id):
"""Sets the chair_id of this RealTimeConfInfo.
主持人与会者标识。
:param chair_id: The chair_id of this RealTimeConfInfo.
:type chair_id: str
"""
self._chair_id = chair_id
@property
def co_hosts(self):
"""Gets the co_hosts of this RealTimeConfInfo.
联席主持人会场id。
:return: The co_hosts of this RealTimeConfInfo.
:rtype: list[str]
"""
return self._co_hosts
@co_hosts.setter
def co_hosts(self, co_hosts):
"""Sets the co_hosts of this RealTimeConfInfo.
联席主持人会场id。
:param co_hosts: The co_hosts of this RealTimeConfInfo.
:type co_hosts: list[str]
"""
self._co_hosts = co_hosts
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):
"""Returns the string representation of the model"""
import simplejson as json
if six.PY2:
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
def __repr__(self):
"""For `print`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, RealTimeConfInfo):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other