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,2211 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
from __future__ import absolute_import
|
4
|
+
|
5
|
+
import importlib
|
6
|
+
import warnings
|
7
|
+
|
8
|
+
from huaweicloudsdkcore.client import Client, ClientBuilder
|
9
|
+
from huaweicloudsdkcore.utils import http_utils
|
10
|
+
from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
|
11
|
+
|
12
|
+
try:
|
13
|
+
from huaweicloudsdkcore.invoker.invoker import AsyncInvoker
|
14
|
+
except ImportError as e:
|
15
|
+
warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkvpcep'")
|
16
|
+
|
17
|
+
|
18
|
+
class VpcepAsyncClient(Client):
|
19
|
+
def __init__(self):
|
20
|
+
super(VpcepAsyncClient, self).__init__()
|
21
|
+
self.model_package = importlib.import_module("huaweicloudsdkvpcep.v1.model")
|
22
|
+
|
23
|
+
@classmethod
|
24
|
+
def new_builder(cls, clazz=None):
|
25
|
+
if not clazz:
|
26
|
+
client_builder = ClientBuilder(cls)
|
27
|
+
else:
|
28
|
+
if clazz.__name__ != "VpcepAsyncClient":
|
29
|
+
raise TypeError("client type error, support client type is VpcepAsyncClient")
|
30
|
+
client_builder = ClientBuilder(clazz)
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
return client_builder
|
35
|
+
|
36
|
+
def accept_or_reject_endpoint_async(self, request):
|
37
|
+
r"""接受或拒绝终端节点的连接
|
38
|
+
|
39
|
+
接受或者拒绝终端节点连接到当前的终端节点服务。
|
40
|
+
|
41
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
42
|
+
|
43
|
+
|
44
|
+
:param request: Request instance for AcceptOrRejectEndpoint
|
45
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.AcceptOrRejectEndpointRequest`
|
46
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.AcceptOrRejectEndpointResponse`
|
47
|
+
"""
|
48
|
+
http_info = self._accept_or_reject_endpoint_http_info(request)
|
49
|
+
return self._call_api(**http_info)
|
50
|
+
|
51
|
+
def accept_or_reject_endpoint_async_invoker(self, request):
|
52
|
+
http_info = self._accept_or_reject_endpoint_http_info(request)
|
53
|
+
return AsyncInvoker(self, http_info)
|
54
|
+
|
55
|
+
def _accept_or_reject_endpoint_http_info(self, request):
|
56
|
+
http_info = {
|
57
|
+
"method": "POST",
|
58
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/connections/action",
|
59
|
+
"request_type": request.__class__.__name__,
|
60
|
+
"response_type": "AcceptOrRejectEndpointResponse"
|
61
|
+
}
|
62
|
+
|
63
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
64
|
+
|
65
|
+
cname = None
|
66
|
+
|
67
|
+
collection_formats = {}
|
68
|
+
|
69
|
+
path_params = {}
|
70
|
+
if 'vpc_endpoint_service_id' in local_var_params:
|
71
|
+
path_params['vpc_endpoint_service_id'] = local_var_params['vpc_endpoint_service_id']
|
72
|
+
|
73
|
+
query_params = []
|
74
|
+
|
75
|
+
header_params = {}
|
76
|
+
|
77
|
+
form_params = {}
|
78
|
+
|
79
|
+
body = None
|
80
|
+
if 'body' in local_var_params:
|
81
|
+
body = local_var_params['body']
|
82
|
+
if isinstance(request, SdkStreamRequest):
|
83
|
+
body = request.get_file_stream()
|
84
|
+
|
85
|
+
response_headers = []
|
86
|
+
|
87
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
88
|
+
['application/json;charset=UTF-8'])
|
89
|
+
|
90
|
+
auth_settings = []
|
91
|
+
|
92
|
+
http_info["cname"] = cname
|
93
|
+
http_info["collection_formats"] = collection_formats
|
94
|
+
http_info["path_params"] = path_params
|
95
|
+
http_info["query_params"] = query_params
|
96
|
+
http_info["header_params"] = header_params
|
97
|
+
http_info["post_params"] = form_params
|
98
|
+
http_info["body"] = body
|
99
|
+
http_info["response_headers"] = response_headers
|
100
|
+
|
101
|
+
return http_info
|
102
|
+
|
103
|
+
def add_or_remove_service_permissions_async(self, request):
|
104
|
+
r"""批量添加或移除终端节点服务的白名单
|
105
|
+
|
106
|
+
批量添加或移除当前用户下终端节点服务的白名单。
|
107
|
+
说明
|
108
|
+
本账号默认在自身用户的终端节点服务的白名单中。
|
109
|
+
|
110
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
111
|
+
|
112
|
+
|
113
|
+
:param request: Request instance for AddOrRemoveServicePermissions
|
114
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.AddOrRemoveServicePermissionsRequest`
|
115
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.AddOrRemoveServicePermissionsResponse`
|
116
|
+
"""
|
117
|
+
http_info = self._add_or_remove_service_permissions_http_info(request)
|
118
|
+
return self._call_api(**http_info)
|
119
|
+
|
120
|
+
def add_or_remove_service_permissions_async_invoker(self, request):
|
121
|
+
http_info = self._add_or_remove_service_permissions_http_info(request)
|
122
|
+
return AsyncInvoker(self, http_info)
|
123
|
+
|
124
|
+
def _add_or_remove_service_permissions_http_info(self, request):
|
125
|
+
http_info = {
|
126
|
+
"method": "POST",
|
127
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/permissions/action",
|
128
|
+
"request_type": request.__class__.__name__,
|
129
|
+
"response_type": "AddOrRemoveServicePermissionsResponse"
|
130
|
+
}
|
131
|
+
|
132
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
133
|
+
|
134
|
+
cname = None
|
135
|
+
|
136
|
+
collection_formats = {}
|
137
|
+
|
138
|
+
path_params = {}
|
139
|
+
if 'vpc_endpoint_service_id' in local_var_params:
|
140
|
+
path_params['vpc_endpoint_service_id'] = local_var_params['vpc_endpoint_service_id']
|
141
|
+
|
142
|
+
query_params = []
|
143
|
+
|
144
|
+
header_params = {}
|
145
|
+
|
146
|
+
form_params = {}
|
147
|
+
|
148
|
+
body = None
|
149
|
+
if 'body' in local_var_params:
|
150
|
+
body = local_var_params['body']
|
151
|
+
if isinstance(request, SdkStreamRequest):
|
152
|
+
body = request.get_file_stream()
|
153
|
+
|
154
|
+
response_headers = []
|
155
|
+
|
156
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
157
|
+
['application/json;charset=UTF-8'])
|
158
|
+
|
159
|
+
auth_settings = []
|
160
|
+
|
161
|
+
http_info["cname"] = cname
|
162
|
+
http_info["collection_formats"] = collection_formats
|
163
|
+
http_info["path_params"] = path_params
|
164
|
+
http_info["query_params"] = query_params
|
165
|
+
http_info["header_params"] = header_params
|
166
|
+
http_info["post_params"] = form_params
|
167
|
+
http_info["body"] = body
|
168
|
+
http_info["response_headers"] = response_headers
|
169
|
+
|
170
|
+
return http_info
|
171
|
+
|
172
|
+
def batch_add_endpoint_service_permissions_async(self, request):
|
173
|
+
r"""批量添加终端节点服务的白名单
|
174
|
+
|
175
|
+
批量添加当前用户下终端节点服务的白名单,支持添加描述信息。
|
176
|
+
说明
|
177
|
+
本账号默认在自身用户的终端节点服务的白名单中。
|
178
|
+
|
179
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
180
|
+
|
181
|
+
|
182
|
+
:param request: Request instance for BatchAddEndpointServicePermissions
|
183
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.BatchAddEndpointServicePermissionsRequest`
|
184
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.BatchAddEndpointServicePermissionsResponse`
|
185
|
+
"""
|
186
|
+
http_info = self._batch_add_endpoint_service_permissions_http_info(request)
|
187
|
+
return self._call_api(**http_info)
|
188
|
+
|
189
|
+
def batch_add_endpoint_service_permissions_async_invoker(self, request):
|
190
|
+
http_info = self._batch_add_endpoint_service_permissions_http_info(request)
|
191
|
+
return AsyncInvoker(self, http_info)
|
192
|
+
|
193
|
+
def _batch_add_endpoint_service_permissions_http_info(self, request):
|
194
|
+
http_info = {
|
195
|
+
"method": "POST",
|
196
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/permissions/batch-create",
|
197
|
+
"request_type": request.__class__.__name__,
|
198
|
+
"response_type": "BatchAddEndpointServicePermissionsResponse"
|
199
|
+
}
|
200
|
+
|
201
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
202
|
+
|
203
|
+
cname = None
|
204
|
+
|
205
|
+
collection_formats = {}
|
206
|
+
|
207
|
+
path_params = {}
|
208
|
+
if 'vpc_endpoint_service_id' in local_var_params:
|
209
|
+
path_params['vpc_endpoint_service_id'] = local_var_params['vpc_endpoint_service_id']
|
210
|
+
|
211
|
+
query_params = []
|
212
|
+
|
213
|
+
header_params = {}
|
214
|
+
|
215
|
+
form_params = {}
|
216
|
+
|
217
|
+
body = None
|
218
|
+
if 'body' in local_var_params:
|
219
|
+
body = local_var_params['body']
|
220
|
+
if isinstance(request, SdkStreamRequest):
|
221
|
+
body = request.get_file_stream()
|
222
|
+
|
223
|
+
response_headers = []
|
224
|
+
|
225
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
226
|
+
['application/json;charset=UTF-8'])
|
227
|
+
|
228
|
+
auth_settings = []
|
229
|
+
|
230
|
+
http_info["cname"] = cname
|
231
|
+
http_info["collection_formats"] = collection_formats
|
232
|
+
http_info["path_params"] = path_params
|
233
|
+
http_info["query_params"] = query_params
|
234
|
+
http_info["header_params"] = header_params
|
235
|
+
http_info["post_params"] = form_params
|
236
|
+
http_info["body"] = body
|
237
|
+
http_info["response_headers"] = response_headers
|
238
|
+
|
239
|
+
return http_info
|
240
|
+
|
241
|
+
def batch_remove_endpoint_service_permissions_async(self, request):
|
242
|
+
r"""批量删除终端节点服务的白名单
|
243
|
+
|
244
|
+
批量删除当前用户下终端节点服务的白名单
|
245
|
+
|
246
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
247
|
+
|
248
|
+
|
249
|
+
:param request: Request instance for BatchRemoveEndpointServicePermissions
|
250
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.BatchRemoveEndpointServicePermissionsRequest`
|
251
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.BatchRemoveEndpointServicePermissionsResponse`
|
252
|
+
"""
|
253
|
+
http_info = self._batch_remove_endpoint_service_permissions_http_info(request)
|
254
|
+
return self._call_api(**http_info)
|
255
|
+
|
256
|
+
def batch_remove_endpoint_service_permissions_async_invoker(self, request):
|
257
|
+
http_info = self._batch_remove_endpoint_service_permissions_http_info(request)
|
258
|
+
return AsyncInvoker(self, http_info)
|
259
|
+
|
260
|
+
def _batch_remove_endpoint_service_permissions_http_info(self, request):
|
261
|
+
http_info = {
|
262
|
+
"method": "POST",
|
263
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/permissions/batch-delete",
|
264
|
+
"request_type": request.__class__.__name__,
|
265
|
+
"response_type": "BatchRemoveEndpointServicePermissionsResponse"
|
266
|
+
}
|
267
|
+
|
268
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
269
|
+
|
270
|
+
cname = None
|
271
|
+
|
272
|
+
collection_formats = {}
|
273
|
+
|
274
|
+
path_params = {}
|
275
|
+
if 'vpc_endpoint_service_id' in local_var_params:
|
276
|
+
path_params['vpc_endpoint_service_id'] = local_var_params['vpc_endpoint_service_id']
|
277
|
+
|
278
|
+
query_params = []
|
279
|
+
|
280
|
+
header_params = {}
|
281
|
+
|
282
|
+
form_params = {}
|
283
|
+
|
284
|
+
body = None
|
285
|
+
if 'body' in local_var_params:
|
286
|
+
body = local_var_params['body']
|
287
|
+
if isinstance(request, SdkStreamRequest):
|
288
|
+
body = request.get_file_stream()
|
289
|
+
|
290
|
+
response_headers = []
|
291
|
+
|
292
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
293
|
+
['application/json;charset=UTF-8'])
|
294
|
+
|
295
|
+
auth_settings = []
|
296
|
+
|
297
|
+
http_info["cname"] = cname
|
298
|
+
http_info["collection_formats"] = collection_formats
|
299
|
+
http_info["path_params"] = path_params
|
300
|
+
http_info["query_params"] = query_params
|
301
|
+
http_info["header_params"] = header_params
|
302
|
+
http_info["post_params"] = form_params
|
303
|
+
http_info["body"] = body
|
304
|
+
http_info["response_headers"] = response_headers
|
305
|
+
|
306
|
+
return http_info
|
307
|
+
|
308
|
+
def create_endpoint_async(self, request):
|
309
|
+
r"""创建终端节点
|
310
|
+
|
311
|
+
创建终端节点,以便访问终端节点服务。
|
312
|
+
|
313
|
+
该接口为异步接口,调用成功会返回200状态码,说明请求已正常下发。
|
314
|
+
通常创建终端节点需要1~2分钟,可以通过[查询终端节点详情](https://support.huaweicloud.com/api-vpcep/ListEndpointInfoDetails.html)查看创建结果
|
315
|
+
|
316
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
317
|
+
|
318
|
+
|
319
|
+
:param request: Request instance for CreateEndpoint
|
320
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.CreateEndpointRequest`
|
321
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.CreateEndpointResponse`
|
322
|
+
"""
|
323
|
+
http_info = self._create_endpoint_http_info(request)
|
324
|
+
return self._call_api(**http_info)
|
325
|
+
|
326
|
+
def create_endpoint_async_invoker(self, request):
|
327
|
+
http_info = self._create_endpoint_http_info(request)
|
328
|
+
return AsyncInvoker(self, http_info)
|
329
|
+
|
330
|
+
def _create_endpoint_http_info(self, request):
|
331
|
+
http_info = {
|
332
|
+
"method": "POST",
|
333
|
+
"resource_path": "/v1/{project_id}/vpc-endpoints",
|
334
|
+
"request_type": request.__class__.__name__,
|
335
|
+
"response_type": "CreateEndpointResponse"
|
336
|
+
}
|
337
|
+
|
338
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
339
|
+
|
340
|
+
cname = None
|
341
|
+
|
342
|
+
collection_formats = {}
|
343
|
+
|
344
|
+
path_params = {}
|
345
|
+
|
346
|
+
query_params = []
|
347
|
+
|
348
|
+
header_params = {}
|
349
|
+
|
350
|
+
form_params = {}
|
351
|
+
|
352
|
+
body = None
|
353
|
+
if 'body' in local_var_params:
|
354
|
+
body = local_var_params['body']
|
355
|
+
if isinstance(request, SdkStreamRequest):
|
356
|
+
body = request.get_file_stream()
|
357
|
+
|
358
|
+
response_headers = []
|
359
|
+
|
360
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
361
|
+
['application/json;charset=UTF-8'])
|
362
|
+
|
363
|
+
auth_settings = []
|
364
|
+
|
365
|
+
http_info["cname"] = cname
|
366
|
+
http_info["collection_formats"] = collection_formats
|
367
|
+
http_info["path_params"] = path_params
|
368
|
+
http_info["query_params"] = query_params
|
369
|
+
http_info["header_params"] = header_params
|
370
|
+
http_info["post_params"] = form_params
|
371
|
+
http_info["body"] = body
|
372
|
+
http_info["response_headers"] = response_headers
|
373
|
+
|
374
|
+
return http_info
|
375
|
+
|
376
|
+
def create_endpoint_service_async(self, request):
|
377
|
+
r"""创建终端节点服务
|
378
|
+
|
379
|
+
创建终端节点服务,允许其他用户创建终端节点连接您创建的终端节点服务,
|
380
|
+
使用您所提供的服务。
|
381
|
+
|
382
|
+
该接口为异步接口,调用成功会返回200状态码,说明请求已正常下发。
|
383
|
+
通常创建终端节点服务需要1~2分钟,可以通过[查询终端节点服务详情](https://support.huaweicloud.com/api-vpcep/ListServiceDetails.html)查看创建结果。
|
384
|
+
|
385
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
386
|
+
|
387
|
+
|
388
|
+
:param request: Request instance for CreateEndpointService
|
389
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.CreateEndpointServiceRequest`
|
390
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.CreateEndpointServiceResponse`
|
391
|
+
"""
|
392
|
+
http_info = self._create_endpoint_service_http_info(request)
|
393
|
+
return self._call_api(**http_info)
|
394
|
+
|
395
|
+
def create_endpoint_service_async_invoker(self, request):
|
396
|
+
http_info = self._create_endpoint_service_http_info(request)
|
397
|
+
return AsyncInvoker(self, http_info)
|
398
|
+
|
399
|
+
def _create_endpoint_service_http_info(self, request):
|
400
|
+
http_info = {
|
401
|
+
"method": "POST",
|
402
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services",
|
403
|
+
"request_type": request.__class__.__name__,
|
404
|
+
"response_type": "CreateEndpointServiceResponse"
|
405
|
+
}
|
406
|
+
|
407
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
408
|
+
|
409
|
+
cname = None
|
410
|
+
|
411
|
+
collection_formats = {}
|
412
|
+
|
413
|
+
path_params = {}
|
414
|
+
|
415
|
+
query_params = []
|
416
|
+
|
417
|
+
header_params = {}
|
418
|
+
|
419
|
+
form_params = {}
|
420
|
+
|
421
|
+
body = None
|
422
|
+
if 'body' in local_var_params:
|
423
|
+
body = local_var_params['body']
|
424
|
+
if isinstance(request, SdkStreamRequest):
|
425
|
+
body = request.get_file_stream()
|
426
|
+
|
427
|
+
response_headers = []
|
428
|
+
|
429
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
430
|
+
['application/json;charset=UTF-8'])
|
431
|
+
|
432
|
+
auth_settings = []
|
433
|
+
|
434
|
+
http_info["cname"] = cname
|
435
|
+
http_info["collection_formats"] = collection_formats
|
436
|
+
http_info["path_params"] = path_params
|
437
|
+
http_info["query_params"] = query_params
|
438
|
+
http_info["header_params"] = header_params
|
439
|
+
http_info["post_params"] = form_params
|
440
|
+
http_info["body"] = body
|
441
|
+
http_info["response_headers"] = response_headers
|
442
|
+
|
443
|
+
return http_info
|
444
|
+
|
445
|
+
def delete_endpoint_async(self, request):
|
446
|
+
r"""删除终端节点
|
447
|
+
|
448
|
+
删除终端节点。
|
449
|
+
|
450
|
+
该接口为异步接口,调用成功会返回200状态码,说明请求已正常下发。
|
451
|
+
通常删除终端节点需要1~2分钟,可以通过[查询终端节点详情](https://support.huaweicloud.com/api-vpcep/ListEndpointInfoDetails.html)查看删除结果
|
452
|
+
|
453
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
454
|
+
|
455
|
+
|
456
|
+
:param request: Request instance for DeleteEndpoint
|
457
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.DeleteEndpointRequest`
|
458
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.DeleteEndpointResponse`
|
459
|
+
"""
|
460
|
+
http_info = self._delete_endpoint_http_info(request)
|
461
|
+
return self._call_api(**http_info)
|
462
|
+
|
463
|
+
def delete_endpoint_async_invoker(self, request):
|
464
|
+
http_info = self._delete_endpoint_http_info(request)
|
465
|
+
return AsyncInvoker(self, http_info)
|
466
|
+
|
467
|
+
def _delete_endpoint_http_info(self, request):
|
468
|
+
http_info = {
|
469
|
+
"method": "DELETE",
|
470
|
+
"resource_path": "/v1/{project_id}/vpc-endpoints/{vpc_endpoint_id}",
|
471
|
+
"request_type": request.__class__.__name__,
|
472
|
+
"response_type": "DeleteEndpointResponse"
|
473
|
+
}
|
474
|
+
|
475
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
476
|
+
|
477
|
+
cname = None
|
478
|
+
|
479
|
+
collection_formats = {}
|
480
|
+
|
481
|
+
path_params = {}
|
482
|
+
if 'vpc_endpoint_id' in local_var_params:
|
483
|
+
path_params['vpc_endpoint_id'] = local_var_params['vpc_endpoint_id']
|
484
|
+
|
485
|
+
query_params = []
|
486
|
+
|
487
|
+
header_params = {}
|
488
|
+
|
489
|
+
form_params = {}
|
490
|
+
|
491
|
+
body = None
|
492
|
+
if isinstance(request, SdkStreamRequest):
|
493
|
+
body = request.get_file_stream()
|
494
|
+
|
495
|
+
response_headers = []
|
496
|
+
|
497
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
498
|
+
['application/json'])
|
499
|
+
|
500
|
+
auth_settings = []
|
501
|
+
|
502
|
+
http_info["cname"] = cname
|
503
|
+
http_info["collection_formats"] = collection_formats
|
504
|
+
http_info["path_params"] = path_params
|
505
|
+
http_info["query_params"] = query_params
|
506
|
+
http_info["header_params"] = header_params
|
507
|
+
http_info["post_params"] = form_params
|
508
|
+
http_info["body"] = body
|
509
|
+
http_info["response_headers"] = response_headers
|
510
|
+
|
511
|
+
return http_info
|
512
|
+
|
513
|
+
def delete_endpoint_policy_async(self, request):
|
514
|
+
r"""删除网关型终端节点策略(待下线)
|
515
|
+
|
516
|
+
删除网关型终端节点策略,该接口待下线,不建议使用。
|
517
|
+
|
518
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
519
|
+
|
520
|
+
|
521
|
+
:param request: Request instance for DeleteEndpointPolicy
|
522
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.DeleteEndpointPolicyRequest`
|
523
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.DeleteEndpointPolicyResponse`
|
524
|
+
"""
|
525
|
+
http_info = self._delete_endpoint_policy_http_info(request)
|
526
|
+
return self._call_api(**http_info)
|
527
|
+
|
528
|
+
def delete_endpoint_policy_async_invoker(self, request):
|
529
|
+
http_info = self._delete_endpoint_policy_http_info(request)
|
530
|
+
return AsyncInvoker(self, http_info)
|
531
|
+
|
532
|
+
def _delete_endpoint_policy_http_info(self, request):
|
533
|
+
http_info = {
|
534
|
+
"method": "DELETE",
|
535
|
+
"resource_path": "/v1/{project_id}/vpc-endpoints/{vpc_endpoint_id}/policy",
|
536
|
+
"request_type": request.__class__.__name__,
|
537
|
+
"response_type": "DeleteEndpointPolicyResponse"
|
538
|
+
}
|
539
|
+
|
540
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
541
|
+
|
542
|
+
cname = None
|
543
|
+
|
544
|
+
collection_formats = {}
|
545
|
+
|
546
|
+
path_params = {}
|
547
|
+
if 'vpc_endpoint_id' in local_var_params:
|
548
|
+
path_params['vpc_endpoint_id'] = local_var_params['vpc_endpoint_id']
|
549
|
+
|
550
|
+
query_params = []
|
551
|
+
|
552
|
+
header_params = {}
|
553
|
+
|
554
|
+
form_params = {}
|
555
|
+
|
556
|
+
body = None
|
557
|
+
if isinstance(request, SdkStreamRequest):
|
558
|
+
body = request.get_file_stream()
|
559
|
+
|
560
|
+
response_headers = []
|
561
|
+
|
562
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
563
|
+
['application/json'])
|
564
|
+
|
565
|
+
auth_settings = []
|
566
|
+
|
567
|
+
http_info["cname"] = cname
|
568
|
+
http_info["collection_formats"] = collection_formats
|
569
|
+
http_info["path_params"] = path_params
|
570
|
+
http_info["query_params"] = query_params
|
571
|
+
http_info["header_params"] = header_params
|
572
|
+
http_info["post_params"] = form_params
|
573
|
+
http_info["body"] = body
|
574
|
+
http_info["response_headers"] = response_headers
|
575
|
+
|
576
|
+
return http_info
|
577
|
+
|
578
|
+
def delete_endpoint_service_async(self, request):
|
579
|
+
r"""删除终端节点服务
|
580
|
+
|
581
|
+
删除终端节点服务。
|
582
|
+
|
583
|
+
该接口为异步接口,调用成功会返回200状态码,说明请求已正常下发。通常删除终端节点服务需要1~2分钟,可以通过[查询终端节点服务详情](https://support.huaweicloud.com/api-vpcep/ListServiceDetails.html)查看删除结果。
|
584
|
+
|
585
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
586
|
+
|
587
|
+
|
588
|
+
:param request: Request instance for DeleteEndpointService
|
589
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.DeleteEndpointServiceRequest`
|
590
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.DeleteEndpointServiceResponse`
|
591
|
+
"""
|
592
|
+
http_info = self._delete_endpoint_service_http_info(request)
|
593
|
+
return self._call_api(**http_info)
|
594
|
+
|
595
|
+
def delete_endpoint_service_async_invoker(self, request):
|
596
|
+
http_info = self._delete_endpoint_service_http_info(request)
|
597
|
+
return AsyncInvoker(self, http_info)
|
598
|
+
|
599
|
+
def _delete_endpoint_service_http_info(self, request):
|
600
|
+
http_info = {
|
601
|
+
"method": "DELETE",
|
602
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}",
|
603
|
+
"request_type": request.__class__.__name__,
|
604
|
+
"response_type": "DeleteEndpointServiceResponse"
|
605
|
+
}
|
606
|
+
|
607
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
608
|
+
|
609
|
+
cname = None
|
610
|
+
|
611
|
+
collection_formats = {}
|
612
|
+
|
613
|
+
path_params = {}
|
614
|
+
if 'vpc_endpoint_service_id' in local_var_params:
|
615
|
+
path_params['vpc_endpoint_service_id'] = local_var_params['vpc_endpoint_service_id']
|
616
|
+
|
617
|
+
query_params = []
|
618
|
+
|
619
|
+
header_params = {}
|
620
|
+
|
621
|
+
form_params = {}
|
622
|
+
|
623
|
+
body = None
|
624
|
+
if isinstance(request, SdkStreamRequest):
|
625
|
+
body = request.get_file_stream()
|
626
|
+
|
627
|
+
response_headers = []
|
628
|
+
|
629
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
630
|
+
['application/json'])
|
631
|
+
|
632
|
+
auth_settings = []
|
633
|
+
|
634
|
+
http_info["cname"] = cname
|
635
|
+
http_info["collection_formats"] = collection_formats
|
636
|
+
http_info["path_params"] = path_params
|
637
|
+
http_info["query_params"] = query_params
|
638
|
+
http_info["header_params"] = header_params
|
639
|
+
http_info["post_params"] = form_params
|
640
|
+
http_info["body"] = body
|
641
|
+
http_info["response_headers"] = response_headers
|
642
|
+
|
643
|
+
return http_info
|
644
|
+
|
645
|
+
def list_endpoint_info_details_async(self, request):
|
646
|
+
r"""查询终端节点详情
|
647
|
+
|
648
|
+
查询终端节点的详细信息。
|
649
|
+
|
650
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
651
|
+
|
652
|
+
|
653
|
+
:param request: Request instance for ListEndpointInfoDetails
|
654
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.ListEndpointInfoDetailsRequest`
|
655
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.ListEndpointInfoDetailsResponse`
|
656
|
+
"""
|
657
|
+
http_info = self._list_endpoint_info_details_http_info(request)
|
658
|
+
return self._call_api(**http_info)
|
659
|
+
|
660
|
+
def list_endpoint_info_details_async_invoker(self, request):
|
661
|
+
http_info = self._list_endpoint_info_details_http_info(request)
|
662
|
+
return AsyncInvoker(self, http_info)
|
663
|
+
|
664
|
+
def _list_endpoint_info_details_http_info(self, request):
|
665
|
+
http_info = {
|
666
|
+
"method": "GET",
|
667
|
+
"resource_path": "/v1/{project_id}/vpc-endpoints/{vpc_endpoint_id}",
|
668
|
+
"request_type": request.__class__.__name__,
|
669
|
+
"response_type": "ListEndpointInfoDetailsResponse"
|
670
|
+
}
|
671
|
+
|
672
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
673
|
+
|
674
|
+
cname = None
|
675
|
+
|
676
|
+
collection_formats = {}
|
677
|
+
|
678
|
+
path_params = {}
|
679
|
+
if 'vpc_endpoint_id' in local_var_params:
|
680
|
+
path_params['vpc_endpoint_id'] = local_var_params['vpc_endpoint_id']
|
681
|
+
|
682
|
+
query_params = []
|
683
|
+
|
684
|
+
header_params = {}
|
685
|
+
|
686
|
+
form_params = {}
|
687
|
+
|
688
|
+
body = None
|
689
|
+
if isinstance(request, SdkStreamRequest):
|
690
|
+
body = request.get_file_stream()
|
691
|
+
|
692
|
+
response_headers = []
|
693
|
+
|
694
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
695
|
+
['application/json'])
|
696
|
+
|
697
|
+
auth_settings = []
|
698
|
+
|
699
|
+
http_info["cname"] = cname
|
700
|
+
http_info["collection_formats"] = collection_formats
|
701
|
+
http_info["path_params"] = path_params
|
702
|
+
http_info["query_params"] = query_params
|
703
|
+
http_info["header_params"] = header_params
|
704
|
+
http_info["post_params"] = form_params
|
705
|
+
http_info["body"] = body
|
706
|
+
http_info["response_headers"] = response_headers
|
707
|
+
|
708
|
+
return http_info
|
709
|
+
|
710
|
+
def list_endpoint_service_async(self, request):
|
711
|
+
r"""查询终端节点服务列表
|
712
|
+
|
713
|
+
查询当前用户下的终端节点服务的列表。
|
714
|
+
|
715
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
716
|
+
|
717
|
+
|
718
|
+
:param request: Request instance for ListEndpointService
|
719
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.ListEndpointServiceRequest`
|
720
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.ListEndpointServiceResponse`
|
721
|
+
"""
|
722
|
+
http_info = self._list_endpoint_service_http_info(request)
|
723
|
+
return self._call_api(**http_info)
|
724
|
+
|
725
|
+
def list_endpoint_service_async_invoker(self, request):
|
726
|
+
http_info = self._list_endpoint_service_http_info(request)
|
727
|
+
return AsyncInvoker(self, http_info)
|
728
|
+
|
729
|
+
def _list_endpoint_service_http_info(self, request):
|
730
|
+
http_info = {
|
731
|
+
"method": "GET",
|
732
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services",
|
733
|
+
"request_type": request.__class__.__name__,
|
734
|
+
"response_type": "ListEndpointServiceResponse"
|
735
|
+
}
|
736
|
+
|
737
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
738
|
+
|
739
|
+
cname = None
|
740
|
+
|
741
|
+
collection_formats = {}
|
742
|
+
|
743
|
+
path_params = {}
|
744
|
+
|
745
|
+
query_params = []
|
746
|
+
if 'endpoint_service_name' in local_var_params:
|
747
|
+
query_params.append(('endpoint_service_name', local_var_params['endpoint_service_name']))
|
748
|
+
if 'id' in local_var_params:
|
749
|
+
query_params.append(('id', local_var_params['id']))
|
750
|
+
if 'status' in local_var_params:
|
751
|
+
query_params.append(('status', local_var_params['status']))
|
752
|
+
if 'sort_key' in local_var_params:
|
753
|
+
query_params.append(('sort_key', local_var_params['sort_key']))
|
754
|
+
if 'sort_dir' in local_var_params:
|
755
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
756
|
+
if 'limit' in local_var_params:
|
757
|
+
query_params.append(('limit', local_var_params['limit']))
|
758
|
+
if 'offset' in local_var_params:
|
759
|
+
query_params.append(('offset', local_var_params['offset']))
|
760
|
+
if 'public_border_group' in local_var_params:
|
761
|
+
query_params.append(('public_border_group', local_var_params['public_border_group']))
|
762
|
+
if 'net_type' in local_var_params:
|
763
|
+
query_params.append(('net_type', local_var_params['net_type']))
|
764
|
+
|
765
|
+
header_params = {}
|
766
|
+
|
767
|
+
form_params = {}
|
768
|
+
|
769
|
+
body = None
|
770
|
+
if isinstance(request, SdkStreamRequest):
|
771
|
+
body = request.get_file_stream()
|
772
|
+
|
773
|
+
response_headers = []
|
774
|
+
|
775
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
776
|
+
['application/json'])
|
777
|
+
|
778
|
+
auth_settings = []
|
779
|
+
|
780
|
+
http_info["cname"] = cname
|
781
|
+
http_info["collection_formats"] = collection_formats
|
782
|
+
http_info["path_params"] = path_params
|
783
|
+
http_info["query_params"] = query_params
|
784
|
+
http_info["header_params"] = header_params
|
785
|
+
http_info["post_params"] = form_params
|
786
|
+
http_info["body"] = body
|
787
|
+
http_info["response_headers"] = response_headers
|
788
|
+
|
789
|
+
return http_info
|
790
|
+
|
791
|
+
def list_endpoints_async(self, request):
|
792
|
+
r"""查询终端节点列表
|
793
|
+
|
794
|
+
查询当前用户下的终端节点的列表。
|
795
|
+
|
796
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
797
|
+
|
798
|
+
|
799
|
+
:param request: Request instance for ListEndpoints
|
800
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.ListEndpointsRequest`
|
801
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.ListEndpointsResponse`
|
802
|
+
"""
|
803
|
+
http_info = self._list_endpoints_http_info(request)
|
804
|
+
return self._call_api(**http_info)
|
805
|
+
|
806
|
+
def list_endpoints_async_invoker(self, request):
|
807
|
+
http_info = self._list_endpoints_http_info(request)
|
808
|
+
return AsyncInvoker(self, http_info)
|
809
|
+
|
810
|
+
def _list_endpoints_http_info(self, request):
|
811
|
+
http_info = {
|
812
|
+
"method": "GET",
|
813
|
+
"resource_path": "/v1/{project_id}/vpc-endpoints",
|
814
|
+
"request_type": request.__class__.__name__,
|
815
|
+
"response_type": "ListEndpointsResponse"
|
816
|
+
}
|
817
|
+
|
818
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
819
|
+
|
820
|
+
cname = None
|
821
|
+
|
822
|
+
collection_formats = {}
|
823
|
+
|
824
|
+
path_params = {}
|
825
|
+
|
826
|
+
query_params = []
|
827
|
+
if 'endpoint_service_name' in local_var_params:
|
828
|
+
query_params.append(('endpoint_service_name', local_var_params['endpoint_service_name']))
|
829
|
+
if 'vpc_id' in local_var_params:
|
830
|
+
query_params.append(('vpc_id', local_var_params['vpc_id']))
|
831
|
+
if 'id' in local_var_params:
|
832
|
+
query_params.append(('id', local_var_params['id']))
|
833
|
+
if 'limit' in local_var_params:
|
834
|
+
query_params.append(('limit', local_var_params['limit']))
|
835
|
+
if 'offset' in local_var_params:
|
836
|
+
query_params.append(('offset', local_var_params['offset']))
|
837
|
+
if 'sort_key' in local_var_params:
|
838
|
+
query_params.append(('sort_key', local_var_params['sort_key']))
|
839
|
+
if 'sort_dir' in local_var_params:
|
840
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
841
|
+
|
842
|
+
header_params = {}
|
843
|
+
|
844
|
+
form_params = {}
|
845
|
+
|
846
|
+
body = None
|
847
|
+
if isinstance(request, SdkStreamRequest):
|
848
|
+
body = request.get_file_stream()
|
849
|
+
|
850
|
+
response_headers = []
|
851
|
+
|
852
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
853
|
+
['application/json'])
|
854
|
+
|
855
|
+
auth_settings = []
|
856
|
+
|
857
|
+
http_info["cname"] = cname
|
858
|
+
http_info["collection_formats"] = collection_formats
|
859
|
+
http_info["path_params"] = path_params
|
860
|
+
http_info["query_params"] = query_params
|
861
|
+
http_info["header_params"] = header_params
|
862
|
+
http_info["post_params"] = form_params
|
863
|
+
http_info["body"] = body
|
864
|
+
http_info["response_headers"] = response_headers
|
865
|
+
|
866
|
+
return http_info
|
867
|
+
|
868
|
+
def list_quota_details_async(self, request):
|
869
|
+
r"""查询配额
|
870
|
+
|
871
|
+
查询用户的资源配额,包括终端节点服务和终端节点。
|
872
|
+
|
873
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
874
|
+
|
875
|
+
|
876
|
+
:param request: Request instance for ListQuotaDetails
|
877
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.ListQuotaDetailsRequest`
|
878
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.ListQuotaDetailsResponse`
|
879
|
+
"""
|
880
|
+
http_info = self._list_quota_details_http_info(request)
|
881
|
+
return self._call_api(**http_info)
|
882
|
+
|
883
|
+
def list_quota_details_async_invoker(self, request):
|
884
|
+
http_info = self._list_quota_details_http_info(request)
|
885
|
+
return AsyncInvoker(self, http_info)
|
886
|
+
|
887
|
+
def _list_quota_details_http_info(self, request):
|
888
|
+
http_info = {
|
889
|
+
"method": "GET",
|
890
|
+
"resource_path": "/v1/{project_id}/quotas",
|
891
|
+
"request_type": request.__class__.__name__,
|
892
|
+
"response_type": "ListQuotaDetailsResponse"
|
893
|
+
}
|
894
|
+
|
895
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
896
|
+
|
897
|
+
cname = None
|
898
|
+
|
899
|
+
collection_formats = {}
|
900
|
+
|
901
|
+
path_params = {}
|
902
|
+
|
903
|
+
query_params = []
|
904
|
+
if 'type' in local_var_params:
|
905
|
+
query_params.append(('type', local_var_params['type']))
|
906
|
+
|
907
|
+
header_params = {}
|
908
|
+
|
909
|
+
form_params = {}
|
910
|
+
|
911
|
+
body = None
|
912
|
+
if isinstance(request, SdkStreamRequest):
|
913
|
+
body = request.get_file_stream()
|
914
|
+
|
915
|
+
response_headers = []
|
916
|
+
|
917
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
918
|
+
['application/json'])
|
919
|
+
|
920
|
+
auth_settings = []
|
921
|
+
|
922
|
+
http_info["cname"] = cname
|
923
|
+
http_info["collection_formats"] = collection_formats
|
924
|
+
http_info["path_params"] = path_params
|
925
|
+
http_info["query_params"] = query_params
|
926
|
+
http_info["header_params"] = header_params
|
927
|
+
http_info["post_params"] = form_params
|
928
|
+
http_info["body"] = body
|
929
|
+
http_info["response_headers"] = response_headers
|
930
|
+
|
931
|
+
return http_info
|
932
|
+
|
933
|
+
def list_service_connections_async(self, request):
|
934
|
+
r"""查询连接终端节点服务的连接列表
|
935
|
+
|
936
|
+
查询连接当前用户下的某一个终端节点服务的连接列表。marker_id是连接的唯一标识。
|
937
|
+
|
938
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
939
|
+
|
940
|
+
|
941
|
+
:param request: Request instance for ListServiceConnections
|
942
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.ListServiceConnectionsRequest`
|
943
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.ListServiceConnectionsResponse`
|
944
|
+
"""
|
945
|
+
http_info = self._list_service_connections_http_info(request)
|
946
|
+
return self._call_api(**http_info)
|
947
|
+
|
948
|
+
def list_service_connections_async_invoker(self, request):
|
949
|
+
http_info = self._list_service_connections_http_info(request)
|
950
|
+
return AsyncInvoker(self, http_info)
|
951
|
+
|
952
|
+
def _list_service_connections_http_info(self, request):
|
953
|
+
http_info = {
|
954
|
+
"method": "GET",
|
955
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/connections",
|
956
|
+
"request_type": request.__class__.__name__,
|
957
|
+
"response_type": "ListServiceConnectionsResponse"
|
958
|
+
}
|
959
|
+
|
960
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
961
|
+
|
962
|
+
cname = None
|
963
|
+
|
964
|
+
collection_formats = {}
|
965
|
+
|
966
|
+
path_params = {}
|
967
|
+
if 'vpc_endpoint_service_id' in local_var_params:
|
968
|
+
path_params['vpc_endpoint_service_id'] = local_var_params['vpc_endpoint_service_id']
|
969
|
+
|
970
|
+
query_params = []
|
971
|
+
if 'id' in local_var_params:
|
972
|
+
query_params.append(('id', local_var_params['id']))
|
973
|
+
if 'marker_id' in local_var_params:
|
974
|
+
query_params.append(('marker_id', local_var_params['marker_id']))
|
975
|
+
if 'status' in local_var_params:
|
976
|
+
query_params.append(('status', local_var_params['status']))
|
977
|
+
if 'sort_key' in local_var_params:
|
978
|
+
query_params.append(('sort_key', local_var_params['sort_key']))
|
979
|
+
if 'sort_dir' in local_var_params:
|
980
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
981
|
+
if 'limit' in local_var_params:
|
982
|
+
query_params.append(('limit', local_var_params['limit']))
|
983
|
+
if 'offset' in local_var_params:
|
984
|
+
query_params.append(('offset', local_var_params['offset']))
|
985
|
+
|
986
|
+
header_params = {}
|
987
|
+
|
988
|
+
form_params = {}
|
989
|
+
|
990
|
+
body = None
|
991
|
+
if isinstance(request, SdkStreamRequest):
|
992
|
+
body = request.get_file_stream()
|
993
|
+
|
994
|
+
response_headers = []
|
995
|
+
|
996
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
997
|
+
['application/json'])
|
998
|
+
|
999
|
+
auth_settings = []
|
1000
|
+
|
1001
|
+
http_info["cname"] = cname
|
1002
|
+
http_info["collection_formats"] = collection_formats
|
1003
|
+
http_info["path_params"] = path_params
|
1004
|
+
http_info["query_params"] = query_params
|
1005
|
+
http_info["header_params"] = header_params
|
1006
|
+
http_info["post_params"] = form_params
|
1007
|
+
http_info["body"] = body
|
1008
|
+
http_info["response_headers"] = response_headers
|
1009
|
+
|
1010
|
+
return http_info
|
1011
|
+
|
1012
|
+
def list_service_describe_details_async(self, request):
|
1013
|
+
r"""查询终端节点服务概要
|
1014
|
+
|
1015
|
+
查询终端节点服务的概要信息, 此接口是供创建终端节点的用户来查询需要连接的终端节点服务信息。 此接口既可以方便其他用户查询到您的终端节点服务概要信息, 又可以避免您的终端节点服务的细节信息暴露给其他用户。
|
1016
|
+
|
1017
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1018
|
+
|
1019
|
+
|
1020
|
+
:param request: Request instance for ListServiceDescribeDetails
|
1021
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.ListServiceDescribeDetailsRequest`
|
1022
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.ListServiceDescribeDetailsResponse`
|
1023
|
+
"""
|
1024
|
+
http_info = self._list_service_describe_details_http_info(request)
|
1025
|
+
return self._call_api(**http_info)
|
1026
|
+
|
1027
|
+
def list_service_describe_details_async_invoker(self, request):
|
1028
|
+
http_info = self._list_service_describe_details_http_info(request)
|
1029
|
+
return AsyncInvoker(self, http_info)
|
1030
|
+
|
1031
|
+
def _list_service_describe_details_http_info(self, request):
|
1032
|
+
http_info = {
|
1033
|
+
"method": "GET",
|
1034
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/describe",
|
1035
|
+
"request_type": request.__class__.__name__,
|
1036
|
+
"response_type": "ListServiceDescribeDetailsResponse"
|
1037
|
+
}
|
1038
|
+
|
1039
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1040
|
+
|
1041
|
+
cname = None
|
1042
|
+
|
1043
|
+
collection_formats = {}
|
1044
|
+
|
1045
|
+
path_params = {}
|
1046
|
+
|
1047
|
+
query_params = []
|
1048
|
+
if 'endpoint_service_name' in local_var_params:
|
1049
|
+
query_params.append(('endpoint_service_name', local_var_params['endpoint_service_name']))
|
1050
|
+
if 'id' in local_var_params:
|
1051
|
+
query_params.append(('id', local_var_params['id']))
|
1052
|
+
|
1053
|
+
header_params = {}
|
1054
|
+
|
1055
|
+
form_params = {}
|
1056
|
+
|
1057
|
+
body = None
|
1058
|
+
if isinstance(request, SdkStreamRequest):
|
1059
|
+
body = request.get_file_stream()
|
1060
|
+
|
1061
|
+
response_headers = []
|
1062
|
+
|
1063
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1064
|
+
['application/json'])
|
1065
|
+
|
1066
|
+
auth_settings = []
|
1067
|
+
|
1068
|
+
http_info["cname"] = cname
|
1069
|
+
http_info["collection_formats"] = collection_formats
|
1070
|
+
http_info["path_params"] = path_params
|
1071
|
+
http_info["query_params"] = query_params
|
1072
|
+
http_info["header_params"] = header_params
|
1073
|
+
http_info["post_params"] = form_params
|
1074
|
+
http_info["body"] = body
|
1075
|
+
http_info["response_headers"] = response_headers
|
1076
|
+
|
1077
|
+
return http_info
|
1078
|
+
|
1079
|
+
def list_service_details_async(self, request):
|
1080
|
+
r"""查询终端节点服务详情
|
1081
|
+
|
1082
|
+
查询终端节点服务的详细信息。
|
1083
|
+
|
1084
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1085
|
+
|
1086
|
+
|
1087
|
+
:param request: Request instance for ListServiceDetails
|
1088
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.ListServiceDetailsRequest`
|
1089
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.ListServiceDetailsResponse`
|
1090
|
+
"""
|
1091
|
+
http_info = self._list_service_details_http_info(request)
|
1092
|
+
return self._call_api(**http_info)
|
1093
|
+
|
1094
|
+
def list_service_details_async_invoker(self, request):
|
1095
|
+
http_info = self._list_service_details_http_info(request)
|
1096
|
+
return AsyncInvoker(self, http_info)
|
1097
|
+
|
1098
|
+
def _list_service_details_http_info(self, request):
|
1099
|
+
http_info = {
|
1100
|
+
"method": "GET",
|
1101
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}",
|
1102
|
+
"request_type": request.__class__.__name__,
|
1103
|
+
"response_type": "ListServiceDetailsResponse"
|
1104
|
+
}
|
1105
|
+
|
1106
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1107
|
+
|
1108
|
+
cname = None
|
1109
|
+
|
1110
|
+
collection_formats = {}
|
1111
|
+
|
1112
|
+
path_params = {}
|
1113
|
+
if 'vpc_endpoint_service_id' in local_var_params:
|
1114
|
+
path_params['vpc_endpoint_service_id'] = local_var_params['vpc_endpoint_service_id']
|
1115
|
+
|
1116
|
+
query_params = []
|
1117
|
+
|
1118
|
+
header_params = {}
|
1119
|
+
|
1120
|
+
form_params = {}
|
1121
|
+
|
1122
|
+
body = None
|
1123
|
+
if isinstance(request, SdkStreamRequest):
|
1124
|
+
body = request.get_file_stream()
|
1125
|
+
|
1126
|
+
response_headers = []
|
1127
|
+
|
1128
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1129
|
+
['application/json'])
|
1130
|
+
|
1131
|
+
auth_settings = []
|
1132
|
+
|
1133
|
+
http_info["cname"] = cname
|
1134
|
+
http_info["collection_formats"] = collection_formats
|
1135
|
+
http_info["path_params"] = path_params
|
1136
|
+
http_info["query_params"] = query_params
|
1137
|
+
http_info["header_params"] = header_params
|
1138
|
+
http_info["post_params"] = form_params
|
1139
|
+
http_info["body"] = body
|
1140
|
+
http_info["response_headers"] = response_headers
|
1141
|
+
|
1142
|
+
return http_info
|
1143
|
+
|
1144
|
+
def list_service_permissions_details_async(self, request):
|
1145
|
+
r"""查询终端节点服务的白名单列表
|
1146
|
+
|
1147
|
+
查询当前用户下终端节点服务的白名单列表。
|
1148
|
+
说明
|
1149
|
+
本账号默认在当前用户下终端节点服务的白名单中。
|
1150
|
+
|
1151
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1152
|
+
|
1153
|
+
|
1154
|
+
:param request: Request instance for ListServicePermissionsDetails
|
1155
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.ListServicePermissionsDetailsRequest`
|
1156
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.ListServicePermissionsDetailsResponse`
|
1157
|
+
"""
|
1158
|
+
http_info = self._list_service_permissions_details_http_info(request)
|
1159
|
+
return self._call_api(**http_info)
|
1160
|
+
|
1161
|
+
def list_service_permissions_details_async_invoker(self, request):
|
1162
|
+
http_info = self._list_service_permissions_details_http_info(request)
|
1163
|
+
return AsyncInvoker(self, http_info)
|
1164
|
+
|
1165
|
+
def _list_service_permissions_details_http_info(self, request):
|
1166
|
+
http_info = {
|
1167
|
+
"method": "GET",
|
1168
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/permissions",
|
1169
|
+
"request_type": request.__class__.__name__,
|
1170
|
+
"response_type": "ListServicePermissionsDetailsResponse"
|
1171
|
+
}
|
1172
|
+
|
1173
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1174
|
+
|
1175
|
+
cname = None
|
1176
|
+
|
1177
|
+
collection_formats = {}
|
1178
|
+
|
1179
|
+
path_params = {}
|
1180
|
+
if 'vpc_endpoint_service_id' in local_var_params:
|
1181
|
+
path_params['vpc_endpoint_service_id'] = local_var_params['vpc_endpoint_service_id']
|
1182
|
+
|
1183
|
+
query_params = []
|
1184
|
+
if 'permission' in local_var_params:
|
1185
|
+
query_params.append(('permission', local_var_params['permission']))
|
1186
|
+
if 'limit' in local_var_params:
|
1187
|
+
query_params.append(('limit', local_var_params['limit']))
|
1188
|
+
if 'offset' in local_var_params:
|
1189
|
+
query_params.append(('offset', local_var_params['offset']))
|
1190
|
+
if 'sort_key' in local_var_params:
|
1191
|
+
query_params.append(('sort_key', local_var_params['sort_key']))
|
1192
|
+
if 'sort_dir' in local_var_params:
|
1193
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
1194
|
+
|
1195
|
+
header_params = {}
|
1196
|
+
|
1197
|
+
form_params = {}
|
1198
|
+
|
1199
|
+
body = None
|
1200
|
+
if isinstance(request, SdkStreamRequest):
|
1201
|
+
body = request.get_file_stream()
|
1202
|
+
|
1203
|
+
response_headers = []
|
1204
|
+
|
1205
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1206
|
+
['application/json'])
|
1207
|
+
|
1208
|
+
auth_settings = []
|
1209
|
+
|
1210
|
+
http_info["cname"] = cname
|
1211
|
+
http_info["collection_formats"] = collection_formats
|
1212
|
+
http_info["path_params"] = path_params
|
1213
|
+
http_info["query_params"] = query_params
|
1214
|
+
http_info["header_params"] = header_params
|
1215
|
+
http_info["post_params"] = form_params
|
1216
|
+
http_info["body"] = body
|
1217
|
+
http_info["response_headers"] = response_headers
|
1218
|
+
|
1219
|
+
return http_info
|
1220
|
+
|
1221
|
+
def list_service_public_details_async(self, request):
|
1222
|
+
r"""查询公共终端节点服务列表
|
1223
|
+
|
1224
|
+
查询公共终端节点服务的列表,公共终端节点服务是所有用户可见且可连接的终端节点服务,
|
1225
|
+
由运维人员创建,用户可直接使用,但无权创建。
|
1226
|
+
|
1227
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1228
|
+
|
1229
|
+
|
1230
|
+
:param request: Request instance for ListServicePublicDetails
|
1231
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.ListServicePublicDetailsRequest`
|
1232
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.ListServicePublicDetailsResponse`
|
1233
|
+
"""
|
1234
|
+
http_info = self._list_service_public_details_http_info(request)
|
1235
|
+
return self._call_api(**http_info)
|
1236
|
+
|
1237
|
+
def list_service_public_details_async_invoker(self, request):
|
1238
|
+
http_info = self._list_service_public_details_http_info(request)
|
1239
|
+
return AsyncInvoker(self, http_info)
|
1240
|
+
|
1241
|
+
def _list_service_public_details_http_info(self, request):
|
1242
|
+
http_info = {
|
1243
|
+
"method": "GET",
|
1244
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/public",
|
1245
|
+
"request_type": request.__class__.__name__,
|
1246
|
+
"response_type": "ListServicePublicDetailsResponse"
|
1247
|
+
}
|
1248
|
+
|
1249
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1250
|
+
|
1251
|
+
cname = None
|
1252
|
+
|
1253
|
+
collection_formats = {}
|
1254
|
+
|
1255
|
+
path_params = {}
|
1256
|
+
|
1257
|
+
query_params = []
|
1258
|
+
if 'limit' in local_var_params:
|
1259
|
+
query_params.append(('limit', local_var_params['limit']))
|
1260
|
+
if 'offset' in local_var_params:
|
1261
|
+
query_params.append(('offset', local_var_params['offset']))
|
1262
|
+
if 'endpoint_service_name' in local_var_params:
|
1263
|
+
query_params.append(('endpoint_service_name', local_var_params['endpoint_service_name']))
|
1264
|
+
if 'id' in local_var_params:
|
1265
|
+
query_params.append(('id', local_var_params['id']))
|
1266
|
+
if 'sort_key' in local_var_params:
|
1267
|
+
query_params.append(('sort_key', local_var_params['sort_key']))
|
1268
|
+
if 'sort_dir' in local_var_params:
|
1269
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
1270
|
+
|
1271
|
+
header_params = {}
|
1272
|
+
|
1273
|
+
form_params = {}
|
1274
|
+
|
1275
|
+
body = None
|
1276
|
+
if isinstance(request, SdkStreamRequest):
|
1277
|
+
body = request.get_file_stream()
|
1278
|
+
|
1279
|
+
response_headers = []
|
1280
|
+
|
1281
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1282
|
+
['application/json'])
|
1283
|
+
|
1284
|
+
auth_settings = []
|
1285
|
+
|
1286
|
+
http_info["cname"] = cname
|
1287
|
+
http_info["collection_formats"] = collection_formats
|
1288
|
+
http_info["path_params"] = path_params
|
1289
|
+
http_info["query_params"] = query_params
|
1290
|
+
http_info["header_params"] = header_params
|
1291
|
+
http_info["post_params"] = form_params
|
1292
|
+
http_info["body"] = body
|
1293
|
+
http_info["response_headers"] = response_headers
|
1294
|
+
|
1295
|
+
return http_info
|
1296
|
+
|
1297
|
+
def list_specified_version_details_async(self, request):
|
1298
|
+
r"""查询指定VPC终端节点接口版本信息
|
1299
|
+
|
1300
|
+
查询指定VPC终端节点接口版本信息。
|
1301
|
+
|
1302
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1303
|
+
|
1304
|
+
|
1305
|
+
:param request: Request instance for ListSpecifiedVersionDetails
|
1306
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.ListSpecifiedVersionDetailsRequest`
|
1307
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.ListSpecifiedVersionDetailsResponse`
|
1308
|
+
"""
|
1309
|
+
http_info = self._list_specified_version_details_http_info(request)
|
1310
|
+
return self._call_api(**http_info)
|
1311
|
+
|
1312
|
+
def list_specified_version_details_async_invoker(self, request):
|
1313
|
+
http_info = self._list_specified_version_details_http_info(request)
|
1314
|
+
return AsyncInvoker(self, http_info)
|
1315
|
+
|
1316
|
+
def _list_specified_version_details_http_info(self, request):
|
1317
|
+
http_info = {
|
1318
|
+
"method": "GET",
|
1319
|
+
"resource_path": "/{version}",
|
1320
|
+
"request_type": request.__class__.__name__,
|
1321
|
+
"response_type": "ListSpecifiedVersionDetailsResponse"
|
1322
|
+
}
|
1323
|
+
|
1324
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1325
|
+
|
1326
|
+
cname = None
|
1327
|
+
|
1328
|
+
collection_formats = {}
|
1329
|
+
|
1330
|
+
path_params = {}
|
1331
|
+
if 'version' in local_var_params:
|
1332
|
+
path_params['version'] = local_var_params['version']
|
1333
|
+
|
1334
|
+
query_params = []
|
1335
|
+
|
1336
|
+
header_params = {}
|
1337
|
+
|
1338
|
+
form_params = {}
|
1339
|
+
|
1340
|
+
body = None
|
1341
|
+
if isinstance(request, SdkStreamRequest):
|
1342
|
+
body = request.get_file_stream()
|
1343
|
+
|
1344
|
+
response_headers = []
|
1345
|
+
|
1346
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1347
|
+
['application/json'])
|
1348
|
+
|
1349
|
+
auth_settings = []
|
1350
|
+
|
1351
|
+
http_info["cname"] = cname
|
1352
|
+
http_info["collection_formats"] = collection_formats
|
1353
|
+
http_info["path_params"] = path_params
|
1354
|
+
http_info["query_params"] = query_params
|
1355
|
+
http_info["header_params"] = header_params
|
1356
|
+
http_info["post_params"] = form_params
|
1357
|
+
http_info["body"] = body
|
1358
|
+
http_info["response_headers"] = response_headers
|
1359
|
+
|
1360
|
+
return http_info
|
1361
|
+
|
1362
|
+
def list_version_details_async(self, request):
|
1363
|
+
r"""查询VPC终端节点接口版本列表
|
1364
|
+
|
1365
|
+
查询VPC终端节点接口版本列表。
|
1366
|
+
|
1367
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1368
|
+
|
1369
|
+
|
1370
|
+
:param request: Request instance for ListVersionDetails
|
1371
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.ListVersionDetailsRequest`
|
1372
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.ListVersionDetailsResponse`
|
1373
|
+
"""
|
1374
|
+
http_info = self._list_version_details_http_info(request)
|
1375
|
+
return self._call_api(**http_info)
|
1376
|
+
|
1377
|
+
def list_version_details_async_invoker(self, request):
|
1378
|
+
http_info = self._list_version_details_http_info(request)
|
1379
|
+
return AsyncInvoker(self, http_info)
|
1380
|
+
|
1381
|
+
def _list_version_details_http_info(self, request):
|
1382
|
+
http_info = {
|
1383
|
+
"method": "GET",
|
1384
|
+
"resource_path": "/",
|
1385
|
+
"request_type": request.__class__.__name__,
|
1386
|
+
"response_type": "ListVersionDetailsResponse"
|
1387
|
+
}
|
1388
|
+
|
1389
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1390
|
+
|
1391
|
+
cname = None
|
1392
|
+
|
1393
|
+
collection_formats = {}
|
1394
|
+
|
1395
|
+
path_params = {}
|
1396
|
+
|
1397
|
+
query_params = []
|
1398
|
+
|
1399
|
+
header_params = {}
|
1400
|
+
|
1401
|
+
form_params = {}
|
1402
|
+
|
1403
|
+
body = None
|
1404
|
+
if isinstance(request, SdkStreamRequest):
|
1405
|
+
body = request.get_file_stream()
|
1406
|
+
|
1407
|
+
response_headers = []
|
1408
|
+
|
1409
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1410
|
+
['application/json'])
|
1411
|
+
|
1412
|
+
auth_settings = []
|
1413
|
+
|
1414
|
+
http_info["cname"] = cname
|
1415
|
+
http_info["collection_formats"] = collection_formats
|
1416
|
+
http_info["path_params"] = path_params
|
1417
|
+
http_info["query_params"] = query_params
|
1418
|
+
http_info["header_params"] = header_params
|
1419
|
+
http_info["post_params"] = form_params
|
1420
|
+
http_info["body"] = body
|
1421
|
+
http_info["response_headers"] = response_headers
|
1422
|
+
|
1423
|
+
return http_info
|
1424
|
+
|
1425
|
+
def update_endpoint_connections_desc_async(self, request):
|
1426
|
+
r"""更新终端节点连接描述
|
1427
|
+
|
1428
|
+
更新终端节点服务连接的终端节点的描述。
|
1429
|
+
|
1430
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1431
|
+
|
1432
|
+
|
1433
|
+
:param request: Request instance for UpdateEndpointConnectionsDesc
|
1434
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointConnectionsDescRequest`
|
1435
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointConnectionsDescResponse`
|
1436
|
+
"""
|
1437
|
+
http_info = self._update_endpoint_connections_desc_http_info(request)
|
1438
|
+
return self._call_api(**http_info)
|
1439
|
+
|
1440
|
+
def update_endpoint_connections_desc_async_invoker(self, request):
|
1441
|
+
http_info = self._update_endpoint_connections_desc_http_info(request)
|
1442
|
+
return AsyncInvoker(self, http_info)
|
1443
|
+
|
1444
|
+
def _update_endpoint_connections_desc_http_info(self, request):
|
1445
|
+
http_info = {
|
1446
|
+
"method": "PUT",
|
1447
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/connections/description",
|
1448
|
+
"request_type": request.__class__.__name__,
|
1449
|
+
"response_type": "UpdateEndpointConnectionsDescResponse"
|
1450
|
+
}
|
1451
|
+
|
1452
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1453
|
+
|
1454
|
+
cname = None
|
1455
|
+
|
1456
|
+
collection_formats = {}
|
1457
|
+
|
1458
|
+
path_params = {}
|
1459
|
+
if 'vpc_endpoint_service_id' in local_var_params:
|
1460
|
+
path_params['vpc_endpoint_service_id'] = local_var_params['vpc_endpoint_service_id']
|
1461
|
+
|
1462
|
+
query_params = []
|
1463
|
+
|
1464
|
+
header_params = {}
|
1465
|
+
|
1466
|
+
form_params = {}
|
1467
|
+
|
1468
|
+
body = None
|
1469
|
+
if 'body' in local_var_params:
|
1470
|
+
body = local_var_params['body']
|
1471
|
+
if isinstance(request, SdkStreamRequest):
|
1472
|
+
body = request.get_file_stream()
|
1473
|
+
|
1474
|
+
response_headers = []
|
1475
|
+
|
1476
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1477
|
+
['application/json;charset=UTF-8'])
|
1478
|
+
|
1479
|
+
auth_settings = []
|
1480
|
+
|
1481
|
+
http_info["cname"] = cname
|
1482
|
+
http_info["collection_formats"] = collection_formats
|
1483
|
+
http_info["path_params"] = path_params
|
1484
|
+
http_info["query_params"] = query_params
|
1485
|
+
http_info["header_params"] = header_params
|
1486
|
+
http_info["post_params"] = form_params
|
1487
|
+
http_info["body"] = body
|
1488
|
+
http_info["response_headers"] = response_headers
|
1489
|
+
|
1490
|
+
return http_info
|
1491
|
+
|
1492
|
+
def update_endpoint_policy_async(self, request):
|
1493
|
+
r"""修改终端节点策略
|
1494
|
+
|
1495
|
+
修改终端节点策略。
|
1496
|
+
|
1497
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1498
|
+
|
1499
|
+
|
1500
|
+
:param request: Request instance for UpdateEndpointPolicy
|
1501
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointPolicyRequest`
|
1502
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointPolicyResponse`
|
1503
|
+
"""
|
1504
|
+
http_info = self._update_endpoint_policy_http_info(request)
|
1505
|
+
return self._call_api(**http_info)
|
1506
|
+
|
1507
|
+
def update_endpoint_policy_async_invoker(self, request):
|
1508
|
+
http_info = self._update_endpoint_policy_http_info(request)
|
1509
|
+
return AsyncInvoker(self, http_info)
|
1510
|
+
|
1511
|
+
def _update_endpoint_policy_http_info(self, request):
|
1512
|
+
http_info = {
|
1513
|
+
"method": "PUT",
|
1514
|
+
"resource_path": "/v1/{project_id}/vpc-endpoints/{vpc_endpoint_id}/policy",
|
1515
|
+
"request_type": request.__class__.__name__,
|
1516
|
+
"response_type": "UpdateEndpointPolicyResponse"
|
1517
|
+
}
|
1518
|
+
|
1519
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1520
|
+
|
1521
|
+
cname = None
|
1522
|
+
|
1523
|
+
collection_formats = {}
|
1524
|
+
|
1525
|
+
path_params = {}
|
1526
|
+
if 'vpc_endpoint_id' in local_var_params:
|
1527
|
+
path_params['vpc_endpoint_id'] = local_var_params['vpc_endpoint_id']
|
1528
|
+
|
1529
|
+
query_params = []
|
1530
|
+
|
1531
|
+
header_params = {}
|
1532
|
+
|
1533
|
+
form_params = {}
|
1534
|
+
|
1535
|
+
body = None
|
1536
|
+
if 'body' in local_var_params:
|
1537
|
+
body = local_var_params['body']
|
1538
|
+
if isinstance(request, SdkStreamRequest):
|
1539
|
+
body = request.get_file_stream()
|
1540
|
+
|
1541
|
+
response_headers = []
|
1542
|
+
|
1543
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1544
|
+
['application/json;charset=UTF-8'])
|
1545
|
+
|
1546
|
+
auth_settings = []
|
1547
|
+
|
1548
|
+
http_info["cname"] = cname
|
1549
|
+
http_info["collection_formats"] = collection_formats
|
1550
|
+
http_info["path_params"] = path_params
|
1551
|
+
http_info["query_params"] = query_params
|
1552
|
+
http_info["header_params"] = header_params
|
1553
|
+
http_info["post_params"] = form_params
|
1554
|
+
http_info["body"] = body
|
1555
|
+
http_info["response_headers"] = response_headers
|
1556
|
+
|
1557
|
+
return http_info
|
1558
|
+
|
1559
|
+
def update_endpoint_routetable_async(self, request):
|
1560
|
+
r"""修改终端节点的路由表
|
1561
|
+
|
1562
|
+
修改终端节点的路由表。
|
1563
|
+
|
1564
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1565
|
+
|
1566
|
+
|
1567
|
+
:param request: Request instance for UpdateEndpointRoutetable
|
1568
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointRoutetableRequest`
|
1569
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointRoutetableResponse`
|
1570
|
+
"""
|
1571
|
+
http_info = self._update_endpoint_routetable_http_info(request)
|
1572
|
+
return self._call_api(**http_info)
|
1573
|
+
|
1574
|
+
def update_endpoint_routetable_async_invoker(self, request):
|
1575
|
+
http_info = self._update_endpoint_routetable_http_info(request)
|
1576
|
+
return AsyncInvoker(self, http_info)
|
1577
|
+
|
1578
|
+
def _update_endpoint_routetable_http_info(self, request):
|
1579
|
+
http_info = {
|
1580
|
+
"method": "PUT",
|
1581
|
+
"resource_path": "/v1/{project_id}/vpc-endpoints/{vpc_endpoint_id}/routetables",
|
1582
|
+
"request_type": request.__class__.__name__,
|
1583
|
+
"response_type": "UpdateEndpointRoutetableResponse"
|
1584
|
+
}
|
1585
|
+
|
1586
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1587
|
+
|
1588
|
+
cname = None
|
1589
|
+
|
1590
|
+
collection_formats = {}
|
1591
|
+
|
1592
|
+
path_params = {}
|
1593
|
+
if 'vpc_endpoint_id' in local_var_params:
|
1594
|
+
path_params['vpc_endpoint_id'] = local_var_params['vpc_endpoint_id']
|
1595
|
+
|
1596
|
+
query_params = []
|
1597
|
+
|
1598
|
+
header_params = {}
|
1599
|
+
|
1600
|
+
form_params = {}
|
1601
|
+
|
1602
|
+
body = None
|
1603
|
+
if 'body' in local_var_params:
|
1604
|
+
body = local_var_params['body']
|
1605
|
+
if isinstance(request, SdkStreamRequest):
|
1606
|
+
body = request.get_file_stream()
|
1607
|
+
|
1608
|
+
response_headers = []
|
1609
|
+
|
1610
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1611
|
+
['application/json;charset=UTF-8'])
|
1612
|
+
|
1613
|
+
auth_settings = []
|
1614
|
+
|
1615
|
+
http_info["cname"] = cname
|
1616
|
+
http_info["collection_formats"] = collection_formats
|
1617
|
+
http_info["path_params"] = path_params
|
1618
|
+
http_info["query_params"] = query_params
|
1619
|
+
http_info["header_params"] = header_params
|
1620
|
+
http_info["post_params"] = form_params
|
1621
|
+
http_info["body"] = body
|
1622
|
+
http_info["response_headers"] = response_headers
|
1623
|
+
|
1624
|
+
return http_info
|
1625
|
+
|
1626
|
+
def update_endpoint_service_async(self, request):
|
1627
|
+
r"""修改终端节点服务
|
1628
|
+
|
1629
|
+
修改终端节点服务。
|
1630
|
+
|
1631
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1632
|
+
|
1633
|
+
|
1634
|
+
:param request: Request instance for UpdateEndpointService
|
1635
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointServiceRequest`
|
1636
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointServiceResponse`
|
1637
|
+
"""
|
1638
|
+
http_info = self._update_endpoint_service_http_info(request)
|
1639
|
+
return self._call_api(**http_info)
|
1640
|
+
|
1641
|
+
def update_endpoint_service_async_invoker(self, request):
|
1642
|
+
http_info = self._update_endpoint_service_http_info(request)
|
1643
|
+
return AsyncInvoker(self, http_info)
|
1644
|
+
|
1645
|
+
def _update_endpoint_service_http_info(self, request):
|
1646
|
+
http_info = {
|
1647
|
+
"method": "PUT",
|
1648
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}",
|
1649
|
+
"request_type": request.__class__.__name__,
|
1650
|
+
"response_type": "UpdateEndpointServiceResponse"
|
1651
|
+
}
|
1652
|
+
|
1653
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1654
|
+
|
1655
|
+
cname = None
|
1656
|
+
|
1657
|
+
collection_formats = {}
|
1658
|
+
|
1659
|
+
path_params = {}
|
1660
|
+
if 'vpc_endpoint_service_id' in local_var_params:
|
1661
|
+
path_params['vpc_endpoint_service_id'] = local_var_params['vpc_endpoint_service_id']
|
1662
|
+
|
1663
|
+
query_params = []
|
1664
|
+
|
1665
|
+
header_params = {}
|
1666
|
+
|
1667
|
+
form_params = {}
|
1668
|
+
|
1669
|
+
body = None
|
1670
|
+
if 'body' in local_var_params:
|
1671
|
+
body = local_var_params['body']
|
1672
|
+
if isinstance(request, SdkStreamRequest):
|
1673
|
+
body = request.get_file_stream()
|
1674
|
+
|
1675
|
+
response_headers = []
|
1676
|
+
|
1677
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1678
|
+
['application/json;charset=UTF-8'])
|
1679
|
+
|
1680
|
+
auth_settings = []
|
1681
|
+
|
1682
|
+
http_info["cname"] = cname
|
1683
|
+
http_info["collection_formats"] = collection_formats
|
1684
|
+
http_info["path_params"] = path_params
|
1685
|
+
http_info["query_params"] = query_params
|
1686
|
+
http_info["header_params"] = header_params
|
1687
|
+
http_info["post_params"] = form_params
|
1688
|
+
http_info["body"] = body
|
1689
|
+
http_info["response_headers"] = response_headers
|
1690
|
+
|
1691
|
+
return http_info
|
1692
|
+
|
1693
|
+
def update_endpoint_service_name_async(self, request):
|
1694
|
+
r"""修改终端节点服务名称
|
1695
|
+
|
1696
|
+
修改终端节点服务名称
|
1697
|
+
|
1698
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1699
|
+
|
1700
|
+
|
1701
|
+
:param request: Request instance for UpdateEndpointServiceName
|
1702
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointServiceNameRequest`
|
1703
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointServiceNameResponse`
|
1704
|
+
"""
|
1705
|
+
http_info = self._update_endpoint_service_name_http_info(request)
|
1706
|
+
return self._call_api(**http_info)
|
1707
|
+
|
1708
|
+
def update_endpoint_service_name_async_invoker(self, request):
|
1709
|
+
http_info = self._update_endpoint_service_name_http_info(request)
|
1710
|
+
return AsyncInvoker(self, http_info)
|
1711
|
+
|
1712
|
+
def _update_endpoint_service_name_http_info(self, request):
|
1713
|
+
http_info = {
|
1714
|
+
"method": "PUT",
|
1715
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/name",
|
1716
|
+
"request_type": request.__class__.__name__,
|
1717
|
+
"response_type": "UpdateEndpointServiceNameResponse"
|
1718
|
+
}
|
1719
|
+
|
1720
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1721
|
+
|
1722
|
+
cname = None
|
1723
|
+
|
1724
|
+
collection_formats = {}
|
1725
|
+
|
1726
|
+
path_params = {}
|
1727
|
+
if 'vpc_endpoint_service_id' in local_var_params:
|
1728
|
+
path_params['vpc_endpoint_service_id'] = local_var_params['vpc_endpoint_service_id']
|
1729
|
+
|
1730
|
+
query_params = []
|
1731
|
+
|
1732
|
+
header_params = {}
|
1733
|
+
|
1734
|
+
form_params = {}
|
1735
|
+
|
1736
|
+
body = None
|
1737
|
+
if 'body' in local_var_params:
|
1738
|
+
body = local_var_params['body']
|
1739
|
+
if isinstance(request, SdkStreamRequest):
|
1740
|
+
body = request.get_file_stream()
|
1741
|
+
|
1742
|
+
response_headers = []
|
1743
|
+
|
1744
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1745
|
+
['application/json;charset=UTF-8'])
|
1746
|
+
|
1747
|
+
auth_settings = []
|
1748
|
+
|
1749
|
+
http_info["cname"] = cname
|
1750
|
+
http_info["collection_formats"] = collection_formats
|
1751
|
+
http_info["path_params"] = path_params
|
1752
|
+
http_info["query_params"] = query_params
|
1753
|
+
http_info["header_params"] = header_params
|
1754
|
+
http_info["post_params"] = form_params
|
1755
|
+
http_info["body"] = body
|
1756
|
+
http_info["response_headers"] = response_headers
|
1757
|
+
|
1758
|
+
return http_info
|
1759
|
+
|
1760
|
+
def update_endpoint_service_permission_desc_async(self, request):
|
1761
|
+
r"""更新终端节点服务白名单描述
|
1762
|
+
|
1763
|
+
更新当前用户下终端节点服务白名单的描述信息
|
1764
|
+
|
1765
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1766
|
+
|
1767
|
+
|
1768
|
+
:param request: Request instance for UpdateEndpointServicePermissionDesc
|
1769
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointServicePermissionDescRequest`
|
1770
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointServicePermissionDescResponse`
|
1771
|
+
"""
|
1772
|
+
http_info = self._update_endpoint_service_permission_desc_http_info(request)
|
1773
|
+
return self._call_api(**http_info)
|
1774
|
+
|
1775
|
+
def update_endpoint_service_permission_desc_async_invoker(self, request):
|
1776
|
+
http_info = self._update_endpoint_service_permission_desc_http_info(request)
|
1777
|
+
return AsyncInvoker(self, http_info)
|
1778
|
+
|
1779
|
+
def _update_endpoint_service_permission_desc_http_info(self, request):
|
1780
|
+
http_info = {
|
1781
|
+
"method": "PUT",
|
1782
|
+
"resource_path": "/v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/permissions/{permission_id}",
|
1783
|
+
"request_type": request.__class__.__name__,
|
1784
|
+
"response_type": "UpdateEndpointServicePermissionDescResponse"
|
1785
|
+
}
|
1786
|
+
|
1787
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1788
|
+
|
1789
|
+
cname = None
|
1790
|
+
|
1791
|
+
collection_formats = {}
|
1792
|
+
|
1793
|
+
path_params = {}
|
1794
|
+
if 'vpc_endpoint_service_id' in local_var_params:
|
1795
|
+
path_params['vpc_endpoint_service_id'] = local_var_params['vpc_endpoint_service_id']
|
1796
|
+
if 'permission_id' in local_var_params:
|
1797
|
+
path_params['permission_id'] = local_var_params['permission_id']
|
1798
|
+
|
1799
|
+
query_params = []
|
1800
|
+
|
1801
|
+
header_params = {}
|
1802
|
+
|
1803
|
+
form_params = {}
|
1804
|
+
|
1805
|
+
body = None
|
1806
|
+
if 'body' in local_var_params:
|
1807
|
+
body = local_var_params['body']
|
1808
|
+
if isinstance(request, SdkStreamRequest):
|
1809
|
+
body = request.get_file_stream()
|
1810
|
+
|
1811
|
+
response_headers = []
|
1812
|
+
|
1813
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1814
|
+
['application/json;charset=UTF-8'])
|
1815
|
+
|
1816
|
+
auth_settings = []
|
1817
|
+
|
1818
|
+
http_info["cname"] = cname
|
1819
|
+
http_info["collection_formats"] = collection_formats
|
1820
|
+
http_info["path_params"] = path_params
|
1821
|
+
http_info["query_params"] = query_params
|
1822
|
+
http_info["header_params"] = header_params
|
1823
|
+
http_info["post_params"] = form_params
|
1824
|
+
http_info["body"] = body
|
1825
|
+
http_info["response_headers"] = response_headers
|
1826
|
+
|
1827
|
+
return http_info
|
1828
|
+
|
1829
|
+
def update_endpoint_white_async(self, request):
|
1830
|
+
r"""更新终端节点
|
1831
|
+
|
1832
|
+
更新或删除允许访问终端节点的白名单。
|
1833
|
+
|
1834
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1835
|
+
|
1836
|
+
|
1837
|
+
:param request: Request instance for UpdateEndpointWhite
|
1838
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointWhiteRequest`
|
1839
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.UpdateEndpointWhiteResponse`
|
1840
|
+
"""
|
1841
|
+
http_info = self._update_endpoint_white_http_info(request)
|
1842
|
+
return self._call_api(**http_info)
|
1843
|
+
|
1844
|
+
def update_endpoint_white_async_invoker(self, request):
|
1845
|
+
http_info = self._update_endpoint_white_http_info(request)
|
1846
|
+
return AsyncInvoker(self, http_info)
|
1847
|
+
|
1848
|
+
def _update_endpoint_white_http_info(self, request):
|
1849
|
+
http_info = {
|
1850
|
+
"method": "PUT",
|
1851
|
+
"resource_path": "/v1/{project_id}/vpc-endpoints/{vpc_endpoint_id}",
|
1852
|
+
"request_type": request.__class__.__name__,
|
1853
|
+
"response_type": "UpdateEndpointWhiteResponse"
|
1854
|
+
}
|
1855
|
+
|
1856
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1857
|
+
|
1858
|
+
cname = None
|
1859
|
+
|
1860
|
+
collection_formats = {}
|
1861
|
+
|
1862
|
+
path_params = {}
|
1863
|
+
if 'vpc_endpoint_id' in local_var_params:
|
1864
|
+
path_params['vpc_endpoint_id'] = local_var_params['vpc_endpoint_id']
|
1865
|
+
|
1866
|
+
query_params = []
|
1867
|
+
|
1868
|
+
header_params = {}
|
1869
|
+
|
1870
|
+
form_params = {}
|
1871
|
+
|
1872
|
+
body = None
|
1873
|
+
if 'body' in local_var_params:
|
1874
|
+
body = local_var_params['body']
|
1875
|
+
if isinstance(request, SdkStreamRequest):
|
1876
|
+
body = request.get_file_stream()
|
1877
|
+
|
1878
|
+
response_headers = []
|
1879
|
+
|
1880
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1881
|
+
['application/json;charset=UTF-8'])
|
1882
|
+
|
1883
|
+
auth_settings = []
|
1884
|
+
|
1885
|
+
http_info["cname"] = cname
|
1886
|
+
http_info["collection_formats"] = collection_formats
|
1887
|
+
http_info["path_params"] = path_params
|
1888
|
+
http_info["query_params"] = query_params
|
1889
|
+
http_info["header_params"] = header_params
|
1890
|
+
http_info["post_params"] = form_params
|
1891
|
+
http_info["body"] = body
|
1892
|
+
http_info["response_headers"] = response_headers
|
1893
|
+
|
1894
|
+
return http_info
|
1895
|
+
|
1896
|
+
def upgrade_endpoint_service_async(self, request):
|
1897
|
+
r"""升级终端节点服务
|
1898
|
+
|
1899
|
+
升级终端节点服务,使终端节点服务支持创建专业型终端节点实例
|
1900
|
+
该接口仅支持在华东二、中东-利雅得、华东-青岛、非洲-开罗局点调用。
|
1901
|
+
|
1902
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1903
|
+
|
1904
|
+
|
1905
|
+
:param request: Request instance for UpgradeEndpointService
|
1906
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.UpgradeEndpointServiceRequest`
|
1907
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.UpgradeEndpointServiceResponse`
|
1908
|
+
"""
|
1909
|
+
http_info = self._upgrade_endpoint_service_http_info(request)
|
1910
|
+
return self._call_api(**http_info)
|
1911
|
+
|
1912
|
+
def upgrade_endpoint_service_async_invoker(self, request):
|
1913
|
+
http_info = self._upgrade_endpoint_service_http_info(request)
|
1914
|
+
return AsyncInvoker(self, http_info)
|
1915
|
+
|
1916
|
+
def _upgrade_endpoint_service_http_info(self, request):
|
1917
|
+
http_info = {
|
1918
|
+
"method": "POST",
|
1919
|
+
"resource_path": "/v2/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/upgrade",
|
1920
|
+
"request_type": request.__class__.__name__,
|
1921
|
+
"response_type": "UpgradeEndpointServiceResponse"
|
1922
|
+
}
|
1923
|
+
|
1924
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1925
|
+
|
1926
|
+
cname = None
|
1927
|
+
|
1928
|
+
collection_formats = {}
|
1929
|
+
|
1930
|
+
path_params = {}
|
1931
|
+
if 'vpc_endpoint_service_id' in local_var_params:
|
1932
|
+
path_params['vpc_endpoint_service_id'] = local_var_params['vpc_endpoint_service_id']
|
1933
|
+
|
1934
|
+
query_params = []
|
1935
|
+
|
1936
|
+
header_params = {}
|
1937
|
+
|
1938
|
+
form_params = {}
|
1939
|
+
|
1940
|
+
body = None
|
1941
|
+
if isinstance(request, SdkStreamRequest):
|
1942
|
+
body = request.get_file_stream()
|
1943
|
+
|
1944
|
+
response_headers = []
|
1945
|
+
|
1946
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1947
|
+
['application/json'])
|
1948
|
+
|
1949
|
+
auth_settings = []
|
1950
|
+
|
1951
|
+
http_info["cname"] = cname
|
1952
|
+
http_info["collection_formats"] = collection_formats
|
1953
|
+
http_info["path_params"] = path_params
|
1954
|
+
http_info["query_params"] = query_params
|
1955
|
+
http_info["header_params"] = header_params
|
1956
|
+
http_info["post_params"] = form_params
|
1957
|
+
http_info["body"] = body
|
1958
|
+
http_info["response_headers"] = response_headers
|
1959
|
+
|
1960
|
+
return http_info
|
1961
|
+
|
1962
|
+
def batch_add_or_remove_resource_instance_async(self, request):
|
1963
|
+
r"""批量添加或删除资源标签接口
|
1964
|
+
|
1965
|
+
为指定Endpoint Service或Endpoint批量添加或删除标签。
|
1966
|
+
- 一个资源上最多有10个标签。
|
1967
|
+
|
1968
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1969
|
+
|
1970
|
+
|
1971
|
+
:param request: Request instance for BatchAddOrRemoveResourceInstance
|
1972
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.BatchAddOrRemoveResourceInstanceRequest`
|
1973
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.BatchAddOrRemoveResourceInstanceResponse`
|
1974
|
+
"""
|
1975
|
+
http_info = self._batch_add_or_remove_resource_instance_http_info(request)
|
1976
|
+
return self._call_api(**http_info)
|
1977
|
+
|
1978
|
+
def batch_add_or_remove_resource_instance_async_invoker(self, request):
|
1979
|
+
http_info = self._batch_add_or_remove_resource_instance_http_info(request)
|
1980
|
+
return AsyncInvoker(self, http_info)
|
1981
|
+
|
1982
|
+
def _batch_add_or_remove_resource_instance_http_info(self, request):
|
1983
|
+
http_info = {
|
1984
|
+
"method": "POST",
|
1985
|
+
"resource_path": "/v1/{project_id}/{resource_type}/{resource_id}/tags/action",
|
1986
|
+
"request_type": request.__class__.__name__,
|
1987
|
+
"response_type": "BatchAddOrRemoveResourceInstanceResponse"
|
1988
|
+
}
|
1989
|
+
|
1990
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1991
|
+
|
1992
|
+
cname = None
|
1993
|
+
|
1994
|
+
collection_formats = {}
|
1995
|
+
|
1996
|
+
path_params = {}
|
1997
|
+
if 'resource_type' in local_var_params:
|
1998
|
+
path_params['resource_type'] = local_var_params['resource_type']
|
1999
|
+
if 'resource_id' in local_var_params:
|
2000
|
+
path_params['resource_id'] = local_var_params['resource_id']
|
2001
|
+
|
2002
|
+
query_params = []
|
2003
|
+
|
2004
|
+
header_params = {}
|
2005
|
+
|
2006
|
+
form_params = {}
|
2007
|
+
|
2008
|
+
body = None
|
2009
|
+
if 'body' in local_var_params:
|
2010
|
+
body = local_var_params['body']
|
2011
|
+
if isinstance(request, SdkStreamRequest):
|
2012
|
+
body = request.get_file_stream()
|
2013
|
+
|
2014
|
+
response_headers = []
|
2015
|
+
|
2016
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2017
|
+
['application/json;charset=UTF-8'])
|
2018
|
+
|
2019
|
+
auth_settings = []
|
2020
|
+
|
2021
|
+
http_info["cname"] = cname
|
2022
|
+
http_info["collection_formats"] = collection_formats
|
2023
|
+
http_info["path_params"] = path_params
|
2024
|
+
http_info["query_params"] = query_params
|
2025
|
+
http_info["header_params"] = header_params
|
2026
|
+
http_info["post_params"] = form_params
|
2027
|
+
http_info["body"] = body
|
2028
|
+
http_info["response_headers"] = response_headers
|
2029
|
+
|
2030
|
+
return http_info
|
2031
|
+
|
2032
|
+
def list_query_project_resource_tags_async(self, request):
|
2033
|
+
r"""查询租户资源标签接口
|
2034
|
+
|
2035
|
+
根据租户ID和资源类型,获取租户下资源的标签。
|
2036
|
+
|
2037
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2038
|
+
|
2039
|
+
|
2040
|
+
:param request: Request instance for ListQueryProjectResourceTags
|
2041
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.ListQueryProjectResourceTagsRequest`
|
2042
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.ListQueryProjectResourceTagsResponse`
|
2043
|
+
"""
|
2044
|
+
http_info = self._list_query_project_resource_tags_http_info(request)
|
2045
|
+
return self._call_api(**http_info)
|
2046
|
+
|
2047
|
+
def list_query_project_resource_tags_async_invoker(self, request):
|
2048
|
+
http_info = self._list_query_project_resource_tags_http_info(request)
|
2049
|
+
return AsyncInvoker(self, http_info)
|
2050
|
+
|
2051
|
+
def _list_query_project_resource_tags_http_info(self, request):
|
2052
|
+
http_info = {
|
2053
|
+
"method": "GET",
|
2054
|
+
"resource_path": "/v1/{project_id}/{resource_type}/tags",
|
2055
|
+
"request_type": request.__class__.__name__,
|
2056
|
+
"response_type": "ListQueryProjectResourceTagsResponse"
|
2057
|
+
}
|
2058
|
+
|
2059
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2060
|
+
|
2061
|
+
cname = None
|
2062
|
+
|
2063
|
+
collection_formats = {}
|
2064
|
+
|
2065
|
+
path_params = {}
|
2066
|
+
if 'resource_type' in local_var_params:
|
2067
|
+
path_params['resource_type'] = local_var_params['resource_type']
|
2068
|
+
|
2069
|
+
query_params = []
|
2070
|
+
|
2071
|
+
header_params = {}
|
2072
|
+
|
2073
|
+
form_params = {}
|
2074
|
+
|
2075
|
+
body = None
|
2076
|
+
if isinstance(request, SdkStreamRequest):
|
2077
|
+
body = request.get_file_stream()
|
2078
|
+
|
2079
|
+
response_headers = []
|
2080
|
+
|
2081
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2082
|
+
['application/json'])
|
2083
|
+
|
2084
|
+
auth_settings = []
|
2085
|
+
|
2086
|
+
http_info["cname"] = cname
|
2087
|
+
http_info["collection_formats"] = collection_formats
|
2088
|
+
http_info["path_params"] = path_params
|
2089
|
+
http_info["query_params"] = query_params
|
2090
|
+
http_info["header_params"] = header_params
|
2091
|
+
http_info["post_params"] = form_params
|
2092
|
+
http_info["body"] = body
|
2093
|
+
http_info["response_headers"] = response_headers
|
2094
|
+
|
2095
|
+
return http_info
|
2096
|
+
|
2097
|
+
def list_resource_instances_async(self, request):
|
2098
|
+
r"""查询资源实例接口
|
2099
|
+
|
2100
|
+
使用标签过滤查询租户下资源的实例。
|
2101
|
+
|
2102
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2103
|
+
|
2104
|
+
|
2105
|
+
:param request: Request instance for ListResourceInstances
|
2106
|
+
:type request: :class:`huaweicloudsdkvpcep.v1.ListResourceInstancesRequest`
|
2107
|
+
:rtype: :class:`huaweicloudsdkvpcep.v1.ListResourceInstancesResponse`
|
2108
|
+
"""
|
2109
|
+
http_info = self._list_resource_instances_http_info(request)
|
2110
|
+
return self._call_api(**http_info)
|
2111
|
+
|
2112
|
+
def list_resource_instances_async_invoker(self, request):
|
2113
|
+
http_info = self._list_resource_instances_http_info(request)
|
2114
|
+
return AsyncInvoker(self, http_info)
|
2115
|
+
|
2116
|
+
def _list_resource_instances_http_info(self, request):
|
2117
|
+
http_info = {
|
2118
|
+
"method": "POST",
|
2119
|
+
"resource_path": "/v1/{project_id}/{resource_type}/resource_instances/action",
|
2120
|
+
"request_type": request.__class__.__name__,
|
2121
|
+
"response_type": "ListResourceInstancesResponse"
|
2122
|
+
}
|
2123
|
+
|
2124
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2125
|
+
|
2126
|
+
cname = None
|
2127
|
+
|
2128
|
+
collection_formats = {}
|
2129
|
+
|
2130
|
+
path_params = {}
|
2131
|
+
if 'resource_type' in local_var_params:
|
2132
|
+
path_params['resource_type'] = local_var_params['resource_type']
|
2133
|
+
|
2134
|
+
query_params = []
|
2135
|
+
|
2136
|
+
header_params = {}
|
2137
|
+
|
2138
|
+
form_params = {}
|
2139
|
+
|
2140
|
+
body = None
|
2141
|
+
if 'body' in local_var_params:
|
2142
|
+
body = local_var_params['body']
|
2143
|
+
if isinstance(request, SdkStreamRequest):
|
2144
|
+
body = request.get_file_stream()
|
2145
|
+
|
2146
|
+
response_headers = []
|
2147
|
+
|
2148
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2149
|
+
['application/json;charset=UTF-8'])
|
2150
|
+
|
2151
|
+
auth_settings = []
|
2152
|
+
|
2153
|
+
http_info["cname"] = cname
|
2154
|
+
http_info["collection_formats"] = collection_formats
|
2155
|
+
http_info["path_params"] = path_params
|
2156
|
+
http_info["query_params"] = query_params
|
2157
|
+
http_info["header_params"] = header_params
|
2158
|
+
http_info["post_params"] = form_params
|
2159
|
+
http_info["body"] = body
|
2160
|
+
http_info["response_headers"] = response_headers
|
2161
|
+
|
2162
|
+
return http_info
|
2163
|
+
|
2164
|
+
def _call_api(self, **kwargs):
|
2165
|
+
try:
|
2166
|
+
kwargs["async_request"] = True
|
2167
|
+
return self.do_http_request(**kwargs)
|
2168
|
+
except TypeError:
|
2169
|
+
import inspect
|
2170
|
+
params = inspect.signature(self.do_http_request).parameters
|
2171
|
+
http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
|
2172
|
+
return self.do_http_request(**http_info)
|
2173
|
+
|
2174
|
+
def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
|
2175
|
+
post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
|
2176
|
+
collection_formats=None, request_type=None):
|
2177
|
+
"""Makes the HTTP request and returns deserialized data.
|
2178
|
+
|
2179
|
+
:param resource_path: Path to method endpoint.
|
2180
|
+
:param method: Method to call.
|
2181
|
+
:param path_params: Path parameters in the url.
|
2182
|
+
:param query_params: Query parameters in the url.
|
2183
|
+
:param header_params: Header parameters to be
|
2184
|
+
placed in the request header.
|
2185
|
+
:param body: Request body.
|
2186
|
+
:param post_params: Request post form parameters,
|
2187
|
+
for `application/x-www-form-urlencoded`, `multipart/form-data`.
|
2188
|
+
:param cname: Used for obs endpoint.
|
2189
|
+
:param auth_settings: Auth Settings names for the request.
|
2190
|
+
:param response_type: Response data type.
|
2191
|
+
:param response_headers: Header should be added to response data.
|
2192
|
+
:param collection_formats: dict of collection formats for path, query,
|
2193
|
+
header, and post parameters.
|
2194
|
+
:param request_type: Request data type.
|
2195
|
+
:return:
|
2196
|
+
Return the response directly.
|
2197
|
+
"""
|
2198
|
+
return self.do_http_request(
|
2199
|
+
method=method,
|
2200
|
+
resource_path=resource_path,
|
2201
|
+
path_params=path_params,
|
2202
|
+
query_params=query_params,
|
2203
|
+
header_params=header_params,
|
2204
|
+
body=body,
|
2205
|
+
post_params=post_params,
|
2206
|
+
cname=cname,
|
2207
|
+
response_type=response_type,
|
2208
|
+
response_headers=response_headers,
|
2209
|
+
collection_formats=collection_formats,
|
2210
|
+
request_type=request_type,
|
2211
|
+
async_request=True)
|