# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ShowOrgResResponse(SdkResponse): """ 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 = { 'used_rec_storage': 'float', 'used_accounts_count': 'int', 'used_live_count': 'int', 'conf_count': 'int', 'conf_length': 'int', 'active_attendee_count': 'int', 'total_attendee_count': 'int' } attribute_map = { 'used_rec_storage': 'usedRecStorage', 'used_accounts_count': 'usedAccountsCount', 'used_live_count': 'usedLiveCount', 'conf_count': 'confCount', 'conf_length': 'confLength', 'active_attendee_count': 'activeAttendeeCount', 'total_attendee_count': 'totalAttendeeCount' } def __init__(self, used_rec_storage=None, used_accounts_count=None, used_live_count=None, conf_count=None, conf_length=None, active_attendee_count=None, total_attendee_count=None): """ShowOrgResResponse The model defined in huaweicloud sdk :param used_rec_storage: 企业管理员查询所属企业的资源使用信息。 :type used_rec_storage: float :param used_accounts_count: 当前已用的会议并发数量。 :type used_accounts_count: int :param used_live_count: 当前已用的直播推流资源。 :type used_live_count: int :param conf_count: 当前已用的直播推流资源。 :type conf_count: int :param conf_length: 当日会议总时长。 :type conf_length: int :param active_attendee_count: 当日活跃用户数。 :type active_attendee_count: int :param total_attendee_count: 当日总与会人数。 :type total_attendee_count: int """ super(ShowOrgResResponse, self).__init__() self._used_rec_storage = None self._used_accounts_count = None self._used_live_count = None self._conf_count = None self._conf_length = None self._active_attendee_count = None self._total_attendee_count = None self.discriminator = None if used_rec_storage is not None: self.used_rec_storage = used_rec_storage if used_accounts_count is not None: self.used_accounts_count = used_accounts_count if used_live_count is not None: self.used_live_count = used_live_count if conf_count is not None: self.conf_count = conf_count if conf_length is not None: self.conf_length = conf_length if active_attendee_count is not None: self.active_attendee_count = active_attendee_count if total_attendee_count is not None: self.total_attendee_count = total_attendee_count @property def used_rec_storage(self): """Gets the used_rec_storage of this ShowOrgResResponse. 企业管理员查询所属企业的资源使用信息。 :return: The used_rec_storage of this ShowOrgResResponse. :rtype: float """ return self._used_rec_storage @used_rec_storage.setter def used_rec_storage(self, used_rec_storage): """Sets the used_rec_storage of this ShowOrgResResponse. 企业管理员查询所属企业的资源使用信息。 :param used_rec_storage: The used_rec_storage of this ShowOrgResResponse. :type used_rec_storage: float """ self._used_rec_storage = used_rec_storage @property def used_accounts_count(self): """Gets the used_accounts_count of this ShowOrgResResponse. 当前已用的会议并发数量。 :return: The used_accounts_count of this ShowOrgResResponse. :rtype: int """ return self._used_accounts_count @used_accounts_count.setter def used_accounts_count(self, used_accounts_count): """Sets the used_accounts_count of this ShowOrgResResponse. 当前已用的会议并发数量。 :param used_accounts_count: The used_accounts_count of this ShowOrgResResponse. :type used_accounts_count: int """ self._used_accounts_count = used_accounts_count @property def used_live_count(self): """Gets the used_live_count of this ShowOrgResResponse. 当前已用的直播推流资源。 :return: The used_live_count of this ShowOrgResResponse. :rtype: int """ return self._used_live_count @used_live_count.setter def used_live_count(self, used_live_count): """Sets the used_live_count of this ShowOrgResResponse. 当前已用的直播推流资源。 :param used_live_count: The used_live_count of this ShowOrgResResponse. :type used_live_count: int """ self._used_live_count = used_live_count @property def conf_count(self): """Gets the conf_count of this ShowOrgResResponse. 当前已用的直播推流资源。 :return: The conf_count of this ShowOrgResResponse. :rtype: int """ return self._conf_count @conf_count.setter def conf_count(self, conf_count): """Sets the conf_count of this ShowOrgResResponse. 当前已用的直播推流资源。 :param conf_count: The conf_count of this ShowOrgResResponse. :type conf_count: int """ self._conf_count = conf_count @property def conf_length(self): """Gets the conf_length of this ShowOrgResResponse. 当日会议总时长。 :return: The conf_length of this ShowOrgResResponse. :rtype: int """ return self._conf_length @conf_length.setter def conf_length(self, conf_length): """Sets the conf_length of this ShowOrgResResponse. 当日会议总时长。 :param conf_length: The conf_length of this ShowOrgResResponse. :type conf_length: int """ self._conf_length = conf_length @property def active_attendee_count(self): """Gets the active_attendee_count of this ShowOrgResResponse. 当日活跃用户数。 :return: The active_attendee_count of this ShowOrgResResponse. :rtype: int """ return self._active_attendee_count @active_attendee_count.setter def active_attendee_count(self, active_attendee_count): """Sets the active_attendee_count of this ShowOrgResResponse. 当日活跃用户数。 :param active_attendee_count: The active_attendee_count of this ShowOrgResResponse. :type active_attendee_count: int """ self._active_attendee_count = active_attendee_count @property def total_attendee_count(self): """Gets the total_attendee_count of this ShowOrgResResponse. 当日总与会人数。 :return: The total_attendee_count of this ShowOrgResResponse. :rtype: int """ return self._total_attendee_count @total_attendee_count.setter def total_attendee_count(self, total_attendee_count): """Sets the total_attendee_count of this ShowOrgResResponse. 当日总与会人数。 :param total_attendee_count: The total_attendee_count of this ShowOrgResResponse. :type total_attendee_count: int """ self._total_attendee_count = total_attendee_count 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, ShowOrgResResponse): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other