huaweicloudsdktics 3.1.181__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.
- huaweicloudsdktics/__init__.py +0 -0
- huaweicloudsdktics/v1/__init__.py +74 -0
- huaweicloudsdktics/v1/model/__init__.py +71 -0
- huaweicloudsdktics/v1/model/agent_list_vo.py +514 -0
- huaweicloudsdktics/v1/model/deploy_vo.py +221 -0
- huaweicloudsdktics/v1/model/fl_job_list_vo.py +450 -0
- huaweicloudsdktics/v1/model/job_report_base_info_vo.py +249 -0
- huaweicloudsdktics/v1/model/job_report_env_vo.py +224 -0
- huaweicloudsdktics/v1/model/job_report_output_vo.py +166 -0
- huaweicloudsdktics/v1/model/job_report_partner_vo.py +224 -0
- huaweicloudsdktics/v1/model/league_dataset_statistics_vo.py +253 -0
- huaweicloudsdktics/v1/model/league_partner_statistics_vo.py +311 -0
- huaweicloudsdktics/v1/model/league_update_vo.py +166 -0
- huaweicloudsdktics/v1/model/list_agents_request.py +193 -0
- huaweicloudsdktics/v1/model/list_agents_response.py +141 -0
- huaweicloudsdktics/v1/model/list_audit_info_request.py +163 -0
- huaweicloudsdktics/v1/model/list_audit_info_response.py +141 -0
- huaweicloudsdktics/v1/model/list_fl_job_request.py +163 -0
- huaweicloudsdktics/v1/model/list_fl_job_response.py +141 -0
- huaweicloudsdktics/v1/model/list_instance_history_request.py +192 -0
- huaweicloudsdktics/v1/model/list_instance_history_response.py +141 -0
- huaweicloudsdktics/v1/model/list_league_datasets_request.py +221 -0
- huaweicloudsdktics/v1/model/list_league_datasets_response.py +141 -0
- huaweicloudsdktics/v1/model/list_leagues_request.py +163 -0
- huaweicloudsdktics/v1/model/list_leagues_response.py +141 -0
- huaweicloudsdktics/v1/model/list_nodes_request.py +163 -0
- huaweicloudsdktics/v1/model/list_nodes_response.py +141 -0
- huaweicloudsdktics/v1/model/list_notices_request.py +135 -0
- huaweicloudsdktics/v1/model/list_notices_response.py +141 -0
- huaweicloudsdktics/v1/model/list_partners_request.py +163 -0
- huaweicloudsdktics/v1/model/list_partners_response.py +141 -0
- huaweicloudsdktics/v1/model/list_sql_job_request.py +163 -0
- huaweicloudsdktics/v1/model/list_sql_job_response.py +141 -0
- huaweicloudsdktics/v1/model/partner_data_vo.py +282 -0
- huaweicloudsdktics/v1/model/processor_vo.py +367 -0
- huaweicloudsdktics/v1/model/round_deploy_vo.py +137 -0
- huaweicloudsdktics/v1/model/show_agent_detail_request.py +107 -0
- huaweicloudsdktics/v1/model/show_agent_detail_response.py +208 -0
- huaweicloudsdktics/v1/model/show_dataset_statistics_request.py +165 -0
- huaweicloudsdktics/v1/model/show_dataset_statistics_response.py +108 -0
- huaweicloudsdktics/v1/model/show_instance_report_request.py +135 -0
- huaweicloudsdktics/v1/model/show_instance_report_response.py +216 -0
- huaweicloudsdktics/v1/model/show_job_instance_dag_request.py +163 -0
- huaweicloudsdktics/v1/model/show_job_instance_dag_response.py +108 -0
- huaweicloudsdktics/v1/model/show_job_statistics_request.py +165 -0
- huaweicloudsdktics/v1/model/show_job_statistics_response.py +228 -0
- huaweicloudsdktics/v1/model/show_league_request.py +107 -0
- huaweicloudsdktics/v1/model/show_league_response.py +721 -0
- huaweicloudsdktics/v1/model/show_overview_request.py +77 -0
- huaweicloudsdktics/v1/model/show_overview_response.py +199 -0
- huaweicloudsdktics/v1/model/show_partner_statistics_request.py +165 -0
- huaweicloudsdktics/v1/model/show_partner_statistics_response.py +108 -0
- huaweicloudsdktics/v1/model/stage_vo.py +194 -0
- huaweicloudsdktics/v1/model/tics_agent_deploy.py +717 -0
- huaweicloudsdktics/v1/model/tics_agent_deploy_bcs.py +282 -0
- huaweicloudsdktics/v1/model/tics_agent_deploy_detail.py +456 -0
- huaweicloudsdktics/v1/model/tics_agent_nat_common_info.py +195 -0
- huaweicloudsdktics/v1/model/tics_agent_node_info.py +485 -0
- huaweicloudsdktics/v1/model/tics_approve_log_vo.py +477 -0
- huaweicloudsdktics/v1/model/tics_dataset_column.py +398 -0
- huaweicloudsdktics/v1/model/tics_job_instance_vo.py +394 -0
- huaweicloudsdktics/v1/model/tics_league_audit_log.py +369 -0
- huaweicloudsdktics/v1/model/tics_league_list_vo.py +536 -0
- huaweicloudsdktics/v1/model/tics_league_notice_vo.py +423 -0
- huaweicloudsdktics/v1/model/tics_league_partner_vo.py +195 -0
- huaweicloudsdktics/v1/model/tics_sql_job_vo.py +476 -0
- huaweicloudsdktics/v1/model/tics_trust_info_vo.py +340 -0
- huaweicloudsdktics/v1/model/update_league_request.py +132 -0
- huaweicloudsdktics/v1/model/update_league_response.py +108 -0
- huaweicloudsdktics/v1/region/__init__.py +0 -0
- huaweicloudsdktics/v1/region/tics_region.py +34 -0
- huaweicloudsdktics/v1/tics_async_client.py +1382 -0
- huaweicloudsdktics/v1/tics_client.py +1379 -0
- huaweicloudsdktics-3.1.181.dist-info/METADATA +25 -0
- huaweicloudsdktics-3.1.181.dist-info/RECORD +77 -0
- huaweicloudsdktics-3.1.181.dist-info/WHEEL +4 -0
- huaweicloudsdktics-3.1.181.dist-info/licenses/LICENSE +13 -0
|
@@ -0,0 +1,1382 @@
|
|
|
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 'huaweicloudsdktics'")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class TicsAsyncClient(Client):
|
|
19
|
+
def __init__(self):
|
|
20
|
+
super().__init__()
|
|
21
|
+
self.model_package = importlib.import_module("huaweicloudsdktics.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__ != "TicsAsyncClient":
|
|
29
|
+
raise TypeError("client type error, support client type is TicsAsyncClient")
|
|
30
|
+
client_builder = ClientBuilder(clazz)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
return client_builder
|
|
35
|
+
|
|
36
|
+
def list_agents_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 ListAgents
|
|
45
|
+
:type request: :class:`huaweicloudsdktics.v1.ListAgentsRequest`
|
|
46
|
+
:rtype: :class:`huaweicloudsdktics.v1.ListAgentsResponse`
|
|
47
|
+
"""
|
|
48
|
+
http_info = self._list_agents_http_info(request)
|
|
49
|
+
return self._call_api(**http_info)
|
|
50
|
+
|
|
51
|
+
def list_agents_async_invoker(self, request):
|
|
52
|
+
http_info = self._list_agents_http_info(request)
|
|
53
|
+
return AsyncInvoker(self, http_info)
|
|
54
|
+
|
|
55
|
+
def _list_agents_http_info(self, request):
|
|
56
|
+
http_info = {
|
|
57
|
+
"method": "GET",
|
|
58
|
+
"resource_path": "/v1/{project_id}/agents",
|
|
59
|
+
"request_type": request.__class__.__name__,
|
|
60
|
+
"response_type": "ListAgentsResponse"
|
|
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
|
+
|
|
71
|
+
query_params = []
|
|
72
|
+
if 'limit' in local_var_params:
|
|
73
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
74
|
+
if 'offset' in local_var_params:
|
|
75
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
76
|
+
if 'agent_name' in local_var_params:
|
|
77
|
+
query_params.append(('agent_name', local_var_params['agent_name']))
|
|
78
|
+
if 'league_name' in local_var_params:
|
|
79
|
+
query_params.append(('league_name', local_var_params['league_name']))
|
|
80
|
+
|
|
81
|
+
header_params = {}
|
|
82
|
+
|
|
83
|
+
form_params = {}
|
|
84
|
+
|
|
85
|
+
body = None
|
|
86
|
+
if isinstance(request, SdkStreamRequest):
|
|
87
|
+
body = request.get_file_stream()
|
|
88
|
+
|
|
89
|
+
response_headers = []
|
|
90
|
+
|
|
91
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
92
|
+
['application/json'])
|
|
93
|
+
|
|
94
|
+
auth_settings = []
|
|
95
|
+
|
|
96
|
+
http_info["cname"] = cname
|
|
97
|
+
http_info["collection_formats"] = collection_formats
|
|
98
|
+
http_info["path_params"] = path_params
|
|
99
|
+
http_info["query_params"] = query_params
|
|
100
|
+
http_info["header_params"] = header_params
|
|
101
|
+
http_info["post_params"] = form_params
|
|
102
|
+
http_info["body"] = body
|
|
103
|
+
http_info["response_headers"] = response_headers
|
|
104
|
+
|
|
105
|
+
return http_info
|
|
106
|
+
|
|
107
|
+
def list_audit_info_async(self, request):
|
|
108
|
+
r"""查询审计日志
|
|
109
|
+
|
|
110
|
+
查询审计日志信息
|
|
111
|
+
|
|
112
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:param request: Request instance for ListAuditInfo
|
|
116
|
+
:type request: :class:`huaweicloudsdktics.v1.ListAuditInfoRequest`
|
|
117
|
+
:rtype: :class:`huaweicloudsdktics.v1.ListAuditInfoResponse`
|
|
118
|
+
"""
|
|
119
|
+
http_info = self._list_audit_info_http_info(request)
|
|
120
|
+
return self._call_api(**http_info)
|
|
121
|
+
|
|
122
|
+
def list_audit_info_async_invoker(self, request):
|
|
123
|
+
http_info = self._list_audit_info_http_info(request)
|
|
124
|
+
return AsyncInvoker(self, http_info)
|
|
125
|
+
|
|
126
|
+
def _list_audit_info_http_info(self, request):
|
|
127
|
+
http_info = {
|
|
128
|
+
"method": "GET",
|
|
129
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}/audit-info",
|
|
130
|
+
"request_type": request.__class__.__name__,
|
|
131
|
+
"response_type": "ListAuditInfoResponse"
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
135
|
+
|
|
136
|
+
cname = None
|
|
137
|
+
|
|
138
|
+
collection_formats = {}
|
|
139
|
+
|
|
140
|
+
path_params = {}
|
|
141
|
+
if 'league_id' in local_var_params:
|
|
142
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
143
|
+
|
|
144
|
+
query_params = []
|
|
145
|
+
if 'limit' in local_var_params:
|
|
146
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
147
|
+
if 'offset' in local_var_params:
|
|
148
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
149
|
+
|
|
150
|
+
header_params = {}
|
|
151
|
+
|
|
152
|
+
form_params = {}
|
|
153
|
+
|
|
154
|
+
body = None
|
|
155
|
+
if isinstance(request, SdkStreamRequest):
|
|
156
|
+
body = request.get_file_stream()
|
|
157
|
+
|
|
158
|
+
response_headers = []
|
|
159
|
+
|
|
160
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
161
|
+
['application/json'])
|
|
162
|
+
|
|
163
|
+
auth_settings = []
|
|
164
|
+
|
|
165
|
+
http_info["cname"] = cname
|
|
166
|
+
http_info["collection_formats"] = collection_formats
|
|
167
|
+
http_info["path_params"] = path_params
|
|
168
|
+
http_info["query_params"] = query_params
|
|
169
|
+
http_info["header_params"] = header_params
|
|
170
|
+
http_info["post_params"] = form_params
|
|
171
|
+
http_info["body"] = body
|
|
172
|
+
http_info["response_headers"] = response_headers
|
|
173
|
+
|
|
174
|
+
return http_info
|
|
175
|
+
|
|
176
|
+
def list_fl_job_async(self, request):
|
|
177
|
+
r"""查询联邦学习作业列表
|
|
178
|
+
|
|
179
|
+
查询联邦学习作业列表
|
|
180
|
+
|
|
181
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:param request: Request instance for ListFlJob
|
|
185
|
+
:type request: :class:`huaweicloudsdktics.v1.ListFlJobRequest`
|
|
186
|
+
:rtype: :class:`huaweicloudsdktics.v1.ListFlJobResponse`
|
|
187
|
+
"""
|
|
188
|
+
http_info = self._list_fl_job_http_info(request)
|
|
189
|
+
return self._call_api(**http_info)
|
|
190
|
+
|
|
191
|
+
def list_fl_job_async_invoker(self, request):
|
|
192
|
+
http_info = self._list_fl_job_http_info(request)
|
|
193
|
+
return AsyncInvoker(self, http_info)
|
|
194
|
+
|
|
195
|
+
def _list_fl_job_http_info(self, request):
|
|
196
|
+
http_info = {
|
|
197
|
+
"method": "GET",
|
|
198
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}/fl-jobs",
|
|
199
|
+
"request_type": request.__class__.__name__,
|
|
200
|
+
"response_type": "ListFlJobResponse"
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
204
|
+
|
|
205
|
+
cname = None
|
|
206
|
+
|
|
207
|
+
collection_formats = {}
|
|
208
|
+
|
|
209
|
+
path_params = {}
|
|
210
|
+
if 'league_id' in local_var_params:
|
|
211
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
212
|
+
|
|
213
|
+
query_params = []
|
|
214
|
+
if 'limit' in local_var_params:
|
|
215
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
216
|
+
if 'offset' in local_var_params:
|
|
217
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
218
|
+
|
|
219
|
+
header_params = {}
|
|
220
|
+
|
|
221
|
+
form_params = {}
|
|
222
|
+
|
|
223
|
+
body = None
|
|
224
|
+
if isinstance(request, SdkStreamRequest):
|
|
225
|
+
body = request.get_file_stream()
|
|
226
|
+
|
|
227
|
+
response_headers = []
|
|
228
|
+
|
|
229
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
230
|
+
['application/json'])
|
|
231
|
+
|
|
232
|
+
auth_settings = []
|
|
233
|
+
|
|
234
|
+
http_info["cname"] = cname
|
|
235
|
+
http_info["collection_formats"] = collection_formats
|
|
236
|
+
http_info["path_params"] = path_params
|
|
237
|
+
http_info["query_params"] = query_params
|
|
238
|
+
http_info["header_params"] = header_params
|
|
239
|
+
http_info["post_params"] = form_params
|
|
240
|
+
http_info["body"] = body
|
|
241
|
+
http_info["response_headers"] = response_headers
|
|
242
|
+
|
|
243
|
+
return http_info
|
|
244
|
+
|
|
245
|
+
def list_instance_history_async(self, request):
|
|
246
|
+
r"""查询作业的历史实例列表
|
|
247
|
+
|
|
248
|
+
查询作业的历史实例列表
|
|
249
|
+
|
|
250
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
:param request: Request instance for ListInstanceHistory
|
|
254
|
+
:type request: :class:`huaweicloudsdktics.v1.ListInstanceHistoryRequest`
|
|
255
|
+
:rtype: :class:`huaweicloudsdktics.v1.ListInstanceHistoryResponse`
|
|
256
|
+
"""
|
|
257
|
+
http_info = self._list_instance_history_http_info(request)
|
|
258
|
+
return self._call_api(**http_info)
|
|
259
|
+
|
|
260
|
+
def list_instance_history_async_invoker(self, request):
|
|
261
|
+
http_info = self._list_instance_history_http_info(request)
|
|
262
|
+
return AsyncInvoker(self, http_info)
|
|
263
|
+
|
|
264
|
+
def _list_instance_history_http_info(self, request):
|
|
265
|
+
http_info = {
|
|
266
|
+
"method": "GET",
|
|
267
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}/job-instances",
|
|
268
|
+
"request_type": request.__class__.__name__,
|
|
269
|
+
"response_type": "ListInstanceHistoryResponse"
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
273
|
+
|
|
274
|
+
cname = None
|
|
275
|
+
|
|
276
|
+
collection_formats = {}
|
|
277
|
+
|
|
278
|
+
path_params = {}
|
|
279
|
+
if 'league_id' in local_var_params:
|
|
280
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
281
|
+
|
|
282
|
+
query_params = []
|
|
283
|
+
if 'limit' in local_var_params:
|
|
284
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
285
|
+
if 'offset' in local_var_params:
|
|
286
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
287
|
+
if 'job_id' in local_var_params:
|
|
288
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
|
289
|
+
|
|
290
|
+
header_params = {}
|
|
291
|
+
|
|
292
|
+
form_params = {}
|
|
293
|
+
|
|
294
|
+
body = None
|
|
295
|
+
if isinstance(request, SdkStreamRequest):
|
|
296
|
+
body = request.get_file_stream()
|
|
297
|
+
|
|
298
|
+
response_headers = []
|
|
299
|
+
|
|
300
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
301
|
+
['application/json'])
|
|
302
|
+
|
|
303
|
+
auth_settings = []
|
|
304
|
+
|
|
305
|
+
http_info["cname"] = cname
|
|
306
|
+
http_info["collection_formats"] = collection_formats
|
|
307
|
+
http_info["path_params"] = path_params
|
|
308
|
+
http_info["query_params"] = query_params
|
|
309
|
+
http_info["header_params"] = header_params
|
|
310
|
+
http_info["post_params"] = form_params
|
|
311
|
+
http_info["body"] = body
|
|
312
|
+
http_info["response_headers"] = response_headers
|
|
313
|
+
|
|
314
|
+
return http_info
|
|
315
|
+
|
|
316
|
+
def list_league_datasets_async(self, request):
|
|
317
|
+
r"""查询联盟已注册数据集列表
|
|
318
|
+
|
|
319
|
+
功能描述:用户可以使用该接口查询联盟已注册数据集列表。
|
|
320
|
+
|
|
321
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
:param request: Request instance for ListLeagueDatasets
|
|
325
|
+
:type request: :class:`huaweicloudsdktics.v1.ListLeagueDatasetsRequest`
|
|
326
|
+
:rtype: :class:`huaweicloudsdktics.v1.ListLeagueDatasetsResponse`
|
|
327
|
+
"""
|
|
328
|
+
http_info = self._list_league_datasets_http_info(request)
|
|
329
|
+
return self._call_api(**http_info)
|
|
330
|
+
|
|
331
|
+
def list_league_datasets_async_invoker(self, request):
|
|
332
|
+
http_info = self._list_league_datasets_http_info(request)
|
|
333
|
+
return AsyncInvoker(self, http_info)
|
|
334
|
+
|
|
335
|
+
def _list_league_datasets_http_info(self, request):
|
|
336
|
+
http_info = {
|
|
337
|
+
"method": "GET",
|
|
338
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}/datasets",
|
|
339
|
+
"request_type": request.__class__.__name__,
|
|
340
|
+
"response_type": "ListLeagueDatasetsResponse"
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
344
|
+
|
|
345
|
+
cname = None
|
|
346
|
+
|
|
347
|
+
collection_formats = {}
|
|
348
|
+
|
|
349
|
+
path_params = {}
|
|
350
|
+
if 'league_id' in local_var_params:
|
|
351
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
352
|
+
|
|
353
|
+
query_params = []
|
|
354
|
+
if 'offset' in local_var_params:
|
|
355
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
356
|
+
if 'limit' in local_var_params:
|
|
357
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
358
|
+
if 'dataset_name' in local_var_params:
|
|
359
|
+
query_params.append(('dataset_name', local_var_params['dataset_name']))
|
|
360
|
+
if 'partner_name' in local_var_params:
|
|
361
|
+
query_params.append(('partner_name', local_var_params['partner_name']))
|
|
362
|
+
|
|
363
|
+
header_params = {}
|
|
364
|
+
|
|
365
|
+
form_params = {}
|
|
366
|
+
|
|
367
|
+
body = None
|
|
368
|
+
if isinstance(request, SdkStreamRequest):
|
|
369
|
+
body = request.get_file_stream()
|
|
370
|
+
|
|
371
|
+
response_headers = []
|
|
372
|
+
|
|
373
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
374
|
+
['application/json'])
|
|
375
|
+
|
|
376
|
+
auth_settings = []
|
|
377
|
+
|
|
378
|
+
http_info["cname"] = cname
|
|
379
|
+
http_info["collection_formats"] = collection_formats
|
|
380
|
+
http_info["path_params"] = path_params
|
|
381
|
+
http_info["query_params"] = query_params
|
|
382
|
+
http_info["header_params"] = header_params
|
|
383
|
+
http_info["post_params"] = form_params
|
|
384
|
+
http_info["body"] = body
|
|
385
|
+
http_info["response_headers"] = response_headers
|
|
386
|
+
|
|
387
|
+
return http_info
|
|
388
|
+
|
|
389
|
+
def list_leagues_async(self, request):
|
|
390
|
+
r"""获取联盟列表
|
|
391
|
+
|
|
392
|
+
功能描述:用户可以使用该接口获取联盟列表。
|
|
393
|
+
|
|
394
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
:param request: Request instance for ListLeagues
|
|
398
|
+
:type request: :class:`huaweicloudsdktics.v1.ListLeaguesRequest`
|
|
399
|
+
:rtype: :class:`huaweicloudsdktics.v1.ListLeaguesResponse`
|
|
400
|
+
"""
|
|
401
|
+
http_info = self._list_leagues_http_info(request)
|
|
402
|
+
return self._call_api(**http_info)
|
|
403
|
+
|
|
404
|
+
def list_leagues_async_invoker(self, request):
|
|
405
|
+
http_info = self._list_leagues_http_info(request)
|
|
406
|
+
return AsyncInvoker(self, http_info)
|
|
407
|
+
|
|
408
|
+
def _list_leagues_http_info(self, request):
|
|
409
|
+
http_info = {
|
|
410
|
+
"method": "GET",
|
|
411
|
+
"resource_path": "/v1/{project_id}/league-info",
|
|
412
|
+
"request_type": request.__class__.__name__,
|
|
413
|
+
"response_type": "ListLeaguesResponse"
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
417
|
+
|
|
418
|
+
cname = None
|
|
419
|
+
|
|
420
|
+
collection_formats = {}
|
|
421
|
+
|
|
422
|
+
path_params = {}
|
|
423
|
+
|
|
424
|
+
query_params = []
|
|
425
|
+
if 'limit' in local_var_params:
|
|
426
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
427
|
+
if 'offset' in local_var_params:
|
|
428
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
429
|
+
if 'type' in local_var_params:
|
|
430
|
+
query_params.append(('type', local_var_params['type']))
|
|
431
|
+
|
|
432
|
+
header_params = {}
|
|
433
|
+
|
|
434
|
+
form_params = {}
|
|
435
|
+
|
|
436
|
+
body = None
|
|
437
|
+
if isinstance(request, SdkStreamRequest):
|
|
438
|
+
body = request.get_file_stream()
|
|
439
|
+
|
|
440
|
+
response_headers = []
|
|
441
|
+
|
|
442
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
443
|
+
['application/json'])
|
|
444
|
+
|
|
445
|
+
auth_settings = []
|
|
446
|
+
|
|
447
|
+
http_info["cname"] = cname
|
|
448
|
+
http_info["collection_formats"] = collection_formats
|
|
449
|
+
http_info["path_params"] = path_params
|
|
450
|
+
http_info["query_params"] = query_params
|
|
451
|
+
http_info["header_params"] = header_params
|
|
452
|
+
http_info["post_params"] = form_params
|
|
453
|
+
http_info["body"] = body
|
|
454
|
+
http_info["response_headers"] = response_headers
|
|
455
|
+
|
|
456
|
+
return http_info
|
|
457
|
+
|
|
458
|
+
def list_nodes_async(self, request):
|
|
459
|
+
r"""查询联盟节点列表
|
|
460
|
+
|
|
461
|
+
功能描述:用户可以使用该接口查询联盟可信节点(包含聚合节点和计算节点)列表。
|
|
462
|
+
|
|
463
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
:param request: Request instance for ListNodes
|
|
467
|
+
:type request: :class:`huaweicloudsdktics.v1.ListNodesRequest`
|
|
468
|
+
:rtype: :class:`huaweicloudsdktics.v1.ListNodesResponse`
|
|
469
|
+
"""
|
|
470
|
+
http_info = self._list_nodes_http_info(request)
|
|
471
|
+
return self._call_api(**http_info)
|
|
472
|
+
|
|
473
|
+
def list_nodes_async_invoker(self, request):
|
|
474
|
+
http_info = self._list_nodes_http_info(request)
|
|
475
|
+
return AsyncInvoker(self, http_info)
|
|
476
|
+
|
|
477
|
+
def _list_nodes_http_info(self, request):
|
|
478
|
+
http_info = {
|
|
479
|
+
"method": "GET",
|
|
480
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}/nodes",
|
|
481
|
+
"request_type": request.__class__.__name__,
|
|
482
|
+
"response_type": "ListNodesResponse"
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
486
|
+
|
|
487
|
+
cname = None
|
|
488
|
+
|
|
489
|
+
collection_formats = {}
|
|
490
|
+
|
|
491
|
+
path_params = {}
|
|
492
|
+
if 'league_id' in local_var_params:
|
|
493
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
494
|
+
|
|
495
|
+
query_params = []
|
|
496
|
+
if 'offset' in local_var_params:
|
|
497
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
498
|
+
if 'limit' in local_var_params:
|
|
499
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
500
|
+
|
|
501
|
+
header_params = {}
|
|
502
|
+
|
|
503
|
+
form_params = {}
|
|
504
|
+
|
|
505
|
+
body = None
|
|
506
|
+
if isinstance(request, SdkStreamRequest):
|
|
507
|
+
body = request.get_file_stream()
|
|
508
|
+
|
|
509
|
+
response_headers = []
|
|
510
|
+
|
|
511
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
512
|
+
['application/json'])
|
|
513
|
+
|
|
514
|
+
auth_settings = []
|
|
515
|
+
|
|
516
|
+
http_info["cname"] = cname
|
|
517
|
+
http_info["collection_formats"] = collection_formats
|
|
518
|
+
http_info["path_params"] = path_params
|
|
519
|
+
http_info["query_params"] = query_params
|
|
520
|
+
http_info["header_params"] = header_params
|
|
521
|
+
http_info["post_params"] = form_params
|
|
522
|
+
http_info["body"] = body
|
|
523
|
+
http_info["response_headers"] = response_headers
|
|
524
|
+
|
|
525
|
+
return http_info
|
|
526
|
+
|
|
527
|
+
def list_notices_async(self, request):
|
|
528
|
+
r"""查询通知管理列表
|
|
529
|
+
|
|
530
|
+
功能描述:用户可以使用该接口查询通知管理列表。
|
|
531
|
+
|
|
532
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
:param request: Request instance for ListNotices
|
|
536
|
+
:type request: :class:`huaweicloudsdktics.v1.ListNoticesRequest`
|
|
537
|
+
:rtype: :class:`huaweicloudsdktics.v1.ListNoticesResponse`
|
|
538
|
+
"""
|
|
539
|
+
http_info = self._list_notices_http_info(request)
|
|
540
|
+
return self._call_api(**http_info)
|
|
541
|
+
|
|
542
|
+
def list_notices_async_invoker(self, request):
|
|
543
|
+
http_info = self._list_notices_http_info(request)
|
|
544
|
+
return AsyncInvoker(self, http_info)
|
|
545
|
+
|
|
546
|
+
def _list_notices_http_info(self, request):
|
|
547
|
+
http_info = {
|
|
548
|
+
"method": "GET",
|
|
549
|
+
"resource_path": "/v1/{project_id}/notices",
|
|
550
|
+
"request_type": request.__class__.__name__,
|
|
551
|
+
"response_type": "ListNoticesResponse"
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
555
|
+
|
|
556
|
+
cname = None
|
|
557
|
+
|
|
558
|
+
collection_formats = {}
|
|
559
|
+
|
|
560
|
+
path_params = {}
|
|
561
|
+
|
|
562
|
+
query_params = []
|
|
563
|
+
if 'limit' in local_var_params:
|
|
564
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
565
|
+
if 'offset' in local_var_params:
|
|
566
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
567
|
+
|
|
568
|
+
header_params = {}
|
|
569
|
+
|
|
570
|
+
form_params = {}
|
|
571
|
+
|
|
572
|
+
body = None
|
|
573
|
+
if isinstance(request, SdkStreamRequest):
|
|
574
|
+
body = request.get_file_stream()
|
|
575
|
+
|
|
576
|
+
response_headers = []
|
|
577
|
+
|
|
578
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
579
|
+
['application/json'])
|
|
580
|
+
|
|
581
|
+
auth_settings = []
|
|
582
|
+
|
|
583
|
+
http_info["cname"] = cname
|
|
584
|
+
http_info["collection_formats"] = collection_formats
|
|
585
|
+
http_info["path_params"] = path_params
|
|
586
|
+
http_info["query_params"] = query_params
|
|
587
|
+
http_info["header_params"] = header_params
|
|
588
|
+
http_info["post_params"] = form_params
|
|
589
|
+
http_info["body"] = body
|
|
590
|
+
http_info["response_headers"] = response_headers
|
|
591
|
+
|
|
592
|
+
return http_info
|
|
593
|
+
|
|
594
|
+
def list_partners_async(self, request):
|
|
595
|
+
r"""获取联盟组员信息
|
|
596
|
+
|
|
597
|
+
功能描述:用户可以使用该接口获取联盟组员信息
|
|
598
|
+
|
|
599
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
:param request: Request instance for ListPartners
|
|
603
|
+
:type request: :class:`huaweicloudsdktics.v1.ListPartnersRequest`
|
|
604
|
+
:rtype: :class:`huaweicloudsdktics.v1.ListPartnersResponse`
|
|
605
|
+
"""
|
|
606
|
+
http_info = self._list_partners_http_info(request)
|
|
607
|
+
return self._call_api(**http_info)
|
|
608
|
+
|
|
609
|
+
def list_partners_async_invoker(self, request):
|
|
610
|
+
http_info = self._list_partners_http_info(request)
|
|
611
|
+
return AsyncInvoker(self, http_info)
|
|
612
|
+
|
|
613
|
+
def _list_partners_http_info(self, request):
|
|
614
|
+
http_info = {
|
|
615
|
+
"method": "GET",
|
|
616
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}/partners",
|
|
617
|
+
"request_type": request.__class__.__name__,
|
|
618
|
+
"response_type": "ListPartnersResponse"
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
622
|
+
|
|
623
|
+
cname = None
|
|
624
|
+
|
|
625
|
+
collection_formats = {}
|
|
626
|
+
|
|
627
|
+
path_params = {}
|
|
628
|
+
if 'league_id' in local_var_params:
|
|
629
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
630
|
+
|
|
631
|
+
query_params = []
|
|
632
|
+
if 'limit' in local_var_params:
|
|
633
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
634
|
+
if 'offset' in local_var_params:
|
|
635
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
636
|
+
|
|
637
|
+
header_params = {}
|
|
638
|
+
|
|
639
|
+
form_params = {}
|
|
640
|
+
|
|
641
|
+
body = None
|
|
642
|
+
if isinstance(request, SdkStreamRequest):
|
|
643
|
+
body = request.get_file_stream()
|
|
644
|
+
|
|
645
|
+
response_headers = []
|
|
646
|
+
|
|
647
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
648
|
+
['application/json'])
|
|
649
|
+
|
|
650
|
+
auth_settings = []
|
|
651
|
+
|
|
652
|
+
http_info["cname"] = cname
|
|
653
|
+
http_info["collection_formats"] = collection_formats
|
|
654
|
+
http_info["path_params"] = path_params
|
|
655
|
+
http_info["query_params"] = query_params
|
|
656
|
+
http_info["header_params"] = header_params
|
|
657
|
+
http_info["post_params"] = form_params
|
|
658
|
+
http_info["body"] = body
|
|
659
|
+
http_info["response_headers"] = response_headers
|
|
660
|
+
|
|
661
|
+
return http_info
|
|
662
|
+
|
|
663
|
+
def list_sql_job_async(self, request):
|
|
664
|
+
r"""查询联邦分析作业列表
|
|
665
|
+
|
|
666
|
+
查询联邦分析作业列表
|
|
667
|
+
|
|
668
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
:param request: Request instance for ListSqlJob
|
|
672
|
+
:type request: :class:`huaweicloudsdktics.v1.ListSqlJobRequest`
|
|
673
|
+
:rtype: :class:`huaweicloudsdktics.v1.ListSqlJobResponse`
|
|
674
|
+
"""
|
|
675
|
+
http_info = self._list_sql_job_http_info(request)
|
|
676
|
+
return self._call_api(**http_info)
|
|
677
|
+
|
|
678
|
+
def list_sql_job_async_invoker(self, request):
|
|
679
|
+
http_info = self._list_sql_job_http_info(request)
|
|
680
|
+
return AsyncInvoker(self, http_info)
|
|
681
|
+
|
|
682
|
+
def _list_sql_job_http_info(self, request):
|
|
683
|
+
http_info = {
|
|
684
|
+
"method": "GET",
|
|
685
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}/sql-jobs",
|
|
686
|
+
"request_type": request.__class__.__name__,
|
|
687
|
+
"response_type": "ListSqlJobResponse"
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
691
|
+
|
|
692
|
+
cname = None
|
|
693
|
+
|
|
694
|
+
collection_formats = {}
|
|
695
|
+
|
|
696
|
+
path_params = {}
|
|
697
|
+
if 'league_id' in local_var_params:
|
|
698
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
699
|
+
|
|
700
|
+
query_params = []
|
|
701
|
+
if 'limit' in local_var_params:
|
|
702
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
703
|
+
if 'offset' in local_var_params:
|
|
704
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
705
|
+
|
|
706
|
+
header_params = {}
|
|
707
|
+
|
|
708
|
+
form_params = {}
|
|
709
|
+
|
|
710
|
+
body = None
|
|
711
|
+
if isinstance(request, SdkStreamRequest):
|
|
712
|
+
body = request.get_file_stream()
|
|
713
|
+
|
|
714
|
+
response_headers = []
|
|
715
|
+
|
|
716
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
717
|
+
['application/json'])
|
|
718
|
+
|
|
719
|
+
auth_settings = []
|
|
720
|
+
|
|
721
|
+
http_info["cname"] = cname
|
|
722
|
+
http_info["collection_formats"] = collection_formats
|
|
723
|
+
http_info["path_params"] = path_params
|
|
724
|
+
http_info["query_params"] = query_params
|
|
725
|
+
http_info["header_params"] = header_params
|
|
726
|
+
http_info["post_params"] = form_params
|
|
727
|
+
http_info["body"] = body
|
|
728
|
+
http_info["response_headers"] = response_headers
|
|
729
|
+
|
|
730
|
+
return http_info
|
|
731
|
+
|
|
732
|
+
def show_agent_detail_async(self, request):
|
|
733
|
+
r"""获取计算节点详情信息
|
|
734
|
+
|
|
735
|
+
功能描述:用户可以使用该接口获取单个可信计算节点详情信息。
|
|
736
|
+
|
|
737
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
:param request: Request instance for ShowAgentDetail
|
|
741
|
+
:type request: :class:`huaweicloudsdktics.v1.ShowAgentDetailRequest`
|
|
742
|
+
:rtype: :class:`huaweicloudsdktics.v1.ShowAgentDetailResponse`
|
|
743
|
+
"""
|
|
744
|
+
http_info = self._show_agent_detail_http_info(request)
|
|
745
|
+
return self._call_api(**http_info)
|
|
746
|
+
|
|
747
|
+
def show_agent_detail_async_invoker(self, request):
|
|
748
|
+
http_info = self._show_agent_detail_http_info(request)
|
|
749
|
+
return AsyncInvoker(self, http_info)
|
|
750
|
+
|
|
751
|
+
def _show_agent_detail_http_info(self, request):
|
|
752
|
+
http_info = {
|
|
753
|
+
"method": "GET",
|
|
754
|
+
"resource_path": "/v1/{project_id}/agents/{agent_id}",
|
|
755
|
+
"request_type": request.__class__.__name__,
|
|
756
|
+
"response_type": "ShowAgentDetailResponse"
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
760
|
+
|
|
761
|
+
cname = None
|
|
762
|
+
|
|
763
|
+
collection_formats = {}
|
|
764
|
+
|
|
765
|
+
path_params = {}
|
|
766
|
+
if 'agent_id' in local_var_params:
|
|
767
|
+
path_params['agent_id'] = local_var_params['agent_id']
|
|
768
|
+
|
|
769
|
+
query_params = []
|
|
770
|
+
|
|
771
|
+
header_params = {}
|
|
772
|
+
|
|
773
|
+
form_params = {}
|
|
774
|
+
|
|
775
|
+
body = None
|
|
776
|
+
if isinstance(request, SdkStreamRequest):
|
|
777
|
+
body = request.get_file_stream()
|
|
778
|
+
|
|
779
|
+
response_headers = []
|
|
780
|
+
|
|
781
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
782
|
+
['application/json'])
|
|
783
|
+
|
|
784
|
+
auth_settings = []
|
|
785
|
+
|
|
786
|
+
http_info["cname"] = cname
|
|
787
|
+
http_info["collection_formats"] = collection_formats
|
|
788
|
+
http_info["path_params"] = path_params
|
|
789
|
+
http_info["query_params"] = query_params
|
|
790
|
+
http_info["header_params"] = header_params
|
|
791
|
+
http_info["post_params"] = form_params
|
|
792
|
+
http_info["body"] = body
|
|
793
|
+
http_info["response_headers"] = response_headers
|
|
794
|
+
|
|
795
|
+
return http_info
|
|
796
|
+
|
|
797
|
+
def show_dataset_statistics_async(self, request):
|
|
798
|
+
r"""数据集统计
|
|
799
|
+
|
|
800
|
+
用户可以使用该接口进行联盟数据集统计。
|
|
801
|
+
|
|
802
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
:param request: Request instance for ShowDatasetStatistics
|
|
806
|
+
:type request: :class:`huaweicloudsdktics.v1.ShowDatasetStatisticsRequest`
|
|
807
|
+
:rtype: :class:`huaweicloudsdktics.v1.ShowDatasetStatisticsResponse`
|
|
808
|
+
"""
|
|
809
|
+
http_info = self._show_dataset_statistics_http_info(request)
|
|
810
|
+
return self._call_api(**http_info)
|
|
811
|
+
|
|
812
|
+
def show_dataset_statistics_async_invoker(self, request):
|
|
813
|
+
http_info = self._show_dataset_statistics_http_info(request)
|
|
814
|
+
return AsyncInvoker(self, http_info)
|
|
815
|
+
|
|
816
|
+
def _show_dataset_statistics_http_info(self, request):
|
|
817
|
+
http_info = {
|
|
818
|
+
"method": "GET",
|
|
819
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}/datasets-statistics",
|
|
820
|
+
"request_type": request.__class__.__name__,
|
|
821
|
+
"response_type": "ShowDatasetStatisticsResponse"
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
825
|
+
|
|
826
|
+
cname = None
|
|
827
|
+
|
|
828
|
+
collection_formats = {}
|
|
829
|
+
|
|
830
|
+
path_params = {}
|
|
831
|
+
if 'league_id' in local_var_params:
|
|
832
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
833
|
+
|
|
834
|
+
query_params = []
|
|
835
|
+
if 'start_date' in local_var_params:
|
|
836
|
+
query_params.append(('start_date', local_var_params['start_date']))
|
|
837
|
+
if 'end_date' in local_var_params:
|
|
838
|
+
query_params.append(('end_date', local_var_params['end_date']))
|
|
839
|
+
|
|
840
|
+
header_params = {}
|
|
841
|
+
|
|
842
|
+
form_params = {}
|
|
843
|
+
|
|
844
|
+
body = None
|
|
845
|
+
if isinstance(request, SdkStreamRequest):
|
|
846
|
+
body = request.get_file_stream()
|
|
847
|
+
|
|
848
|
+
response_headers = []
|
|
849
|
+
|
|
850
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
851
|
+
['application/json'])
|
|
852
|
+
|
|
853
|
+
auth_settings = []
|
|
854
|
+
|
|
855
|
+
http_info["cname"] = cname
|
|
856
|
+
http_info["collection_formats"] = collection_formats
|
|
857
|
+
http_info["path_params"] = path_params
|
|
858
|
+
http_info["query_params"] = query_params
|
|
859
|
+
http_info["header_params"] = header_params
|
|
860
|
+
http_info["post_params"] = form_params
|
|
861
|
+
http_info["body"] = body
|
|
862
|
+
http_info["response_headers"] = response_headers
|
|
863
|
+
|
|
864
|
+
return http_info
|
|
865
|
+
|
|
866
|
+
def show_instance_report_async(self, request):
|
|
867
|
+
r"""查询实例执行报告
|
|
868
|
+
|
|
869
|
+
查询实例执行报告
|
|
870
|
+
|
|
871
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
:param request: Request instance for ShowInstanceReport
|
|
875
|
+
:type request: :class:`huaweicloudsdktics.v1.ShowInstanceReportRequest`
|
|
876
|
+
:rtype: :class:`huaweicloudsdktics.v1.ShowInstanceReportResponse`
|
|
877
|
+
"""
|
|
878
|
+
http_info = self._show_instance_report_http_info(request)
|
|
879
|
+
return self._call_api(**http_info)
|
|
880
|
+
|
|
881
|
+
def show_instance_report_async_invoker(self, request):
|
|
882
|
+
http_info = self._show_instance_report_http_info(request)
|
|
883
|
+
return AsyncInvoker(self, http_info)
|
|
884
|
+
|
|
885
|
+
def _show_instance_report_http_info(self, request):
|
|
886
|
+
http_info = {
|
|
887
|
+
"method": "GET",
|
|
888
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}/job-instances/{instance_id}/report",
|
|
889
|
+
"request_type": request.__class__.__name__,
|
|
890
|
+
"response_type": "ShowInstanceReportResponse"
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
894
|
+
|
|
895
|
+
cname = None
|
|
896
|
+
|
|
897
|
+
collection_formats = {}
|
|
898
|
+
|
|
899
|
+
path_params = {}
|
|
900
|
+
if 'instance_id' in local_var_params:
|
|
901
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
902
|
+
if 'league_id' in local_var_params:
|
|
903
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
904
|
+
|
|
905
|
+
query_params = []
|
|
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 show_job_instance_dag_async(self, request):
|
|
934
|
+
r"""获取实例执行图
|
|
935
|
+
|
|
936
|
+
获取实例执行图
|
|
937
|
+
|
|
938
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
:param request: Request instance for ShowJobInstanceDag
|
|
942
|
+
:type request: :class:`huaweicloudsdktics.v1.ShowJobInstanceDagRequest`
|
|
943
|
+
:rtype: :class:`huaweicloudsdktics.v1.ShowJobInstanceDagResponse`
|
|
944
|
+
"""
|
|
945
|
+
http_info = self._show_job_instance_dag_http_info(request)
|
|
946
|
+
return self._call_api(**http_info)
|
|
947
|
+
|
|
948
|
+
def show_job_instance_dag_async_invoker(self, request):
|
|
949
|
+
http_info = self._show_job_instance_dag_http_info(request)
|
|
950
|
+
return AsyncInvoker(self, http_info)
|
|
951
|
+
|
|
952
|
+
def _show_job_instance_dag_http_info(self, request):
|
|
953
|
+
http_info = {
|
|
954
|
+
"method": "GET",
|
|
955
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}/job-instances/{instance_id}/dag",
|
|
956
|
+
"request_type": request.__class__.__name__,
|
|
957
|
+
"response_type": "ShowJobInstanceDagResponse"
|
|
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 'instance_id' in local_var_params:
|
|
968
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
|
969
|
+
if 'league_id' in local_var_params:
|
|
970
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
971
|
+
|
|
972
|
+
query_params = []
|
|
973
|
+
if 'round_id' in local_var_params:
|
|
974
|
+
query_params.append(('round_id', local_var_params['round_id']))
|
|
975
|
+
|
|
976
|
+
header_params = {}
|
|
977
|
+
|
|
978
|
+
form_params = {}
|
|
979
|
+
|
|
980
|
+
body = None
|
|
981
|
+
if isinstance(request, SdkStreamRequest):
|
|
982
|
+
body = request.get_file_stream()
|
|
983
|
+
|
|
984
|
+
response_headers = []
|
|
985
|
+
|
|
986
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
987
|
+
['application/json'])
|
|
988
|
+
|
|
989
|
+
auth_settings = []
|
|
990
|
+
|
|
991
|
+
http_info["cname"] = cname
|
|
992
|
+
http_info["collection_formats"] = collection_formats
|
|
993
|
+
http_info["path_params"] = path_params
|
|
994
|
+
http_info["query_params"] = query_params
|
|
995
|
+
http_info["header_params"] = header_params
|
|
996
|
+
http_info["post_params"] = form_params
|
|
997
|
+
http_info["body"] = body
|
|
998
|
+
http_info["response_headers"] = response_headers
|
|
999
|
+
|
|
1000
|
+
return http_info
|
|
1001
|
+
|
|
1002
|
+
def show_job_statistics_async(self, request):
|
|
1003
|
+
r"""作业统计
|
|
1004
|
+
|
|
1005
|
+
功能描述:用户可以使用该接口进行联盟作业统计。
|
|
1006
|
+
|
|
1007
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
:param request: Request instance for ShowJobStatistics
|
|
1011
|
+
:type request: :class:`huaweicloudsdktics.v1.ShowJobStatisticsRequest`
|
|
1012
|
+
:rtype: :class:`huaweicloudsdktics.v1.ShowJobStatisticsResponse`
|
|
1013
|
+
"""
|
|
1014
|
+
http_info = self._show_job_statistics_http_info(request)
|
|
1015
|
+
return self._call_api(**http_info)
|
|
1016
|
+
|
|
1017
|
+
def show_job_statistics_async_invoker(self, request):
|
|
1018
|
+
http_info = self._show_job_statistics_http_info(request)
|
|
1019
|
+
return AsyncInvoker(self, http_info)
|
|
1020
|
+
|
|
1021
|
+
def _show_job_statistics_http_info(self, request):
|
|
1022
|
+
http_info = {
|
|
1023
|
+
"method": "GET",
|
|
1024
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}/jobs-statistics",
|
|
1025
|
+
"request_type": request.__class__.__name__,
|
|
1026
|
+
"response_type": "ShowJobStatisticsResponse"
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1030
|
+
|
|
1031
|
+
cname = None
|
|
1032
|
+
|
|
1033
|
+
collection_formats = {}
|
|
1034
|
+
|
|
1035
|
+
path_params = {}
|
|
1036
|
+
if 'league_id' in local_var_params:
|
|
1037
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
1038
|
+
|
|
1039
|
+
query_params = []
|
|
1040
|
+
if 'start_date' in local_var_params:
|
|
1041
|
+
query_params.append(('start_date', local_var_params['start_date']))
|
|
1042
|
+
if 'end_date' in local_var_params:
|
|
1043
|
+
query_params.append(('end_date', local_var_params['end_date']))
|
|
1044
|
+
|
|
1045
|
+
header_params = {}
|
|
1046
|
+
|
|
1047
|
+
form_params = {}
|
|
1048
|
+
|
|
1049
|
+
body = None
|
|
1050
|
+
if isinstance(request, SdkStreamRequest):
|
|
1051
|
+
body = request.get_file_stream()
|
|
1052
|
+
|
|
1053
|
+
response_headers = []
|
|
1054
|
+
|
|
1055
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1056
|
+
['application/json'])
|
|
1057
|
+
|
|
1058
|
+
auth_settings = []
|
|
1059
|
+
|
|
1060
|
+
http_info["cname"] = cname
|
|
1061
|
+
http_info["collection_formats"] = collection_formats
|
|
1062
|
+
http_info["path_params"] = path_params
|
|
1063
|
+
http_info["query_params"] = query_params
|
|
1064
|
+
http_info["header_params"] = header_params
|
|
1065
|
+
http_info["post_params"] = form_params
|
|
1066
|
+
http_info["body"] = body
|
|
1067
|
+
http_info["response_headers"] = response_headers
|
|
1068
|
+
|
|
1069
|
+
return http_info
|
|
1070
|
+
|
|
1071
|
+
def show_league_async(self, request):
|
|
1072
|
+
r"""获取联盟详细信息
|
|
1073
|
+
|
|
1074
|
+
功能描述:用户可以使用该接口获取联盟详细信息。
|
|
1075
|
+
|
|
1076
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
:param request: Request instance for ShowLeague
|
|
1080
|
+
:type request: :class:`huaweicloudsdktics.v1.ShowLeagueRequest`
|
|
1081
|
+
:rtype: :class:`huaweicloudsdktics.v1.ShowLeagueResponse`
|
|
1082
|
+
"""
|
|
1083
|
+
http_info = self._show_league_http_info(request)
|
|
1084
|
+
return self._call_api(**http_info)
|
|
1085
|
+
|
|
1086
|
+
def show_league_async_invoker(self, request):
|
|
1087
|
+
http_info = self._show_league_http_info(request)
|
|
1088
|
+
return AsyncInvoker(self, http_info)
|
|
1089
|
+
|
|
1090
|
+
def _show_league_http_info(self, request):
|
|
1091
|
+
http_info = {
|
|
1092
|
+
"method": "GET",
|
|
1093
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}",
|
|
1094
|
+
"request_type": request.__class__.__name__,
|
|
1095
|
+
"response_type": "ShowLeagueResponse"
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1099
|
+
|
|
1100
|
+
cname = None
|
|
1101
|
+
|
|
1102
|
+
collection_formats = {}
|
|
1103
|
+
|
|
1104
|
+
path_params = {}
|
|
1105
|
+
if 'league_id' in local_var_params:
|
|
1106
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
1107
|
+
|
|
1108
|
+
query_params = []
|
|
1109
|
+
|
|
1110
|
+
header_params = {}
|
|
1111
|
+
|
|
1112
|
+
form_params = {}
|
|
1113
|
+
|
|
1114
|
+
body = None
|
|
1115
|
+
if isinstance(request, SdkStreamRequest):
|
|
1116
|
+
body = request.get_file_stream()
|
|
1117
|
+
|
|
1118
|
+
response_headers = []
|
|
1119
|
+
|
|
1120
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1121
|
+
['application/json'])
|
|
1122
|
+
|
|
1123
|
+
auth_settings = []
|
|
1124
|
+
|
|
1125
|
+
http_info["cname"] = cname
|
|
1126
|
+
http_info["collection_formats"] = collection_formats
|
|
1127
|
+
http_info["path_params"] = path_params
|
|
1128
|
+
http_info["query_params"] = query_params
|
|
1129
|
+
http_info["header_params"] = header_params
|
|
1130
|
+
http_info["post_params"] = form_params
|
|
1131
|
+
http_info["body"] = body
|
|
1132
|
+
http_info["response_headers"] = response_headers
|
|
1133
|
+
|
|
1134
|
+
return http_info
|
|
1135
|
+
|
|
1136
|
+
def show_overview_async(self, request):
|
|
1137
|
+
r"""查询租户下统计信息
|
|
1138
|
+
|
|
1139
|
+
查询当前租户的联盟及代理统计数量
|
|
1140
|
+
|
|
1141
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
:param request: Request instance for ShowOverview
|
|
1145
|
+
:type request: :class:`huaweicloudsdktics.v1.ShowOverviewRequest`
|
|
1146
|
+
:rtype: :class:`huaweicloudsdktics.v1.ShowOverviewResponse`
|
|
1147
|
+
"""
|
|
1148
|
+
http_info = self._show_overview_http_info(request)
|
|
1149
|
+
return self._call_api(**http_info)
|
|
1150
|
+
|
|
1151
|
+
def show_overview_async_invoker(self, request):
|
|
1152
|
+
http_info = self._show_overview_http_info(request)
|
|
1153
|
+
return AsyncInvoker(self, http_info)
|
|
1154
|
+
|
|
1155
|
+
def _show_overview_http_info(self, request):
|
|
1156
|
+
http_info = {
|
|
1157
|
+
"method": "GET",
|
|
1158
|
+
"resource_path": "/v1/{project_id}/overview/statistics",
|
|
1159
|
+
"request_type": request.__class__.__name__,
|
|
1160
|
+
"response_type": "ShowOverviewResponse"
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1164
|
+
|
|
1165
|
+
cname = None
|
|
1166
|
+
|
|
1167
|
+
collection_formats = {}
|
|
1168
|
+
|
|
1169
|
+
path_params = {}
|
|
1170
|
+
|
|
1171
|
+
query_params = []
|
|
1172
|
+
|
|
1173
|
+
header_params = {}
|
|
1174
|
+
|
|
1175
|
+
form_params = {}
|
|
1176
|
+
|
|
1177
|
+
body = None
|
|
1178
|
+
if isinstance(request, SdkStreamRequest):
|
|
1179
|
+
body = request.get_file_stream()
|
|
1180
|
+
|
|
1181
|
+
response_headers = []
|
|
1182
|
+
|
|
1183
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1184
|
+
['application/json'])
|
|
1185
|
+
|
|
1186
|
+
auth_settings = []
|
|
1187
|
+
|
|
1188
|
+
http_info["cname"] = cname
|
|
1189
|
+
http_info["collection_formats"] = collection_formats
|
|
1190
|
+
http_info["path_params"] = path_params
|
|
1191
|
+
http_info["query_params"] = query_params
|
|
1192
|
+
http_info["header_params"] = header_params
|
|
1193
|
+
http_info["post_params"] = form_params
|
|
1194
|
+
http_info["body"] = body
|
|
1195
|
+
http_info["response_headers"] = response_headers
|
|
1196
|
+
|
|
1197
|
+
return http_info
|
|
1198
|
+
|
|
1199
|
+
def show_partner_statistics_async(self, request):
|
|
1200
|
+
r"""合作方统计
|
|
1201
|
+
|
|
1202
|
+
功能描述:用户可以使用该接口进行联盟合作方统计。
|
|
1203
|
+
|
|
1204
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
:param request: Request instance for ShowPartnerStatistics
|
|
1208
|
+
:type request: :class:`huaweicloudsdktics.v1.ShowPartnerStatisticsRequest`
|
|
1209
|
+
:rtype: :class:`huaweicloudsdktics.v1.ShowPartnerStatisticsResponse`
|
|
1210
|
+
"""
|
|
1211
|
+
http_info = self._show_partner_statistics_http_info(request)
|
|
1212
|
+
return self._call_api(**http_info)
|
|
1213
|
+
|
|
1214
|
+
def show_partner_statistics_async_invoker(self, request):
|
|
1215
|
+
http_info = self._show_partner_statistics_http_info(request)
|
|
1216
|
+
return AsyncInvoker(self, http_info)
|
|
1217
|
+
|
|
1218
|
+
def _show_partner_statistics_http_info(self, request):
|
|
1219
|
+
http_info = {
|
|
1220
|
+
"method": "GET",
|
|
1221
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}/partners-statistics",
|
|
1222
|
+
"request_type": request.__class__.__name__,
|
|
1223
|
+
"response_type": "ShowPartnerStatisticsResponse"
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1227
|
+
|
|
1228
|
+
cname = None
|
|
1229
|
+
|
|
1230
|
+
collection_formats = {}
|
|
1231
|
+
|
|
1232
|
+
path_params = {}
|
|
1233
|
+
if 'league_id' in local_var_params:
|
|
1234
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
1235
|
+
|
|
1236
|
+
query_params = []
|
|
1237
|
+
if 'start_date' in local_var_params:
|
|
1238
|
+
query_params.append(('start_date', local_var_params['start_date']))
|
|
1239
|
+
if 'end_date' in local_var_params:
|
|
1240
|
+
query_params.append(('end_date', local_var_params['end_date']))
|
|
1241
|
+
|
|
1242
|
+
header_params = {}
|
|
1243
|
+
|
|
1244
|
+
form_params = {}
|
|
1245
|
+
|
|
1246
|
+
body = None
|
|
1247
|
+
if isinstance(request, SdkStreamRequest):
|
|
1248
|
+
body = request.get_file_stream()
|
|
1249
|
+
|
|
1250
|
+
response_headers = []
|
|
1251
|
+
|
|
1252
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1253
|
+
['application/json'])
|
|
1254
|
+
|
|
1255
|
+
auth_settings = []
|
|
1256
|
+
|
|
1257
|
+
http_info["cname"] = cname
|
|
1258
|
+
http_info["collection_formats"] = collection_formats
|
|
1259
|
+
http_info["path_params"] = path_params
|
|
1260
|
+
http_info["query_params"] = query_params
|
|
1261
|
+
http_info["header_params"] = header_params
|
|
1262
|
+
http_info["post_params"] = form_params
|
|
1263
|
+
http_info["body"] = body
|
|
1264
|
+
http_info["response_headers"] = response_headers
|
|
1265
|
+
|
|
1266
|
+
return http_info
|
|
1267
|
+
|
|
1268
|
+
def update_league_async(self, request):
|
|
1269
|
+
r"""更新联盟信息
|
|
1270
|
+
|
|
1271
|
+
功能描述:用户可以使用接口更新联盟信息(包含联盟描述,联盟版本,隐私保护等级,查分隐私开关)。
|
|
1272
|
+
|
|
1273
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
:param request: Request instance for UpdateLeague
|
|
1277
|
+
:type request: :class:`huaweicloudsdktics.v1.UpdateLeagueRequest`
|
|
1278
|
+
:rtype: :class:`huaweicloudsdktics.v1.UpdateLeagueResponse`
|
|
1279
|
+
"""
|
|
1280
|
+
http_info = self._update_league_http_info(request)
|
|
1281
|
+
return self._call_api(**http_info)
|
|
1282
|
+
|
|
1283
|
+
def update_league_async_invoker(self, request):
|
|
1284
|
+
http_info = self._update_league_http_info(request)
|
|
1285
|
+
return AsyncInvoker(self, http_info)
|
|
1286
|
+
|
|
1287
|
+
def _update_league_http_info(self, request):
|
|
1288
|
+
http_info = {
|
|
1289
|
+
"method": "PUT",
|
|
1290
|
+
"resource_path": "/v1/{project_id}/leagues/{league_id}",
|
|
1291
|
+
"request_type": request.__class__.__name__,
|
|
1292
|
+
"response_type": "UpdateLeagueResponse"
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1296
|
+
|
|
1297
|
+
cname = None
|
|
1298
|
+
|
|
1299
|
+
collection_formats = {}
|
|
1300
|
+
|
|
1301
|
+
path_params = {}
|
|
1302
|
+
if 'league_id' in local_var_params:
|
|
1303
|
+
path_params['league_id'] = local_var_params['league_id']
|
|
1304
|
+
|
|
1305
|
+
query_params = []
|
|
1306
|
+
|
|
1307
|
+
header_params = {}
|
|
1308
|
+
|
|
1309
|
+
form_params = {}
|
|
1310
|
+
|
|
1311
|
+
body = None
|
|
1312
|
+
if 'body' in local_var_params:
|
|
1313
|
+
body = local_var_params['body']
|
|
1314
|
+
if isinstance(request, SdkStreamRequest):
|
|
1315
|
+
body = request.get_file_stream()
|
|
1316
|
+
|
|
1317
|
+
response_headers = []
|
|
1318
|
+
|
|
1319
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1320
|
+
['application/json'])
|
|
1321
|
+
|
|
1322
|
+
auth_settings = []
|
|
1323
|
+
|
|
1324
|
+
http_info["cname"] = cname
|
|
1325
|
+
http_info["collection_formats"] = collection_formats
|
|
1326
|
+
http_info["path_params"] = path_params
|
|
1327
|
+
http_info["query_params"] = query_params
|
|
1328
|
+
http_info["header_params"] = header_params
|
|
1329
|
+
http_info["post_params"] = form_params
|
|
1330
|
+
http_info["body"] = body
|
|
1331
|
+
http_info["response_headers"] = response_headers
|
|
1332
|
+
|
|
1333
|
+
return http_info
|
|
1334
|
+
|
|
1335
|
+
def _call_api(self, **kwargs):
|
|
1336
|
+
try:
|
|
1337
|
+
kwargs["async_request"] = True
|
|
1338
|
+
return self.do_http_request(**kwargs)
|
|
1339
|
+
except TypeError:
|
|
1340
|
+
import inspect
|
|
1341
|
+
params = inspect.signature(self.do_http_request).parameters
|
|
1342
|
+
http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
|
|
1343
|
+
return self.do_http_request(**http_info)
|
|
1344
|
+
|
|
1345
|
+
def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
|
|
1346
|
+
post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
|
|
1347
|
+
collection_formats=None, request_type=None):
|
|
1348
|
+
"""Makes the HTTP request and returns deserialized data.
|
|
1349
|
+
|
|
1350
|
+
:param resource_path: Path to method endpoint.
|
|
1351
|
+
:param method: Method to call.
|
|
1352
|
+
:param path_params: Path parameters in the url.
|
|
1353
|
+
:param query_params: Query parameters in the url.
|
|
1354
|
+
:param header_params: Header parameters to be
|
|
1355
|
+
placed in the request header.
|
|
1356
|
+
:param body: Request body.
|
|
1357
|
+
:param post_params: Request post form parameters,
|
|
1358
|
+
for `application/x-www-form-urlencoded`, `multipart/form-data`.
|
|
1359
|
+
:param cname: Used for obs endpoint.
|
|
1360
|
+
:param auth_settings: Auth Settings names for the request.
|
|
1361
|
+
:param response_type: Response data type.
|
|
1362
|
+
:param response_headers: Header should be added to response data.
|
|
1363
|
+
:param collection_formats: dict of collection formats for path, query,
|
|
1364
|
+
header, and post parameters.
|
|
1365
|
+
:param request_type: Request data type.
|
|
1366
|
+
:return:
|
|
1367
|
+
Return the response directly.
|
|
1368
|
+
"""
|
|
1369
|
+
return self.do_http_request(
|
|
1370
|
+
method=method,
|
|
1371
|
+
resource_path=resource_path,
|
|
1372
|
+
path_params=path_params,
|
|
1373
|
+
query_params=query_params,
|
|
1374
|
+
header_params=header_params,
|
|
1375
|
+
body=body,
|
|
1376
|
+
post_params=post_params,
|
|
1377
|
+
cname=cname,
|
|
1378
|
+
response_type=response_type,
|
|
1379
|
+
response_headers=response_headers,
|
|
1380
|
+
collection_formats=collection_formats,
|
|
1381
|
+
request_type=request_type,
|
|
1382
|
+
async_request=True)
|