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

638 lines
21 KiB
Python
Raw Normal View History

2021-06-25 11:57:33 +00:00
# coding: utf-8
import six
2021-07-26 11:24:08 +00:00
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
2021-06-25 11:57:33 +00:00
class OpenWebinarHistoryInfo:
"""
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 = {
'conference_id': 'str',
'conf_uuid': 'str',
'subject': 'str',
'scheduser_name': 'str',
'moderator': 'str',
'dept_name': 'str',
'time_zone_id': 'int',
'start_time': 'str',
'duration': 'int',
'actual_start_time': 'str',
'end_time': 'str',
'actual_duration': 'int',
'attendee_count': 'int',
'chair_count': 'int',
'guest_count': 'int',
'audience_count': 'int',
'vmr_id': 'str',
'vmr_pkg_audience_parties': 'int',
'vmr_pkg_name': 'str'
}
attribute_map = {
'conference_id': 'conferenceId',
'conf_uuid': 'confUUID',
'subject': 'subject',
'scheduser_name': 'scheduserName',
'moderator': 'moderator',
'dept_name': 'deptName',
'time_zone_id': 'timeZoneId',
'start_time': 'startTime',
'duration': 'duration',
'actual_start_time': 'actualStartTime',
'end_time': 'endTime',
'actual_duration': 'actualDuration',
'attendee_count': 'attendeeCount',
'chair_count': 'chairCount',
'guest_count': 'guestCount',
'audience_count': 'audienceCount',
'vmr_id': 'vmrId',
'vmr_pkg_audience_parties': 'vmrPkgAudienceParties',
'vmr_pkg_name': 'vmrPkgName'
}
def __init__(self, conference_id=None, conf_uuid=None, subject=None, scheduser_name=None, moderator=None, dept_name=None, time_zone_id=None, start_time=None, duration=None, actual_start_time=None, end_time=None, actual_duration=None, attendee_count=None, chair_count=None, guest_count=None, audience_count=None, vmr_id=None, vmr_pkg_audience_parties=None, vmr_pkg_name=None):
2022-04-21 12:03:46 +00:00
"""OpenWebinarHistoryInfo
The model defined in huaweicloud sdk
2022-09-22 11:38:02 +00:00
:param conference_id: 网络研讨会ID
2022-04-21 12:03:46 +00:00
:type conference_id: str
2022-09-22 11:38:02 +00:00
:param conf_uuid: 网络研讨会UUID
2022-04-21 12:03:46 +00:00
:type conf_uuid: str
2022-09-22 11:38:02 +00:00
:param subject: 网络研讨会主题
2022-04-21 12:03:46 +00:00
:type subject: str
2022-09-22 11:38:02 +00:00
:param scheduser_name: 网络研讨会预定者名称
2022-04-21 12:03:46 +00:00
:type scheduser_name: str
2022-09-22 11:38:02 +00:00
:param moderator: 网络研讨主持人名称
2022-04-21 12:03:46 +00:00
:type moderator: str
2022-09-22 11:38:02 +00:00
:param dept_name: 预订人部门名称
2022-04-21 12:03:46 +00:00
:type dept_name: str
2022-09-22 11:38:02 +00:00
:param time_zone_id: 会议通知中会议时间的时区信息时区信息参考[[时区映射关系](https://support.huaweicloud.com/api-meeting/meeting_21_0110.html#ZH-CN_TOPIC_0212714472__table137407441463)](tag:hws)[[时区映射关系](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0110.html#ZH-CN_TOPIC_0212714472__table137407441463)](tag:hk)。 > * 举例“timeZoneID”:\"26\"则通过华为云会议发送的会议通知中的时间将会标记为如“2021/11/11 星期四 00:00 - 02:00 (GMT) 格林威治标准时间:都柏林, 爱丁堡, 里斯本, 伦敦”。
2022-04-21 12:03:46 +00:00
:type time_zone_id: int
2022-09-22 11:38:02 +00:00
:param start_time: 网络研讨会开始时间UTC时间格式yyyy-MM-dd HH:mm
2022-04-21 12:03:46 +00:00
:type start_time: str
2022-09-22 11:38:02 +00:00
:param duration: 网络研讨会持续时长单位分钟
2022-04-21 12:03:46 +00:00
:type duration: int
2022-09-22 11:38:02 +00:00
:param actual_start_time: 网络研讨会实际召开时间UTC时间格式yyyy-MM-dd HH:mm
2022-04-21 12:03:46 +00:00
:type actual_start_time: str
2022-09-22 11:38:02 +00:00
:param end_time: 网络研讨会结束时间UTC时间格式yyyy-MM-dd HH:mm
2022-04-21 12:03:46 +00:00
:type end_time: str
2022-09-22 11:38:02 +00:00
:param actual_duration: 网络研讨会实际时长单位分钟
2022-04-21 12:03:46 +00:00
:type actual_duration: int
2022-09-22 11:38:02 +00:00
:param attendee_count: 与会人数
2022-04-21 12:03:46 +00:00
:type attendee_count: int
2022-09-22 11:38:02 +00:00
:param chair_count: 主持人数
2022-04-21 12:03:46 +00:00
:type chair_count: int
2022-09-22 11:38:02 +00:00
:param guest_count: 嘉宾数
2022-04-21 12:03:46 +00:00
:type guest_count: int
2022-09-22 11:38:02 +00:00
:param audience_count: 观众人数
2022-04-21 12:03:46 +00:00
:type audience_count: int
2022-09-22 11:38:02 +00:00
:param vmr_id: VMR ID
2022-04-21 12:03:46 +00:00
:type vmr_id: str
2022-09-22 11:38:02 +00:00
:param vmr_pkg_audience_parties: 网络研讨会VMR最大观众数
2022-04-21 12:03:46 +00:00
:type vmr_pkg_audience_parties: int
2022-09-22 11:38:02 +00:00
:param vmr_pkg_name: 网络研讨会VMR名称
2022-04-21 12:03:46 +00:00
:type vmr_pkg_name: str
"""
2021-06-25 11:57:33 +00:00
self._conference_id = None
self._conf_uuid = None
self._subject = None
self._scheduser_name = None
self._moderator = None
self._dept_name = None
self._time_zone_id = None
self._start_time = None
self._duration = None
self._actual_start_time = None
self._end_time = None
self._actual_duration = None
self._attendee_count = None
self._chair_count = None
self._guest_count = None
self._audience_count = None
self._vmr_id = None
self._vmr_pkg_audience_parties = None
self._vmr_pkg_name = None
self.discriminator = None
if conference_id is not None:
self.conference_id = conference_id
if conf_uuid is not None:
self.conf_uuid = conf_uuid
if subject is not None:
self.subject = subject
if scheduser_name is not None:
self.scheduser_name = scheduser_name
if moderator is not None:
self.moderator = moderator
if dept_name is not None:
self.dept_name = dept_name
if time_zone_id is not None:
self.time_zone_id = time_zone_id
if start_time is not None:
self.start_time = start_time
if duration is not None:
self.duration = duration
if actual_start_time is not None:
self.actual_start_time = actual_start_time
if end_time is not None:
self.end_time = end_time
if actual_duration is not None:
self.actual_duration = actual_duration
if attendee_count is not None:
self.attendee_count = attendee_count
if chair_count is not None:
self.chair_count = chair_count
if guest_count is not None:
self.guest_count = guest_count
if audience_count is not None:
self.audience_count = audience_count
if vmr_id is not None:
self.vmr_id = vmr_id
if vmr_pkg_audience_parties is not None:
self.vmr_pkg_audience_parties = vmr_pkg_audience_parties
if vmr_pkg_name is not None:
self.vmr_pkg_name = vmr_pkg_name
@property
def conference_id(self):
"""Gets the conference_id of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会ID
2021-06-25 11:57:33 +00:00
:return: The conference_id of this OpenWebinarHistoryInfo.
:rtype: str
"""
return self._conference_id
@conference_id.setter
def conference_id(self, conference_id):
"""Sets the conference_id of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会ID
2021-06-25 11:57:33 +00:00
:param conference_id: The conference_id of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type conference_id: str
2021-06-25 11:57:33 +00:00
"""
self._conference_id = conference_id
@property
def conf_uuid(self):
"""Gets the conf_uuid of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会UUID
2021-06-25 11:57:33 +00:00
:return: The conf_uuid of this OpenWebinarHistoryInfo.
:rtype: str
"""
return self._conf_uuid
@conf_uuid.setter
def conf_uuid(self, conf_uuid):
"""Sets the conf_uuid of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会UUID
2021-06-25 11:57:33 +00:00
:param conf_uuid: The conf_uuid of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type conf_uuid: str
2021-06-25 11:57:33 +00:00
"""
self._conf_uuid = conf_uuid
@property
def subject(self):
"""Gets the subject of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会主题
2021-06-25 11:57:33 +00:00
:return: The subject of this OpenWebinarHistoryInfo.
:rtype: str
"""
return self._subject
@subject.setter
def subject(self, subject):
"""Sets the subject of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会主题
2021-06-25 11:57:33 +00:00
:param subject: The subject of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type subject: str
2021-06-25 11:57:33 +00:00
"""
self._subject = subject
@property
def scheduser_name(self):
"""Gets the scheduser_name of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会预定者名称
2021-06-25 11:57:33 +00:00
:return: The scheduser_name of this OpenWebinarHistoryInfo.
:rtype: str
"""
return self._scheduser_name
@scheduser_name.setter
def scheduser_name(self, scheduser_name):
"""Sets the scheduser_name of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会预定者名称
2021-06-25 11:57:33 +00:00
:param scheduser_name: The scheduser_name of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type scheduser_name: str
2021-06-25 11:57:33 +00:00
"""
self._scheduser_name = scheduser_name
@property
def moderator(self):
"""Gets the moderator of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨主持人名称
2021-06-25 11:57:33 +00:00
:return: The moderator of this OpenWebinarHistoryInfo.
:rtype: str
"""
return self._moderator
@moderator.setter
def moderator(self, moderator):
"""Sets the moderator of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨主持人名称
2021-06-25 11:57:33 +00:00
:param moderator: The moderator of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type moderator: str
2021-06-25 11:57:33 +00:00
"""
self._moderator = moderator
@property
def dept_name(self):
"""Gets the dept_name of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
预订人部门名称
2021-06-25 11:57:33 +00:00
:return: The dept_name of this OpenWebinarHistoryInfo.
:rtype: str
"""
return self._dept_name
@dept_name.setter
def dept_name(self, dept_name):
"""Sets the dept_name of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
预订人部门名称
2021-06-25 11:57:33 +00:00
:param dept_name: The dept_name of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type dept_name: str
2021-06-25 11:57:33 +00:00
"""
self._dept_name = dept_name
@property
def time_zone_id(self):
"""Gets the time_zone_id of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
会议通知中会议时间的时区信息时区信息参考[[时区映射关系](https://support.huaweicloud.com/api-meeting/meeting_21_0110.html#ZH-CN_TOPIC_0212714472__table137407441463)](tag:hws)[[时区映射关系](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0110.html#ZH-CN_TOPIC_0212714472__table137407441463)](tag:hk)。 > * 举例“timeZoneID”:\"26\"则通过华为云会议发送的会议通知中的时间将会标记为如“2021/11/11 星期四 00:00 - 02:00 (GMT) 格林威治标准时间:都柏林, 爱丁堡, 里斯本, 伦敦”。
2021-06-25 11:57:33 +00:00
:return: The time_zone_id of this OpenWebinarHistoryInfo.
:rtype: int
"""
return self._time_zone_id
@time_zone_id.setter
def time_zone_id(self, time_zone_id):
"""Sets the time_zone_id of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
会议通知中会议时间的时区信息时区信息参考[[时区映射关系](https://support.huaweicloud.com/api-meeting/meeting_21_0110.html#ZH-CN_TOPIC_0212714472__table137407441463)](tag:hws)[[时区映射关系](https://support.huaweicloud.com/intl/zh-cn/api-meeting/meeting_21_0110.html#ZH-CN_TOPIC_0212714472__table137407441463)](tag:hk)。 > * 举例“timeZoneID”:\"26\"则通过华为云会议发送的会议通知中的时间将会标记为如“2021/11/11 星期四 00:00 - 02:00 (GMT) 格林威治标准时间:都柏林, 爱丁堡, 里斯本, 伦敦”。
2021-06-25 11:57:33 +00:00
:param time_zone_id: The time_zone_id of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type time_zone_id: int
2021-06-25 11:57:33 +00:00
"""
self._time_zone_id = time_zone_id
@property
def start_time(self):
"""Gets the start_time of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会开始时间UTC时间格式yyyy-MM-dd HH:mm
2021-06-25 11:57:33 +00:00
:return: The start_time of this OpenWebinarHistoryInfo.
:rtype: str
"""
return self._start_time
@start_time.setter
def start_time(self, start_time):
"""Sets the start_time of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会开始时间UTC时间格式yyyy-MM-dd HH:mm
2021-06-25 11:57:33 +00:00
:param start_time: The start_time of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type start_time: str
2021-06-25 11:57:33 +00:00
"""
self._start_time = start_time
@property
def duration(self):
"""Gets the duration of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会持续时长单位分钟
2021-06-25 11:57:33 +00:00
:return: The duration of this OpenWebinarHistoryInfo.
:rtype: int
"""
return self._duration
@duration.setter
def duration(self, duration):
"""Sets the duration of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会持续时长单位分钟
2021-06-25 11:57:33 +00:00
:param duration: The duration of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type duration: int
2021-06-25 11:57:33 +00:00
"""
self._duration = duration
@property
def actual_start_time(self):
"""Gets the actual_start_time of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会实际召开时间UTC时间格式yyyy-MM-dd HH:mm
2021-06-25 11:57:33 +00:00
:return: The actual_start_time of this OpenWebinarHistoryInfo.
:rtype: str
"""
return self._actual_start_time
@actual_start_time.setter
def actual_start_time(self, actual_start_time):
"""Sets the actual_start_time of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会实际召开时间UTC时间格式yyyy-MM-dd HH:mm
2021-06-25 11:57:33 +00:00
:param actual_start_time: The actual_start_time of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type actual_start_time: str
2021-06-25 11:57:33 +00:00
"""
self._actual_start_time = actual_start_time
@property
def end_time(self):
"""Gets the end_time of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会结束时间UTC时间格式yyyy-MM-dd HH:mm
2021-06-25 11:57:33 +00:00
:return: The end_time of this OpenWebinarHistoryInfo.
:rtype: str
"""
return self._end_time
@end_time.setter
def end_time(self, end_time):
"""Sets the end_time of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会结束时间UTC时间格式yyyy-MM-dd HH:mm
2021-06-25 11:57:33 +00:00
:param end_time: The end_time of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type end_time: str
2021-06-25 11:57:33 +00:00
"""
self._end_time = end_time
@property
def actual_duration(self):
"""Gets the actual_duration of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会实际时长单位分钟
2021-06-25 11:57:33 +00:00
:return: The actual_duration of this OpenWebinarHistoryInfo.
:rtype: int
"""
return self._actual_duration
@actual_duration.setter
def actual_duration(self, actual_duration):
"""Sets the actual_duration of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会实际时长单位分钟
2021-06-25 11:57:33 +00:00
:param actual_duration: The actual_duration of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type actual_duration: int
2021-06-25 11:57:33 +00:00
"""
self._actual_duration = actual_duration
@property
def attendee_count(self):
"""Gets the attendee_count of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
与会人数
2021-06-25 11:57:33 +00:00
:return: The attendee_count of this OpenWebinarHistoryInfo.
:rtype: int
"""
return self._attendee_count
@attendee_count.setter
def attendee_count(self, attendee_count):
"""Sets the attendee_count of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
与会人数
2021-06-25 11:57:33 +00:00
:param attendee_count: The attendee_count of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type attendee_count: int
2021-06-25 11:57:33 +00:00
"""
self._attendee_count = attendee_count
@property
def chair_count(self):
"""Gets the chair_count of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
主持人数
2021-06-25 11:57:33 +00:00
:return: The chair_count of this OpenWebinarHistoryInfo.
:rtype: int
"""
return self._chair_count
@chair_count.setter
def chair_count(self, chair_count):
"""Sets the chair_count of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
主持人数
2021-06-25 11:57:33 +00:00
:param chair_count: The chair_count of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type chair_count: int
2021-06-25 11:57:33 +00:00
"""
self._chair_count = chair_count
@property
def guest_count(self):
"""Gets the guest_count of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
嘉宾数
2021-06-25 11:57:33 +00:00
:return: The guest_count of this OpenWebinarHistoryInfo.
:rtype: int
"""
return self._guest_count
@guest_count.setter
def guest_count(self, guest_count):
"""Sets the guest_count of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
嘉宾数
2021-06-25 11:57:33 +00:00
:param guest_count: The guest_count of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type guest_count: int
2021-06-25 11:57:33 +00:00
"""
self._guest_count = guest_count
@property
def audience_count(self):
"""Gets the audience_count of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
观众人数
2021-06-25 11:57:33 +00:00
:return: The audience_count of this OpenWebinarHistoryInfo.
:rtype: int
"""
return self._audience_count
@audience_count.setter
def audience_count(self, audience_count):
"""Sets the audience_count of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
观众人数
2021-06-25 11:57:33 +00:00
:param audience_count: The audience_count of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type audience_count: int
2021-06-25 11:57:33 +00:00
"""
self._audience_count = audience_count
@property
def vmr_id(self):
"""Gets the vmr_id of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
VMR ID
2021-06-25 11:57:33 +00:00
:return: The vmr_id of this OpenWebinarHistoryInfo.
:rtype: str
"""
return self._vmr_id
@vmr_id.setter
def vmr_id(self, vmr_id):
"""Sets the vmr_id of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
VMR ID
2021-06-25 11:57:33 +00:00
:param vmr_id: The vmr_id of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type vmr_id: str
2021-06-25 11:57:33 +00:00
"""
self._vmr_id = vmr_id
@property
def vmr_pkg_audience_parties(self):
"""Gets the vmr_pkg_audience_parties of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会VMR最大观众数
2021-06-25 11:57:33 +00:00
:return: The vmr_pkg_audience_parties of this OpenWebinarHistoryInfo.
:rtype: int
"""
return self._vmr_pkg_audience_parties
@vmr_pkg_audience_parties.setter
def vmr_pkg_audience_parties(self, vmr_pkg_audience_parties):
"""Sets the vmr_pkg_audience_parties of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会VMR最大观众数
2021-06-25 11:57:33 +00:00
:param vmr_pkg_audience_parties: The vmr_pkg_audience_parties of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type vmr_pkg_audience_parties: int
2021-06-25 11:57:33 +00:00
"""
self._vmr_pkg_audience_parties = vmr_pkg_audience_parties
@property
def vmr_pkg_name(self):
"""Gets the vmr_pkg_name of this OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会VMR名称
2021-06-25 11:57:33 +00:00
:return: The vmr_pkg_name of this OpenWebinarHistoryInfo.
: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 OpenWebinarHistoryInfo.
2022-09-22 11:38:02 +00:00
网络研讨会VMR名称
2021-06-25 11:57:33 +00:00
:param vmr_pkg_name: The vmr_pkg_name of this OpenWebinarHistoryInfo.
2022-04-21 12:03:46 +00:00
:type vmr_pkg_name: str
2021-06-25 11:57:33 +00:00
"""
self._vmr_pkg_name = vmr_pkg_name
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)
2021-06-25 11:57:33 +00:00
def __repr__(self):
2021-08-10 12:26:18 +00:00
"""For `print`"""
2021-06-25 11:57:33 +00:00
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, OpenWebinarHistoryInfo):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other