huaweicloudsdktics 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.

Potentially problematic release.


This version of huaweicloudsdktics might be problematic. Click here for more details.

Files changed (78) hide show
  1. huaweicloudsdktics/__init__.py +0 -0
  2. huaweicloudsdktics/v1/__init__.py +74 -0
  3. huaweicloudsdktics/v1/model/__init__.py +71 -0
  4. huaweicloudsdktics/v1/model/agent_list_vo.py +521 -0
  5. huaweicloudsdktics/v1/model/deploy_vo.py +228 -0
  6. huaweicloudsdktics/v1/model/fl_job_list_vo.py +457 -0
  7. huaweicloudsdktics/v1/model/job_report_base_info_vo.py +256 -0
  8. huaweicloudsdktics/v1/model/job_report_env_vo.py +231 -0
  9. huaweicloudsdktics/v1/model/job_report_output_vo.py +173 -0
  10. huaweicloudsdktics/v1/model/job_report_partner_vo.py +231 -0
  11. huaweicloudsdktics/v1/model/league_dataset_statistics_vo.py +260 -0
  12. huaweicloudsdktics/v1/model/league_partner_statistics_vo.py +318 -0
  13. huaweicloudsdktics/v1/model/league_update_vo.py +173 -0
  14. huaweicloudsdktics/v1/model/list_agents_request.py +200 -0
  15. huaweicloudsdktics/v1/model/list_agents_response.py +145 -0
  16. huaweicloudsdktics/v1/model/list_audit_info_request.py +170 -0
  17. huaweicloudsdktics/v1/model/list_audit_info_response.py +145 -0
  18. huaweicloudsdktics/v1/model/list_fl_job_request.py +170 -0
  19. huaweicloudsdktics/v1/model/list_fl_job_response.py +145 -0
  20. huaweicloudsdktics/v1/model/list_instance_history_request.py +199 -0
  21. huaweicloudsdktics/v1/model/list_instance_history_response.py +145 -0
  22. huaweicloudsdktics/v1/model/list_league_datasets_request.py +228 -0
  23. huaweicloudsdktics/v1/model/list_league_datasets_response.py +145 -0
  24. huaweicloudsdktics/v1/model/list_leagues_request.py +170 -0
  25. huaweicloudsdktics/v1/model/list_leagues_response.py +145 -0
  26. huaweicloudsdktics/v1/model/list_nodes_request.py +170 -0
  27. huaweicloudsdktics/v1/model/list_nodes_response.py +145 -0
  28. huaweicloudsdktics/v1/model/list_notices_request.py +142 -0
  29. huaweicloudsdktics/v1/model/list_notices_response.py +145 -0
  30. huaweicloudsdktics/v1/model/list_partners_request.py +170 -0
  31. huaweicloudsdktics/v1/model/list_partners_response.py +145 -0
  32. huaweicloudsdktics/v1/model/list_sql_job_request.py +170 -0
  33. huaweicloudsdktics/v1/model/list_sql_job_response.py +145 -0
  34. huaweicloudsdktics/v1/model/partner_data_vo.py +289 -0
  35. huaweicloudsdktics/v1/model/processor_vo.py +374 -0
  36. huaweicloudsdktics/v1/model/round_deploy_vo.py +144 -0
  37. huaweicloudsdktics/v1/model/show_agent_detail_request.py +114 -0
  38. huaweicloudsdktics/v1/model/show_agent_detail_response.py +212 -0
  39. huaweicloudsdktics/v1/model/show_dataset_statistics_request.py +172 -0
  40. huaweicloudsdktics/v1/model/show_dataset_statistics_response.py +112 -0
  41. huaweicloudsdktics/v1/model/show_instance_report_request.py +142 -0
  42. huaweicloudsdktics/v1/model/show_instance_report_response.py +220 -0
  43. huaweicloudsdktics/v1/model/show_job_instance_dag_request.py +170 -0
  44. huaweicloudsdktics/v1/model/show_job_instance_dag_response.py +112 -0
  45. huaweicloudsdktics/v1/model/show_job_statistics_request.py +172 -0
  46. huaweicloudsdktics/v1/model/show_job_statistics_response.py +232 -0
  47. huaweicloudsdktics/v1/model/show_league_request.py +114 -0
  48. huaweicloudsdktics/v1/model/show_league_response.py +725 -0
  49. huaweicloudsdktics/v1/model/show_overview_request.py +84 -0
  50. huaweicloudsdktics/v1/model/show_overview_response.py +203 -0
  51. huaweicloudsdktics/v1/model/show_partner_statistics_request.py +172 -0
  52. huaweicloudsdktics/v1/model/show_partner_statistics_response.py +112 -0
  53. huaweicloudsdktics/v1/model/stage_vo.py +201 -0
  54. huaweicloudsdktics/v1/model/tics_agent_deploy.py +724 -0
  55. huaweicloudsdktics/v1/model/tics_agent_deploy_bcs.py +289 -0
  56. huaweicloudsdktics/v1/model/tics_agent_deploy_detail.py +463 -0
  57. huaweicloudsdktics/v1/model/tics_agent_nat_common_info.py +202 -0
  58. huaweicloudsdktics/v1/model/tics_agent_node_info.py +492 -0
  59. huaweicloudsdktics/v1/model/tics_approve_log_vo.py +484 -0
  60. huaweicloudsdktics/v1/model/tics_dataset_column.py +405 -0
  61. huaweicloudsdktics/v1/model/tics_job_instance_vo.py +401 -0
  62. huaweicloudsdktics/v1/model/tics_league_audit_log.py +376 -0
  63. huaweicloudsdktics/v1/model/tics_league_list_vo.py +543 -0
  64. huaweicloudsdktics/v1/model/tics_league_notice_vo.py +430 -0
  65. huaweicloudsdktics/v1/model/tics_league_partner_vo.py +202 -0
  66. huaweicloudsdktics/v1/model/tics_sql_job_vo.py +483 -0
  67. huaweicloudsdktics/v1/model/tics_trust_info_vo.py +347 -0
  68. huaweicloudsdktics/v1/model/update_league_request.py +139 -0
  69. huaweicloudsdktics/v1/model/update_league_response.py +112 -0
  70. huaweicloudsdktics/v1/region/__init__.py +0 -0
  71. huaweicloudsdktics/v1/region/tics_region.py +34 -0
  72. huaweicloudsdktics/v1/tics_async_client.py +1382 -0
  73. huaweicloudsdktics/v1/tics_client.py +1379 -0
  74. huaweicloudsdktics-3.1.160.dist-info/LICENSE +13 -0
  75. huaweicloudsdktics-3.1.160.dist-info/METADATA +26 -0
  76. huaweicloudsdktics-3.1.160.dist-info/RECORD +78 -0
  77. huaweicloudsdktics-3.1.160.dist-info/WHEEL +5 -0
  78. huaweicloudsdktics-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1379 @@
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 SyncInvoker
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 TicsClient(Client):
19
+ def __init__(self):
20
+ super(TicsClient, self).__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__ != "TicsClient":
29
+ raise TypeError("client type error, support client type is TicsClient")
30
+ client_builder = ClientBuilder(clazz)
31
+
32
+
33
+
34
+ return client_builder
35
+
36
+ def list_agents(self, request):
37
+ r"""获取计算节点列表
38
+
39
+ 功能描述:用户可以使用该接口获取可信节点信息列表。支持节点名称与联盟名称的模糊查询。
40
+
41
+ Please refer to HUAWEI cloud API Explorer for details.
42
+
43
+ :param request: Request instance for ListAgents
44
+ :type request: :class:`huaweicloudsdktics.v1.ListAgentsRequest`
45
+ :rtype: :class:`huaweicloudsdktics.v1.ListAgentsResponse`
46
+ """
47
+ http_info = self._list_agents_http_info(request)
48
+ return self._call_api(**http_info)
49
+
50
+ def list_agents_invoker(self, request):
51
+ http_info = self._list_agents_http_info(request)
52
+ return SyncInvoker(self, http_info)
53
+
54
+ @classmethod
55
+ def _list_agents_http_info(cls, 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(self, request):
108
+ r"""查询审计日志
109
+
110
+ 查询审计日志信息
111
+
112
+ Please refer to HUAWEI cloud API Explorer for details.
113
+
114
+ :param request: Request instance for ListAuditInfo
115
+ :type request: :class:`huaweicloudsdktics.v1.ListAuditInfoRequest`
116
+ :rtype: :class:`huaweicloudsdktics.v1.ListAuditInfoResponse`
117
+ """
118
+ http_info = self._list_audit_info_http_info(request)
119
+ return self._call_api(**http_info)
120
+
121
+ def list_audit_info_invoker(self, request):
122
+ http_info = self._list_audit_info_http_info(request)
123
+ return SyncInvoker(self, http_info)
124
+
125
+ @classmethod
126
+ def _list_audit_info_http_info(cls, 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(self, request):
177
+ r"""查询联邦学习作业列表
178
+
179
+ 查询联邦学习作业列表
180
+
181
+ Please refer to HUAWEI cloud API Explorer for details.
182
+
183
+ :param request: Request instance for ListFlJob
184
+ :type request: :class:`huaweicloudsdktics.v1.ListFlJobRequest`
185
+ :rtype: :class:`huaweicloudsdktics.v1.ListFlJobResponse`
186
+ """
187
+ http_info = self._list_fl_job_http_info(request)
188
+ return self._call_api(**http_info)
189
+
190
+ def list_fl_job_invoker(self, request):
191
+ http_info = self._list_fl_job_http_info(request)
192
+ return SyncInvoker(self, http_info)
193
+
194
+ @classmethod
195
+ def _list_fl_job_http_info(cls, 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(self, request):
246
+ r"""查询作业的历史实例列表
247
+
248
+ 查询作业的历史实例列表
249
+
250
+ Please refer to HUAWEI cloud API Explorer for details.
251
+
252
+ :param request: Request instance for ListInstanceHistory
253
+ :type request: :class:`huaweicloudsdktics.v1.ListInstanceHistoryRequest`
254
+ :rtype: :class:`huaweicloudsdktics.v1.ListInstanceHistoryResponse`
255
+ """
256
+ http_info = self._list_instance_history_http_info(request)
257
+ return self._call_api(**http_info)
258
+
259
+ def list_instance_history_invoker(self, request):
260
+ http_info = self._list_instance_history_http_info(request)
261
+ return SyncInvoker(self, http_info)
262
+
263
+ @classmethod
264
+ def _list_instance_history_http_info(cls, 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(self, request):
317
+ r"""查询联盟已注册数据集列表
318
+
319
+ 功能描述:用户可以使用该接口查询联盟已注册数据集列表。
320
+
321
+ Please refer to HUAWEI cloud API Explorer for details.
322
+
323
+ :param request: Request instance for ListLeagueDatasets
324
+ :type request: :class:`huaweicloudsdktics.v1.ListLeagueDatasetsRequest`
325
+ :rtype: :class:`huaweicloudsdktics.v1.ListLeagueDatasetsResponse`
326
+ """
327
+ http_info = self._list_league_datasets_http_info(request)
328
+ return self._call_api(**http_info)
329
+
330
+ def list_league_datasets_invoker(self, request):
331
+ http_info = self._list_league_datasets_http_info(request)
332
+ return SyncInvoker(self, http_info)
333
+
334
+ @classmethod
335
+ def _list_league_datasets_http_info(cls, 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(self, request):
390
+ r"""获取联盟列表
391
+
392
+ 功能描述:用户可以使用该接口获取联盟列表。
393
+
394
+ Please refer to HUAWEI cloud API Explorer for details.
395
+
396
+ :param request: Request instance for ListLeagues
397
+ :type request: :class:`huaweicloudsdktics.v1.ListLeaguesRequest`
398
+ :rtype: :class:`huaweicloudsdktics.v1.ListLeaguesResponse`
399
+ """
400
+ http_info = self._list_leagues_http_info(request)
401
+ return self._call_api(**http_info)
402
+
403
+ def list_leagues_invoker(self, request):
404
+ http_info = self._list_leagues_http_info(request)
405
+ return SyncInvoker(self, http_info)
406
+
407
+ @classmethod
408
+ def _list_leagues_http_info(cls, 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(self, request):
459
+ r"""查询联盟节点列表
460
+
461
+ 功能描述:用户可以使用该接口查询联盟可信节点(包含聚合节点和计算节点)列表。
462
+
463
+ Please refer to HUAWEI cloud API Explorer for details.
464
+
465
+ :param request: Request instance for ListNodes
466
+ :type request: :class:`huaweicloudsdktics.v1.ListNodesRequest`
467
+ :rtype: :class:`huaweicloudsdktics.v1.ListNodesResponse`
468
+ """
469
+ http_info = self._list_nodes_http_info(request)
470
+ return self._call_api(**http_info)
471
+
472
+ def list_nodes_invoker(self, request):
473
+ http_info = self._list_nodes_http_info(request)
474
+ return SyncInvoker(self, http_info)
475
+
476
+ @classmethod
477
+ def _list_nodes_http_info(cls, 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(self, request):
528
+ r"""查询通知管理列表
529
+
530
+ 功能描述:用户可以使用该接口查询通知管理列表。
531
+
532
+ Please refer to HUAWEI cloud API Explorer for details.
533
+
534
+ :param request: Request instance for ListNotices
535
+ :type request: :class:`huaweicloudsdktics.v1.ListNoticesRequest`
536
+ :rtype: :class:`huaweicloudsdktics.v1.ListNoticesResponse`
537
+ """
538
+ http_info = self._list_notices_http_info(request)
539
+ return self._call_api(**http_info)
540
+
541
+ def list_notices_invoker(self, request):
542
+ http_info = self._list_notices_http_info(request)
543
+ return SyncInvoker(self, http_info)
544
+
545
+ @classmethod
546
+ def _list_notices_http_info(cls, 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(self, request):
595
+ r"""获取联盟组员信息
596
+
597
+ 功能描述:用户可以使用该接口获取联盟组员信息
598
+
599
+ Please refer to HUAWEI cloud API Explorer for details.
600
+
601
+ :param request: Request instance for ListPartners
602
+ :type request: :class:`huaweicloudsdktics.v1.ListPartnersRequest`
603
+ :rtype: :class:`huaweicloudsdktics.v1.ListPartnersResponse`
604
+ """
605
+ http_info = self._list_partners_http_info(request)
606
+ return self._call_api(**http_info)
607
+
608
+ def list_partners_invoker(self, request):
609
+ http_info = self._list_partners_http_info(request)
610
+ return SyncInvoker(self, http_info)
611
+
612
+ @classmethod
613
+ def _list_partners_http_info(cls, 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(self, request):
664
+ r"""查询联邦分析作业列表
665
+
666
+ 查询联邦分析作业列表
667
+
668
+ Please refer to HUAWEI cloud API Explorer for details.
669
+
670
+ :param request: Request instance for ListSqlJob
671
+ :type request: :class:`huaweicloudsdktics.v1.ListSqlJobRequest`
672
+ :rtype: :class:`huaweicloudsdktics.v1.ListSqlJobResponse`
673
+ """
674
+ http_info = self._list_sql_job_http_info(request)
675
+ return self._call_api(**http_info)
676
+
677
+ def list_sql_job_invoker(self, request):
678
+ http_info = self._list_sql_job_http_info(request)
679
+ return SyncInvoker(self, http_info)
680
+
681
+ @classmethod
682
+ def _list_sql_job_http_info(cls, 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(self, request):
733
+ r"""获取计算节点详情信息
734
+
735
+ 功能描述:用户可以使用该接口获取单个可信计算节点详情信息。
736
+
737
+ Please refer to HUAWEI cloud API Explorer for details.
738
+
739
+ :param request: Request instance for ShowAgentDetail
740
+ :type request: :class:`huaweicloudsdktics.v1.ShowAgentDetailRequest`
741
+ :rtype: :class:`huaweicloudsdktics.v1.ShowAgentDetailResponse`
742
+ """
743
+ http_info = self._show_agent_detail_http_info(request)
744
+ return self._call_api(**http_info)
745
+
746
+ def show_agent_detail_invoker(self, request):
747
+ http_info = self._show_agent_detail_http_info(request)
748
+ return SyncInvoker(self, http_info)
749
+
750
+ @classmethod
751
+ def _show_agent_detail_http_info(cls, 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(self, request):
798
+ r"""数据集统计
799
+
800
+ 用户可以使用该接口进行联盟数据集统计。
801
+
802
+ Please refer to HUAWEI cloud API Explorer for details.
803
+
804
+ :param request: Request instance for ShowDatasetStatistics
805
+ :type request: :class:`huaweicloudsdktics.v1.ShowDatasetStatisticsRequest`
806
+ :rtype: :class:`huaweicloudsdktics.v1.ShowDatasetStatisticsResponse`
807
+ """
808
+ http_info = self._show_dataset_statistics_http_info(request)
809
+ return self._call_api(**http_info)
810
+
811
+ def show_dataset_statistics_invoker(self, request):
812
+ http_info = self._show_dataset_statistics_http_info(request)
813
+ return SyncInvoker(self, http_info)
814
+
815
+ @classmethod
816
+ def _show_dataset_statistics_http_info(cls, 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(self, request):
867
+ r"""查询实例执行报告
868
+
869
+ 查询实例执行报告
870
+
871
+ Please refer to HUAWEI cloud API Explorer for details.
872
+
873
+ :param request: Request instance for ShowInstanceReport
874
+ :type request: :class:`huaweicloudsdktics.v1.ShowInstanceReportRequest`
875
+ :rtype: :class:`huaweicloudsdktics.v1.ShowInstanceReportResponse`
876
+ """
877
+ http_info = self._show_instance_report_http_info(request)
878
+ return self._call_api(**http_info)
879
+
880
+ def show_instance_report_invoker(self, request):
881
+ http_info = self._show_instance_report_http_info(request)
882
+ return SyncInvoker(self, http_info)
883
+
884
+ @classmethod
885
+ def _show_instance_report_http_info(cls, 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(self, request):
934
+ r"""获取实例执行图
935
+
936
+ 获取实例执行图
937
+
938
+ Please refer to HUAWEI cloud API Explorer for details.
939
+
940
+ :param request: Request instance for ShowJobInstanceDag
941
+ :type request: :class:`huaweicloudsdktics.v1.ShowJobInstanceDagRequest`
942
+ :rtype: :class:`huaweicloudsdktics.v1.ShowJobInstanceDagResponse`
943
+ """
944
+ http_info = self._show_job_instance_dag_http_info(request)
945
+ return self._call_api(**http_info)
946
+
947
+ def show_job_instance_dag_invoker(self, request):
948
+ http_info = self._show_job_instance_dag_http_info(request)
949
+ return SyncInvoker(self, http_info)
950
+
951
+ @classmethod
952
+ def _show_job_instance_dag_http_info(cls, 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(self, request):
1003
+ r"""作业统计
1004
+
1005
+ 功能描述:用户可以使用该接口进行联盟作业统计。
1006
+
1007
+ Please refer to HUAWEI cloud API Explorer for details.
1008
+
1009
+ :param request: Request instance for ShowJobStatistics
1010
+ :type request: :class:`huaweicloudsdktics.v1.ShowJobStatisticsRequest`
1011
+ :rtype: :class:`huaweicloudsdktics.v1.ShowJobStatisticsResponse`
1012
+ """
1013
+ http_info = self._show_job_statistics_http_info(request)
1014
+ return self._call_api(**http_info)
1015
+
1016
+ def show_job_statistics_invoker(self, request):
1017
+ http_info = self._show_job_statistics_http_info(request)
1018
+ return SyncInvoker(self, http_info)
1019
+
1020
+ @classmethod
1021
+ def _show_job_statistics_http_info(cls, 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(self, request):
1072
+ r"""获取联盟详细信息
1073
+
1074
+ 功能描述:用户可以使用该接口获取联盟详细信息。
1075
+
1076
+ Please refer to HUAWEI cloud API Explorer for details.
1077
+
1078
+ :param request: Request instance for ShowLeague
1079
+ :type request: :class:`huaweicloudsdktics.v1.ShowLeagueRequest`
1080
+ :rtype: :class:`huaweicloudsdktics.v1.ShowLeagueResponse`
1081
+ """
1082
+ http_info = self._show_league_http_info(request)
1083
+ return self._call_api(**http_info)
1084
+
1085
+ def show_league_invoker(self, request):
1086
+ http_info = self._show_league_http_info(request)
1087
+ return SyncInvoker(self, http_info)
1088
+
1089
+ @classmethod
1090
+ def _show_league_http_info(cls, 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(self, request):
1137
+ r"""查询租户下统计信息
1138
+
1139
+ 查询当前租户的联盟及代理统计数量
1140
+
1141
+ Please refer to HUAWEI cloud API Explorer for details.
1142
+
1143
+ :param request: Request instance for ShowOverview
1144
+ :type request: :class:`huaweicloudsdktics.v1.ShowOverviewRequest`
1145
+ :rtype: :class:`huaweicloudsdktics.v1.ShowOverviewResponse`
1146
+ """
1147
+ http_info = self._show_overview_http_info(request)
1148
+ return self._call_api(**http_info)
1149
+
1150
+ def show_overview_invoker(self, request):
1151
+ http_info = self._show_overview_http_info(request)
1152
+ return SyncInvoker(self, http_info)
1153
+
1154
+ @classmethod
1155
+ def _show_overview_http_info(cls, 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(self, request):
1200
+ r"""合作方统计
1201
+
1202
+ 功能描述:用户可以使用该接口进行联盟合作方统计。
1203
+
1204
+ Please refer to HUAWEI cloud API Explorer for details.
1205
+
1206
+ :param request: Request instance for ShowPartnerStatistics
1207
+ :type request: :class:`huaweicloudsdktics.v1.ShowPartnerStatisticsRequest`
1208
+ :rtype: :class:`huaweicloudsdktics.v1.ShowPartnerStatisticsResponse`
1209
+ """
1210
+ http_info = self._show_partner_statistics_http_info(request)
1211
+ return self._call_api(**http_info)
1212
+
1213
+ def show_partner_statistics_invoker(self, request):
1214
+ http_info = self._show_partner_statistics_http_info(request)
1215
+ return SyncInvoker(self, http_info)
1216
+
1217
+ @classmethod
1218
+ def _show_partner_statistics_http_info(cls, 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(self, request):
1269
+ r"""更新联盟信息
1270
+
1271
+ 功能描述:用户可以使用接口更新联盟信息(包含联盟描述,联盟版本,隐私保护等级,查分隐私开关)。
1272
+
1273
+ Please refer to HUAWEI cloud API Explorer for details.
1274
+
1275
+ :param request: Request instance for UpdateLeague
1276
+ :type request: :class:`huaweicloudsdktics.v1.UpdateLeagueRequest`
1277
+ :rtype: :class:`huaweicloudsdktics.v1.UpdateLeagueResponse`
1278
+ """
1279
+ http_info = self._update_league_http_info(request)
1280
+ return self._call_api(**http_info)
1281
+
1282
+ def update_league_invoker(self, request):
1283
+ http_info = self._update_league_http_info(request)
1284
+ return SyncInvoker(self, http_info)
1285
+
1286
+ @classmethod
1287
+ def _update_league_http_info(cls, 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
+ return self.do_http_request(**kwargs)
1338
+ except TypeError:
1339
+ import inspect
1340
+ params = inspect.signature(self.do_http_request).parameters
1341
+ http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
1342
+ return self.do_http_request(**http_info)
1343
+
1344
+ def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
1345
+ post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
1346
+ collection_formats=None, request_type=None):
1347
+ """Makes the HTTP request and returns deserialized data.
1348
+
1349
+ :param resource_path: Path to method endpoint.
1350
+ :param method: Method to call.
1351
+ :param path_params: Path parameters in the url.
1352
+ :param query_params: Query parameters in the url.
1353
+ :param header_params: Header parameters to be placed in the request header.
1354
+ :param body: Request body.
1355
+ :param post_params: Request post form parameters,
1356
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
1357
+ :param cname: Used for obs endpoint.
1358
+ :param auth_settings: Auth Settings names for the request.
1359
+ :param response_type: Response data type.
1360
+ :param response_headers: Header should be added to response data.
1361
+ :param collection_formats: dict of collection formats for path, query,
1362
+ header, and post parameters.
1363
+ :param request_type: Request data type.
1364
+ :return:
1365
+ Return the response directly.
1366
+ """
1367
+ return self.do_http_request(
1368
+ method=method,
1369
+ resource_path=resource_path,
1370
+ path_params=path_params,
1371
+ query_params=query_params,
1372
+ header_params=header_params,
1373
+ body=body,
1374
+ post_params=post_params,
1375
+ cname=cname,
1376
+ response_type=response_type,
1377
+ response_headers=response_headers,
1378
+ collection_formats=collection_formats,
1379
+ request_type=request_type)