2020-10-20 08:59:07 +00:00
|
|
|
|
# coding: utf-8
|
|
|
|
|
|
|
|
|
|
import pprint
|
|
|
|
|
import re
|
|
|
|
|
|
|
|
|
|
import six
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
class HealthmonitorResp:
|
2020-10-20 08:59:07 +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 = []
|
|
|
|
|
|
|
|
|
|
openapi_types = {
|
|
|
|
|
'id': 'str',
|
|
|
|
|
'project_id': 'str',
|
|
|
|
|
'tenant_id': 'str',
|
|
|
|
|
'name': 'str',
|
|
|
|
|
'admin_state_up': 'bool',
|
|
|
|
|
'monitor_port': 'int',
|
|
|
|
|
'timeout': 'int',
|
|
|
|
|
'type': 'str',
|
|
|
|
|
'expected_codes': 'str',
|
|
|
|
|
'domain_name': 'str',
|
|
|
|
|
'url_path': 'str',
|
|
|
|
|
'http_method': 'str',
|
|
|
|
|
'delay': 'int',
|
|
|
|
|
'max_retries': 'int',
|
|
|
|
|
'pools': 'list[ResourceList]'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
attribute_map = {
|
|
|
|
|
'id': 'id',
|
|
|
|
|
'project_id': 'project_id',
|
|
|
|
|
'tenant_id': 'tenant_id',
|
|
|
|
|
'name': 'name',
|
|
|
|
|
'admin_state_up': 'admin_state_up',
|
|
|
|
|
'monitor_port': 'monitor_port',
|
|
|
|
|
'timeout': 'timeout',
|
|
|
|
|
'type': 'type',
|
|
|
|
|
'expected_codes': 'expected_codes',
|
|
|
|
|
'domain_name': 'domain_name',
|
|
|
|
|
'url_path': 'url_path',
|
|
|
|
|
'http_method': 'http_method',
|
|
|
|
|
'delay': 'delay',
|
|
|
|
|
'max_retries': 'max_retries',
|
|
|
|
|
'pools': 'pools'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def __init__(self, id=None, project_id=None, tenant_id=None, name=None, admin_state_up=None, monitor_port=None, timeout=None, type=None, expected_codes=None, domain_name=None, url_path=None, http_method=None, delay=None, max_retries=None, pools=None):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""HealthmonitorResp - a model defined in huaweicloud sdk"""
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self._id = None
|
|
|
|
|
self._project_id = None
|
|
|
|
|
self._tenant_id = None
|
|
|
|
|
self._name = None
|
|
|
|
|
self._admin_state_up = None
|
|
|
|
|
self._monitor_port = None
|
|
|
|
|
self._timeout = None
|
|
|
|
|
self._type = None
|
|
|
|
|
self._expected_codes = None
|
|
|
|
|
self._domain_name = None
|
|
|
|
|
self._url_path = None
|
|
|
|
|
self._http_method = None
|
|
|
|
|
self._delay = None
|
|
|
|
|
self._max_retries = None
|
|
|
|
|
self._pools = None
|
|
|
|
|
self.discriminator = None
|
|
|
|
|
|
|
|
|
|
self.id = id
|
|
|
|
|
self.project_id = project_id
|
|
|
|
|
self.tenant_id = tenant_id
|
|
|
|
|
self.name = name
|
|
|
|
|
self.admin_state_up = admin_state_up
|
|
|
|
|
self.monitor_port = monitor_port
|
|
|
|
|
self.timeout = timeout
|
|
|
|
|
self.type = type
|
|
|
|
|
self.expected_codes = expected_codes
|
|
|
|
|
self.domain_name = domain_name
|
|
|
|
|
self.url_path = url_path
|
|
|
|
|
self.http_method = http_method
|
|
|
|
|
self.delay = delay
|
|
|
|
|
self.max_retries = max_retries
|
|
|
|
|
self.pools = pools
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def id(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the id of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查ID
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The id of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: str
|
|
|
|
|
"""
|
|
|
|
|
return self._id
|
|
|
|
|
|
|
|
|
|
@id.setter
|
|
|
|
|
def id(self, id):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the id of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查ID
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param id: The id of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: str
|
|
|
|
|
"""
|
|
|
|
|
self._id = id
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def project_id(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the project_id of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查所在的项目ID。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The project_id of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: str
|
|
|
|
|
"""
|
|
|
|
|
return self._project_id
|
|
|
|
|
|
|
|
|
|
@project_id.setter
|
|
|
|
|
def project_id(self, project_id):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the project_id of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查所在的项目ID。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param project_id: The project_id of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: str
|
|
|
|
|
"""
|
|
|
|
|
self._project_id = project_id
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def tenant_id(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the tenant_id of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查所在的项目ID。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The tenant_id of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: str
|
|
|
|
|
"""
|
|
|
|
|
return self._tenant_id
|
|
|
|
|
|
|
|
|
|
@tenant_id.setter
|
|
|
|
|
def tenant_id(self, tenant_id):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the tenant_id of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查所在的项目ID。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param tenant_id: The tenant_id of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: str
|
|
|
|
|
"""
|
|
|
|
|
self._tenant_id = tenant_id
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def name(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the name of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查名称。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The name of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: str
|
|
|
|
|
"""
|
|
|
|
|
return self._name
|
|
|
|
|
|
|
|
|
|
@name.setter
|
|
|
|
|
def name(self, name):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the name of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查名称。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param name: The name of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: str
|
|
|
|
|
"""
|
|
|
|
|
self._name = name
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def admin_state_up(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the admin_state_up of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The admin_state_up of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: bool
|
|
|
|
|
"""
|
|
|
|
|
return self._admin_state_up
|
|
|
|
|
|
|
|
|
|
@admin_state_up.setter
|
|
|
|
|
def admin_state_up(self, admin_state_up):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the admin_state_up of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param admin_state_up: The admin_state_up of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: bool
|
|
|
|
|
"""
|
|
|
|
|
self._admin_state_up = admin_state_up
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def monitor_port(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the monitor_port of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查端口号。默认为空,表示使用后端云服务器组的端口。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The monitor_port of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: int
|
|
|
|
|
"""
|
|
|
|
|
return self._monitor_port
|
|
|
|
|
|
|
|
|
|
@monitor_port.setter
|
|
|
|
|
def monitor_port(self, monitor_port):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the monitor_port of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查端口号。默认为空,表示使用后端云服务器组的端口。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param monitor_port: The monitor_port of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: int
|
|
|
|
|
"""
|
|
|
|
|
self._monitor_port = monitor_port
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def timeout(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the timeout of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查的超时时间。建议该值小于delay的值。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The timeout of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: int
|
|
|
|
|
"""
|
|
|
|
|
return self._timeout
|
|
|
|
|
|
|
|
|
|
@timeout.setter
|
|
|
|
|
def timeout(self, timeout):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the timeout of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查的超时时间。建议该值小于delay的值。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param timeout: The timeout of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: int
|
|
|
|
|
"""
|
|
|
|
|
self._timeout = timeout
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def type(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the type of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查类型
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The type of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: str
|
|
|
|
|
"""
|
|
|
|
|
return self._type
|
|
|
|
|
|
|
|
|
|
@type.setter
|
|
|
|
|
def type(self, type):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the type of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查类型
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param type: The type of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: str
|
|
|
|
|
"""
|
|
|
|
|
self._type = type
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def expected_codes(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the expected_codes of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
期望HTTP响应状态码,指定下列值:单值,例如200;列表,例如200,202;区间,例如200-204。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The expected_codes of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: str
|
|
|
|
|
"""
|
|
|
|
|
return self._expected_codes
|
|
|
|
|
|
|
|
|
|
@expected_codes.setter
|
|
|
|
|
def expected_codes(self, expected_codes):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the expected_codes of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
期望HTTP响应状态码,指定下列值:单值,例如200;列表,例如200,202;区间,例如200-204。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param expected_codes: The expected_codes of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: str
|
|
|
|
|
"""
|
|
|
|
|
self._expected_codes = expected_codes
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def domain_name(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the domain_name of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
功能说明:健康检查测试member健康状态时,发送的http请求的域名。仅当type为HTTP时生效。使用说明:默认为空,表示使用负载均衡器的vip作为http请求的目的地址。以数字或字母开头,只能包含数字、字母、’-’、’.’。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The domain_name of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: str
|
|
|
|
|
"""
|
|
|
|
|
return self._domain_name
|
|
|
|
|
|
|
|
|
|
@domain_name.setter
|
|
|
|
|
def domain_name(self, domain_name):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the domain_name of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
功能说明:健康检查测试member健康状态时,发送的http请求的域名。仅当type为HTTP时生效。使用说明:默认为空,表示使用负载均衡器的vip作为http请求的目的地址。以数字或字母开头,只能包含数字、字母、’-’、’.’。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param domain_name: The domain_name of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: str
|
|
|
|
|
"""
|
|
|
|
|
self._domain_name = domain_name
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def url_path(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the url_path of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
HTTP方法,可以为GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The url_path of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: str
|
|
|
|
|
"""
|
|
|
|
|
return self._url_path
|
|
|
|
|
|
|
|
|
|
@url_path.setter
|
|
|
|
|
def url_path(self, url_path):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the url_path of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
HTTP方法,可以为GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param url_path: The url_path of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: str
|
|
|
|
|
"""
|
|
|
|
|
self._url_path = url_path
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def http_method(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the http_method of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
HTTP方法,可以为GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The http_method of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: str
|
|
|
|
|
"""
|
|
|
|
|
return self._http_method
|
|
|
|
|
|
|
|
|
|
@http_method.setter
|
|
|
|
|
def http_method(self, http_method):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the http_method of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
HTTP方法,可以为GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param http_method: The http_method of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: str
|
|
|
|
|
"""
|
|
|
|
|
self._http_method = http_method
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def delay(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the delay of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查间隔,单位秒
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The delay of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: int
|
|
|
|
|
"""
|
|
|
|
|
return self._delay
|
|
|
|
|
|
|
|
|
|
@delay.setter
|
|
|
|
|
def delay(self, delay):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the delay of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查间隔,单位秒
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param delay: The delay of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: int
|
|
|
|
|
"""
|
|
|
|
|
self._delay = delay
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def max_retries(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the max_retries of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
最大重试次数
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The max_retries of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: int
|
|
|
|
|
"""
|
|
|
|
|
return self._max_retries
|
|
|
|
|
|
|
|
|
|
@max_retries.setter
|
|
|
|
|
def max_retries(self, max_retries):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the max_retries of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
最大重试次数
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param max_retries: The max_retries of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: int
|
|
|
|
|
"""
|
|
|
|
|
self._max_retries = max_retries
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def pools(self):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Gets the pools of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查关联的后端云服务器组列表
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:return: The pools of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:rtype: list[ResourceList]
|
|
|
|
|
"""
|
|
|
|
|
return self._pools
|
|
|
|
|
|
|
|
|
|
@pools.setter
|
|
|
|
|
def pools(self, pools):
|
2020-11-02 12:51:27 +00:00
|
|
|
|
"""Sets the pools of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
|
|
|
|
|
健康检查关联的后端云服务器组列表
|
|
|
|
|
|
2020-11-02 12:51:27 +00:00
|
|
|
|
:param pools: The pools of this HealthmonitorResp.
|
2020-10-20 08:59:07 +00:00
|
|
|
|
:type: list[ResourceList]
|
|
|
|
|
"""
|
|
|
|
|
self._pools = pools
|
|
|
|
|
|
|
|
|
|
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"""
|
|
|
|
|
return pprint.pformat(self.to_dict())
|
|
|
|
|
|
|
|
|
|
def __repr__(self):
|
|
|
|
|
"""For `print` and `pprint`"""
|
|
|
|
|
return self.to_str()
|
|
|
|
|
|
|
|
|
|
def __eq__(self, other):
|
|
|
|
|
"""Returns true if both objects are equal"""
|
2020-11-02 12:51:27 +00:00
|
|
|
|
if not isinstance(other, HealthmonitorResp):
|
2020-10-20 08:59:07 +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
|