huaweicloud-sdk-python-v3/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_schedule_cycle_conf_dt...

311 lines
11 KiB
Python
Raw Normal View History

2021-09-10 09:32:19 +00:00
# coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class RestScheduleCycleConfDTO:
"""
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 = {
'cycle_sub_conf_id': 'str',
'media_types': 'str',
'start_time': 'str',
'length': 'int',
'is_auto_record': 'int',
'conf_config_info': 'CycleSubConfConfigDTO',
'record_auth_type': 'int',
'description': 'str'
}
attribute_map = {
'cycle_sub_conf_id': 'cycleSubConfID',
'media_types': 'mediaTypes',
'start_time': 'startTime',
'length': 'length',
'is_auto_record': 'isAutoRecord',
'conf_config_info': 'confConfigInfo',
'record_auth_type': 'recordAuthType',
'description': 'description'
}
def __init__(self, cycle_sub_conf_id=None, media_types=None, start_time=None, length=None, is_auto_record=None, conf_config_info=None, record_auth_type=None, description=None):
2022-04-21 12:03:46 +00:00
"""RestScheduleCycleConfDTO
The model defined in huaweicloud sdk
2022-09-22 11:38:02 +00:00
:param cycle_sub_conf_id: 子会议UUID
2022-04-21 12:03:46 +00:00
:type cycle_sub_conf_id: str
2022-09-22 11:38:02 +00:00
:param media_types: 会议的媒体类型 * Voice语音会议 * HDVideo视频会议
2022-04-21 12:03:46 +00:00
:type media_types: str
2022-09-22 11:38:02 +00:00
:param start_time: 会议开始时间UTC时间格式yyyy-MM-dd HH:mm > * 如果没有指定开始时间或填空串则表示会议马上开始 > * 时间是UTC时间即0时区的时间
2022-04-21 12:03:46 +00:00
:type start_time: str
2022-09-22 11:38:02 +00:00
:param length: 会议持续时长单位分钟默认30分钟最大1440分钟24小时最小15分钟
2022-04-21 12:03:46 +00:00
:type length: int
2022-09-22 11:38:02 +00:00
:param is_auto_record: 会议是否自动启动录制在录播类型为录播录播+直播时才生效默认为不自动启动 * 1自动启动录制 * 0不自动启动录制
2022-04-21 12:03:46 +00:00
:type is_auto_record: int
:param conf_config_info:
:type conf_config_info: :class:`huaweicloudsdkmeeting.v1.CycleSubConfConfigDTO`
2022-09-22 11:38:02 +00:00
:param record_auth_type: 录播观看鉴权方式在录播类型为:录播直播+录播时有效 * 0可通过链接观看/下载 * 1企业用户可观看/下载 * 2与会者可观看/下载
2022-04-21 12:03:46 +00:00
:type record_auth_type: int
2022-09-22 11:38:02 +00:00
:param description: 会议描述长度限制为200个字符
2022-04-21 12:03:46 +00:00
:type description: str
"""
2021-09-10 09:32:19 +00:00
self._cycle_sub_conf_id = None
self._media_types = None
self._start_time = None
self._length = None
self._is_auto_record = None
self._conf_config_info = None
self._record_auth_type = None
self._description = None
self.discriminator = None
self.cycle_sub_conf_id = cycle_sub_conf_id
self.media_types = media_types
self.start_time = start_time
self.length = length
if is_auto_record is not None:
self.is_auto_record = is_auto_record
if conf_config_info is not None:
self.conf_config_info = conf_config_info
if record_auth_type is not None:
self.record_auth_type = record_auth_type
if description is not None:
self.description = description
@property
def cycle_sub_conf_id(self):
"""Gets the cycle_sub_conf_id of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
子会议UUID
2021-09-10 09:32:19 +00:00
:return: The cycle_sub_conf_id of this RestScheduleCycleConfDTO.
:rtype: str
"""
return self._cycle_sub_conf_id
@cycle_sub_conf_id.setter
def cycle_sub_conf_id(self, cycle_sub_conf_id):
"""Sets the cycle_sub_conf_id of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
子会议UUID
2021-09-10 09:32:19 +00:00
:param cycle_sub_conf_id: The cycle_sub_conf_id of this RestScheduleCycleConfDTO.
2022-04-21 12:03:46 +00:00
:type cycle_sub_conf_id: str
2021-09-10 09:32:19 +00:00
"""
self._cycle_sub_conf_id = cycle_sub_conf_id
@property
def media_types(self):
"""Gets the media_types of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
会议的媒体类型 * Voice语音会议 * HDVideo视频会议
2021-09-10 09:32:19 +00:00
:return: The media_types of this RestScheduleCycleConfDTO.
:rtype: str
"""
return self._media_types
@media_types.setter
def media_types(self, media_types):
"""Sets the media_types of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
会议的媒体类型 * Voice语音会议 * HDVideo视频会议
2021-09-10 09:32:19 +00:00
:param media_types: The media_types of this RestScheduleCycleConfDTO.
2022-04-21 12:03:46 +00:00
:type media_types: str
2021-09-10 09:32:19 +00:00
"""
self._media_types = media_types
@property
def start_time(self):
"""Gets the start_time of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
会议开始时间UTC时间格式yyyy-MM-dd HH:mm > * 如果没有指定开始时间或填空串则表示会议马上开始 > * 时间是UTC时间即0时区的时间
2021-09-10 09:32:19 +00:00
:return: The start_time of this RestScheduleCycleConfDTO.
:rtype: str
"""
return self._start_time
@start_time.setter
def start_time(self, start_time):
"""Sets the start_time of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
会议开始时间UTC时间格式yyyy-MM-dd HH:mm > * 如果没有指定开始时间或填空串则表示会议马上开始 > * 时间是UTC时间即0时区的时间
2021-09-10 09:32:19 +00:00
:param start_time: The start_time of this RestScheduleCycleConfDTO.
2022-04-21 12:03:46 +00:00
:type start_time: str
2021-09-10 09:32:19 +00:00
"""
self._start_time = start_time
@property
def length(self):
"""Gets the length of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
会议持续时长单位分钟默认30分钟最大1440分钟24小时最小15分钟
2021-09-10 09:32:19 +00:00
:return: The length of this RestScheduleCycleConfDTO.
:rtype: int
"""
return self._length
@length.setter
def length(self, length):
"""Sets the length of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
会议持续时长单位分钟默认30分钟最大1440分钟24小时最小15分钟
2021-09-10 09:32:19 +00:00
:param length: The length of this RestScheduleCycleConfDTO.
2022-04-21 12:03:46 +00:00
:type length: int
2021-09-10 09:32:19 +00:00
"""
self._length = length
@property
def is_auto_record(self):
"""Gets the is_auto_record of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
会议是否自动启动录制在录播类型为录播录播+直播时才生效默认为不自动启动 * 1自动启动录制 * 0不自动启动录制
2021-09-10 09:32:19 +00:00
:return: The is_auto_record of this RestScheduleCycleConfDTO.
:rtype: int
"""
return self._is_auto_record
@is_auto_record.setter
def is_auto_record(self, is_auto_record):
"""Sets the is_auto_record of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
会议是否自动启动录制在录播类型为录播录播+直播时才生效默认为不自动启动 * 1自动启动录制 * 0不自动启动录制
2021-09-10 09:32:19 +00:00
:param is_auto_record: The is_auto_record of this RestScheduleCycleConfDTO.
2022-04-21 12:03:46 +00:00
:type is_auto_record: int
2021-09-10 09:32:19 +00:00
"""
self._is_auto_record = is_auto_record
@property
def conf_config_info(self):
"""Gets the conf_config_info of this RestScheduleCycleConfDTO.
:return: The conf_config_info of this RestScheduleCycleConfDTO.
2022-04-21 12:03:46 +00:00
:rtype: :class:`huaweicloudsdkmeeting.v1.CycleSubConfConfigDTO`
2021-09-10 09:32:19 +00:00
"""
return self._conf_config_info
@conf_config_info.setter
def conf_config_info(self, conf_config_info):
"""Sets the conf_config_info of this RestScheduleCycleConfDTO.
:param conf_config_info: The conf_config_info of this RestScheduleCycleConfDTO.
2022-04-21 12:03:46 +00:00
:type conf_config_info: :class:`huaweicloudsdkmeeting.v1.CycleSubConfConfigDTO`
2021-09-10 09:32:19 +00:00
"""
self._conf_config_info = conf_config_info
@property
def record_auth_type(self):
"""Gets the record_auth_type of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
录播观看鉴权方式在录播类型为:录播直播+录播时有效 * 0可通过链接观看/下载 * 1企业用户可观看/下载 * 2与会者可观看/下载
2021-09-10 09:32:19 +00:00
:return: The record_auth_type of this RestScheduleCycleConfDTO.
:rtype: int
"""
return self._record_auth_type
@record_auth_type.setter
def record_auth_type(self, record_auth_type):
"""Sets the record_auth_type of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
录播观看鉴权方式在录播类型为:录播直播+录播时有效 * 0可通过链接观看/下载 * 1企业用户可观看/下载 * 2与会者可观看/下载
2021-09-10 09:32:19 +00:00
:param record_auth_type: The record_auth_type of this RestScheduleCycleConfDTO.
2022-04-21 12:03:46 +00:00
:type record_auth_type: int
2021-09-10 09:32:19 +00:00
"""
self._record_auth_type = record_auth_type
@property
def description(self):
"""Gets the description of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
会议描述长度限制为200个字符
2021-09-10 09:32:19 +00:00
:return: The description of this RestScheduleCycleConfDTO.
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this RestScheduleCycleConfDTO.
2022-09-22 11:38:02 +00:00
会议描述长度限制为200个字符
2021-09-10 09:32:19 +00:00
:param description: The description of this RestScheduleCycleConfDTO.
2022-04-21 12:03:46 +00:00
:type description: str
2021-09-10 09:32:19 +00:00
"""
self._description = description
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, RestScheduleCycleConfDTO):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other