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

232 lines
6.5 KiB
Python
Raw Normal View History

2020-05-18 07:34:40 +00:00
# coding: utf-8
import six
2021-07-26 11:24:08 +00:00
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ResDetailDTO:
2020-05-18 07:34:40 +00:00
"""
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 = []
2020-05-18 07:34:40 +00:00
openapi_types = {
'sum_count': 'int',
'trial_count': 'int',
'expired_count': 'int',
'expiring_count': 'int',
'used_count': 'int'
2020-05-18 07:34:40 +00:00
}
attribute_map = {
'sum_count': 'sumCount',
'trial_count': 'trialCount',
'expired_count': 'expiredCount',
'expiring_count': 'expiringCount',
'used_count': 'usedCount'
2020-05-18 07:34:40 +00:00
}
def __init__(self, sum_count=None, trial_count=None, expired_count=None, expiring_count=None, used_count=None):
2022-04-21 12:03:46 +00:00
"""ResDetailDTO
The model defined in huaweicloud sdk
2022-09-22 11:38:02 +00:00
:param sum_count: 总数
2022-04-21 12:03:46 +00:00
:type sum_count: int
2022-09-22 11:38:02 +00:00
:param trial_count: 赠送数量
2022-04-21 12:03:46 +00:00
:type trial_count: int
2022-09-22 11:38:02 +00:00
:param expired_count: 到期数量
2022-04-21 12:03:46 +00:00
:type expired_count: int
2022-09-22 11:38:02 +00:00
:param expiring_count: 即将到期数量到期时间在30天内
2022-04-21 12:03:46 +00:00
:type expiring_count: int
:param used_count: 已使用数录播存储空间会议并发推流并发方数暂无法查询
:type used_count: int
"""
2020-05-18 07:34:40 +00:00
self._sum_count = None
self._trial_count = None
self._expired_count = None
self._expiring_count = None
self._used_count = None
2020-05-18 07:34:40 +00:00
self.discriminator = None
if sum_count is not None:
self.sum_count = sum_count
if trial_count is not None:
self.trial_count = trial_count
if expired_count is not None:
self.expired_count = expired_count
if expiring_count is not None:
self.expiring_count = expiring_count
if used_count is not None:
self.used_count = used_count
2020-05-18 07:34:40 +00:00
@property
def sum_count(self):
"""Gets the sum_count of this ResDetailDTO.
2020-05-18 07:34:40 +00:00
2022-09-22 11:38:02 +00:00
总数
2020-05-18 07:34:40 +00:00
:return: The sum_count of this ResDetailDTO.
:rtype: int
2020-05-18 07:34:40 +00:00
"""
return self._sum_count
2020-05-18 07:34:40 +00:00
@sum_count.setter
def sum_count(self, sum_count):
"""Sets the sum_count of this ResDetailDTO.
2020-05-18 07:34:40 +00:00
2022-09-22 11:38:02 +00:00
总数
2020-05-18 07:34:40 +00:00
:param sum_count: The sum_count of this ResDetailDTO.
2022-04-21 12:03:46 +00:00
:type sum_count: int
2020-05-18 07:34:40 +00:00
"""
self._sum_count = sum_count
2020-05-18 07:34:40 +00:00
@property
def trial_count(self):
"""Gets the trial_count of this ResDetailDTO.
2022-09-22 11:38:02 +00:00
赠送数量
:return: The trial_count of this ResDetailDTO.
:rtype: int
"""
return self._trial_count
@trial_count.setter
def trial_count(self, trial_count):
"""Sets the trial_count of this ResDetailDTO.
2022-09-22 11:38:02 +00:00
赠送数量
:param trial_count: The trial_count of this ResDetailDTO.
2022-04-21 12:03:46 +00:00
:type trial_count: int
"""
self._trial_count = trial_count
@property
def expired_count(self):
"""Gets the expired_count of this ResDetailDTO.
2022-09-22 11:38:02 +00:00
到期数量
:return: The expired_count of this ResDetailDTO.
:rtype: int
"""
return self._expired_count
@expired_count.setter
def expired_count(self, expired_count):
"""Sets the expired_count of this ResDetailDTO.
2022-09-22 11:38:02 +00:00
到期数量
:param expired_count: The expired_count of this ResDetailDTO.
2022-04-21 12:03:46 +00:00
:type expired_count: int
"""
self._expired_count = expired_count
@property
def expiring_count(self):
"""Gets the expiring_count of this ResDetailDTO.
2022-09-22 11:38:02 +00:00
即将到期数量到期时间在30天内
:return: The expiring_count of this ResDetailDTO.
:rtype: int
"""
return self._expiring_count
@expiring_count.setter
def expiring_count(self, expiring_count):
"""Sets the expiring_count of this ResDetailDTO.
2022-09-22 11:38:02 +00:00
即将到期数量到期时间在30天内
:param expiring_count: The expiring_count of this ResDetailDTO.
2022-04-21 12:03:46 +00:00
:type expiring_count: int
"""
self._expiring_count = expiring_count
2020-05-18 07:34:40 +00:00
@property
def used_count(self):
"""Gets the used_count of this ResDetailDTO.
2020-05-18 07:34:40 +00:00
已使用数录播存储空间会议并发推流并发方数暂无法查询
2020-05-18 07:34:40 +00:00
:return: The used_count of this ResDetailDTO.
:rtype: int
2020-05-18 07:34:40 +00:00
"""
return self._used_count
2020-05-18 07:34:40 +00:00
@used_count.setter
def used_count(self, used_count):
"""Sets the used_count of this ResDetailDTO.
2020-05-18 07:34:40 +00:00
已使用数录播存储空间会议并发推流并发方数暂无法查询
2020-05-18 07:34:40 +00:00
:param used_count: The used_count of this ResDetailDTO.
2022-04-21 12:03:46 +00:00
:type used_count: int
2020-05-18 07:34:40 +00:00
"""
self._used_count = used_count
2020-05-18 07:34:40 +00:00
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
2020-05-18 07:34:40 +00:00
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)
2020-05-18 07:34:40 +00:00
def __repr__(self):
2021-08-10 12:26:18 +00:00
"""For `print`"""
2020-05-18 07:34:40 +00:00
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, ResDetailDTO):
2020-05-18 07:34:40 +00:00
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other