huaweicloudsdkvpcep 3.1.160__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkvpcep/__init__.py +0 -0
- huaweicloudsdkvpcep/v1/__init__.py +110 -0
- huaweicloudsdkvpcep/v1/model/__init__.py +107 -0
- huaweicloudsdkvpcep/v1/model/accept_or_reject_endpoint_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/accept_or_reject_endpoint_request_body.py +142 -0
- huaweicloudsdkvpcep/v1/model/accept_or_reject_endpoint_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/add_or_remove_service_permissions_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/add_or_remove_service_permissions_request_body.py +171 -0
- huaweicloudsdkvpcep/v1/model/add_or_remove_service_permissions_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/batch_add_endpoint_service_permissions_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/batch_add_endpoint_service_permissions_request_body.py +143 -0
- huaweicloudsdkvpcep/v1/model/batch_add_endpoint_service_permissions_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/batch_add_or_remove_resource_instance_request.py +167 -0
- huaweicloudsdkvpcep/v1/model/batch_add_or_remove_resource_instance_request_body.py +143 -0
- huaweicloudsdkvpcep/v1/model/batch_add_or_remove_resource_instance_response.py +85 -0
- huaweicloudsdkvpcep/v1/model/batch_remove_endpoint_service_permissions_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/batch_remove_endpoint_service_permissions_request_body.py +114 -0
- huaweicloudsdkvpcep/v1/model/batch_remove_endpoint_service_permissions_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/connection_endpoints.py +318 -0
- huaweicloudsdkvpcep/v1/model/connections_desc.py +142 -0
- huaweicloudsdkvpcep/v1/model/create_endpoint_request.py +111 -0
- huaweicloudsdkvpcep/v1/model/create_endpoint_request_body.py +490 -0
- huaweicloudsdkvpcep/v1/model/create_endpoint_response.py +841 -0
- huaweicloudsdkvpcep/v1/model/create_endpoint_service_request.py +111 -0
- huaweicloudsdkvpcep/v1/model/create_endpoint_service_request_body.py +459 -0
- huaweicloudsdkvpcep/v1/model/create_endpoint_service_response.py +638 -0
- huaweicloudsdkvpcep/v1/model/delete_endpoint_policy_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/delete_endpoint_policy_response.py +725 -0
- huaweicloudsdkvpcep/v1/model/delete_endpoint_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/delete_endpoint_response.py +85 -0
- huaweicloudsdkvpcep/v1/model/delete_endpoint_service_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/delete_endpoint_service_response.py +85 -0
- huaweicloudsdkvpcep/v1/model/endpoint_response_body.py +811 -0
- huaweicloudsdkvpcep/v1/model/endpoint_service.py +289 -0
- huaweicloudsdkvpcep/v1/model/eps_add_permission_request.py +142 -0
- huaweicloudsdkvpcep/v1/model/eps_permission.py +231 -0
- huaweicloudsdkvpcep/v1/model/eps_remove_permission_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/eps_update_permission_desc.py +114 -0
- huaweicloudsdkvpcep/v1/model/error.py +144 -0
- huaweicloudsdkvpcep/v1/model/link.py +173 -0
- huaweicloudsdkvpcep/v1/model/list_endpoint_info_details_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/list_endpoint_info_details_response.py +895 -0
- huaweicloudsdkvpcep/v1/model/list_endpoint_service_request.py +347 -0
- huaweicloudsdkvpcep/v1/model/list_endpoint_service_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/list_endpoints_request.py +289 -0
- huaweicloudsdkvpcep/v1/model/list_endpoints_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/list_query_project_resource_tags_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/list_query_project_resource_tags_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/list_quota_details_request.py +115 -0
- huaweicloudsdkvpcep/v1/model/list_quota_details_response.py +112 -0
- huaweicloudsdkvpcep/v1/model/list_resource_instances_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/list_resource_instances_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/list_service_connections_request.py +317 -0
- huaweicloudsdkvpcep/v1/model/list_service_connections_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/list_service_describe_details_request.py +144 -0
- huaweicloudsdkvpcep/v1/model/list_service_describe_details_response.py +290 -0
- huaweicloudsdkvpcep/v1/model/list_service_details_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/list_service_details_response.py +667 -0
- huaweicloudsdkvpcep/v1/model/list_service_permissions_details_request.py +259 -0
- huaweicloudsdkvpcep/v1/model/list_service_permissions_details_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/list_service_public_details_request.py +260 -0
- huaweicloudsdkvpcep/v1/model/list_service_public_details_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/list_specified_version_details_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/list_specified_version_details_response.py +112 -0
- huaweicloudsdkvpcep/v1/model/list_version_details_request.py +84 -0
- huaweicloudsdkvpcep/v1/model/list_version_details_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/match.py +142 -0
- huaweicloudsdkvpcep/v1/model/permission_object.py +202 -0
- huaweicloudsdkvpcep/v1/model/policy_statement.py +199 -0
- huaweicloudsdkvpcep/v1/model/port_list.py +173 -0
- huaweicloudsdkvpcep/v1/model/query_error.py +144 -0
- huaweicloudsdkvpcep/v1/model/query_resource_instance_tags_body.py +375 -0
- huaweicloudsdkvpcep/v1/model/quotas.py +173 -0
- huaweicloudsdkvpcep/v1/model/resource_instance.py +173 -0
- huaweicloudsdkvpcep/v1/model/resource_tag.py +143 -0
- huaweicloudsdkvpcep/v1/model/resources_response_body.py +115 -0
- huaweicloudsdkvpcep/v1/model/routetable_info_error.py +144 -0
- huaweicloudsdkvpcep/v1/model/routetable_info_error_detial.py +144 -0
- huaweicloudsdkvpcep/v1/model/service_list.py +724 -0
- huaweicloudsdkvpcep/v1/model/tag_list.py +144 -0
- huaweicloudsdkvpcep/v1/model/tag_values_list.py +142 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_connections_desc_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_connections_desc_request_body.py +114 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_connections_desc_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_policy_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_policy_request_body.py +144 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_policy_response.py +725 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_routetable_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_routetable_request_body.py +114 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_routetable_response.py +145 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_name_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_name_request_body.py +115 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_name_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_permission_desc_request.py +167 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_permission_desc_request_body.py +110 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_permission_desc_response.py +116 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_request_body.py +289 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_service_response.py +638 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_white_request.py +139 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_white_request_body.py +144 -0
- huaweicloudsdkvpcep/v1/model/update_endpoint_white_response.py +667 -0
- huaweicloudsdkvpcep/v1/model/upgrade_endpoint_service_request.py +114 -0
- huaweicloudsdkvpcep/v1/model/upgrade_endpoint_service_response.py +85 -0
- huaweicloudsdkvpcep/v1/model/version_object.py +260 -0
- huaweicloudsdkvpcep/v1/region/__init__.py +0 -0
- huaweicloudsdkvpcep/v1/region/vpcep_region.py +124 -0
- huaweicloudsdkvpcep/v1/vpcep_async_client.py +2211 -0
- huaweicloudsdkvpcep/v1/vpcep_client.py +2208 -0
- huaweicloudsdkvpcep-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkvpcep-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkvpcep-3.1.160.dist-info/RECORD +114 -0
- huaweicloudsdkvpcep-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkvpcep-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,667 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ListServiceDetailsResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'id': 'str',
|
22
|
+
'port_id': 'str',
|
23
|
+
'service_name': 'str',
|
24
|
+
'server_type': 'str',
|
25
|
+
'vpc_id': 'str',
|
26
|
+
'approval_enabled': 'bool',
|
27
|
+
'status': 'str',
|
28
|
+
'service_type': 'str',
|
29
|
+
'supported_editions': 'list[str]',
|
30
|
+
'created_at': 'datetime',
|
31
|
+
'updated_at': 'datetime',
|
32
|
+
'project_id': 'str',
|
33
|
+
'cidr_type': 'str',
|
34
|
+
'ip': 'str',
|
35
|
+
'ports': 'list[PortList]',
|
36
|
+
'tcp_proxy': 'str',
|
37
|
+
'tags': 'list[TagList]',
|
38
|
+
'error': 'list[Error]',
|
39
|
+
'enable_policy': 'bool',
|
40
|
+
'description': 'str'
|
41
|
+
}
|
42
|
+
|
43
|
+
attribute_map = {
|
44
|
+
'id': 'id',
|
45
|
+
'port_id': 'port_id',
|
46
|
+
'service_name': 'service_name',
|
47
|
+
'server_type': 'server_type',
|
48
|
+
'vpc_id': 'vpc_id',
|
49
|
+
'approval_enabled': 'approval_enabled',
|
50
|
+
'status': 'status',
|
51
|
+
'service_type': 'service_type',
|
52
|
+
'supported_editions': 'supported_editions',
|
53
|
+
'created_at': 'created_at',
|
54
|
+
'updated_at': 'updated_at',
|
55
|
+
'project_id': 'project_id',
|
56
|
+
'cidr_type': 'cidr_type',
|
57
|
+
'ip': 'ip',
|
58
|
+
'ports': 'ports',
|
59
|
+
'tcp_proxy': 'tcp_proxy',
|
60
|
+
'tags': 'tags',
|
61
|
+
'error': 'error',
|
62
|
+
'enable_policy': 'enable_policy',
|
63
|
+
'description': 'description'
|
64
|
+
}
|
65
|
+
|
66
|
+
def __init__(self, id=None, port_id=None, service_name=None, server_type=None, vpc_id=None, approval_enabled=None, status=None, service_type=None, supported_editions=None, created_at=None, updated_at=None, project_id=None, cidr_type=None, ip=None, ports=None, tcp_proxy=None, tags=None, error=None, enable_policy=None, description=None):
|
67
|
+
r"""ListServiceDetailsResponse
|
68
|
+
|
69
|
+
The model defined in huaweicloud sdk
|
70
|
+
|
71
|
+
:param id: 终端节点服务的ID,唯一标识。
|
72
|
+
:type id: str
|
73
|
+
:param port_id: 标识终端节点服务后端资源的ID, 格式为通用唯一识别码(Universally Unique Identifier,下文简称UUID)。取值为: - LB类型:负载均衡器内网IP对应的端口ID。 - VM类型:弹性云服务器IP地址对应的网卡ID。 - VIP类型:虚拟资源所在物理服务器对应的网卡ID。(该字段已废弃,请优先使用LB类型)
|
74
|
+
:type port_id: str
|
75
|
+
:param service_name: 终端节点服务的名称。
|
76
|
+
:type service_name: str
|
77
|
+
:param server_type: 资源类型。 - VM:云服务器。 - VIP:虚拟IP。 - LB:增强负载均衡型。
|
78
|
+
:type server_type: str
|
79
|
+
:param vpc_id: 终端节点服务对应后端资源所在的VPC的ID。
|
80
|
+
:type vpc_id: str
|
81
|
+
:param approval_enabled: 是否需要审批。 - false:不需要审批,创建的终端节点连接直接为accepted状态。 - true:需要审批,创建的终端节点连接为pendingAcceptance状态, 需要终端节点服务所属用户审核后方可使用。
|
82
|
+
:type approval_enabled: bool
|
83
|
+
:param status: 终端节点服务的状态。 - creating:创建中 - available:可连接 - failed:失败 - deleting:删除中
|
84
|
+
:type status: str
|
85
|
+
:param service_type: 终端节点服务类型。 终端节点服务类型包括“网关(gateway)型”和“接口(interface)型”: - gateway:由运维人员配置。用户无需创建,可直接使用。 - interface:包括运维人员配置的云服务和用户自己创建的私有服务。 其中,运维人员配置的云服务无需创建,用户可直接使用。 您可以通过创建终端节点创建访问Gateway和Interface类型终端节点服务的终端节。
|
86
|
+
:type service_type: str
|
87
|
+
:param supported_editions: 终端节点服务支持的类型,取值范围为profession-专业型,basic-基础型
|
88
|
+
:type supported_editions: list[str]
|
89
|
+
:param created_at: 终端节点服务的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
90
|
+
:type created_at: datetime
|
91
|
+
:param updated_at: 终端节点服务的更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
92
|
+
:type updated_at: datetime
|
93
|
+
:param project_id: 项目ID,获取方法请参见获取项目ID。
|
94
|
+
:type project_id: str
|
95
|
+
:param cidr_type: 网段类型。 public:公网网段 internal:内网网段 默认值为internal。
|
96
|
+
:type cidr_type: str
|
97
|
+
:param ip: 接口型VLAN场景服务端IPv4地址或域名
|
98
|
+
:type ip: str
|
99
|
+
:param ports: 服务开放的端口映射列表,详细内容请参见表4-17 同一个终端节点服务下,不允许重复的端口映射。若多个终端节点服务共用一个port_id,则 终端节点服务之间的所有端口映射的server_port和protocol的组合不能重复。
|
100
|
+
:type ports: list[:class:`huaweicloudsdkvpcep.v1.PortList`]
|
101
|
+
:param tcp_proxy: 用于控制将哪些信息(如客户端的源IP、源端口、marker_id等)携带到服务端。 支持携带的客户端信息包括如下两种类型: - TCP TOA:表示将客户端信息插入到tcp option字段中携带至服务端。 说明:仅当后端资源为OBS时,支持TCP TOA类型信息携带方式。 - Proxy Protocol:表示将客户端信息插入到tcp payload字段中携带至服务端。 仅当服务端支持解析上述字段时,该参数设置才有效。 该参数的取值包括: - close:表示关闭代理协议。 - toa_open:表示开启代理协议“tcp_toa”。 - proxy_open:表示开启代理协议“proxy_protocol”。 - open:表示同时开启代理协议“tcp_toa”和“proxy_protocol”。 默认值为“close”。
|
102
|
+
:type tcp_proxy: str
|
103
|
+
:param tags: 资源标签列表
|
104
|
+
:type tags: list[:class:`huaweicloudsdkvpcep.v1.TagList`]
|
105
|
+
:param error: 提交任务异常时返回的异常信息
|
106
|
+
:type error: list[:class:`huaweicloudsdkvpcep.v1.Error`]
|
107
|
+
:param enable_policy: 是否允许自定义终端节点策略。 - false:不支持设置终端节点策略 - true:支持设置终端节点策略 默认为false
|
108
|
+
:type enable_policy: bool
|
109
|
+
:param description: 描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。
|
110
|
+
:type description: str
|
111
|
+
"""
|
112
|
+
|
113
|
+
super(ListServiceDetailsResponse, self).__init__()
|
114
|
+
|
115
|
+
self._id = None
|
116
|
+
self._port_id = None
|
117
|
+
self._service_name = None
|
118
|
+
self._server_type = None
|
119
|
+
self._vpc_id = None
|
120
|
+
self._approval_enabled = None
|
121
|
+
self._status = None
|
122
|
+
self._service_type = None
|
123
|
+
self._supported_editions = None
|
124
|
+
self._created_at = None
|
125
|
+
self._updated_at = None
|
126
|
+
self._project_id = None
|
127
|
+
self._cidr_type = None
|
128
|
+
self._ip = None
|
129
|
+
self._ports = None
|
130
|
+
self._tcp_proxy = None
|
131
|
+
self._tags = None
|
132
|
+
self._error = None
|
133
|
+
self._enable_policy = None
|
134
|
+
self._description = None
|
135
|
+
self.discriminator = None
|
136
|
+
|
137
|
+
if id is not None:
|
138
|
+
self.id = id
|
139
|
+
if port_id is not None:
|
140
|
+
self.port_id = port_id
|
141
|
+
if service_name is not None:
|
142
|
+
self.service_name = service_name
|
143
|
+
if server_type is not None:
|
144
|
+
self.server_type = server_type
|
145
|
+
if vpc_id is not None:
|
146
|
+
self.vpc_id = vpc_id
|
147
|
+
if approval_enabled is not None:
|
148
|
+
self.approval_enabled = approval_enabled
|
149
|
+
if status is not None:
|
150
|
+
self.status = status
|
151
|
+
if service_type is not None:
|
152
|
+
self.service_type = service_type
|
153
|
+
if supported_editions is not None:
|
154
|
+
self.supported_editions = supported_editions
|
155
|
+
if created_at is not None:
|
156
|
+
self.created_at = created_at
|
157
|
+
if updated_at is not None:
|
158
|
+
self.updated_at = updated_at
|
159
|
+
if project_id is not None:
|
160
|
+
self.project_id = project_id
|
161
|
+
if cidr_type is not None:
|
162
|
+
self.cidr_type = cidr_type
|
163
|
+
if ip is not None:
|
164
|
+
self.ip = ip
|
165
|
+
if ports is not None:
|
166
|
+
self.ports = ports
|
167
|
+
if tcp_proxy is not None:
|
168
|
+
self.tcp_proxy = tcp_proxy
|
169
|
+
if tags is not None:
|
170
|
+
self.tags = tags
|
171
|
+
if error is not None:
|
172
|
+
self.error = error
|
173
|
+
if enable_policy is not None:
|
174
|
+
self.enable_policy = enable_policy
|
175
|
+
if description is not None:
|
176
|
+
self.description = description
|
177
|
+
|
178
|
+
@property
|
179
|
+
def id(self):
|
180
|
+
r"""Gets the id of this ListServiceDetailsResponse.
|
181
|
+
|
182
|
+
终端节点服务的ID,唯一标识。
|
183
|
+
|
184
|
+
:return: The id of this ListServiceDetailsResponse.
|
185
|
+
:rtype: str
|
186
|
+
"""
|
187
|
+
return self._id
|
188
|
+
|
189
|
+
@id.setter
|
190
|
+
def id(self, id):
|
191
|
+
r"""Sets the id of this ListServiceDetailsResponse.
|
192
|
+
|
193
|
+
终端节点服务的ID,唯一标识。
|
194
|
+
|
195
|
+
:param id: The id of this ListServiceDetailsResponse.
|
196
|
+
:type id: str
|
197
|
+
"""
|
198
|
+
self._id = id
|
199
|
+
|
200
|
+
@property
|
201
|
+
def port_id(self):
|
202
|
+
r"""Gets the port_id of this ListServiceDetailsResponse.
|
203
|
+
|
204
|
+
标识终端节点服务后端资源的ID, 格式为通用唯一识别码(Universally Unique Identifier,下文简称UUID)。取值为: - LB类型:负载均衡器内网IP对应的端口ID。 - VM类型:弹性云服务器IP地址对应的网卡ID。 - VIP类型:虚拟资源所在物理服务器对应的网卡ID。(该字段已废弃,请优先使用LB类型)
|
205
|
+
|
206
|
+
:return: The port_id of this ListServiceDetailsResponse.
|
207
|
+
:rtype: str
|
208
|
+
"""
|
209
|
+
return self._port_id
|
210
|
+
|
211
|
+
@port_id.setter
|
212
|
+
def port_id(self, port_id):
|
213
|
+
r"""Sets the port_id of this ListServiceDetailsResponse.
|
214
|
+
|
215
|
+
标识终端节点服务后端资源的ID, 格式为通用唯一识别码(Universally Unique Identifier,下文简称UUID)。取值为: - LB类型:负载均衡器内网IP对应的端口ID。 - VM类型:弹性云服务器IP地址对应的网卡ID。 - VIP类型:虚拟资源所在物理服务器对应的网卡ID。(该字段已废弃,请优先使用LB类型)
|
216
|
+
|
217
|
+
:param port_id: The port_id of this ListServiceDetailsResponse.
|
218
|
+
:type port_id: str
|
219
|
+
"""
|
220
|
+
self._port_id = port_id
|
221
|
+
|
222
|
+
@property
|
223
|
+
def service_name(self):
|
224
|
+
r"""Gets the service_name of this ListServiceDetailsResponse.
|
225
|
+
|
226
|
+
终端节点服务的名称。
|
227
|
+
|
228
|
+
:return: The service_name of this ListServiceDetailsResponse.
|
229
|
+
:rtype: str
|
230
|
+
"""
|
231
|
+
return self._service_name
|
232
|
+
|
233
|
+
@service_name.setter
|
234
|
+
def service_name(self, service_name):
|
235
|
+
r"""Sets the service_name of this ListServiceDetailsResponse.
|
236
|
+
|
237
|
+
终端节点服务的名称。
|
238
|
+
|
239
|
+
:param service_name: The service_name of this ListServiceDetailsResponse.
|
240
|
+
:type service_name: str
|
241
|
+
"""
|
242
|
+
self._service_name = service_name
|
243
|
+
|
244
|
+
@property
|
245
|
+
def server_type(self):
|
246
|
+
r"""Gets the server_type of this ListServiceDetailsResponse.
|
247
|
+
|
248
|
+
资源类型。 - VM:云服务器。 - VIP:虚拟IP。 - LB:增强负载均衡型。
|
249
|
+
|
250
|
+
:return: The server_type of this ListServiceDetailsResponse.
|
251
|
+
:rtype: str
|
252
|
+
"""
|
253
|
+
return self._server_type
|
254
|
+
|
255
|
+
@server_type.setter
|
256
|
+
def server_type(self, server_type):
|
257
|
+
r"""Sets the server_type of this ListServiceDetailsResponse.
|
258
|
+
|
259
|
+
资源类型。 - VM:云服务器。 - VIP:虚拟IP。 - LB:增强负载均衡型。
|
260
|
+
|
261
|
+
:param server_type: The server_type of this ListServiceDetailsResponse.
|
262
|
+
:type server_type: str
|
263
|
+
"""
|
264
|
+
self._server_type = server_type
|
265
|
+
|
266
|
+
@property
|
267
|
+
def vpc_id(self):
|
268
|
+
r"""Gets the vpc_id of this ListServiceDetailsResponse.
|
269
|
+
|
270
|
+
终端节点服务对应后端资源所在的VPC的ID。
|
271
|
+
|
272
|
+
:return: The vpc_id of this ListServiceDetailsResponse.
|
273
|
+
:rtype: str
|
274
|
+
"""
|
275
|
+
return self._vpc_id
|
276
|
+
|
277
|
+
@vpc_id.setter
|
278
|
+
def vpc_id(self, vpc_id):
|
279
|
+
r"""Sets the vpc_id of this ListServiceDetailsResponse.
|
280
|
+
|
281
|
+
终端节点服务对应后端资源所在的VPC的ID。
|
282
|
+
|
283
|
+
:param vpc_id: The vpc_id of this ListServiceDetailsResponse.
|
284
|
+
:type vpc_id: str
|
285
|
+
"""
|
286
|
+
self._vpc_id = vpc_id
|
287
|
+
|
288
|
+
@property
|
289
|
+
def approval_enabled(self):
|
290
|
+
r"""Gets the approval_enabled of this ListServiceDetailsResponse.
|
291
|
+
|
292
|
+
是否需要审批。 - false:不需要审批,创建的终端节点连接直接为accepted状态。 - true:需要审批,创建的终端节点连接为pendingAcceptance状态, 需要终端节点服务所属用户审核后方可使用。
|
293
|
+
|
294
|
+
:return: The approval_enabled of this ListServiceDetailsResponse.
|
295
|
+
:rtype: bool
|
296
|
+
"""
|
297
|
+
return self._approval_enabled
|
298
|
+
|
299
|
+
@approval_enabled.setter
|
300
|
+
def approval_enabled(self, approval_enabled):
|
301
|
+
r"""Sets the approval_enabled of this ListServiceDetailsResponse.
|
302
|
+
|
303
|
+
是否需要审批。 - false:不需要审批,创建的终端节点连接直接为accepted状态。 - true:需要审批,创建的终端节点连接为pendingAcceptance状态, 需要终端节点服务所属用户审核后方可使用。
|
304
|
+
|
305
|
+
:param approval_enabled: The approval_enabled of this ListServiceDetailsResponse.
|
306
|
+
:type approval_enabled: bool
|
307
|
+
"""
|
308
|
+
self._approval_enabled = approval_enabled
|
309
|
+
|
310
|
+
@property
|
311
|
+
def status(self):
|
312
|
+
r"""Gets the status of this ListServiceDetailsResponse.
|
313
|
+
|
314
|
+
终端节点服务的状态。 - creating:创建中 - available:可连接 - failed:失败 - deleting:删除中
|
315
|
+
|
316
|
+
:return: The status of this ListServiceDetailsResponse.
|
317
|
+
:rtype: str
|
318
|
+
"""
|
319
|
+
return self._status
|
320
|
+
|
321
|
+
@status.setter
|
322
|
+
def status(self, status):
|
323
|
+
r"""Sets the status of this ListServiceDetailsResponse.
|
324
|
+
|
325
|
+
终端节点服务的状态。 - creating:创建中 - available:可连接 - failed:失败 - deleting:删除中
|
326
|
+
|
327
|
+
:param status: The status of this ListServiceDetailsResponse.
|
328
|
+
:type status: str
|
329
|
+
"""
|
330
|
+
self._status = status
|
331
|
+
|
332
|
+
@property
|
333
|
+
def service_type(self):
|
334
|
+
r"""Gets the service_type of this ListServiceDetailsResponse.
|
335
|
+
|
336
|
+
终端节点服务类型。 终端节点服务类型包括“网关(gateway)型”和“接口(interface)型”: - gateway:由运维人员配置。用户无需创建,可直接使用。 - interface:包括运维人员配置的云服务和用户自己创建的私有服务。 其中,运维人员配置的云服务无需创建,用户可直接使用。 您可以通过创建终端节点创建访问Gateway和Interface类型终端节点服务的终端节。
|
337
|
+
|
338
|
+
:return: The service_type of this ListServiceDetailsResponse.
|
339
|
+
:rtype: str
|
340
|
+
"""
|
341
|
+
return self._service_type
|
342
|
+
|
343
|
+
@service_type.setter
|
344
|
+
def service_type(self, service_type):
|
345
|
+
r"""Sets the service_type of this ListServiceDetailsResponse.
|
346
|
+
|
347
|
+
终端节点服务类型。 终端节点服务类型包括“网关(gateway)型”和“接口(interface)型”: - gateway:由运维人员配置。用户无需创建,可直接使用。 - interface:包括运维人员配置的云服务和用户自己创建的私有服务。 其中,运维人员配置的云服务无需创建,用户可直接使用。 您可以通过创建终端节点创建访问Gateway和Interface类型终端节点服务的终端节。
|
348
|
+
|
349
|
+
:param service_type: The service_type of this ListServiceDetailsResponse.
|
350
|
+
:type service_type: str
|
351
|
+
"""
|
352
|
+
self._service_type = service_type
|
353
|
+
|
354
|
+
@property
|
355
|
+
def supported_editions(self):
|
356
|
+
r"""Gets the supported_editions of this ListServiceDetailsResponse.
|
357
|
+
|
358
|
+
终端节点服务支持的类型,取值范围为profession-专业型,basic-基础型
|
359
|
+
|
360
|
+
:return: The supported_editions of this ListServiceDetailsResponse.
|
361
|
+
:rtype: list[str]
|
362
|
+
"""
|
363
|
+
return self._supported_editions
|
364
|
+
|
365
|
+
@supported_editions.setter
|
366
|
+
def supported_editions(self, supported_editions):
|
367
|
+
r"""Sets the supported_editions of this ListServiceDetailsResponse.
|
368
|
+
|
369
|
+
终端节点服务支持的类型,取值范围为profession-专业型,basic-基础型
|
370
|
+
|
371
|
+
:param supported_editions: The supported_editions of this ListServiceDetailsResponse.
|
372
|
+
:type supported_editions: list[str]
|
373
|
+
"""
|
374
|
+
self._supported_editions = supported_editions
|
375
|
+
|
376
|
+
@property
|
377
|
+
def created_at(self):
|
378
|
+
r"""Gets the created_at of this ListServiceDetailsResponse.
|
379
|
+
|
380
|
+
终端节点服务的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
381
|
+
|
382
|
+
:return: The created_at of this ListServiceDetailsResponse.
|
383
|
+
:rtype: datetime
|
384
|
+
"""
|
385
|
+
return self._created_at
|
386
|
+
|
387
|
+
@created_at.setter
|
388
|
+
def created_at(self, created_at):
|
389
|
+
r"""Sets the created_at of this ListServiceDetailsResponse.
|
390
|
+
|
391
|
+
终端节点服务的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
392
|
+
|
393
|
+
:param created_at: The created_at of this ListServiceDetailsResponse.
|
394
|
+
:type created_at: datetime
|
395
|
+
"""
|
396
|
+
self._created_at = created_at
|
397
|
+
|
398
|
+
@property
|
399
|
+
def updated_at(self):
|
400
|
+
r"""Gets the updated_at of this ListServiceDetailsResponse.
|
401
|
+
|
402
|
+
终端节点服务的更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
403
|
+
|
404
|
+
:return: The updated_at of this ListServiceDetailsResponse.
|
405
|
+
:rtype: datetime
|
406
|
+
"""
|
407
|
+
return self._updated_at
|
408
|
+
|
409
|
+
@updated_at.setter
|
410
|
+
def updated_at(self, updated_at):
|
411
|
+
r"""Sets the updated_at of this ListServiceDetailsResponse.
|
412
|
+
|
413
|
+
终端节点服务的更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
414
|
+
|
415
|
+
:param updated_at: The updated_at of this ListServiceDetailsResponse.
|
416
|
+
:type updated_at: datetime
|
417
|
+
"""
|
418
|
+
self._updated_at = updated_at
|
419
|
+
|
420
|
+
@property
|
421
|
+
def project_id(self):
|
422
|
+
r"""Gets the project_id of this ListServiceDetailsResponse.
|
423
|
+
|
424
|
+
项目ID,获取方法请参见获取项目ID。
|
425
|
+
|
426
|
+
:return: The project_id of this ListServiceDetailsResponse.
|
427
|
+
:rtype: str
|
428
|
+
"""
|
429
|
+
return self._project_id
|
430
|
+
|
431
|
+
@project_id.setter
|
432
|
+
def project_id(self, project_id):
|
433
|
+
r"""Sets the project_id of this ListServiceDetailsResponse.
|
434
|
+
|
435
|
+
项目ID,获取方法请参见获取项目ID。
|
436
|
+
|
437
|
+
:param project_id: The project_id of this ListServiceDetailsResponse.
|
438
|
+
:type project_id: str
|
439
|
+
"""
|
440
|
+
self._project_id = project_id
|
441
|
+
|
442
|
+
@property
|
443
|
+
def cidr_type(self):
|
444
|
+
r"""Gets the cidr_type of this ListServiceDetailsResponse.
|
445
|
+
|
446
|
+
网段类型。 public:公网网段 internal:内网网段 默认值为internal。
|
447
|
+
|
448
|
+
:return: The cidr_type of this ListServiceDetailsResponse.
|
449
|
+
:rtype: str
|
450
|
+
"""
|
451
|
+
return self._cidr_type
|
452
|
+
|
453
|
+
@cidr_type.setter
|
454
|
+
def cidr_type(self, cidr_type):
|
455
|
+
r"""Sets the cidr_type of this ListServiceDetailsResponse.
|
456
|
+
|
457
|
+
网段类型。 public:公网网段 internal:内网网段 默认值为internal。
|
458
|
+
|
459
|
+
:param cidr_type: The cidr_type of this ListServiceDetailsResponse.
|
460
|
+
:type cidr_type: str
|
461
|
+
"""
|
462
|
+
self._cidr_type = cidr_type
|
463
|
+
|
464
|
+
@property
|
465
|
+
def ip(self):
|
466
|
+
r"""Gets the ip of this ListServiceDetailsResponse.
|
467
|
+
|
468
|
+
接口型VLAN场景服务端IPv4地址或域名
|
469
|
+
|
470
|
+
:return: The ip of this ListServiceDetailsResponse.
|
471
|
+
:rtype: str
|
472
|
+
"""
|
473
|
+
return self._ip
|
474
|
+
|
475
|
+
@ip.setter
|
476
|
+
def ip(self, ip):
|
477
|
+
r"""Sets the ip of this ListServiceDetailsResponse.
|
478
|
+
|
479
|
+
接口型VLAN场景服务端IPv4地址或域名
|
480
|
+
|
481
|
+
:param ip: The ip of this ListServiceDetailsResponse.
|
482
|
+
:type ip: str
|
483
|
+
"""
|
484
|
+
self._ip = ip
|
485
|
+
|
486
|
+
@property
|
487
|
+
def ports(self):
|
488
|
+
r"""Gets the ports of this ListServiceDetailsResponse.
|
489
|
+
|
490
|
+
服务开放的端口映射列表,详细内容请参见表4-17 同一个终端节点服务下,不允许重复的端口映射。若多个终端节点服务共用一个port_id,则 终端节点服务之间的所有端口映射的server_port和protocol的组合不能重复。
|
491
|
+
|
492
|
+
:return: The ports of this ListServiceDetailsResponse.
|
493
|
+
:rtype: list[:class:`huaweicloudsdkvpcep.v1.PortList`]
|
494
|
+
"""
|
495
|
+
return self._ports
|
496
|
+
|
497
|
+
@ports.setter
|
498
|
+
def ports(self, ports):
|
499
|
+
r"""Sets the ports of this ListServiceDetailsResponse.
|
500
|
+
|
501
|
+
服务开放的端口映射列表,详细内容请参见表4-17 同一个终端节点服务下,不允许重复的端口映射。若多个终端节点服务共用一个port_id,则 终端节点服务之间的所有端口映射的server_port和protocol的组合不能重复。
|
502
|
+
|
503
|
+
:param ports: The ports of this ListServiceDetailsResponse.
|
504
|
+
:type ports: list[:class:`huaweicloudsdkvpcep.v1.PortList`]
|
505
|
+
"""
|
506
|
+
self._ports = ports
|
507
|
+
|
508
|
+
@property
|
509
|
+
def tcp_proxy(self):
|
510
|
+
r"""Gets the tcp_proxy of this ListServiceDetailsResponse.
|
511
|
+
|
512
|
+
用于控制将哪些信息(如客户端的源IP、源端口、marker_id等)携带到服务端。 支持携带的客户端信息包括如下两种类型: - TCP TOA:表示将客户端信息插入到tcp option字段中携带至服务端。 说明:仅当后端资源为OBS时,支持TCP TOA类型信息携带方式。 - Proxy Protocol:表示将客户端信息插入到tcp payload字段中携带至服务端。 仅当服务端支持解析上述字段时,该参数设置才有效。 该参数的取值包括: - close:表示关闭代理协议。 - toa_open:表示开启代理协议“tcp_toa”。 - proxy_open:表示开启代理协议“proxy_protocol”。 - open:表示同时开启代理协议“tcp_toa”和“proxy_protocol”。 默认值为“close”。
|
513
|
+
|
514
|
+
:return: The tcp_proxy of this ListServiceDetailsResponse.
|
515
|
+
:rtype: str
|
516
|
+
"""
|
517
|
+
return self._tcp_proxy
|
518
|
+
|
519
|
+
@tcp_proxy.setter
|
520
|
+
def tcp_proxy(self, tcp_proxy):
|
521
|
+
r"""Sets the tcp_proxy of this ListServiceDetailsResponse.
|
522
|
+
|
523
|
+
用于控制将哪些信息(如客户端的源IP、源端口、marker_id等)携带到服务端。 支持携带的客户端信息包括如下两种类型: - TCP TOA:表示将客户端信息插入到tcp option字段中携带至服务端。 说明:仅当后端资源为OBS时,支持TCP TOA类型信息携带方式。 - Proxy Protocol:表示将客户端信息插入到tcp payload字段中携带至服务端。 仅当服务端支持解析上述字段时,该参数设置才有效。 该参数的取值包括: - close:表示关闭代理协议。 - toa_open:表示开启代理协议“tcp_toa”。 - proxy_open:表示开启代理协议“proxy_protocol”。 - open:表示同时开启代理协议“tcp_toa”和“proxy_protocol”。 默认值为“close”。
|
524
|
+
|
525
|
+
:param tcp_proxy: The tcp_proxy of this ListServiceDetailsResponse.
|
526
|
+
:type tcp_proxy: str
|
527
|
+
"""
|
528
|
+
self._tcp_proxy = tcp_proxy
|
529
|
+
|
530
|
+
@property
|
531
|
+
def tags(self):
|
532
|
+
r"""Gets the tags of this ListServiceDetailsResponse.
|
533
|
+
|
534
|
+
资源标签列表
|
535
|
+
|
536
|
+
:return: The tags of this ListServiceDetailsResponse.
|
537
|
+
:rtype: list[:class:`huaweicloudsdkvpcep.v1.TagList`]
|
538
|
+
"""
|
539
|
+
return self._tags
|
540
|
+
|
541
|
+
@tags.setter
|
542
|
+
def tags(self, tags):
|
543
|
+
r"""Sets the tags of this ListServiceDetailsResponse.
|
544
|
+
|
545
|
+
资源标签列表
|
546
|
+
|
547
|
+
:param tags: The tags of this ListServiceDetailsResponse.
|
548
|
+
:type tags: list[:class:`huaweicloudsdkvpcep.v1.TagList`]
|
549
|
+
"""
|
550
|
+
self._tags = tags
|
551
|
+
|
552
|
+
@property
|
553
|
+
def error(self):
|
554
|
+
r"""Gets the error of this ListServiceDetailsResponse.
|
555
|
+
|
556
|
+
提交任务异常时返回的异常信息
|
557
|
+
|
558
|
+
:return: The error of this ListServiceDetailsResponse.
|
559
|
+
:rtype: list[:class:`huaweicloudsdkvpcep.v1.Error`]
|
560
|
+
"""
|
561
|
+
return self._error
|
562
|
+
|
563
|
+
@error.setter
|
564
|
+
def error(self, error):
|
565
|
+
r"""Sets the error of this ListServiceDetailsResponse.
|
566
|
+
|
567
|
+
提交任务异常时返回的异常信息
|
568
|
+
|
569
|
+
:param error: The error of this ListServiceDetailsResponse.
|
570
|
+
:type error: list[:class:`huaweicloudsdkvpcep.v1.Error`]
|
571
|
+
"""
|
572
|
+
self._error = error
|
573
|
+
|
574
|
+
@property
|
575
|
+
def enable_policy(self):
|
576
|
+
r"""Gets the enable_policy of this ListServiceDetailsResponse.
|
577
|
+
|
578
|
+
是否允许自定义终端节点策略。 - false:不支持设置终端节点策略 - true:支持设置终端节点策略 默认为false
|
579
|
+
|
580
|
+
:return: The enable_policy of this ListServiceDetailsResponse.
|
581
|
+
:rtype: bool
|
582
|
+
"""
|
583
|
+
return self._enable_policy
|
584
|
+
|
585
|
+
@enable_policy.setter
|
586
|
+
def enable_policy(self, enable_policy):
|
587
|
+
r"""Sets the enable_policy of this ListServiceDetailsResponse.
|
588
|
+
|
589
|
+
是否允许自定义终端节点策略。 - false:不支持设置终端节点策略 - true:支持设置终端节点策略 默认为false
|
590
|
+
|
591
|
+
:param enable_policy: The enable_policy of this ListServiceDetailsResponse.
|
592
|
+
:type enable_policy: bool
|
593
|
+
"""
|
594
|
+
self._enable_policy = enable_policy
|
595
|
+
|
596
|
+
@property
|
597
|
+
def description(self):
|
598
|
+
r"""Gets the description of this ListServiceDetailsResponse.
|
599
|
+
|
600
|
+
描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。
|
601
|
+
|
602
|
+
:return: The description of this ListServiceDetailsResponse.
|
603
|
+
:rtype: str
|
604
|
+
"""
|
605
|
+
return self._description
|
606
|
+
|
607
|
+
@description.setter
|
608
|
+
def description(self, description):
|
609
|
+
r"""Sets the description of this ListServiceDetailsResponse.
|
610
|
+
|
611
|
+
描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。
|
612
|
+
|
613
|
+
:param description: The description of this ListServiceDetailsResponse.
|
614
|
+
:type description: str
|
615
|
+
"""
|
616
|
+
self._description = description
|
617
|
+
|
618
|
+
def to_dict(self):
|
619
|
+
"""Returns the model properties as a dict"""
|
620
|
+
result = {}
|
621
|
+
|
622
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
623
|
+
value = getattr(self, attr)
|
624
|
+
if isinstance(value, list):
|
625
|
+
result[attr] = list(map(
|
626
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
627
|
+
value
|
628
|
+
))
|
629
|
+
elif hasattr(value, "to_dict"):
|
630
|
+
result[attr] = value.to_dict()
|
631
|
+
elif isinstance(value, dict):
|
632
|
+
result[attr] = dict(map(
|
633
|
+
lambda item: (item[0], item[1].to_dict())
|
634
|
+
if hasattr(item[1], "to_dict") else item,
|
635
|
+
value.items()
|
636
|
+
))
|
637
|
+
else:
|
638
|
+
if attr in self.sensitive_list:
|
639
|
+
result[attr] = "****"
|
640
|
+
else:
|
641
|
+
result[attr] = value
|
642
|
+
|
643
|
+
return result
|
644
|
+
|
645
|
+
def to_str(self):
|
646
|
+
"""Returns the string representation of the model"""
|
647
|
+
import simplejson as json
|
648
|
+
if six.PY2:
|
649
|
+
import sys
|
650
|
+
reload(sys)
|
651
|
+
sys.setdefaultencoding("utf-8")
|
652
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
653
|
+
|
654
|
+
def __repr__(self):
|
655
|
+
"""For `print`"""
|
656
|
+
return self.to_str()
|
657
|
+
|
658
|
+
def __eq__(self, other):
|
659
|
+
"""Returns true if both objects are equal"""
|
660
|
+
if not isinstance(other, ListServiceDetailsResponse):
|
661
|
+
return False
|
662
|
+
|
663
|
+
return self.__dict__ == other.__dict__
|
664
|
+
|
665
|
+
def __ne__(self, other):
|
666
|
+
"""Returns true if both objects are not equal"""
|
667
|
+
return not self == other
|