246 lines
7.5 KiB
Python
246 lines
7.5 KiB
Python
|
# coding: utf-8
|
|||
|
|
|||
|
import re
|
|||
|
import six
|
|||
|
|
|||
|
|
|||
|
|
|||
|
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|||
|
|
|||
|
|
|||
|
class ShowTopUrlRequest:
|
|||
|
|
|||
|
|
|||
|
"""
|
|||
|
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 = {
|
|||
|
'start_time': 'int',
|
|||
|
'end_time': 'int',
|
|||
|
'domain_name': 'str',
|
|||
|
'stat_type': 'str',
|
|||
|
'service_area': 'str',
|
|||
|
'enterprise_project_id': 'str'
|
|||
|
}
|
|||
|
|
|||
|
attribute_map = {
|
|||
|
'start_time': 'start_time',
|
|||
|
'end_time': 'end_time',
|
|||
|
'domain_name': 'domain_name',
|
|||
|
'stat_type': 'stat_type',
|
|||
|
'service_area': 'service_area',
|
|||
|
'enterprise_project_id': 'enterprise_project_id'
|
|||
|
}
|
|||
|
|
|||
|
def __init__(self, start_time=None, end_time=None, domain_name=None, stat_type=None, service_area=None, enterprise_project_id=None):
|
|||
|
"""ShowTopUrlRequest - a model defined in huaweicloud sdk"""
|
|||
|
|
|||
|
|
|||
|
|
|||
|
self._start_time = None
|
|||
|
self._end_time = None
|
|||
|
self._domain_name = None
|
|||
|
self._stat_type = None
|
|||
|
self._service_area = None
|
|||
|
self._enterprise_project_id = None
|
|||
|
self.discriminator = None
|
|||
|
|
|||
|
self.start_time = start_time
|
|||
|
self.end_time = end_time
|
|||
|
self.domain_name = domain_name
|
|||
|
self.stat_type = stat_type
|
|||
|
if service_area is not None:
|
|||
|
self.service_area = service_area
|
|||
|
if enterprise_project_id is not None:
|
|||
|
self.enterprise_project_id = enterprise_project_id
|
|||
|
|
|||
|
@property
|
|||
|
def start_time(self):
|
|||
|
"""Gets the start_time of this ShowTopUrlRequest.
|
|||
|
|
|||
|
查询起始时间戳,只能传0点毫秒时间戳
|
|||
|
|
|||
|
:return: The start_time of this ShowTopUrlRequest.
|
|||
|
:rtype: int
|
|||
|
"""
|
|||
|
return self._start_time
|
|||
|
|
|||
|
@start_time.setter
|
|||
|
def start_time(self, start_time):
|
|||
|
"""Sets the start_time of this ShowTopUrlRequest.
|
|||
|
|
|||
|
查询起始时间戳,只能传0点毫秒时间戳
|
|||
|
|
|||
|
:param start_time: The start_time of this ShowTopUrlRequest.
|
|||
|
:type: int
|
|||
|
"""
|
|||
|
self._start_time = start_time
|
|||
|
|
|||
|
@property
|
|||
|
def end_time(self):
|
|||
|
"""Gets the end_time of this ShowTopUrlRequest.
|
|||
|
|
|||
|
查询结束时间戳,只能传0点毫秒时间戳
|
|||
|
|
|||
|
:return: The end_time of this ShowTopUrlRequest.
|
|||
|
:rtype: int
|
|||
|
"""
|
|||
|
return self._end_time
|
|||
|
|
|||
|
@end_time.setter
|
|||
|
def end_time(self, end_time):
|
|||
|
"""Sets the end_time of this ShowTopUrlRequest.
|
|||
|
|
|||
|
查询结束时间戳,只能传0点毫秒时间戳
|
|||
|
|
|||
|
:param end_time: The end_time of this ShowTopUrlRequest.
|
|||
|
:type: int
|
|||
|
"""
|
|||
|
self._end_time = end_time
|
|||
|
|
|||
|
@property
|
|||
|
def domain_name(self):
|
|||
|
"""Gets the domain_name of this ShowTopUrlRequest.
|
|||
|
|
|||
|
域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
|
|||
|
|
|||
|
:return: The domain_name of this ShowTopUrlRequest.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._domain_name
|
|||
|
|
|||
|
@domain_name.setter
|
|||
|
def domain_name(self, domain_name):
|
|||
|
"""Sets the domain_name of this ShowTopUrlRequest.
|
|||
|
|
|||
|
域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
|
|||
|
|
|||
|
:param domain_name: The domain_name of this ShowTopUrlRequest.
|
|||
|
:type: str
|
|||
|
"""
|
|||
|
self._domain_name = domain_name
|
|||
|
|
|||
|
@property
|
|||
|
def stat_type(self):
|
|||
|
"""Gets the stat_type of this ShowTopUrlRequest.
|
|||
|
|
|||
|
- 参数类型支持:flux(流量),req_num(请求数)
|
|||
|
|
|||
|
:return: The stat_type of this ShowTopUrlRequest.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._stat_type
|
|||
|
|
|||
|
@stat_type.setter
|
|||
|
def stat_type(self, stat_type):
|
|||
|
"""Sets the stat_type of this ShowTopUrlRequest.
|
|||
|
|
|||
|
- 参数类型支持:flux(流量),req_num(请求数)
|
|||
|
|
|||
|
:param stat_type: The stat_type of this ShowTopUrlRequest.
|
|||
|
:type: str
|
|||
|
"""
|
|||
|
self._stat_type = stat_type
|
|||
|
|
|||
|
@property
|
|||
|
def service_area(self):
|
|||
|
"""Gets the service_area of this ShowTopUrlRequest.
|
|||
|
|
|||
|
服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为mainland_china
|
|||
|
|
|||
|
:return: The service_area of this ShowTopUrlRequest.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._service_area
|
|||
|
|
|||
|
@service_area.setter
|
|||
|
def service_area(self, service_area):
|
|||
|
"""Sets the service_area of this ShowTopUrlRequest.
|
|||
|
|
|||
|
服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为mainland_china
|
|||
|
|
|||
|
:param service_area: The service_area of this ShowTopUrlRequest.
|
|||
|
:type: str
|
|||
|
"""
|
|||
|
self._service_area = service_area
|
|||
|
|
|||
|
@property
|
|||
|
def enterprise_project_id(self):
|
|||
|
"""Gets the enterprise_project_id of this ShowTopUrlRequest.
|
|||
|
|
|||
|
当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,不传表示查询默认项目。注意:当使用子账号调用接口时,该参数必传。
|
|||
|
|
|||
|
:return: The enterprise_project_id of this ShowTopUrlRequest.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._enterprise_project_id
|
|||
|
|
|||
|
@enterprise_project_id.setter
|
|||
|
def enterprise_project_id(self, enterprise_project_id):
|
|||
|
"""Sets the enterprise_project_id of this ShowTopUrlRequest.
|
|||
|
|
|||
|
当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,不传表示查询默认项目。注意:当使用子账号调用接口时,该参数必传。
|
|||
|
|
|||
|
:param enterprise_project_id: The enterprise_project_id of this ShowTopUrlRequest.
|
|||
|
:type: str
|
|||
|
"""
|
|||
|
self._enterprise_project_id = enterprise_project_id
|
|||
|
|
|||
|
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, ShowTopUrlRequest):
|
|||
|
return False
|
|||
|
|
|||
|
return self.__dict__ == other.__dict__
|
|||
|
|
|||
|
def __ne__(self, other):
|
|||
|
"""Returns true if both objects are not equal"""
|
|||
|
return not self == other
|