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

348 lines
11 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UserVmrDTO:
"""
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',
'vmr_id': 'str',
'vmr_name': 'str',
'vmr_mode': 'int',
'vmr_pkg_id': 'str',
'vmr_pkg_name': 'str',
'vmr_pkg_parties': 'int',
'vmr_pkg_length': 'int',
'status': 'int'
}
attribute_map = {
'id': 'id',
'vmr_id': 'vmrId',
'vmr_name': 'vmrName',
'vmr_mode': 'vmrMode',
'vmr_pkg_id': 'vmrPkgId',
'vmr_pkg_name': 'vmrPkgName',
'vmr_pkg_parties': 'vmrPkgParties',
'vmr_pkg_length': 'vmrPkgLength',
'status': 'status'
}
def __init__(self, id=None, vmr_id=None, vmr_name=None, vmr_mode=None, vmr_pkg_id=None, vmr_pkg_name=None, vmr_pkg_parties=None, vmr_pkg_length=None, status=None):
"""UserVmrDTO
The model defined in huaweicloud sdk
:param id: 云会议室的ID。 > 对应[[创建会议](https://support.huaweicloud.com/api-meeting/meeting_21_0014.html)](tag:hws)[[创建会议](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0014.html)](tag:hk)接口中的vmrID。
:type id: str
:param vmr_id: 云会议室的固定会议ID。 > 对应[[创建会议](https://support.huaweicloud.com/api-meeting/meeting_21_0014.html)](tag:hws)[[创建会议](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0014.html)](tag:hk)接口返回数据的vmrConferenceID。
:type vmr_id: str
:param vmr_name: 云会议室名称。
:type vmr_name: str
:param vmr_mode: VMR模式。 - 0个人会议ID - 1: 云会议室 - 2: 网络研讨会
:type vmr_mode: int
:param vmr_pkg_id: 云会议室套餐包的id仅云会议室返回。
:type vmr_pkg_id: str
:param vmr_pkg_name: 云会议室套餐包的名称,仅云会议室返回。
:type vmr_pkg_name: str
:param vmr_pkg_parties: 云会议室套餐包的会议并发方数,仅云会议室返回。
:type vmr_pkg_parties: int
:param vmr_pkg_length: 云会议室套餐包的与会时间若为0则代表无限时长仅云会议室返回。
:type vmr_pkg_length: int
:param status: 云会议室状态。 * 0正常 * 1停用 * 2未分配
:type status: int
"""
self._id = None
self._vmr_id = None
self._vmr_name = None
self._vmr_mode = None
self._vmr_pkg_id = None
self._vmr_pkg_name = None
self._vmr_pkg_parties = None
self._vmr_pkg_length = None
self._status = None
self.discriminator = None
if id is not None:
self.id = id
if vmr_id is not None:
self.vmr_id = vmr_id
if vmr_name is not None:
self.vmr_name = vmr_name
if vmr_mode is not None:
self.vmr_mode = vmr_mode
if vmr_pkg_id is not None:
self.vmr_pkg_id = vmr_pkg_id
if vmr_pkg_name is not None:
self.vmr_pkg_name = vmr_pkg_name
if vmr_pkg_parties is not None:
self.vmr_pkg_parties = vmr_pkg_parties
if vmr_pkg_length is not None:
self.vmr_pkg_length = vmr_pkg_length
if status is not None:
self.status = status
@property
def id(self):
"""Gets the id of this UserVmrDTO.
云会议室的ID。 > 对应[[创建会议](https://support.huaweicloud.com/api-meeting/meeting_21_0014.html)](tag:hws)[[创建会议](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0014.html)](tag:hk)接口中的vmrID。
:return: The id of this UserVmrDTO.
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this UserVmrDTO.
云会议室的ID。 > 对应[[创建会议](https://support.huaweicloud.com/api-meeting/meeting_21_0014.html)](tag:hws)[[创建会议](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0014.html)](tag:hk)接口中的vmrID。
:param id: The id of this UserVmrDTO.
:type id: str
"""
self._id = id
@property
def vmr_id(self):
"""Gets the vmr_id of this UserVmrDTO.
云会议室的固定会议ID。 > 对应[[创建会议](https://support.huaweicloud.com/api-meeting/meeting_21_0014.html)](tag:hws)[[创建会议](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0014.html)](tag:hk)接口返回数据的vmrConferenceID。
:return: The vmr_id of this UserVmrDTO.
:rtype: str
"""
return self._vmr_id
@vmr_id.setter
def vmr_id(self, vmr_id):
"""Sets the vmr_id of this UserVmrDTO.
云会议室的固定会议ID。 > 对应[[创建会议](https://support.huaweicloud.com/api-meeting/meeting_21_0014.html)](tag:hws)[[创建会议](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0014.html)](tag:hk)接口返回数据的vmrConferenceID。
:param vmr_id: The vmr_id of this UserVmrDTO.
:type vmr_id: str
"""
self._vmr_id = vmr_id
@property
def vmr_name(self):
"""Gets the vmr_name of this UserVmrDTO.
云会议室名称。
:return: The vmr_name of this UserVmrDTO.
:rtype: str
"""
return self._vmr_name
@vmr_name.setter
def vmr_name(self, vmr_name):
"""Sets the vmr_name of this UserVmrDTO.
云会议室名称。
:param vmr_name: The vmr_name of this UserVmrDTO.
:type vmr_name: str
"""
self._vmr_name = vmr_name
@property
def vmr_mode(self):
"""Gets the vmr_mode of this UserVmrDTO.
VMR模式。 - 0个人会议ID - 1: 云会议室 - 2: 网络研讨会
:return: The vmr_mode of this UserVmrDTO.
:rtype: int
"""
return self._vmr_mode
@vmr_mode.setter
def vmr_mode(self, vmr_mode):
"""Sets the vmr_mode of this UserVmrDTO.
VMR模式。 - 0个人会议ID - 1: 云会议室 - 2: 网络研讨会
:param vmr_mode: The vmr_mode of this UserVmrDTO.
:type vmr_mode: int
"""
self._vmr_mode = vmr_mode
@property
def vmr_pkg_id(self):
"""Gets the vmr_pkg_id of this UserVmrDTO.
云会议室套餐包的id仅云会议室返回。
:return: The vmr_pkg_id of this UserVmrDTO.
:rtype: str
"""
return self._vmr_pkg_id
@vmr_pkg_id.setter
def vmr_pkg_id(self, vmr_pkg_id):
"""Sets the vmr_pkg_id of this UserVmrDTO.
云会议室套餐包的id仅云会议室返回。
:param vmr_pkg_id: The vmr_pkg_id of this UserVmrDTO.
:type vmr_pkg_id: str
"""
self._vmr_pkg_id = vmr_pkg_id
@property
def vmr_pkg_name(self):
"""Gets the vmr_pkg_name of this UserVmrDTO.
云会议室套餐包的名称,仅云会议室返回。
:return: The vmr_pkg_name of this UserVmrDTO.
:rtype: str
"""
return self._vmr_pkg_name
@vmr_pkg_name.setter
def vmr_pkg_name(self, vmr_pkg_name):
"""Sets the vmr_pkg_name of this UserVmrDTO.
云会议室套餐包的名称,仅云会议室返回。
:param vmr_pkg_name: The vmr_pkg_name of this UserVmrDTO.
:type vmr_pkg_name: str
"""
self._vmr_pkg_name = vmr_pkg_name
@property
def vmr_pkg_parties(self):
"""Gets the vmr_pkg_parties of this UserVmrDTO.
云会议室套餐包的会议并发方数,仅云会议室返回。
:return: The vmr_pkg_parties of this UserVmrDTO.
:rtype: int
"""
return self._vmr_pkg_parties
@vmr_pkg_parties.setter
def vmr_pkg_parties(self, vmr_pkg_parties):
"""Sets the vmr_pkg_parties of this UserVmrDTO.
云会议室套餐包的会议并发方数,仅云会议室返回。
:param vmr_pkg_parties: The vmr_pkg_parties of this UserVmrDTO.
:type vmr_pkg_parties: int
"""
self._vmr_pkg_parties = vmr_pkg_parties
@property
def vmr_pkg_length(self):
"""Gets the vmr_pkg_length of this UserVmrDTO.
云会议室套餐包的与会时间若为0则代表无限时长仅云会议室返回。
:return: The vmr_pkg_length of this UserVmrDTO.
:rtype: int
"""
return self._vmr_pkg_length
@vmr_pkg_length.setter
def vmr_pkg_length(self, vmr_pkg_length):
"""Sets the vmr_pkg_length of this UserVmrDTO.
云会议室套餐包的与会时间若为0则代表无限时长仅云会议室返回。
:param vmr_pkg_length: The vmr_pkg_length of this UserVmrDTO.
:type vmr_pkg_length: int
"""
self._vmr_pkg_length = vmr_pkg_length
@property
def status(self):
"""Gets the status of this UserVmrDTO.
云会议室状态。 * 0正常 * 1停用 * 2未分配
:return: The status of this UserVmrDTO.
:rtype: int
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this UserVmrDTO.
云会议室状态。 * 0正常 * 1停用 * 2未分配
:param status: The status of this UserVmrDTO.
:type status: int
"""
self._status = status
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, UserVmrDTO):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other