726 lines
29 KiB
Python
726 lines
29 KiB
Python
# coding: utf-8
|
||
|
||
import six
|
||
|
||
from huaweicloudsdkcore.sdk_response import SdkResponse
|
||
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
||
|
||
|
||
class DeleteEndpointPolicyResponse(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 = {
|
||
'id': 'str',
|
||
'service_type': 'str',
|
||
'status': 'str',
|
||
'active_status': 'list[str]',
|
||
'endpoint_service_name': 'str',
|
||
'marker_id': 'int',
|
||
'endpoint_service_id': 'str',
|
||
'ip': 'str',
|
||
'vpc_id': 'str',
|
||
'created_at': 'datetime',
|
||
'updated_at': 'datetime',
|
||
'project_id': 'str',
|
||
'tags': 'list[TagList]',
|
||
'error': 'list[QueryError]',
|
||
'whitelist': 'list[str]',
|
||
'enable_whitelist': 'bool',
|
||
'routetables': 'list[str]',
|
||
'description': 'str',
|
||
'policy_statement': 'list[PolicyStatement]',
|
||
'policy_document': 'object',
|
||
'endpoint_pool_id': 'str',
|
||
'public_border_group': 'str'
|
||
}
|
||
|
||
attribute_map = {
|
||
'id': 'id',
|
||
'service_type': 'service_type',
|
||
'status': 'status',
|
||
'active_status': 'active_status',
|
||
'endpoint_service_name': 'endpoint_service_name',
|
||
'marker_id': 'marker_id',
|
||
'endpoint_service_id': 'endpoint_service_id',
|
||
'ip': 'ip',
|
||
'vpc_id': 'vpc_id',
|
||
'created_at': 'created_at',
|
||
'updated_at': 'updated_at',
|
||
'project_id': 'project_id',
|
||
'tags': 'tags',
|
||
'error': 'error',
|
||
'whitelist': 'whitelist',
|
||
'enable_whitelist': 'enable_whitelist',
|
||
'routetables': 'routetables',
|
||
'description': 'description',
|
||
'policy_statement': 'policy_statement',
|
||
'policy_document': 'policy_document',
|
||
'endpoint_pool_id': 'endpoint_pool_id',
|
||
'public_border_group': 'public_border_group'
|
||
}
|
||
|
||
def __init__(self, id=None, service_type=None, status=None, active_status=None, endpoint_service_name=None, marker_id=None, endpoint_service_id=None, ip=None, vpc_id=None, created_at=None, updated_at=None, project_id=None, tags=None, error=None, whitelist=None, enable_whitelist=None, routetables=None, description=None, policy_statement=None, policy_document=None, endpoint_pool_id=None, public_border_group=None):
|
||
"""DeleteEndpointPolicyResponse
|
||
|
||
The model defined in huaweicloud sdk
|
||
|
||
:param id: 终端节点的ID,唯一标识。
|
||
:type id: str
|
||
:param service_type: 终端节点连接的终端节点服务类型。 - gateway:由运维人员配置。用户无需创建,可直接使用。 - interface:包括运维人员配置的云服务和用户自己创建的私有服务。 其中,运维人员配置的云服务无需创建,用户可直接使用。 您可以通过查询公共终端节点服务列表, 查看由运维人员配置的所有用户可见且可连接的终端节点服务, 并通过创建终端节点服务创建Interface类型的终端节点服务。
|
||
:type service_type: str
|
||
:param status: 终端节点的连接状态。 - pendingAcceptance:待接受 - creating:创建中 - accepted:已接受 - rejected:已拒绝 - failed:失败 - deleting:删除中
|
||
:type status: str
|
||
:param active_status: 账号状态。 - frozen:冻结 - active:解冻
|
||
:type active_status: list[str]
|
||
:param endpoint_service_name: 终端节点服务的名称。
|
||
:type endpoint_service_name: str
|
||
:param marker_id: 终端节点的报文标识。
|
||
:type marker_id: int
|
||
:param endpoint_service_id: 终端节点服务的ID。
|
||
:type endpoint_service_id: str
|
||
:param ip: 访问所连接的终端节点服务的IP。 仅当同时满足如下条件时,返回该参数: 当查询连接interface类型终端节点服务的终端节点时。 终端节点服务启用“连接审批”功能,且已经“接受”连接审批。 “status”可以是“accepted”或者“rejected(仅支持“接受”连接审批后再“拒绝”的情况)”。
|
||
:type ip: str
|
||
:param vpc_id: 终端节点所在的VPC的ID。
|
||
:type vpc_id: str
|
||
:param created_at: 终端节点的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
||
:type created_at: datetime
|
||
:param updated_at: 终端节点的更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
||
:type updated_at: datetime
|
||
:param project_id: 项目ID,获取方法请参见获取项目ID。
|
||
:type project_id: str
|
||
:param tags: 标签列表,没有标签默认为空数组。
|
||
:type tags: list[:class:`huaweicloudsdkvpcep.v1.TagList`]
|
||
:param error: 错误信息。 当终端节点状态异常,即“status”的值为“failed”时,会返回该字段。
|
||
:type error: list[:class:`huaweicloudsdkvpcep.v1.QueryError`]
|
||
:param whitelist: 控制访问终端节点的白名单。 若未创建,则返回空列表。 创建连接Interface类型终端节点服务的终端节点时,显示此参数。
|
||
:type whitelist: list[str]
|
||
:param enable_whitelist: 是否开启网络ACL隔离。 - true:开启网络ACL隔离 - false:不开启网络ACL隔离 若未指定,则返回false。 创建连接Interface类型终端节点服务的终端节点时,显示此参数。
|
||
:type enable_whitelist: bool
|
||
:param routetables: 路由表ID列表。 若未指定,返回默认VPC下路由表ID。 创建gateway类型终端节点服务的终端节点时,显示此参数。
|
||
:type routetables: list[str]
|
||
:param description: 描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。
|
||
:type description: str
|
||
:param policy_statement: Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。
|
||
:type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`]
|
||
:param policy_document: 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数)
|
||
:type policy_document: object
|
||
:param endpoint_pool_id: 待废弃,实例相关联的集群ID
|
||
:type endpoint_pool_id: str
|
||
:param public_border_group: 终端节点关联的Public Border Group信息,只有当终端节点和边缘Pool相关联时才会返回该字段
|
||
:type public_border_group: str
|
||
"""
|
||
|
||
super(DeleteEndpointPolicyResponse, self).__init__()
|
||
|
||
self._id = None
|
||
self._service_type = None
|
||
self._status = None
|
||
self._active_status = None
|
||
self._endpoint_service_name = None
|
||
self._marker_id = None
|
||
self._endpoint_service_id = None
|
||
self._ip = None
|
||
self._vpc_id = None
|
||
self._created_at = None
|
||
self._updated_at = None
|
||
self._project_id = None
|
||
self._tags = None
|
||
self._error = None
|
||
self._whitelist = None
|
||
self._enable_whitelist = None
|
||
self._routetables = None
|
||
self._description = None
|
||
self._policy_statement = None
|
||
self._policy_document = None
|
||
self._endpoint_pool_id = None
|
||
self._public_border_group = None
|
||
self.discriminator = None
|
||
|
||
if id is not None:
|
||
self.id = id
|
||
if service_type is not None:
|
||
self.service_type = service_type
|
||
if status is not None:
|
||
self.status = status
|
||
if active_status is not None:
|
||
self.active_status = active_status
|
||
if endpoint_service_name is not None:
|
||
self.endpoint_service_name = endpoint_service_name
|
||
if marker_id is not None:
|
||
self.marker_id = marker_id
|
||
if endpoint_service_id is not None:
|
||
self.endpoint_service_id = endpoint_service_id
|
||
if ip is not None:
|
||
self.ip = ip
|
||
if vpc_id is not None:
|
||
self.vpc_id = vpc_id
|
||
if created_at is not None:
|
||
self.created_at = created_at
|
||
if updated_at is not None:
|
||
self.updated_at = updated_at
|
||
if project_id is not None:
|
||
self.project_id = project_id
|
||
if tags is not None:
|
||
self.tags = tags
|
||
if error is not None:
|
||
self.error = error
|
||
if whitelist is not None:
|
||
self.whitelist = whitelist
|
||
if enable_whitelist is not None:
|
||
self.enable_whitelist = enable_whitelist
|
||
if routetables is not None:
|
||
self.routetables = routetables
|
||
if description is not None:
|
||
self.description = description
|
||
if policy_statement is not None:
|
||
self.policy_statement = policy_statement
|
||
if policy_document is not None:
|
||
self.policy_document = policy_document
|
||
if endpoint_pool_id is not None:
|
||
self.endpoint_pool_id = endpoint_pool_id
|
||
if public_border_group is not None:
|
||
self.public_border_group = public_border_group
|
||
|
||
@property
|
||
def id(self):
|
||
"""Gets the id of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点的ID,唯一标识。
|
||
|
||
:return: The id of this DeleteEndpointPolicyResponse.
|
||
:rtype: str
|
||
"""
|
||
return self._id
|
||
|
||
@id.setter
|
||
def id(self, id):
|
||
"""Sets the id of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点的ID,唯一标识。
|
||
|
||
:param id: The id of this DeleteEndpointPolicyResponse.
|
||
:type id: str
|
||
"""
|
||
self._id = id
|
||
|
||
@property
|
||
def service_type(self):
|
||
"""Gets the service_type of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点连接的终端节点服务类型。 - gateway:由运维人员配置。用户无需创建,可直接使用。 - interface:包括运维人员配置的云服务和用户自己创建的私有服务。 其中,运维人员配置的云服务无需创建,用户可直接使用。 您可以通过查询公共终端节点服务列表, 查看由运维人员配置的所有用户可见且可连接的终端节点服务, 并通过创建终端节点服务创建Interface类型的终端节点服务。
|
||
|
||
:return: The service_type of this DeleteEndpointPolicyResponse.
|
||
:rtype: str
|
||
"""
|
||
return self._service_type
|
||
|
||
@service_type.setter
|
||
def service_type(self, service_type):
|
||
"""Sets the service_type of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点连接的终端节点服务类型。 - gateway:由运维人员配置。用户无需创建,可直接使用。 - interface:包括运维人员配置的云服务和用户自己创建的私有服务。 其中,运维人员配置的云服务无需创建,用户可直接使用。 您可以通过查询公共终端节点服务列表, 查看由运维人员配置的所有用户可见且可连接的终端节点服务, 并通过创建终端节点服务创建Interface类型的终端节点服务。
|
||
|
||
:param service_type: The service_type of this DeleteEndpointPolicyResponse.
|
||
:type service_type: str
|
||
"""
|
||
self._service_type = service_type
|
||
|
||
@property
|
||
def status(self):
|
||
"""Gets the status of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点的连接状态。 - pendingAcceptance:待接受 - creating:创建中 - accepted:已接受 - rejected:已拒绝 - failed:失败 - deleting:删除中
|
||
|
||
:return: The status of this DeleteEndpointPolicyResponse.
|
||
:rtype: str
|
||
"""
|
||
return self._status
|
||
|
||
@status.setter
|
||
def status(self, status):
|
||
"""Sets the status of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点的连接状态。 - pendingAcceptance:待接受 - creating:创建中 - accepted:已接受 - rejected:已拒绝 - failed:失败 - deleting:删除中
|
||
|
||
:param status: The status of this DeleteEndpointPolicyResponse.
|
||
:type status: str
|
||
"""
|
||
self._status = status
|
||
|
||
@property
|
||
def active_status(self):
|
||
"""Gets the active_status of this DeleteEndpointPolicyResponse.
|
||
|
||
账号状态。 - frozen:冻结 - active:解冻
|
||
|
||
:return: The active_status of this DeleteEndpointPolicyResponse.
|
||
:rtype: list[str]
|
||
"""
|
||
return self._active_status
|
||
|
||
@active_status.setter
|
||
def active_status(self, active_status):
|
||
"""Sets the active_status of this DeleteEndpointPolicyResponse.
|
||
|
||
账号状态。 - frozen:冻结 - active:解冻
|
||
|
||
:param active_status: The active_status of this DeleteEndpointPolicyResponse.
|
||
:type active_status: list[str]
|
||
"""
|
||
self._active_status = active_status
|
||
|
||
@property
|
||
def endpoint_service_name(self):
|
||
"""Gets the endpoint_service_name of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点服务的名称。
|
||
|
||
:return: The endpoint_service_name of this DeleteEndpointPolicyResponse.
|
||
:rtype: str
|
||
"""
|
||
return self._endpoint_service_name
|
||
|
||
@endpoint_service_name.setter
|
||
def endpoint_service_name(self, endpoint_service_name):
|
||
"""Sets the endpoint_service_name of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点服务的名称。
|
||
|
||
:param endpoint_service_name: The endpoint_service_name of this DeleteEndpointPolicyResponse.
|
||
:type endpoint_service_name: str
|
||
"""
|
||
self._endpoint_service_name = endpoint_service_name
|
||
|
||
@property
|
||
def marker_id(self):
|
||
"""Gets the marker_id of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点的报文标识。
|
||
|
||
:return: The marker_id of this DeleteEndpointPolicyResponse.
|
||
:rtype: int
|
||
"""
|
||
return self._marker_id
|
||
|
||
@marker_id.setter
|
||
def marker_id(self, marker_id):
|
||
"""Sets the marker_id of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点的报文标识。
|
||
|
||
:param marker_id: The marker_id of this DeleteEndpointPolicyResponse.
|
||
:type marker_id: int
|
||
"""
|
||
self._marker_id = marker_id
|
||
|
||
@property
|
||
def endpoint_service_id(self):
|
||
"""Gets the endpoint_service_id of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点服务的ID。
|
||
|
||
:return: The endpoint_service_id of this DeleteEndpointPolicyResponse.
|
||
:rtype: str
|
||
"""
|
||
return self._endpoint_service_id
|
||
|
||
@endpoint_service_id.setter
|
||
def endpoint_service_id(self, endpoint_service_id):
|
||
"""Sets the endpoint_service_id of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点服务的ID。
|
||
|
||
:param endpoint_service_id: The endpoint_service_id of this DeleteEndpointPolicyResponse.
|
||
:type endpoint_service_id: str
|
||
"""
|
||
self._endpoint_service_id = endpoint_service_id
|
||
|
||
@property
|
||
def ip(self):
|
||
"""Gets the ip of this DeleteEndpointPolicyResponse.
|
||
|
||
访问所连接的终端节点服务的IP。 仅当同时满足如下条件时,返回该参数: 当查询连接interface类型终端节点服务的终端节点时。 终端节点服务启用“连接审批”功能,且已经“接受”连接审批。 “status”可以是“accepted”或者“rejected(仅支持“接受”连接审批后再“拒绝”的情况)”。
|
||
|
||
:return: The ip of this DeleteEndpointPolicyResponse.
|
||
:rtype: str
|
||
"""
|
||
return self._ip
|
||
|
||
@ip.setter
|
||
def ip(self, ip):
|
||
"""Sets the ip of this DeleteEndpointPolicyResponse.
|
||
|
||
访问所连接的终端节点服务的IP。 仅当同时满足如下条件时,返回该参数: 当查询连接interface类型终端节点服务的终端节点时。 终端节点服务启用“连接审批”功能,且已经“接受”连接审批。 “status”可以是“accepted”或者“rejected(仅支持“接受”连接审批后再“拒绝”的情况)”。
|
||
|
||
:param ip: The ip of this DeleteEndpointPolicyResponse.
|
||
:type ip: str
|
||
"""
|
||
self._ip = ip
|
||
|
||
@property
|
||
def vpc_id(self):
|
||
"""Gets the vpc_id of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点所在的VPC的ID。
|
||
|
||
:return: The vpc_id of this DeleteEndpointPolicyResponse.
|
||
:rtype: str
|
||
"""
|
||
return self._vpc_id
|
||
|
||
@vpc_id.setter
|
||
def vpc_id(self, vpc_id):
|
||
"""Sets the vpc_id of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点所在的VPC的ID。
|
||
|
||
:param vpc_id: The vpc_id of this DeleteEndpointPolicyResponse.
|
||
:type vpc_id: str
|
||
"""
|
||
self._vpc_id = vpc_id
|
||
|
||
@property
|
||
def created_at(self):
|
||
"""Gets the created_at of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
||
|
||
:return: The created_at of this DeleteEndpointPolicyResponse.
|
||
:rtype: datetime
|
||
"""
|
||
return self._created_at
|
||
|
||
@created_at.setter
|
||
def created_at(self, created_at):
|
||
"""Sets the created_at of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
||
|
||
:param created_at: The created_at of this DeleteEndpointPolicyResponse.
|
||
:type created_at: datetime
|
||
"""
|
||
self._created_at = created_at
|
||
|
||
@property
|
||
def updated_at(self):
|
||
"""Gets the updated_at of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点的更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
||
|
||
:return: The updated_at of this DeleteEndpointPolicyResponse.
|
||
:rtype: datetime
|
||
"""
|
||
return self._updated_at
|
||
|
||
@updated_at.setter
|
||
def updated_at(self, updated_at):
|
||
"""Sets the updated_at of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点的更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
||
|
||
:param updated_at: The updated_at of this DeleteEndpointPolicyResponse.
|
||
:type updated_at: datetime
|
||
"""
|
||
self._updated_at = updated_at
|
||
|
||
@property
|
||
def project_id(self):
|
||
"""Gets the project_id of this DeleteEndpointPolicyResponse.
|
||
|
||
项目ID,获取方法请参见获取项目ID。
|
||
|
||
:return: The project_id of this DeleteEndpointPolicyResponse.
|
||
:rtype: str
|
||
"""
|
||
return self._project_id
|
||
|
||
@project_id.setter
|
||
def project_id(self, project_id):
|
||
"""Sets the project_id of this DeleteEndpointPolicyResponse.
|
||
|
||
项目ID,获取方法请参见获取项目ID。
|
||
|
||
:param project_id: The project_id of this DeleteEndpointPolicyResponse.
|
||
:type project_id: str
|
||
"""
|
||
self._project_id = project_id
|
||
|
||
@property
|
||
def tags(self):
|
||
"""Gets the tags of this DeleteEndpointPolicyResponse.
|
||
|
||
标签列表,没有标签默认为空数组。
|
||
|
||
:return: The tags of this DeleteEndpointPolicyResponse.
|
||
:rtype: list[:class:`huaweicloudsdkvpcep.v1.TagList`]
|
||
"""
|
||
return self._tags
|
||
|
||
@tags.setter
|
||
def tags(self, tags):
|
||
"""Sets the tags of this DeleteEndpointPolicyResponse.
|
||
|
||
标签列表,没有标签默认为空数组。
|
||
|
||
:param tags: The tags of this DeleteEndpointPolicyResponse.
|
||
:type tags: list[:class:`huaweicloudsdkvpcep.v1.TagList`]
|
||
"""
|
||
self._tags = tags
|
||
|
||
@property
|
||
def error(self):
|
||
"""Gets the error of this DeleteEndpointPolicyResponse.
|
||
|
||
错误信息。 当终端节点状态异常,即“status”的值为“failed”时,会返回该字段。
|
||
|
||
:return: The error of this DeleteEndpointPolicyResponse.
|
||
:rtype: list[:class:`huaweicloudsdkvpcep.v1.QueryError`]
|
||
"""
|
||
return self._error
|
||
|
||
@error.setter
|
||
def error(self, error):
|
||
"""Sets the error of this DeleteEndpointPolicyResponse.
|
||
|
||
错误信息。 当终端节点状态异常,即“status”的值为“failed”时,会返回该字段。
|
||
|
||
:param error: The error of this DeleteEndpointPolicyResponse.
|
||
:type error: list[:class:`huaweicloudsdkvpcep.v1.QueryError`]
|
||
"""
|
||
self._error = error
|
||
|
||
@property
|
||
def whitelist(self):
|
||
"""Gets the whitelist of this DeleteEndpointPolicyResponse.
|
||
|
||
控制访问终端节点的白名单。 若未创建,则返回空列表。 创建连接Interface类型终端节点服务的终端节点时,显示此参数。
|
||
|
||
:return: The whitelist of this DeleteEndpointPolicyResponse.
|
||
:rtype: list[str]
|
||
"""
|
||
return self._whitelist
|
||
|
||
@whitelist.setter
|
||
def whitelist(self, whitelist):
|
||
"""Sets the whitelist of this DeleteEndpointPolicyResponse.
|
||
|
||
控制访问终端节点的白名单。 若未创建,则返回空列表。 创建连接Interface类型终端节点服务的终端节点时,显示此参数。
|
||
|
||
:param whitelist: The whitelist of this DeleteEndpointPolicyResponse.
|
||
:type whitelist: list[str]
|
||
"""
|
||
self._whitelist = whitelist
|
||
|
||
@property
|
||
def enable_whitelist(self):
|
||
"""Gets the enable_whitelist of this DeleteEndpointPolicyResponse.
|
||
|
||
是否开启网络ACL隔离。 - true:开启网络ACL隔离 - false:不开启网络ACL隔离 若未指定,则返回false。 创建连接Interface类型终端节点服务的终端节点时,显示此参数。
|
||
|
||
:return: The enable_whitelist of this DeleteEndpointPolicyResponse.
|
||
:rtype: bool
|
||
"""
|
||
return self._enable_whitelist
|
||
|
||
@enable_whitelist.setter
|
||
def enable_whitelist(self, enable_whitelist):
|
||
"""Sets the enable_whitelist of this DeleteEndpointPolicyResponse.
|
||
|
||
是否开启网络ACL隔离。 - true:开启网络ACL隔离 - false:不开启网络ACL隔离 若未指定,则返回false。 创建连接Interface类型终端节点服务的终端节点时,显示此参数。
|
||
|
||
:param enable_whitelist: The enable_whitelist of this DeleteEndpointPolicyResponse.
|
||
:type enable_whitelist: bool
|
||
"""
|
||
self._enable_whitelist = enable_whitelist
|
||
|
||
@property
|
||
def routetables(self):
|
||
"""Gets the routetables of this DeleteEndpointPolicyResponse.
|
||
|
||
路由表ID列表。 若未指定,返回默认VPC下路由表ID。 创建gateway类型终端节点服务的终端节点时,显示此参数。
|
||
|
||
:return: The routetables of this DeleteEndpointPolicyResponse.
|
||
:rtype: list[str]
|
||
"""
|
||
return self._routetables
|
||
|
||
@routetables.setter
|
||
def routetables(self, routetables):
|
||
"""Sets the routetables of this DeleteEndpointPolicyResponse.
|
||
|
||
路由表ID列表。 若未指定,返回默认VPC下路由表ID。 创建gateway类型终端节点服务的终端节点时,显示此参数。
|
||
|
||
:param routetables: The routetables of this DeleteEndpointPolicyResponse.
|
||
:type routetables: list[str]
|
||
"""
|
||
self._routetables = routetables
|
||
|
||
@property
|
||
def description(self):
|
||
"""Gets the description of this DeleteEndpointPolicyResponse.
|
||
|
||
描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。
|
||
|
||
:return: The description of this DeleteEndpointPolicyResponse.
|
||
:rtype: str
|
||
"""
|
||
return self._description
|
||
|
||
@description.setter
|
||
def description(self, description):
|
||
"""Sets the description of this DeleteEndpointPolicyResponse.
|
||
|
||
描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。
|
||
|
||
:param description: The description of this DeleteEndpointPolicyResponse.
|
||
:type description: str
|
||
"""
|
||
self._description = description
|
||
|
||
@property
|
||
def policy_statement(self):
|
||
"""Gets the policy_statement of this DeleteEndpointPolicyResponse.
|
||
|
||
Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。
|
||
|
||
:return: The policy_statement of this DeleteEndpointPolicyResponse.
|
||
:rtype: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`]
|
||
"""
|
||
return self._policy_statement
|
||
|
||
@policy_statement.setter
|
||
def policy_statement(self, policy_statement):
|
||
"""Sets the policy_statement of this DeleteEndpointPolicyResponse.
|
||
|
||
Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。
|
||
|
||
:param policy_statement: The policy_statement of this DeleteEndpointPolicyResponse.
|
||
:type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`]
|
||
"""
|
||
self._policy_statement = policy_statement
|
||
|
||
@property
|
||
def policy_document(self):
|
||
"""Gets the policy_document of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数)
|
||
|
||
:return: The policy_document of this DeleteEndpointPolicyResponse.
|
||
:rtype: object
|
||
"""
|
||
return self._policy_document
|
||
|
||
@policy_document.setter
|
||
def policy_document(self, policy_document):
|
||
"""Sets the policy_document of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数)
|
||
|
||
:param policy_document: The policy_document of this DeleteEndpointPolicyResponse.
|
||
:type policy_document: object
|
||
"""
|
||
self._policy_document = policy_document
|
||
|
||
@property
|
||
def endpoint_pool_id(self):
|
||
"""Gets the endpoint_pool_id of this DeleteEndpointPolicyResponse.
|
||
|
||
待废弃,实例相关联的集群ID
|
||
|
||
:return: The endpoint_pool_id of this DeleteEndpointPolicyResponse.
|
||
:rtype: str
|
||
"""
|
||
return self._endpoint_pool_id
|
||
|
||
@endpoint_pool_id.setter
|
||
def endpoint_pool_id(self, endpoint_pool_id):
|
||
"""Sets the endpoint_pool_id of this DeleteEndpointPolicyResponse.
|
||
|
||
待废弃,实例相关联的集群ID
|
||
|
||
:param endpoint_pool_id: The endpoint_pool_id of this DeleteEndpointPolicyResponse.
|
||
:type endpoint_pool_id: str
|
||
"""
|
||
self._endpoint_pool_id = endpoint_pool_id
|
||
|
||
@property
|
||
def public_border_group(self):
|
||
"""Gets the public_border_group of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点关联的Public Border Group信息,只有当终端节点和边缘Pool相关联时才会返回该字段
|
||
|
||
:return: The public_border_group of this DeleteEndpointPolicyResponse.
|
||
:rtype: str
|
||
"""
|
||
return self._public_border_group
|
||
|
||
@public_border_group.setter
|
||
def public_border_group(self, public_border_group):
|
||
"""Sets the public_border_group of this DeleteEndpointPolicyResponse.
|
||
|
||
终端节点关联的Public Border Group信息,只有当终端节点和边缘Pool相关联时才会返回该字段
|
||
|
||
:param public_border_group: The public_border_group of this DeleteEndpointPolicyResponse.
|
||
:type public_border_group: str
|
||
"""
|
||
self._public_border_group = public_border_group
|
||
|
||
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, DeleteEndpointPolicyResponse):
|
||
return False
|
||
|
||
return self.__dict__ == other.__dict__
|
||
|
||
def __ne__(self, other):
|
||
"""Returns true if both objects are not equal"""
|
||
return not self == other
|