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,724 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ServiceList:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'id': 'str',
|
21
|
+
'port_id': 'str',
|
22
|
+
'service_name': 'str',
|
23
|
+
'server_type': 'str',
|
24
|
+
'vpc_id': 'str',
|
25
|
+
'approval_enabled': 'bool',
|
26
|
+
'status': 'str',
|
27
|
+
'service_type': 'str',
|
28
|
+
'created_at': 'datetime',
|
29
|
+
'updated_at': 'datetime',
|
30
|
+
'project_id': 'str',
|
31
|
+
'domain_id': 'str',
|
32
|
+
'ports': 'list[PortList]',
|
33
|
+
'ip': 'str',
|
34
|
+
'tags': 'list[TagList]',
|
35
|
+
'connection_count': 'int',
|
36
|
+
'tcp_proxy': 'str',
|
37
|
+
'error': 'list[Error]',
|
38
|
+
'description': 'str',
|
39
|
+
'supported_editions': 'list[str]',
|
40
|
+
'public_border_group': 'str',
|
41
|
+
'enable_policy': 'bool'
|
42
|
+
}
|
43
|
+
|
44
|
+
attribute_map = {
|
45
|
+
'id': 'id',
|
46
|
+
'port_id': 'port_id',
|
47
|
+
'service_name': 'service_name',
|
48
|
+
'server_type': 'server_type',
|
49
|
+
'vpc_id': 'vpc_id',
|
50
|
+
'approval_enabled': 'approval_enabled',
|
51
|
+
'status': 'status',
|
52
|
+
'service_type': 'service_type',
|
53
|
+
'created_at': 'created_at',
|
54
|
+
'updated_at': 'updated_at',
|
55
|
+
'project_id': 'project_id',
|
56
|
+
'domain_id': 'domain_id',
|
57
|
+
'ports': 'ports',
|
58
|
+
'ip': 'ip',
|
59
|
+
'tags': 'tags',
|
60
|
+
'connection_count': 'connection_count',
|
61
|
+
'tcp_proxy': 'tcp_proxy',
|
62
|
+
'error': 'error',
|
63
|
+
'description': 'description',
|
64
|
+
'supported_editions': 'supported_editions',
|
65
|
+
'public_border_group': 'public_border_group',
|
66
|
+
'enable_policy': 'enable_policy'
|
67
|
+
}
|
68
|
+
|
69
|
+
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, created_at=None, updated_at=None, project_id=None, domain_id=None, ports=None, ip=None, tags=None, connection_count=None, tcp_proxy=None, error=None, description=None, supported_editions=None, public_border_group=None, enable_policy=None):
|
70
|
+
r"""ServiceList
|
71
|
+
|
72
|
+
The model defined in huaweicloud sdk
|
73
|
+
|
74
|
+
:param id: 终端节点服务的ID,唯一标识。
|
75
|
+
:type id: str
|
76
|
+
:param port_id: 标识终端节点服务后端资源的ID, 格式为通用唯一识别码(Universally Unique Identifier,下文简称UUID)。取值为: - LB类型:负载均衡器内网IP对应的端口ID。 - VM类型:弹性云服务器IP地址对应的网卡ID。 - VIP类型:虚拟资源所在物理服务器对应的网卡ID。(该字段已废弃,请优先使用LB类型)
|
77
|
+
:type port_id: str
|
78
|
+
:param service_name: 终端节点服务的名称。
|
79
|
+
:type service_name: str
|
80
|
+
:param server_type: 资源类型。 - VM:云服务器。 - VIP:虚拟IP。 - LB:增强负载均衡型。
|
81
|
+
:type server_type: str
|
82
|
+
:param vpc_id: 终端节点服务对应后端资源所在的VPC的ID。
|
83
|
+
:type vpc_id: str
|
84
|
+
:param approval_enabled: 是否需要审批。 - false:不需要审批,创建的终端节点连接直接为accepted状态。 - true:需要审批,创建的终端节点连接为pendingAcceptance状态, 需要终端节点服务所属用户审核后方可使用。
|
85
|
+
:type approval_enabled: bool
|
86
|
+
:param status: 终端节点服务的状态。 - creating:创建中 - available:可连接 - failed:失败 - deleting:删除中
|
87
|
+
:type status: str
|
88
|
+
:param service_type: 终端节点服务类型。 终端节点服务类型包括“网关(gateway)型”和“接口(interface)型”: - gateway:由运维人员配置。用户无需创建,可直接使用。 - interface:包括运维人员配置的云服务和用户自己创建的私有服务。 其中,运维人员配置的云服务无需创建,用户可直接使用。 您可以通过创建终端节点创建访问Gateway和Interface类型终端节点服务的终端节点。
|
89
|
+
:type service_type: str
|
90
|
+
:param created_at: 终端节点服务的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
91
|
+
:type created_at: datetime
|
92
|
+
:param updated_at: 终端节点服务的更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
93
|
+
:type updated_at: datetime
|
94
|
+
:param project_id: 项目ID,获取方法请参见获取项目ID。
|
95
|
+
:type project_id: str
|
96
|
+
:param domain_id: Domain ID
|
97
|
+
:type domain_id: str
|
98
|
+
:param ports: 服务开放的端口映射列表 同一个终端节点服务下,不允许重复的端口映射。 若多个终端节点服务共用一个port_id, 则终端节点服务之间的所有端口映射的server_port和protocol的组合不能重复。
|
99
|
+
:type ports: list[:class:`huaweicloudsdkvpcep.v1.PortList`]
|
100
|
+
:param ip: 接口型VLAN场景服务端IPv4地址或域名
|
101
|
+
:type ip: str
|
102
|
+
:param tags: 资源标签列表
|
103
|
+
:type tags: list[:class:`huaweicloudsdkvpcep.v1.TagList`]
|
104
|
+
:param connection_count: 终端节点服务下连接的状态为“创建中”或“已接受”的终端节点的个数。
|
105
|
+
:type connection_count: int
|
106
|
+
: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”。
|
107
|
+
:type tcp_proxy: str
|
108
|
+
:param error: 提交任务异常时返回的异常信息
|
109
|
+
:type error: list[:class:`huaweicloudsdkvpcep.v1.Error`]
|
110
|
+
:param description: 描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。
|
111
|
+
:type description: str
|
112
|
+
:param supported_editions: 终端节点服务支持的类型,取值范围为profession-专业型,basic-基础型
|
113
|
+
:type supported_editions: list[str]
|
114
|
+
:param public_border_group: 终端节点服务对应Pool的Public Border Group信息
|
115
|
+
:type public_border_group: str
|
116
|
+
:param enable_policy: 是否允许自定义终端节点策略。 - false:不支持设置终端节点策略 - true:支持设置终端节点策略 默认为false
|
117
|
+
:type enable_policy: bool
|
118
|
+
"""
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
self._id = None
|
123
|
+
self._port_id = None
|
124
|
+
self._service_name = None
|
125
|
+
self._server_type = None
|
126
|
+
self._vpc_id = None
|
127
|
+
self._approval_enabled = None
|
128
|
+
self._status = None
|
129
|
+
self._service_type = None
|
130
|
+
self._created_at = None
|
131
|
+
self._updated_at = None
|
132
|
+
self._project_id = None
|
133
|
+
self._domain_id = None
|
134
|
+
self._ports = None
|
135
|
+
self._ip = None
|
136
|
+
self._tags = None
|
137
|
+
self._connection_count = None
|
138
|
+
self._tcp_proxy = None
|
139
|
+
self._error = None
|
140
|
+
self._description = None
|
141
|
+
self._supported_editions = None
|
142
|
+
self._public_border_group = None
|
143
|
+
self._enable_policy = None
|
144
|
+
self.discriminator = None
|
145
|
+
|
146
|
+
if id is not None:
|
147
|
+
self.id = id
|
148
|
+
if port_id is not None:
|
149
|
+
self.port_id = port_id
|
150
|
+
if service_name is not None:
|
151
|
+
self.service_name = service_name
|
152
|
+
if server_type is not None:
|
153
|
+
self.server_type = server_type
|
154
|
+
if vpc_id is not None:
|
155
|
+
self.vpc_id = vpc_id
|
156
|
+
if approval_enabled is not None:
|
157
|
+
self.approval_enabled = approval_enabled
|
158
|
+
if status is not None:
|
159
|
+
self.status = status
|
160
|
+
if service_type is not None:
|
161
|
+
self.service_type = service_type
|
162
|
+
if created_at is not None:
|
163
|
+
self.created_at = created_at
|
164
|
+
if updated_at is not None:
|
165
|
+
self.updated_at = updated_at
|
166
|
+
if project_id is not None:
|
167
|
+
self.project_id = project_id
|
168
|
+
if domain_id is not None:
|
169
|
+
self.domain_id = domain_id
|
170
|
+
if ports is not None:
|
171
|
+
self.ports = ports
|
172
|
+
if ip is not None:
|
173
|
+
self.ip = ip
|
174
|
+
if tags is not None:
|
175
|
+
self.tags = tags
|
176
|
+
if connection_count is not None:
|
177
|
+
self.connection_count = connection_count
|
178
|
+
if tcp_proxy is not None:
|
179
|
+
self.tcp_proxy = tcp_proxy
|
180
|
+
if error is not None:
|
181
|
+
self.error = error
|
182
|
+
if description is not None:
|
183
|
+
self.description = description
|
184
|
+
if supported_editions is not None:
|
185
|
+
self.supported_editions = supported_editions
|
186
|
+
if public_border_group is not None:
|
187
|
+
self.public_border_group = public_border_group
|
188
|
+
if enable_policy is not None:
|
189
|
+
self.enable_policy = enable_policy
|
190
|
+
|
191
|
+
@property
|
192
|
+
def id(self):
|
193
|
+
r"""Gets the id of this ServiceList.
|
194
|
+
|
195
|
+
终端节点服务的ID,唯一标识。
|
196
|
+
|
197
|
+
:return: The id of this ServiceList.
|
198
|
+
:rtype: str
|
199
|
+
"""
|
200
|
+
return self._id
|
201
|
+
|
202
|
+
@id.setter
|
203
|
+
def id(self, id):
|
204
|
+
r"""Sets the id of this ServiceList.
|
205
|
+
|
206
|
+
终端节点服务的ID,唯一标识。
|
207
|
+
|
208
|
+
:param id: The id of this ServiceList.
|
209
|
+
:type id: str
|
210
|
+
"""
|
211
|
+
self._id = id
|
212
|
+
|
213
|
+
@property
|
214
|
+
def port_id(self):
|
215
|
+
r"""Gets the port_id of this ServiceList.
|
216
|
+
|
217
|
+
标识终端节点服务后端资源的ID, 格式为通用唯一识别码(Universally Unique Identifier,下文简称UUID)。取值为: - LB类型:负载均衡器内网IP对应的端口ID。 - VM类型:弹性云服务器IP地址对应的网卡ID。 - VIP类型:虚拟资源所在物理服务器对应的网卡ID。(该字段已废弃,请优先使用LB类型)
|
218
|
+
|
219
|
+
:return: The port_id of this ServiceList.
|
220
|
+
:rtype: str
|
221
|
+
"""
|
222
|
+
return self._port_id
|
223
|
+
|
224
|
+
@port_id.setter
|
225
|
+
def port_id(self, port_id):
|
226
|
+
r"""Sets the port_id of this ServiceList.
|
227
|
+
|
228
|
+
标识终端节点服务后端资源的ID, 格式为通用唯一识别码(Universally Unique Identifier,下文简称UUID)。取值为: - LB类型:负载均衡器内网IP对应的端口ID。 - VM类型:弹性云服务器IP地址对应的网卡ID。 - VIP类型:虚拟资源所在物理服务器对应的网卡ID。(该字段已废弃,请优先使用LB类型)
|
229
|
+
|
230
|
+
:param port_id: The port_id of this ServiceList.
|
231
|
+
:type port_id: str
|
232
|
+
"""
|
233
|
+
self._port_id = port_id
|
234
|
+
|
235
|
+
@property
|
236
|
+
def service_name(self):
|
237
|
+
r"""Gets the service_name of this ServiceList.
|
238
|
+
|
239
|
+
终端节点服务的名称。
|
240
|
+
|
241
|
+
:return: The service_name of this ServiceList.
|
242
|
+
:rtype: str
|
243
|
+
"""
|
244
|
+
return self._service_name
|
245
|
+
|
246
|
+
@service_name.setter
|
247
|
+
def service_name(self, service_name):
|
248
|
+
r"""Sets the service_name of this ServiceList.
|
249
|
+
|
250
|
+
终端节点服务的名称。
|
251
|
+
|
252
|
+
:param service_name: The service_name of this ServiceList.
|
253
|
+
:type service_name: str
|
254
|
+
"""
|
255
|
+
self._service_name = service_name
|
256
|
+
|
257
|
+
@property
|
258
|
+
def server_type(self):
|
259
|
+
r"""Gets the server_type of this ServiceList.
|
260
|
+
|
261
|
+
资源类型。 - VM:云服务器。 - VIP:虚拟IP。 - LB:增强负载均衡型。
|
262
|
+
|
263
|
+
:return: The server_type of this ServiceList.
|
264
|
+
:rtype: str
|
265
|
+
"""
|
266
|
+
return self._server_type
|
267
|
+
|
268
|
+
@server_type.setter
|
269
|
+
def server_type(self, server_type):
|
270
|
+
r"""Sets the server_type of this ServiceList.
|
271
|
+
|
272
|
+
资源类型。 - VM:云服务器。 - VIP:虚拟IP。 - LB:增强负载均衡型。
|
273
|
+
|
274
|
+
:param server_type: The server_type of this ServiceList.
|
275
|
+
:type server_type: str
|
276
|
+
"""
|
277
|
+
self._server_type = server_type
|
278
|
+
|
279
|
+
@property
|
280
|
+
def vpc_id(self):
|
281
|
+
r"""Gets the vpc_id of this ServiceList.
|
282
|
+
|
283
|
+
终端节点服务对应后端资源所在的VPC的ID。
|
284
|
+
|
285
|
+
:return: The vpc_id of this ServiceList.
|
286
|
+
:rtype: str
|
287
|
+
"""
|
288
|
+
return self._vpc_id
|
289
|
+
|
290
|
+
@vpc_id.setter
|
291
|
+
def vpc_id(self, vpc_id):
|
292
|
+
r"""Sets the vpc_id of this ServiceList.
|
293
|
+
|
294
|
+
终端节点服务对应后端资源所在的VPC的ID。
|
295
|
+
|
296
|
+
:param vpc_id: The vpc_id of this ServiceList.
|
297
|
+
:type vpc_id: str
|
298
|
+
"""
|
299
|
+
self._vpc_id = vpc_id
|
300
|
+
|
301
|
+
@property
|
302
|
+
def approval_enabled(self):
|
303
|
+
r"""Gets the approval_enabled of this ServiceList.
|
304
|
+
|
305
|
+
是否需要审批。 - false:不需要审批,创建的终端节点连接直接为accepted状态。 - true:需要审批,创建的终端节点连接为pendingAcceptance状态, 需要终端节点服务所属用户审核后方可使用。
|
306
|
+
|
307
|
+
:return: The approval_enabled of this ServiceList.
|
308
|
+
:rtype: bool
|
309
|
+
"""
|
310
|
+
return self._approval_enabled
|
311
|
+
|
312
|
+
@approval_enabled.setter
|
313
|
+
def approval_enabled(self, approval_enabled):
|
314
|
+
r"""Sets the approval_enabled of this ServiceList.
|
315
|
+
|
316
|
+
是否需要审批。 - false:不需要审批,创建的终端节点连接直接为accepted状态。 - true:需要审批,创建的终端节点连接为pendingAcceptance状态, 需要终端节点服务所属用户审核后方可使用。
|
317
|
+
|
318
|
+
:param approval_enabled: The approval_enabled of this ServiceList.
|
319
|
+
:type approval_enabled: bool
|
320
|
+
"""
|
321
|
+
self._approval_enabled = approval_enabled
|
322
|
+
|
323
|
+
@property
|
324
|
+
def status(self):
|
325
|
+
r"""Gets the status of this ServiceList.
|
326
|
+
|
327
|
+
终端节点服务的状态。 - creating:创建中 - available:可连接 - failed:失败 - deleting:删除中
|
328
|
+
|
329
|
+
:return: The status of this ServiceList.
|
330
|
+
:rtype: str
|
331
|
+
"""
|
332
|
+
return self._status
|
333
|
+
|
334
|
+
@status.setter
|
335
|
+
def status(self, status):
|
336
|
+
r"""Sets the status of this ServiceList.
|
337
|
+
|
338
|
+
终端节点服务的状态。 - creating:创建中 - available:可连接 - failed:失败 - deleting:删除中
|
339
|
+
|
340
|
+
:param status: The status of this ServiceList.
|
341
|
+
:type status: str
|
342
|
+
"""
|
343
|
+
self._status = status
|
344
|
+
|
345
|
+
@property
|
346
|
+
def service_type(self):
|
347
|
+
r"""Gets the service_type of this ServiceList.
|
348
|
+
|
349
|
+
终端节点服务类型。 终端节点服务类型包括“网关(gateway)型”和“接口(interface)型”: - gateway:由运维人员配置。用户无需创建,可直接使用。 - interface:包括运维人员配置的云服务和用户自己创建的私有服务。 其中,运维人员配置的云服务无需创建,用户可直接使用。 您可以通过创建终端节点创建访问Gateway和Interface类型终端节点服务的终端节点。
|
350
|
+
|
351
|
+
:return: The service_type of this ServiceList.
|
352
|
+
:rtype: str
|
353
|
+
"""
|
354
|
+
return self._service_type
|
355
|
+
|
356
|
+
@service_type.setter
|
357
|
+
def service_type(self, service_type):
|
358
|
+
r"""Sets the service_type of this ServiceList.
|
359
|
+
|
360
|
+
终端节点服务类型。 终端节点服务类型包括“网关(gateway)型”和“接口(interface)型”: - gateway:由运维人员配置。用户无需创建,可直接使用。 - interface:包括运维人员配置的云服务和用户自己创建的私有服务。 其中,运维人员配置的云服务无需创建,用户可直接使用。 您可以通过创建终端节点创建访问Gateway和Interface类型终端节点服务的终端节点。
|
361
|
+
|
362
|
+
:param service_type: The service_type of this ServiceList.
|
363
|
+
:type service_type: str
|
364
|
+
"""
|
365
|
+
self._service_type = service_type
|
366
|
+
|
367
|
+
@property
|
368
|
+
def created_at(self):
|
369
|
+
r"""Gets the created_at of this ServiceList.
|
370
|
+
|
371
|
+
终端节点服务的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
372
|
+
|
373
|
+
:return: The created_at of this ServiceList.
|
374
|
+
:rtype: datetime
|
375
|
+
"""
|
376
|
+
return self._created_at
|
377
|
+
|
378
|
+
@created_at.setter
|
379
|
+
def created_at(self, created_at):
|
380
|
+
r"""Sets the created_at of this ServiceList.
|
381
|
+
|
382
|
+
终端节点服务的创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
383
|
+
|
384
|
+
:param created_at: The created_at of this ServiceList.
|
385
|
+
:type created_at: datetime
|
386
|
+
"""
|
387
|
+
self._created_at = created_at
|
388
|
+
|
389
|
+
@property
|
390
|
+
def updated_at(self):
|
391
|
+
r"""Gets the updated_at of this ServiceList.
|
392
|
+
|
393
|
+
终端节点服务的更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
394
|
+
|
395
|
+
:return: The updated_at of this ServiceList.
|
396
|
+
:rtype: datetime
|
397
|
+
"""
|
398
|
+
return self._updated_at
|
399
|
+
|
400
|
+
@updated_at.setter
|
401
|
+
def updated_at(self, updated_at):
|
402
|
+
r"""Sets the updated_at of this ServiceList.
|
403
|
+
|
404
|
+
终端节点服务的更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ
|
405
|
+
|
406
|
+
:param updated_at: The updated_at of this ServiceList.
|
407
|
+
:type updated_at: datetime
|
408
|
+
"""
|
409
|
+
self._updated_at = updated_at
|
410
|
+
|
411
|
+
@property
|
412
|
+
def project_id(self):
|
413
|
+
r"""Gets the project_id of this ServiceList.
|
414
|
+
|
415
|
+
项目ID,获取方法请参见获取项目ID。
|
416
|
+
|
417
|
+
:return: The project_id of this ServiceList.
|
418
|
+
:rtype: str
|
419
|
+
"""
|
420
|
+
return self._project_id
|
421
|
+
|
422
|
+
@project_id.setter
|
423
|
+
def project_id(self, project_id):
|
424
|
+
r"""Sets the project_id of this ServiceList.
|
425
|
+
|
426
|
+
项目ID,获取方法请参见获取项目ID。
|
427
|
+
|
428
|
+
:param project_id: The project_id of this ServiceList.
|
429
|
+
:type project_id: str
|
430
|
+
"""
|
431
|
+
self._project_id = project_id
|
432
|
+
|
433
|
+
@property
|
434
|
+
def domain_id(self):
|
435
|
+
r"""Gets the domain_id of this ServiceList.
|
436
|
+
|
437
|
+
Domain ID
|
438
|
+
|
439
|
+
:return: The domain_id of this ServiceList.
|
440
|
+
:rtype: str
|
441
|
+
"""
|
442
|
+
return self._domain_id
|
443
|
+
|
444
|
+
@domain_id.setter
|
445
|
+
def domain_id(self, domain_id):
|
446
|
+
r"""Sets the domain_id of this ServiceList.
|
447
|
+
|
448
|
+
Domain ID
|
449
|
+
|
450
|
+
:param domain_id: The domain_id of this ServiceList.
|
451
|
+
:type domain_id: str
|
452
|
+
"""
|
453
|
+
self._domain_id = domain_id
|
454
|
+
|
455
|
+
@property
|
456
|
+
def ports(self):
|
457
|
+
r"""Gets the ports of this ServiceList.
|
458
|
+
|
459
|
+
服务开放的端口映射列表 同一个终端节点服务下,不允许重复的端口映射。 若多个终端节点服务共用一个port_id, 则终端节点服务之间的所有端口映射的server_port和protocol的组合不能重复。
|
460
|
+
|
461
|
+
:return: The ports of this ServiceList.
|
462
|
+
:rtype: list[:class:`huaweicloudsdkvpcep.v1.PortList`]
|
463
|
+
"""
|
464
|
+
return self._ports
|
465
|
+
|
466
|
+
@ports.setter
|
467
|
+
def ports(self, ports):
|
468
|
+
r"""Sets the ports of this ServiceList.
|
469
|
+
|
470
|
+
服务开放的端口映射列表 同一个终端节点服务下,不允许重复的端口映射。 若多个终端节点服务共用一个port_id, 则终端节点服务之间的所有端口映射的server_port和protocol的组合不能重复。
|
471
|
+
|
472
|
+
:param ports: The ports of this ServiceList.
|
473
|
+
:type ports: list[:class:`huaweicloudsdkvpcep.v1.PortList`]
|
474
|
+
"""
|
475
|
+
self._ports = ports
|
476
|
+
|
477
|
+
@property
|
478
|
+
def ip(self):
|
479
|
+
r"""Gets the ip of this ServiceList.
|
480
|
+
|
481
|
+
接口型VLAN场景服务端IPv4地址或域名
|
482
|
+
|
483
|
+
:return: The ip of this ServiceList.
|
484
|
+
:rtype: str
|
485
|
+
"""
|
486
|
+
return self._ip
|
487
|
+
|
488
|
+
@ip.setter
|
489
|
+
def ip(self, ip):
|
490
|
+
r"""Sets the ip of this ServiceList.
|
491
|
+
|
492
|
+
接口型VLAN场景服务端IPv4地址或域名
|
493
|
+
|
494
|
+
:param ip: The ip of this ServiceList.
|
495
|
+
:type ip: str
|
496
|
+
"""
|
497
|
+
self._ip = ip
|
498
|
+
|
499
|
+
@property
|
500
|
+
def tags(self):
|
501
|
+
r"""Gets the tags of this ServiceList.
|
502
|
+
|
503
|
+
资源标签列表
|
504
|
+
|
505
|
+
:return: The tags of this ServiceList.
|
506
|
+
:rtype: list[:class:`huaweicloudsdkvpcep.v1.TagList`]
|
507
|
+
"""
|
508
|
+
return self._tags
|
509
|
+
|
510
|
+
@tags.setter
|
511
|
+
def tags(self, tags):
|
512
|
+
r"""Sets the tags of this ServiceList.
|
513
|
+
|
514
|
+
资源标签列表
|
515
|
+
|
516
|
+
:param tags: The tags of this ServiceList.
|
517
|
+
:type tags: list[:class:`huaweicloudsdkvpcep.v1.TagList`]
|
518
|
+
"""
|
519
|
+
self._tags = tags
|
520
|
+
|
521
|
+
@property
|
522
|
+
def connection_count(self):
|
523
|
+
r"""Gets the connection_count of this ServiceList.
|
524
|
+
|
525
|
+
终端节点服务下连接的状态为“创建中”或“已接受”的终端节点的个数。
|
526
|
+
|
527
|
+
:return: The connection_count of this ServiceList.
|
528
|
+
:rtype: int
|
529
|
+
"""
|
530
|
+
return self._connection_count
|
531
|
+
|
532
|
+
@connection_count.setter
|
533
|
+
def connection_count(self, connection_count):
|
534
|
+
r"""Sets the connection_count of this ServiceList.
|
535
|
+
|
536
|
+
终端节点服务下连接的状态为“创建中”或“已接受”的终端节点的个数。
|
537
|
+
|
538
|
+
:param connection_count: The connection_count of this ServiceList.
|
539
|
+
:type connection_count: int
|
540
|
+
"""
|
541
|
+
self._connection_count = connection_count
|
542
|
+
|
543
|
+
@property
|
544
|
+
def tcp_proxy(self):
|
545
|
+
r"""Gets the tcp_proxy of this ServiceList.
|
546
|
+
|
547
|
+
用于控制将哪些信息(如客户端的源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”。
|
548
|
+
|
549
|
+
:return: The tcp_proxy of this ServiceList.
|
550
|
+
:rtype: str
|
551
|
+
"""
|
552
|
+
return self._tcp_proxy
|
553
|
+
|
554
|
+
@tcp_proxy.setter
|
555
|
+
def tcp_proxy(self, tcp_proxy):
|
556
|
+
r"""Sets the tcp_proxy of this ServiceList.
|
557
|
+
|
558
|
+
用于控制将哪些信息(如客户端的源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”。
|
559
|
+
|
560
|
+
:param tcp_proxy: The tcp_proxy of this ServiceList.
|
561
|
+
:type tcp_proxy: str
|
562
|
+
"""
|
563
|
+
self._tcp_proxy = tcp_proxy
|
564
|
+
|
565
|
+
@property
|
566
|
+
def error(self):
|
567
|
+
r"""Gets the error of this ServiceList.
|
568
|
+
|
569
|
+
提交任务异常时返回的异常信息
|
570
|
+
|
571
|
+
:return: The error of this ServiceList.
|
572
|
+
:rtype: list[:class:`huaweicloudsdkvpcep.v1.Error`]
|
573
|
+
"""
|
574
|
+
return self._error
|
575
|
+
|
576
|
+
@error.setter
|
577
|
+
def error(self, error):
|
578
|
+
r"""Sets the error of this ServiceList.
|
579
|
+
|
580
|
+
提交任务异常时返回的异常信息
|
581
|
+
|
582
|
+
:param error: The error of this ServiceList.
|
583
|
+
:type error: list[:class:`huaweicloudsdkvpcep.v1.Error`]
|
584
|
+
"""
|
585
|
+
self._error = error
|
586
|
+
|
587
|
+
@property
|
588
|
+
def description(self):
|
589
|
+
r"""Gets the description of this ServiceList.
|
590
|
+
|
591
|
+
描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。
|
592
|
+
|
593
|
+
:return: The description of this ServiceList.
|
594
|
+
:rtype: str
|
595
|
+
"""
|
596
|
+
return self._description
|
597
|
+
|
598
|
+
@description.setter
|
599
|
+
def description(self, description):
|
600
|
+
r"""Sets the description of this ServiceList.
|
601
|
+
|
602
|
+
描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。
|
603
|
+
|
604
|
+
:param description: The description of this ServiceList.
|
605
|
+
:type description: str
|
606
|
+
"""
|
607
|
+
self._description = description
|
608
|
+
|
609
|
+
@property
|
610
|
+
def supported_editions(self):
|
611
|
+
r"""Gets the supported_editions of this ServiceList.
|
612
|
+
|
613
|
+
终端节点服务支持的类型,取值范围为profession-专业型,basic-基础型
|
614
|
+
|
615
|
+
:return: The supported_editions of this ServiceList.
|
616
|
+
:rtype: list[str]
|
617
|
+
"""
|
618
|
+
return self._supported_editions
|
619
|
+
|
620
|
+
@supported_editions.setter
|
621
|
+
def supported_editions(self, supported_editions):
|
622
|
+
r"""Sets the supported_editions of this ServiceList.
|
623
|
+
|
624
|
+
终端节点服务支持的类型,取值范围为profession-专业型,basic-基础型
|
625
|
+
|
626
|
+
:param supported_editions: The supported_editions of this ServiceList.
|
627
|
+
:type supported_editions: list[str]
|
628
|
+
"""
|
629
|
+
self._supported_editions = supported_editions
|
630
|
+
|
631
|
+
@property
|
632
|
+
def public_border_group(self):
|
633
|
+
r"""Gets the public_border_group of this ServiceList.
|
634
|
+
|
635
|
+
终端节点服务对应Pool的Public Border Group信息
|
636
|
+
|
637
|
+
:return: The public_border_group of this ServiceList.
|
638
|
+
:rtype: str
|
639
|
+
"""
|
640
|
+
return self._public_border_group
|
641
|
+
|
642
|
+
@public_border_group.setter
|
643
|
+
def public_border_group(self, public_border_group):
|
644
|
+
r"""Sets the public_border_group of this ServiceList.
|
645
|
+
|
646
|
+
终端节点服务对应Pool的Public Border Group信息
|
647
|
+
|
648
|
+
:param public_border_group: The public_border_group of this ServiceList.
|
649
|
+
:type public_border_group: str
|
650
|
+
"""
|
651
|
+
self._public_border_group = public_border_group
|
652
|
+
|
653
|
+
@property
|
654
|
+
def enable_policy(self):
|
655
|
+
r"""Gets the enable_policy of this ServiceList.
|
656
|
+
|
657
|
+
是否允许自定义终端节点策略。 - false:不支持设置终端节点策略 - true:支持设置终端节点策略 默认为false
|
658
|
+
|
659
|
+
:return: The enable_policy of this ServiceList.
|
660
|
+
:rtype: bool
|
661
|
+
"""
|
662
|
+
return self._enable_policy
|
663
|
+
|
664
|
+
@enable_policy.setter
|
665
|
+
def enable_policy(self, enable_policy):
|
666
|
+
r"""Sets the enable_policy of this ServiceList.
|
667
|
+
|
668
|
+
是否允许自定义终端节点策略。 - false:不支持设置终端节点策略 - true:支持设置终端节点策略 默认为false
|
669
|
+
|
670
|
+
:param enable_policy: The enable_policy of this ServiceList.
|
671
|
+
:type enable_policy: bool
|
672
|
+
"""
|
673
|
+
self._enable_policy = enable_policy
|
674
|
+
|
675
|
+
def to_dict(self):
|
676
|
+
"""Returns the model properties as a dict"""
|
677
|
+
result = {}
|
678
|
+
|
679
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
680
|
+
value = getattr(self, attr)
|
681
|
+
if isinstance(value, list):
|
682
|
+
result[attr] = list(map(
|
683
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
684
|
+
value
|
685
|
+
))
|
686
|
+
elif hasattr(value, "to_dict"):
|
687
|
+
result[attr] = value.to_dict()
|
688
|
+
elif isinstance(value, dict):
|
689
|
+
result[attr] = dict(map(
|
690
|
+
lambda item: (item[0], item[1].to_dict())
|
691
|
+
if hasattr(item[1], "to_dict") else item,
|
692
|
+
value.items()
|
693
|
+
))
|
694
|
+
else:
|
695
|
+
if attr in self.sensitive_list:
|
696
|
+
result[attr] = "****"
|
697
|
+
else:
|
698
|
+
result[attr] = value
|
699
|
+
|
700
|
+
return result
|
701
|
+
|
702
|
+
def to_str(self):
|
703
|
+
"""Returns the string representation of the model"""
|
704
|
+
import simplejson as json
|
705
|
+
if six.PY2:
|
706
|
+
import sys
|
707
|
+
reload(sys)
|
708
|
+
sys.setdefaultencoding("utf-8")
|
709
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
710
|
+
|
711
|
+
def __repr__(self):
|
712
|
+
"""For `print`"""
|
713
|
+
return self.to_str()
|
714
|
+
|
715
|
+
def __eq__(self, other):
|
716
|
+
"""Returns true if both objects are equal"""
|
717
|
+
if not isinstance(other, ServiceList):
|
718
|
+
return False
|
719
|
+
|
720
|
+
return self.__dict__ == other.__dict__
|
721
|
+
|
722
|
+
def __ne__(self, other):
|
723
|
+
"""Returns true if both objects are not equal"""
|
724
|
+
return not self == other
|