huaweicloudsdkdwr 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.
- huaweicloudsdkdwr/__init__.py +0 -0
- huaweicloudsdkdwr/v1/__init__.py +97 -0
- huaweicloudsdkdwr/v1/dwr_async_client.py +1584 -0
- huaweicloudsdkdwr/v1/dwr_client.py +1581 -0
- huaweicloudsdkdwr/v1/model/__init__.py +94 -0
- huaweicloudsdkdwr/v1/model/build_progress.py +224 -0
- huaweicloudsdkdwr/v1/model/charge_info.py +223 -0
- huaweicloudsdkdwr/v1/model/collection_base_info.py +135 -0
- huaweicloudsdkdwr/v1/model/create_collection_body.py +274 -0
- huaweicloudsdkdwr/v1/model/create_collection_request.py +104 -0
- huaweicloudsdkdwr/v1/model/create_collection_response.py +141 -0
- huaweicloudsdkdwr/v1/model/create_index_body.py +159 -0
- huaweicloudsdkdwr/v1/model/create_index_request.py +104 -0
- huaweicloudsdkdwr/v1/model/create_index_response.py +141 -0
- huaweicloudsdkdwr/v1/model/create_store_body.py +241 -0
- huaweicloudsdkdwr/v1/model/create_store_data.py +328 -0
- huaweicloudsdkdwr/v1/model/create_store_request.py +104 -0
- huaweicloudsdkdwr/v1/model/create_store_response.py +166 -0
- huaweicloudsdkdwr/v1/model/decribe_collection_data.py +337 -0
- huaweicloudsdkdwr/v1/model/delete_collection_request.py +104 -0
- huaweicloudsdkdwr/v1/model/delete_collection_response.py +141 -0
- huaweicloudsdkdwr/v1/model/delete_entities_body.py +163 -0
- huaweicloudsdkdwr/v1/model/delete_entities_request.py +104 -0
- huaweicloudsdkdwr/v1/model/delete_entities_response.py +141 -0
- huaweicloudsdkdwr/v1/model/delete_index_body.py +163 -0
- huaweicloudsdkdwr/v1/model/delete_index_request.py +104 -0
- huaweicloudsdkdwr/v1/model/delete_index_response.py +141 -0
- huaweicloudsdkdwr/v1/model/delete_store_data.py +107 -0
- huaweicloudsdkdwr/v1/model/delete_store_request.py +104 -0
- huaweicloudsdkdwr/v1/model/delete_store_response.py +166 -0
- huaweicloudsdkdwr/v1/model/describe_collection_request.py +104 -0
- huaweicloudsdkdwr/v1/model/describe_collection_response.py +166 -0
- huaweicloudsdkdwr/v1/model/describe_index_body.py +163 -0
- huaweicloudsdkdwr/v1/model/describe_index_data.py +159 -0
- huaweicloudsdkdwr/v1/model/describe_index_request.py +104 -0
- huaweicloudsdkdwr/v1/model/describe_index_response.py +166 -0
- huaweicloudsdkdwr/v1/model/describe_job_body.py +107 -0
- huaweicloudsdkdwr/v1/model/describe_job_request.py +104 -0
- huaweicloudsdkdwr/v1/model/describe_job_response.py +166 -0
- huaweicloudsdkdwr/v1/model/describe_store_request.py +104 -0
- huaweicloudsdkdwr/v1/model/describe_store_response.py +166 -0
- huaweicloudsdkdwr/v1/model/entities_data.py +107 -0
- huaweicloudsdkdwr/v1/model/field.py +222 -0
- huaweicloudsdkdwr/v1/model/field_data.py +278 -0
- huaweicloudsdkdwr/v1/model/flavor.py +135 -0
- huaweicloudsdkdwr/v1/model/get_index_progress_body.py +163 -0
- huaweicloudsdkdwr/v1/model/get_progress_data.py +160 -0
- huaweicloudsdkdwr/v1/model/get_progress_request.py +104 -0
- huaweicloudsdkdwr/v1/model/get_progress_response.py +166 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_body.py +275 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_request.py +104 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_response.py +166 -0
- huaweicloudsdkdwr/v1/model/index_desc.py +191 -0
- huaweicloudsdkdwr/v1/model/index_params.py +164 -0
- huaweicloudsdkdwr/v1/model/insert_entities_body.py +163 -0
- huaweicloudsdkdwr/v1/model/insert_entities_data.py +136 -0
- huaweicloudsdkdwr/v1/model/insert_entities_request.py +104 -0
- huaweicloudsdkdwr/v1/model/insert_entities_response.py +166 -0
- huaweicloudsdkdwr/v1/model/job_data.py +309 -0
- huaweicloudsdkdwr/v1/model/list_collection_data.py +136 -0
- huaweicloudsdkdwr/v1/model/list_collection_details.py +253 -0
- huaweicloudsdkdwr/v1/model/list_collections_body.py +136 -0
- huaweicloudsdkdwr/v1/model/list_collections_request.py +104 -0
- huaweicloudsdkdwr/v1/model/list_collections_response.py +166 -0
- huaweicloudsdkdwr/v1/model/list_jobs_data.py +108 -0
- huaweicloudsdkdwr/v1/model/list_jobs_request.py +224 -0
- huaweicloudsdkdwr/v1/model/list_jobs_response.py +166 -0
- huaweicloudsdkdwr/v1/model/list_store_data.py +107 -0
- huaweicloudsdkdwr/v1/model/list_stores_request.py +77 -0
- huaweicloudsdkdwr/v1/model/list_stores_response.py +166 -0
- huaweicloudsdkdwr/v1/model/load_collection_body.py +135 -0
- huaweicloudsdkdwr/v1/model/load_collection_request.py +104 -0
- huaweicloudsdkdwr/v1/model/load_collection_response.py +141 -0
- huaweicloudsdkdwr/v1/model/primary_field.py +135 -0
- huaweicloudsdkdwr/v1/model/query_entities_body.py +250 -0
- huaweicloudsdkdwr/v1/model/query_entities_request.py +104 -0
- huaweicloudsdkdwr/v1/model/query_entities_response.py +166 -0
- huaweicloudsdkdwr/v1/model/release_collection_request.py +104 -0
- huaweicloudsdkdwr/v1/model/release_collection_response.py +141 -0
- huaweicloudsdkdwr/v1/model/rerank.py +136 -0
- huaweicloudsdkdwr/v1/model/scale_store_body.py +135 -0
- huaweicloudsdkdwr/v1/model/scale_store_data.py +220 -0
- huaweicloudsdkdwr/v1/model/scale_store_request.py +104 -0
- huaweicloudsdkdwr/v1/model/scale_store_response.py +166 -0
- huaweicloudsdkdwr/v1/model/search_entities_body.py +336 -0
- huaweicloudsdkdwr/v1/model/search_entities_request.py +104 -0
- huaweicloudsdkdwr/v1/model/search_entities_response.py +166 -0
- huaweicloudsdkdwr/v1/model/store_data.py +357 -0
- huaweicloudsdkdwr/v1/model/store_info.py +107 -0
- huaweicloudsdkdwr/v1/model/sub_search.py +251 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_body.py +163 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_data.py +135 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_request.py +104 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_response.py +166 -0
- huaweicloudsdkdwr/v1/region/__init__.py +0 -0
- huaweicloudsdkdwr/v1/region/dwr_region.py +43 -0
- huaweicloudsdkdwr/v3/__init__.py +76 -0
- huaweicloudsdkdwr/v3/dwr_async_client.py +1622 -0
- huaweicloudsdkdwr/v3/dwr_client.py +1619 -0
- huaweicloudsdkdwr/v3/model/__init__.py +73 -0
- huaweicloudsdkdwr/v3/model/accept_service_contract_request.py +107 -0
- huaweicloudsdkdwr/v3/model/accept_service_contract_response.py +133 -0
- huaweicloudsdkdwr/v3/model/action.py +420 -0
- huaweicloudsdkdwr/v3/model/action_result.py +221 -0
- huaweicloudsdkdwr/v3/model/action_template_item.py +137 -0
- huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_request.py +132 -0
- huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_response.py +270 -0
- huaweicloudsdkdwr/v3/model/check_workflow_authentication_request.py +77 -0
- huaweicloudsdkdwr/v3/model/check_workflow_authentication_response.py +473 -0
- huaweicloudsdkdwr/v3/model/create_my_action_template_request.py +132 -0
- huaweicloudsdkdwr/v3/model/create_my_action_template_response.py +415 -0
- huaweicloudsdkdwr/v3/model/create_workflow_authentication_request.py +77 -0
- huaweicloudsdkdwr/v3/model/create_workflow_authentication_response.py +133 -0
- huaweicloudsdkdwr/v3/model/create_workflow_request.py +132 -0
- huaweicloudsdkdwr/v3/model/create_workflow_request_body.py +274 -0
- huaweicloudsdkdwr/v3/model/create_workflow_response.py +270 -0
- huaweicloudsdkdwr/v3/model/delete_my_action_template_request.py +107 -0
- huaweicloudsdkdwr/v3/model/delete_my_action_template_response.py +133 -0
- huaweicloudsdkdwr/v3/model/delete_workflow_request.py +107 -0
- huaweicloudsdkdwr/v3/model/delete_workflow_response.py +133 -0
- huaweicloudsdkdwr/v3/model/execute_workflow_body.py +160 -0
- huaweicloudsdkdwr/v3/model/execution.py +282 -0
- huaweicloudsdkdwr/v3/model/express_config.py +137 -0
- huaweicloudsdkdwr/v3/model/func_vpc.py +253 -0
- huaweicloudsdkdwr/v3/model/graph_item.py +195 -0
- huaweicloudsdkdwr/v3/model/input.py +367 -0
- huaweicloudsdkdwr/v3/model/input_para_type.py +77 -0
- huaweicloudsdkdwr/v3/model/input_para_value_type.py +77 -0
- huaweicloudsdkdwr/v3/model/list_my_action_template_request.py +224 -0
- huaweicloudsdkdwr/v3/model/list_my_action_template_response.py +299 -0
- huaweicloudsdkdwr/v3/model/list_system_templates_request.py +195 -0
- huaweicloudsdkdwr/v3/model/list_system_templates_response.py +328 -0
- huaweicloudsdkdwr/v3/model/list_workflow_instance_request.py +252 -0
- huaweicloudsdkdwr/v3/model/list_workflow_instance_response.py +299 -0
- huaweicloudsdkdwr/v3/model/list_workflows_request.py +166 -0
- huaweicloudsdkdwr/v3/model/list_workflows_response.py +299 -0
- huaweicloudsdkdwr/v3/model/node_execution.py +282 -0
- huaweicloudsdkdwr/v3/model/policy.py +137 -0
- huaweicloudsdkdwr/v3/model/provided_action.py +561 -0
- huaweicloudsdkdwr/v3/model/public_template_item.py +282 -0
- huaweicloudsdkdwr/v3/model/public_template_register_type.py +77 -0
- huaweicloudsdkdwr/v3/model/restore_workflow_execution_request.py +135 -0
- huaweicloudsdkdwr/v3/model/restore_workflow_execution_response.py +270 -0
- huaweicloudsdkdwr/v3/model/show_public_action_list_request.py +195 -0
- huaweicloudsdkdwr/v3/model/show_public_action_list_response.py +328 -0
- huaweicloudsdkdwr/v3/model/show_public_template_info_request.py +107 -0
- huaweicloudsdkdwr/v3/model/show_public_template_info_response.py +208 -0
- huaweicloudsdkdwr/v3/model/show_service_contract_request.py +107 -0
- huaweicloudsdkdwr/v3/model/show_service_contract_response.py +241 -0
- huaweicloudsdkdwr/v3/model/show_system_template_detail_request.py +107 -0
- huaweicloudsdkdwr/v3/model/show_system_template_detail_response.py +208 -0
- huaweicloudsdkdwr/v3/model/show_third_template_info_request.py +107 -0
- huaweicloudsdkdwr/v3/model/show_third_template_info_response.py +208 -0
- huaweicloudsdkdwr/v3/model/show_workflow_info_request.py +107 -0
- huaweicloudsdkdwr/v3/model/show_workflow_info_response.py +328 -0
- huaweicloudsdkdwr/v3/model/show_workflow_instance_request.py +135 -0
- huaweicloudsdkdwr/v3/model/show_workflow_instance_response.py +531 -0
- huaweicloudsdkdwr/v3/model/state.py +338 -0
- huaweicloudsdkdwr/v3/model/statement.py +137 -0
- huaweicloudsdkdwr/v3/model/third_action_template_item.py +282 -0
- huaweicloudsdkdwr/v3/model/third_template_request_body.py +423 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_request.py +132 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_response.py +270 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_request.py +107 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_response.py +133 -0
- huaweicloudsdkdwr/v3/model/update_workflow_body.py +108 -0
- huaweicloudsdkdwr/v3/model/update_workflow_request.py +132 -0
- huaweicloudsdkdwr/v3/model/update_workflow_response.py +270 -0
- huaweicloudsdkdwr/v3/region/__init__.py +0 -0
- huaweicloudsdkdwr/v3/region/dwr_region.py +43 -0
- huaweicloudsdkdwr-3.1.181.dist-info/METADATA +25 -0
- huaweicloudsdkdwr-3.1.181.dist-info/RECORD +174 -0
- huaweicloudsdkdwr-3.1.181.dist-info/WHEEL +4 -0
- huaweicloudsdkdwr-3.1.181.dist-info/licenses/LICENSE +13 -0
|
@@ -0,0 +1,1619 @@
|
|
|
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 'huaweicloudsdkdwr'")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class DwrClient(Client):
|
|
19
|
+
def __init__(self):
|
|
20
|
+
super().__init__()
|
|
21
|
+
self.model_package = importlib.import_module("huaweicloudsdkdwr.v3.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__ != "DwrClient":
|
|
29
|
+
raise TypeError("client type error, support client type is DwrClient")
|
|
30
|
+
client_builder = ClientBuilder(clazz)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
return client_builder
|
|
35
|
+
|
|
36
|
+
def accept_service_contract(self, request):
|
|
37
|
+
r"""同意服务协议
|
|
38
|
+
|
|
39
|
+
本接口用于使用工作流时需要同意服务使用协议。该函数具有幂等性。
|
|
40
|
+
|
|
41
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
42
|
+
|
|
43
|
+
:param request: Request instance for AcceptServiceContract
|
|
44
|
+
:type request: :class:`huaweicloudsdkdwr.v3.AcceptServiceContractRequest`
|
|
45
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.AcceptServiceContractResponse`
|
|
46
|
+
"""
|
|
47
|
+
http_info = self._accept_service_contract_http_info(request)
|
|
48
|
+
return self._call_api(**http_info)
|
|
49
|
+
|
|
50
|
+
def accept_service_contract_invoker(self, request):
|
|
51
|
+
http_info = self._accept_service_contract_http_info(request)
|
|
52
|
+
return SyncInvoker(self, http_info)
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def _accept_service_contract_http_info(cls, request):
|
|
56
|
+
http_info = {
|
|
57
|
+
"method": "POST",
|
|
58
|
+
"resource_path": "/v3/{project_id}/workflow-agreements",
|
|
59
|
+
"request_type": request.__class__.__name__,
|
|
60
|
+
"response_type": "AcceptServiceContractResponse"
|
|
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 'type' in local_var_params:
|
|
73
|
+
query_params.append(('type', local_var_params['type']))
|
|
74
|
+
|
|
75
|
+
header_params = {}
|
|
76
|
+
|
|
77
|
+
form_params = {}
|
|
78
|
+
|
|
79
|
+
body = None
|
|
80
|
+
if isinstance(request, SdkStreamRequest):
|
|
81
|
+
body = request.get_file_stream()
|
|
82
|
+
|
|
83
|
+
response_headers = ["x-request-id", "Content-Length", ]
|
|
84
|
+
|
|
85
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
86
|
+
['application/json'])
|
|
87
|
+
|
|
88
|
+
auth_settings = []
|
|
89
|
+
|
|
90
|
+
http_info["cname"] = cname
|
|
91
|
+
http_info["collection_formats"] = collection_formats
|
|
92
|
+
http_info["path_params"] = path_params
|
|
93
|
+
http_info["query_params"] = query_params
|
|
94
|
+
http_info["header_params"] = header_params
|
|
95
|
+
http_info["post_params"] = form_params
|
|
96
|
+
http_info["body"] = body
|
|
97
|
+
http_info["response_headers"] = response_headers
|
|
98
|
+
|
|
99
|
+
return http_info
|
|
100
|
+
|
|
101
|
+
def async_invoke_api_start_workflow(self, request):
|
|
102
|
+
r"""API异步启动工作流
|
|
103
|
+
|
|
104
|
+
本接口用于API方式异步启动已有工作流,产生工作流实例
|
|
105
|
+
|
|
106
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
107
|
+
|
|
108
|
+
:param request: Request instance for AsyncInvokeApiStartWorkflow
|
|
109
|
+
:type request: :class:`huaweicloudsdkdwr.v3.AsyncInvokeApiStartWorkflowRequest`
|
|
110
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.AsyncInvokeApiStartWorkflowResponse`
|
|
111
|
+
"""
|
|
112
|
+
http_info = self._async_invoke_api_start_workflow_http_info(request)
|
|
113
|
+
return self._call_api(**http_info)
|
|
114
|
+
|
|
115
|
+
def async_invoke_api_start_workflow_invoker(self, request):
|
|
116
|
+
http_info = self._async_invoke_api_start_workflow_http_info(request)
|
|
117
|
+
return SyncInvoker(self, http_info)
|
|
118
|
+
|
|
119
|
+
@classmethod
|
|
120
|
+
def _async_invoke_api_start_workflow_http_info(cls, request):
|
|
121
|
+
http_info = {
|
|
122
|
+
"method": "POST",
|
|
123
|
+
"resource_path": "/v3/{project_id}/workflows/{graph_name}/execute",
|
|
124
|
+
"request_type": request.__class__.__name__,
|
|
125
|
+
"response_type": "AsyncInvokeApiStartWorkflowResponse"
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
129
|
+
|
|
130
|
+
cname = None
|
|
131
|
+
|
|
132
|
+
collection_formats = {}
|
|
133
|
+
|
|
134
|
+
path_params = {}
|
|
135
|
+
if 'graph_name' in local_var_params:
|
|
136
|
+
path_params['graph_name'] = local_var_params['graph_name']
|
|
137
|
+
|
|
138
|
+
query_params = []
|
|
139
|
+
|
|
140
|
+
header_params = {}
|
|
141
|
+
|
|
142
|
+
form_params = {}
|
|
143
|
+
|
|
144
|
+
body = None
|
|
145
|
+
if 'body' in local_var_params:
|
|
146
|
+
body = local_var_params['body']
|
|
147
|
+
if isinstance(request, SdkStreamRequest):
|
|
148
|
+
body = request.get_file_stream()
|
|
149
|
+
|
|
150
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
151
|
+
|
|
152
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
153
|
+
['application/json'])
|
|
154
|
+
|
|
155
|
+
auth_settings = []
|
|
156
|
+
|
|
157
|
+
http_info["cname"] = cname
|
|
158
|
+
http_info["collection_formats"] = collection_formats
|
|
159
|
+
http_info["path_params"] = path_params
|
|
160
|
+
http_info["query_params"] = query_params
|
|
161
|
+
http_info["header_params"] = header_params
|
|
162
|
+
http_info["post_params"] = form_params
|
|
163
|
+
http_info["body"] = body
|
|
164
|
+
http_info["response_headers"] = response_headers
|
|
165
|
+
|
|
166
|
+
return http_info
|
|
167
|
+
|
|
168
|
+
def check_workflow_authentication(self, request):
|
|
169
|
+
r"""查询授权
|
|
170
|
+
|
|
171
|
+
本接口用于查询授权,查询由DWR服务自动帮助用户创建工作流运行时需要的函数服务权限,以及函数服务运行时的权限。该函数具有幂等性。
|
|
172
|
+
|
|
173
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
174
|
+
|
|
175
|
+
:param request: Request instance for CheckWorkflowAuthentication
|
|
176
|
+
:type request: :class:`huaweicloudsdkdwr.v3.CheckWorkflowAuthenticationRequest`
|
|
177
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.CheckWorkflowAuthenticationResponse`
|
|
178
|
+
"""
|
|
179
|
+
http_info = self._check_workflow_authentication_http_info(request)
|
|
180
|
+
return self._call_api(**http_info)
|
|
181
|
+
|
|
182
|
+
def check_workflow_authentication_invoker(self, request):
|
|
183
|
+
http_info = self._check_workflow_authentication_http_info(request)
|
|
184
|
+
return SyncInvoker(self, http_info)
|
|
185
|
+
|
|
186
|
+
@classmethod
|
|
187
|
+
def _check_workflow_authentication_http_info(cls, request):
|
|
188
|
+
http_info = {
|
|
189
|
+
"method": "GET",
|
|
190
|
+
"resource_path": "/v3/{project_id}/workflow-authorization",
|
|
191
|
+
"request_type": request.__class__.__name__,
|
|
192
|
+
"response_type": "CheckWorkflowAuthenticationResponse"
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
196
|
+
|
|
197
|
+
cname = None
|
|
198
|
+
|
|
199
|
+
collection_formats = {}
|
|
200
|
+
|
|
201
|
+
path_params = {}
|
|
202
|
+
|
|
203
|
+
query_params = []
|
|
204
|
+
|
|
205
|
+
header_params = {}
|
|
206
|
+
|
|
207
|
+
form_params = {}
|
|
208
|
+
|
|
209
|
+
body = None
|
|
210
|
+
if isinstance(request, SdkStreamRequest):
|
|
211
|
+
body = request.get_file_stream()
|
|
212
|
+
|
|
213
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
214
|
+
|
|
215
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
216
|
+
['application/json'])
|
|
217
|
+
|
|
218
|
+
auth_settings = []
|
|
219
|
+
|
|
220
|
+
http_info["cname"] = cname
|
|
221
|
+
http_info["collection_formats"] = collection_formats
|
|
222
|
+
http_info["path_params"] = path_params
|
|
223
|
+
http_info["query_params"] = query_params
|
|
224
|
+
http_info["header_params"] = header_params
|
|
225
|
+
http_info["post_params"] = form_params
|
|
226
|
+
http_info["body"] = body
|
|
227
|
+
http_info["response_headers"] = response_headers
|
|
228
|
+
|
|
229
|
+
return http_info
|
|
230
|
+
|
|
231
|
+
def create_my_action_template(self, request):
|
|
232
|
+
r"""创建第三方算子模板
|
|
233
|
+
|
|
234
|
+
创建第三方算子模板
|
|
235
|
+
|
|
236
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
237
|
+
|
|
238
|
+
:param request: Request instance for CreateMyActionTemplate
|
|
239
|
+
:type request: :class:`huaweicloudsdkdwr.v3.CreateMyActionTemplateRequest`
|
|
240
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.CreateMyActionTemplateResponse`
|
|
241
|
+
"""
|
|
242
|
+
http_info = self._create_my_action_template_http_info(request)
|
|
243
|
+
return self._call_api(**http_info)
|
|
244
|
+
|
|
245
|
+
def create_my_action_template_invoker(self, request):
|
|
246
|
+
http_info = self._create_my_action_template_http_info(request)
|
|
247
|
+
return SyncInvoker(self, http_info)
|
|
248
|
+
|
|
249
|
+
@classmethod
|
|
250
|
+
def _create_my_action_template_http_info(cls, request):
|
|
251
|
+
http_info = {
|
|
252
|
+
"method": "POST",
|
|
253
|
+
"resource_path": "/v3/{project_id}/myactiontemplates/{template_name}",
|
|
254
|
+
"request_type": request.__class__.__name__,
|
|
255
|
+
"response_type": "CreateMyActionTemplateResponse"
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
259
|
+
|
|
260
|
+
cname = None
|
|
261
|
+
|
|
262
|
+
collection_formats = {}
|
|
263
|
+
|
|
264
|
+
path_params = {}
|
|
265
|
+
if 'template_name' in local_var_params:
|
|
266
|
+
path_params['template_name'] = local_var_params['template_name']
|
|
267
|
+
|
|
268
|
+
query_params = []
|
|
269
|
+
|
|
270
|
+
header_params = {}
|
|
271
|
+
|
|
272
|
+
form_params = {}
|
|
273
|
+
|
|
274
|
+
body = None
|
|
275
|
+
if 'body' in local_var_params:
|
|
276
|
+
body = local_var_params['body']
|
|
277
|
+
if isinstance(request, SdkStreamRequest):
|
|
278
|
+
body = request.get_file_stream()
|
|
279
|
+
|
|
280
|
+
response_headers = ["X-request-id", "Connection", "Content-Length", "Date", ]
|
|
281
|
+
|
|
282
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
283
|
+
['application/json'])
|
|
284
|
+
|
|
285
|
+
auth_settings = []
|
|
286
|
+
|
|
287
|
+
http_info["cname"] = cname
|
|
288
|
+
http_info["collection_formats"] = collection_formats
|
|
289
|
+
http_info["path_params"] = path_params
|
|
290
|
+
http_info["query_params"] = query_params
|
|
291
|
+
http_info["header_params"] = header_params
|
|
292
|
+
http_info["post_params"] = form_params
|
|
293
|
+
http_info["body"] = body
|
|
294
|
+
http_info["response_headers"] = response_headers
|
|
295
|
+
|
|
296
|
+
return http_info
|
|
297
|
+
|
|
298
|
+
def create_workflow_authentication(self, request):
|
|
299
|
+
r"""开通授权
|
|
300
|
+
|
|
301
|
+
本接口用于开通授权,由DWR服务自动帮助用户创建工作流运行时需要的函数服务权限,以及函数服务运行时的权限。该函数具有幂等性。
|
|
302
|
+
|
|
303
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
304
|
+
|
|
305
|
+
:param request: Request instance for CreateWorkflowAuthentication
|
|
306
|
+
:type request: :class:`huaweicloudsdkdwr.v3.CreateWorkflowAuthenticationRequest`
|
|
307
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.CreateWorkflowAuthenticationResponse`
|
|
308
|
+
"""
|
|
309
|
+
http_info = self._create_workflow_authentication_http_info(request)
|
|
310
|
+
return self._call_api(**http_info)
|
|
311
|
+
|
|
312
|
+
def create_workflow_authentication_invoker(self, request):
|
|
313
|
+
http_info = self._create_workflow_authentication_http_info(request)
|
|
314
|
+
return SyncInvoker(self, http_info)
|
|
315
|
+
|
|
316
|
+
@classmethod
|
|
317
|
+
def _create_workflow_authentication_http_info(cls, request):
|
|
318
|
+
http_info = {
|
|
319
|
+
"method": "POST",
|
|
320
|
+
"resource_path": "/v3/{project_id}/workflow-authorization",
|
|
321
|
+
"request_type": request.__class__.__name__,
|
|
322
|
+
"response_type": "CreateWorkflowAuthenticationResponse"
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
326
|
+
|
|
327
|
+
cname = None
|
|
328
|
+
|
|
329
|
+
collection_formats = {}
|
|
330
|
+
|
|
331
|
+
path_params = {}
|
|
332
|
+
|
|
333
|
+
query_params = []
|
|
334
|
+
|
|
335
|
+
header_params = {}
|
|
336
|
+
|
|
337
|
+
form_params = {}
|
|
338
|
+
|
|
339
|
+
body = None
|
|
340
|
+
if isinstance(request, SdkStreamRequest):
|
|
341
|
+
body = request.get_file_stream()
|
|
342
|
+
|
|
343
|
+
response_headers = ["x-request-id", "Content-Length", ]
|
|
344
|
+
|
|
345
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
346
|
+
['application/json'])
|
|
347
|
+
|
|
348
|
+
auth_settings = []
|
|
349
|
+
|
|
350
|
+
http_info["cname"] = cname
|
|
351
|
+
http_info["collection_formats"] = collection_formats
|
|
352
|
+
http_info["path_params"] = path_params
|
|
353
|
+
http_info["query_params"] = query_params
|
|
354
|
+
http_info["header_params"] = header_params
|
|
355
|
+
http_info["post_params"] = form_params
|
|
356
|
+
http_info["body"] = body
|
|
357
|
+
http_info["response_headers"] = response_headers
|
|
358
|
+
|
|
359
|
+
return http_info
|
|
360
|
+
|
|
361
|
+
def delete_my_action_template(self, request):
|
|
362
|
+
r"""删除第三方算子模板
|
|
363
|
+
|
|
364
|
+
本接口用于标记删除提交的第三方算子模板。
|
|
365
|
+
|
|
366
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
367
|
+
|
|
368
|
+
:param request: Request instance for DeleteMyActionTemplate
|
|
369
|
+
:type request: :class:`huaweicloudsdkdwr.v3.DeleteMyActionTemplateRequest`
|
|
370
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.DeleteMyActionTemplateResponse`
|
|
371
|
+
"""
|
|
372
|
+
http_info = self._delete_my_action_template_http_info(request)
|
|
373
|
+
return self._call_api(**http_info)
|
|
374
|
+
|
|
375
|
+
def delete_my_action_template_invoker(self, request):
|
|
376
|
+
http_info = self._delete_my_action_template_http_info(request)
|
|
377
|
+
return SyncInvoker(self, http_info)
|
|
378
|
+
|
|
379
|
+
@classmethod
|
|
380
|
+
def _delete_my_action_template_http_info(cls, request):
|
|
381
|
+
http_info = {
|
|
382
|
+
"method": "DELETE",
|
|
383
|
+
"resource_path": "/v3/{project_id}/myactiontemplates/{template_name}",
|
|
384
|
+
"request_type": request.__class__.__name__,
|
|
385
|
+
"response_type": "DeleteMyActionTemplateResponse"
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
389
|
+
|
|
390
|
+
cname = None
|
|
391
|
+
|
|
392
|
+
collection_formats = {}
|
|
393
|
+
|
|
394
|
+
path_params = {}
|
|
395
|
+
if 'template_name' in local_var_params:
|
|
396
|
+
path_params['template_name'] = local_var_params['template_name']
|
|
397
|
+
|
|
398
|
+
query_params = []
|
|
399
|
+
|
|
400
|
+
header_params = {}
|
|
401
|
+
|
|
402
|
+
form_params = {}
|
|
403
|
+
|
|
404
|
+
body = None
|
|
405
|
+
if isinstance(request, SdkStreamRequest):
|
|
406
|
+
body = request.get_file_stream()
|
|
407
|
+
|
|
408
|
+
response_headers = ["x-request-id", "Content-Length", ]
|
|
409
|
+
|
|
410
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
411
|
+
['application/json'])
|
|
412
|
+
|
|
413
|
+
auth_settings = []
|
|
414
|
+
|
|
415
|
+
http_info["cname"] = cname
|
|
416
|
+
http_info["collection_formats"] = collection_formats
|
|
417
|
+
http_info["path_params"] = path_params
|
|
418
|
+
http_info["query_params"] = query_params
|
|
419
|
+
http_info["header_params"] = header_params
|
|
420
|
+
http_info["post_params"] = form_params
|
|
421
|
+
http_info["body"] = body
|
|
422
|
+
http_info["response_headers"] = response_headers
|
|
423
|
+
|
|
424
|
+
return http_info
|
|
425
|
+
|
|
426
|
+
def list_my_action_template(self, request):
|
|
427
|
+
r"""查询第三方算子列表
|
|
428
|
+
|
|
429
|
+
本接口用于查询提交注册过的三方算子列表。
|
|
430
|
+
|
|
431
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
432
|
+
|
|
433
|
+
:param request: Request instance for ListMyActionTemplate
|
|
434
|
+
:type request: :class:`huaweicloudsdkdwr.v3.ListMyActionTemplateRequest`
|
|
435
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.ListMyActionTemplateResponse`
|
|
436
|
+
"""
|
|
437
|
+
http_info = self._list_my_action_template_http_info(request)
|
|
438
|
+
return self._call_api(**http_info)
|
|
439
|
+
|
|
440
|
+
def list_my_action_template_invoker(self, request):
|
|
441
|
+
http_info = self._list_my_action_template_http_info(request)
|
|
442
|
+
return SyncInvoker(self, http_info)
|
|
443
|
+
|
|
444
|
+
@classmethod
|
|
445
|
+
def _list_my_action_template_http_info(cls, request):
|
|
446
|
+
http_info = {
|
|
447
|
+
"method": "GET",
|
|
448
|
+
"resource_path": "/v3/{project_id}/myactiontemplates",
|
|
449
|
+
"request_type": request.__class__.__name__,
|
|
450
|
+
"response_type": "ListMyActionTemplateResponse"
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
454
|
+
|
|
455
|
+
cname = None
|
|
456
|
+
|
|
457
|
+
collection_formats = {}
|
|
458
|
+
|
|
459
|
+
path_params = {}
|
|
460
|
+
|
|
461
|
+
query_params = []
|
|
462
|
+
if 'prefix' in local_var_params:
|
|
463
|
+
query_params.append(('prefix', local_var_params['prefix']))
|
|
464
|
+
if 'status' in local_var_params:
|
|
465
|
+
query_params.append(('status', local_var_params['status']))
|
|
466
|
+
if 'category' in local_var_params:
|
|
467
|
+
query_params.append(('category', local_var_params['category']))
|
|
468
|
+
if 'offset' in local_var_params:
|
|
469
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
470
|
+
if 'limit' in local_var_params:
|
|
471
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
472
|
+
|
|
473
|
+
header_params = {}
|
|
474
|
+
|
|
475
|
+
form_params = {}
|
|
476
|
+
|
|
477
|
+
body = None
|
|
478
|
+
if isinstance(request, SdkStreamRequest):
|
|
479
|
+
body = request.get_file_stream()
|
|
480
|
+
|
|
481
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
482
|
+
|
|
483
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
484
|
+
['application/json'])
|
|
485
|
+
|
|
486
|
+
auth_settings = []
|
|
487
|
+
|
|
488
|
+
http_info["cname"] = cname
|
|
489
|
+
http_info["collection_formats"] = collection_formats
|
|
490
|
+
http_info["path_params"] = path_params
|
|
491
|
+
http_info["query_params"] = query_params
|
|
492
|
+
http_info["header_params"] = header_params
|
|
493
|
+
http_info["post_params"] = form_params
|
|
494
|
+
http_info["body"] = body
|
|
495
|
+
http_info["response_headers"] = response_headers
|
|
496
|
+
|
|
497
|
+
return http_info
|
|
498
|
+
|
|
499
|
+
def list_system_templates(self, request):
|
|
500
|
+
r"""查询华为云内置算子列表
|
|
501
|
+
|
|
502
|
+
本接口用于按名称查询系统内置算子列表。
|
|
503
|
+
|
|
504
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
505
|
+
|
|
506
|
+
:param request: Request instance for ListSystemTemplates
|
|
507
|
+
:type request: :class:`huaweicloudsdkdwr.v3.ListSystemTemplatesRequest`
|
|
508
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.ListSystemTemplatesResponse`
|
|
509
|
+
"""
|
|
510
|
+
http_info = self._list_system_templates_http_info(request)
|
|
511
|
+
return self._call_api(**http_info)
|
|
512
|
+
|
|
513
|
+
def list_system_templates_invoker(self, request):
|
|
514
|
+
http_info = self._list_system_templates_http_info(request)
|
|
515
|
+
return SyncInvoker(self, http_info)
|
|
516
|
+
|
|
517
|
+
@classmethod
|
|
518
|
+
def _list_system_templates_http_info(cls, request):
|
|
519
|
+
http_info = {
|
|
520
|
+
"method": "GET",
|
|
521
|
+
"resource_path": "/v3/{project_id}/actiontemplates",
|
|
522
|
+
"request_type": request.__class__.__name__,
|
|
523
|
+
"response_type": "ListSystemTemplatesResponse"
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
527
|
+
|
|
528
|
+
cname = None
|
|
529
|
+
|
|
530
|
+
collection_formats = {}
|
|
531
|
+
|
|
532
|
+
path_params = {}
|
|
533
|
+
|
|
534
|
+
query_params = []
|
|
535
|
+
if 'prefix' in local_var_params:
|
|
536
|
+
query_params.append(('prefix', local_var_params['prefix']))
|
|
537
|
+
if 'category' in local_var_params:
|
|
538
|
+
query_params.append(('category', local_var_params['category']))
|
|
539
|
+
if 'offset' in local_var_params:
|
|
540
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
541
|
+
if 'limit' in local_var_params:
|
|
542
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
543
|
+
|
|
544
|
+
header_params = {}
|
|
545
|
+
|
|
546
|
+
form_params = {}
|
|
547
|
+
|
|
548
|
+
body = None
|
|
549
|
+
if isinstance(request, SdkStreamRequest):
|
|
550
|
+
body = request.get_file_stream()
|
|
551
|
+
|
|
552
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
553
|
+
|
|
554
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
555
|
+
['application/json'])
|
|
556
|
+
|
|
557
|
+
auth_settings = []
|
|
558
|
+
|
|
559
|
+
http_info["cname"] = cname
|
|
560
|
+
http_info["collection_formats"] = collection_formats
|
|
561
|
+
http_info["path_params"] = path_params
|
|
562
|
+
http_info["query_params"] = query_params
|
|
563
|
+
http_info["header_params"] = header_params
|
|
564
|
+
http_info["post_params"] = form_params
|
|
565
|
+
http_info["body"] = body
|
|
566
|
+
http_info["response_headers"] = response_headers
|
|
567
|
+
|
|
568
|
+
return http_info
|
|
569
|
+
|
|
570
|
+
def list_workflow_instance(self, request):
|
|
571
|
+
r"""本接口用于查询用户工作流的实例列表
|
|
572
|
+
|
|
573
|
+
本接口用于查询用户工作流的实例列表。
|
|
574
|
+
|
|
575
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
576
|
+
|
|
577
|
+
:param request: Request instance for ListWorkflowInstance
|
|
578
|
+
:type request: :class:`huaweicloudsdkdwr.v3.ListWorkflowInstanceRequest`
|
|
579
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.ListWorkflowInstanceResponse`
|
|
580
|
+
"""
|
|
581
|
+
http_info = self._list_workflow_instance_http_info(request)
|
|
582
|
+
return self._call_api(**http_info)
|
|
583
|
+
|
|
584
|
+
def list_workflow_instance_invoker(self, request):
|
|
585
|
+
http_info = self._list_workflow_instance_http_info(request)
|
|
586
|
+
return SyncInvoker(self, http_info)
|
|
587
|
+
|
|
588
|
+
@classmethod
|
|
589
|
+
def _list_workflow_instance_http_info(cls, request):
|
|
590
|
+
http_info = {
|
|
591
|
+
"method": "GET",
|
|
592
|
+
"resource_path": "/v3/{project_id}/workflowexecutions",
|
|
593
|
+
"request_type": request.__class__.__name__,
|
|
594
|
+
"response_type": "ListWorkflowInstanceResponse"
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
598
|
+
|
|
599
|
+
cname = None
|
|
600
|
+
|
|
601
|
+
collection_formats = {}
|
|
602
|
+
|
|
603
|
+
path_params = {}
|
|
604
|
+
|
|
605
|
+
query_params = []
|
|
606
|
+
if 'limit' in local_var_params:
|
|
607
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
608
|
+
if 'graph_name' in local_var_params:
|
|
609
|
+
query_params.append(('graph_name', local_var_params['graph_name']))
|
|
610
|
+
if 'start_time' in local_var_params:
|
|
611
|
+
query_params.append(('start_time', local_var_params['start_time']))
|
|
612
|
+
if 'end_time' in local_var_params:
|
|
613
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
|
614
|
+
if 'status' in local_var_params:
|
|
615
|
+
query_params.append(('status', local_var_params['status']))
|
|
616
|
+
if 'offset' in local_var_params:
|
|
617
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
618
|
+
|
|
619
|
+
header_params = {}
|
|
620
|
+
|
|
621
|
+
form_params = {}
|
|
622
|
+
|
|
623
|
+
body = None
|
|
624
|
+
if isinstance(request, SdkStreamRequest):
|
|
625
|
+
body = request.get_file_stream()
|
|
626
|
+
|
|
627
|
+
response_headers = ["X-Request-Id", "Content-Length", "Date", "Content-Type", ]
|
|
628
|
+
|
|
629
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
630
|
+
['application/json'])
|
|
631
|
+
|
|
632
|
+
auth_settings = []
|
|
633
|
+
|
|
634
|
+
http_info["cname"] = cname
|
|
635
|
+
http_info["collection_formats"] = collection_formats
|
|
636
|
+
http_info["path_params"] = path_params
|
|
637
|
+
http_info["query_params"] = query_params
|
|
638
|
+
http_info["header_params"] = header_params
|
|
639
|
+
http_info["post_params"] = form_params
|
|
640
|
+
http_info["body"] = body
|
|
641
|
+
http_info["response_headers"] = response_headers
|
|
642
|
+
|
|
643
|
+
return http_info
|
|
644
|
+
|
|
645
|
+
def restore_workflow_execution(self, request):
|
|
646
|
+
r"""恢复一个执行失败状态的工作流实例
|
|
647
|
+
|
|
648
|
+
本接口用于恢复一个执行失败状态的工作流实例。恢复后,工作流实例将从上次失败的状态处继续执行,而工作流步骤中已经执行成功的状态不会再执行。
|
|
649
|
+
|
|
650
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
651
|
+
|
|
652
|
+
:param request: Request instance for RestoreWorkflowExecution
|
|
653
|
+
:type request: :class:`huaweicloudsdkdwr.v3.RestoreWorkflowExecutionRequest`
|
|
654
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.RestoreWorkflowExecutionResponse`
|
|
655
|
+
"""
|
|
656
|
+
http_info = self._restore_workflow_execution_http_info(request)
|
|
657
|
+
return self._call_api(**http_info)
|
|
658
|
+
|
|
659
|
+
def restore_workflow_execution_invoker(self, request):
|
|
660
|
+
http_info = self._restore_workflow_execution_http_info(request)
|
|
661
|
+
return SyncInvoker(self, http_info)
|
|
662
|
+
|
|
663
|
+
@classmethod
|
|
664
|
+
def _restore_workflow_execution_http_info(cls, request):
|
|
665
|
+
http_info = {
|
|
666
|
+
"method": "POST",
|
|
667
|
+
"resource_path": "/v3/{project_id}/workflows/{graph_name}/workflowexecution/{execution_name}/retry",
|
|
668
|
+
"request_type": request.__class__.__name__,
|
|
669
|
+
"response_type": "RestoreWorkflowExecutionResponse"
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
673
|
+
|
|
674
|
+
cname = None
|
|
675
|
+
|
|
676
|
+
collection_formats = {}
|
|
677
|
+
|
|
678
|
+
path_params = {}
|
|
679
|
+
if 'execution_name' in local_var_params:
|
|
680
|
+
path_params['execution_name'] = local_var_params['execution_name']
|
|
681
|
+
if 'graph_name' in local_var_params:
|
|
682
|
+
path_params['graph_name'] = local_var_params['graph_name']
|
|
683
|
+
|
|
684
|
+
query_params = []
|
|
685
|
+
|
|
686
|
+
header_params = {}
|
|
687
|
+
|
|
688
|
+
form_params = {}
|
|
689
|
+
|
|
690
|
+
body = None
|
|
691
|
+
if isinstance(request, SdkStreamRequest):
|
|
692
|
+
body = request.get_file_stream()
|
|
693
|
+
|
|
694
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
695
|
+
|
|
696
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
697
|
+
['application/json'])
|
|
698
|
+
|
|
699
|
+
auth_settings = []
|
|
700
|
+
|
|
701
|
+
http_info["cname"] = cname
|
|
702
|
+
http_info["collection_formats"] = collection_formats
|
|
703
|
+
http_info["path_params"] = path_params
|
|
704
|
+
http_info["query_params"] = query_params
|
|
705
|
+
http_info["header_params"] = header_params
|
|
706
|
+
http_info["post_params"] = form_params
|
|
707
|
+
http_info["body"] = body
|
|
708
|
+
http_info["response_headers"] = response_headers
|
|
709
|
+
|
|
710
|
+
return http_info
|
|
711
|
+
|
|
712
|
+
def show_public_action_list(self, request):
|
|
713
|
+
r"""查询已发布算子列表
|
|
714
|
+
|
|
715
|
+
本接口用于查询开放的算子列表。
|
|
716
|
+
|
|
717
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
718
|
+
|
|
719
|
+
:param request: Request instance for ShowPublicActionList
|
|
720
|
+
:type request: :class:`huaweicloudsdkdwr.v3.ShowPublicActionListRequest`
|
|
721
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.ShowPublicActionListResponse`
|
|
722
|
+
"""
|
|
723
|
+
http_info = self._show_public_action_list_http_info(request)
|
|
724
|
+
return self._call_api(**http_info)
|
|
725
|
+
|
|
726
|
+
def show_public_action_list_invoker(self, request):
|
|
727
|
+
http_info = self._show_public_action_list_http_info(request)
|
|
728
|
+
return SyncInvoker(self, http_info)
|
|
729
|
+
|
|
730
|
+
@classmethod
|
|
731
|
+
def _show_public_action_list_http_info(cls, request):
|
|
732
|
+
http_info = {
|
|
733
|
+
"method": "GET",
|
|
734
|
+
"resource_path": "/v3/{project_id}/publicactiontemplates",
|
|
735
|
+
"request_type": request.__class__.__name__,
|
|
736
|
+
"response_type": "ShowPublicActionListResponse"
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
740
|
+
|
|
741
|
+
cname = None
|
|
742
|
+
|
|
743
|
+
collection_formats = {}
|
|
744
|
+
|
|
745
|
+
path_params = {}
|
|
746
|
+
|
|
747
|
+
query_params = []
|
|
748
|
+
if 'prefix' in local_var_params:
|
|
749
|
+
query_params.append(('prefix', local_var_params['prefix']))
|
|
750
|
+
if 'category' in local_var_params:
|
|
751
|
+
query_params.append(('category', local_var_params['category']))
|
|
752
|
+
if 'offset' in local_var_params:
|
|
753
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
754
|
+
if 'limit' in local_var_params:
|
|
755
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
756
|
+
|
|
757
|
+
header_params = {}
|
|
758
|
+
|
|
759
|
+
form_params = {}
|
|
760
|
+
|
|
761
|
+
body = None
|
|
762
|
+
if isinstance(request, SdkStreamRequest):
|
|
763
|
+
body = request.get_file_stream()
|
|
764
|
+
|
|
765
|
+
response_headers = ["X-request-id", "Connection", "Content-Length", "Date", ]
|
|
766
|
+
|
|
767
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
768
|
+
['application/json'])
|
|
769
|
+
|
|
770
|
+
auth_settings = []
|
|
771
|
+
|
|
772
|
+
http_info["cname"] = cname
|
|
773
|
+
http_info["collection_formats"] = collection_formats
|
|
774
|
+
http_info["path_params"] = path_params
|
|
775
|
+
http_info["query_params"] = query_params
|
|
776
|
+
http_info["header_params"] = header_params
|
|
777
|
+
http_info["post_params"] = form_params
|
|
778
|
+
http_info["body"] = body
|
|
779
|
+
http_info["response_headers"] = response_headers
|
|
780
|
+
|
|
781
|
+
return http_info
|
|
782
|
+
|
|
783
|
+
def show_public_template_info(self, request):
|
|
784
|
+
r"""查询已发布算子模板详情
|
|
785
|
+
|
|
786
|
+
本接口用于按名称查询开放的算子详情。
|
|
787
|
+
|
|
788
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
789
|
+
|
|
790
|
+
:param request: Request instance for ShowPublicTemplateInfo
|
|
791
|
+
:type request: :class:`huaweicloudsdkdwr.v3.ShowPublicTemplateInfoRequest`
|
|
792
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.ShowPublicTemplateInfoResponse`
|
|
793
|
+
"""
|
|
794
|
+
http_info = self._show_public_template_info_http_info(request)
|
|
795
|
+
return self._call_api(**http_info)
|
|
796
|
+
|
|
797
|
+
def show_public_template_info_invoker(self, request):
|
|
798
|
+
http_info = self._show_public_template_info_http_info(request)
|
|
799
|
+
return SyncInvoker(self, http_info)
|
|
800
|
+
|
|
801
|
+
@classmethod
|
|
802
|
+
def _show_public_template_info_http_info(cls, request):
|
|
803
|
+
http_info = {
|
|
804
|
+
"method": "GET",
|
|
805
|
+
"resource_path": "/v3/{project_id}/publicactiontemplate/{template_name}",
|
|
806
|
+
"request_type": request.__class__.__name__,
|
|
807
|
+
"response_type": "ShowPublicTemplateInfoResponse"
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
811
|
+
|
|
812
|
+
cname = None
|
|
813
|
+
|
|
814
|
+
collection_formats = {}
|
|
815
|
+
|
|
816
|
+
path_params = {}
|
|
817
|
+
if 'template_name' in local_var_params:
|
|
818
|
+
path_params['template_name'] = local_var_params['template_name']
|
|
819
|
+
|
|
820
|
+
query_params = []
|
|
821
|
+
|
|
822
|
+
header_params = {}
|
|
823
|
+
|
|
824
|
+
form_params = {}
|
|
825
|
+
|
|
826
|
+
body = None
|
|
827
|
+
if isinstance(request, SdkStreamRequest):
|
|
828
|
+
body = request.get_file_stream()
|
|
829
|
+
|
|
830
|
+
response_headers = ["X-request-id", "Connection", "Content-Length", "Date", ]
|
|
831
|
+
|
|
832
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
833
|
+
['application/json'])
|
|
834
|
+
|
|
835
|
+
auth_settings = []
|
|
836
|
+
|
|
837
|
+
http_info["cname"] = cname
|
|
838
|
+
http_info["collection_formats"] = collection_formats
|
|
839
|
+
http_info["path_params"] = path_params
|
|
840
|
+
http_info["query_params"] = query_params
|
|
841
|
+
http_info["header_params"] = header_params
|
|
842
|
+
http_info["post_params"] = form_params
|
|
843
|
+
http_info["body"] = body
|
|
844
|
+
http_info["response_headers"] = response_headers
|
|
845
|
+
|
|
846
|
+
return http_info
|
|
847
|
+
|
|
848
|
+
def show_service_contract(self, request):
|
|
849
|
+
r"""查询服务协议
|
|
850
|
+
|
|
851
|
+
本接口用于查询使用工作流时同意的服务协议。该函数具有幂等性。
|
|
852
|
+
|
|
853
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
854
|
+
|
|
855
|
+
:param request: Request instance for ShowServiceContract
|
|
856
|
+
:type request: :class:`huaweicloudsdkdwr.v3.ShowServiceContractRequest`
|
|
857
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.ShowServiceContractResponse`
|
|
858
|
+
"""
|
|
859
|
+
http_info = self._show_service_contract_http_info(request)
|
|
860
|
+
return self._call_api(**http_info)
|
|
861
|
+
|
|
862
|
+
def show_service_contract_invoker(self, request):
|
|
863
|
+
http_info = self._show_service_contract_http_info(request)
|
|
864
|
+
return SyncInvoker(self, http_info)
|
|
865
|
+
|
|
866
|
+
@classmethod
|
|
867
|
+
def _show_service_contract_http_info(cls, request):
|
|
868
|
+
http_info = {
|
|
869
|
+
"method": "GET",
|
|
870
|
+
"resource_path": "/v3/{project_id}/workflow-agreements",
|
|
871
|
+
"request_type": request.__class__.__name__,
|
|
872
|
+
"response_type": "ShowServiceContractResponse"
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
876
|
+
|
|
877
|
+
cname = None
|
|
878
|
+
|
|
879
|
+
collection_formats = {}
|
|
880
|
+
|
|
881
|
+
path_params = {}
|
|
882
|
+
|
|
883
|
+
query_params = []
|
|
884
|
+
if 'type' in local_var_params:
|
|
885
|
+
query_params.append(('type', local_var_params['type']))
|
|
886
|
+
|
|
887
|
+
header_params = {}
|
|
888
|
+
|
|
889
|
+
form_params = {}
|
|
890
|
+
|
|
891
|
+
body = None
|
|
892
|
+
if isinstance(request, SdkStreamRequest):
|
|
893
|
+
body = request.get_file_stream()
|
|
894
|
+
|
|
895
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
896
|
+
|
|
897
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
898
|
+
['application/json'])
|
|
899
|
+
|
|
900
|
+
auth_settings = []
|
|
901
|
+
|
|
902
|
+
http_info["cname"] = cname
|
|
903
|
+
http_info["collection_formats"] = collection_formats
|
|
904
|
+
http_info["path_params"] = path_params
|
|
905
|
+
http_info["query_params"] = query_params
|
|
906
|
+
http_info["header_params"] = header_params
|
|
907
|
+
http_info["post_params"] = form_params
|
|
908
|
+
http_info["body"] = body
|
|
909
|
+
http_info["response_headers"] = response_headers
|
|
910
|
+
|
|
911
|
+
return http_info
|
|
912
|
+
|
|
913
|
+
def show_system_template_detail(self, request):
|
|
914
|
+
r"""查询华为云内置算子模板信息
|
|
915
|
+
|
|
916
|
+
本接口用于按名称查询系统内置算子详情。
|
|
917
|
+
|
|
918
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
919
|
+
|
|
920
|
+
:param request: Request instance for ShowSystemTemplateDetail
|
|
921
|
+
:type request: :class:`huaweicloudsdkdwr.v3.ShowSystemTemplateDetailRequest`
|
|
922
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.ShowSystemTemplateDetailResponse`
|
|
923
|
+
"""
|
|
924
|
+
http_info = self._show_system_template_detail_http_info(request)
|
|
925
|
+
return self._call_api(**http_info)
|
|
926
|
+
|
|
927
|
+
def show_system_template_detail_invoker(self, request):
|
|
928
|
+
http_info = self._show_system_template_detail_http_info(request)
|
|
929
|
+
return SyncInvoker(self, http_info)
|
|
930
|
+
|
|
931
|
+
@classmethod
|
|
932
|
+
def _show_system_template_detail_http_info(cls, request):
|
|
933
|
+
http_info = {
|
|
934
|
+
"method": "GET",
|
|
935
|
+
"resource_path": "/v3/{project_id}/actiontemplate/{template_name}",
|
|
936
|
+
"request_type": request.__class__.__name__,
|
|
937
|
+
"response_type": "ShowSystemTemplateDetailResponse"
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
941
|
+
|
|
942
|
+
cname = None
|
|
943
|
+
|
|
944
|
+
collection_formats = {}
|
|
945
|
+
|
|
946
|
+
path_params = {}
|
|
947
|
+
if 'template_name' in local_var_params:
|
|
948
|
+
path_params['template_name'] = local_var_params['template_name']
|
|
949
|
+
|
|
950
|
+
query_params = []
|
|
951
|
+
|
|
952
|
+
header_params = {}
|
|
953
|
+
|
|
954
|
+
form_params = {}
|
|
955
|
+
|
|
956
|
+
body = None
|
|
957
|
+
if isinstance(request, SdkStreamRequest):
|
|
958
|
+
body = request.get_file_stream()
|
|
959
|
+
|
|
960
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
961
|
+
|
|
962
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
963
|
+
['application/json'])
|
|
964
|
+
|
|
965
|
+
auth_settings = []
|
|
966
|
+
|
|
967
|
+
http_info["cname"] = cname
|
|
968
|
+
http_info["collection_formats"] = collection_formats
|
|
969
|
+
http_info["path_params"] = path_params
|
|
970
|
+
http_info["query_params"] = query_params
|
|
971
|
+
http_info["header_params"] = header_params
|
|
972
|
+
http_info["post_params"] = form_params
|
|
973
|
+
http_info["body"] = body
|
|
974
|
+
http_info["response_headers"] = response_headers
|
|
975
|
+
|
|
976
|
+
return http_info
|
|
977
|
+
|
|
978
|
+
def show_third_template_info(self, request):
|
|
979
|
+
r"""查询公共Action模板详情
|
|
980
|
+
|
|
981
|
+
本接口用于按名称查询第三方模板详情
|
|
982
|
+
|
|
983
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
984
|
+
|
|
985
|
+
:param request: Request instance for ShowThirdTemplateInfo
|
|
986
|
+
:type request: :class:`huaweicloudsdkdwr.v3.ShowThirdTemplateInfoRequest`
|
|
987
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.ShowThirdTemplateInfoResponse`
|
|
988
|
+
"""
|
|
989
|
+
http_info = self._show_third_template_info_http_info(request)
|
|
990
|
+
return self._call_api(**http_info)
|
|
991
|
+
|
|
992
|
+
def show_third_template_info_invoker(self, request):
|
|
993
|
+
http_info = self._show_third_template_info_http_info(request)
|
|
994
|
+
return SyncInvoker(self, http_info)
|
|
995
|
+
|
|
996
|
+
@classmethod
|
|
997
|
+
def _show_third_template_info_http_info(cls, request):
|
|
998
|
+
http_info = {
|
|
999
|
+
"method": "GET",
|
|
1000
|
+
"resource_path": "/v3/{project_id}/myactiontemplate/{template_name}",
|
|
1001
|
+
"request_type": request.__class__.__name__,
|
|
1002
|
+
"response_type": "ShowThirdTemplateInfoResponse"
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1006
|
+
|
|
1007
|
+
cname = None
|
|
1008
|
+
|
|
1009
|
+
collection_formats = {}
|
|
1010
|
+
|
|
1011
|
+
path_params = {}
|
|
1012
|
+
if 'template_name' in local_var_params:
|
|
1013
|
+
path_params['template_name'] = local_var_params['template_name']
|
|
1014
|
+
|
|
1015
|
+
query_params = []
|
|
1016
|
+
|
|
1017
|
+
header_params = {}
|
|
1018
|
+
|
|
1019
|
+
form_params = {}
|
|
1020
|
+
|
|
1021
|
+
body = None
|
|
1022
|
+
if isinstance(request, SdkStreamRequest):
|
|
1023
|
+
body = request.get_file_stream()
|
|
1024
|
+
|
|
1025
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
1026
|
+
|
|
1027
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1028
|
+
['application/json'])
|
|
1029
|
+
|
|
1030
|
+
auth_settings = []
|
|
1031
|
+
|
|
1032
|
+
http_info["cname"] = cname
|
|
1033
|
+
http_info["collection_formats"] = collection_formats
|
|
1034
|
+
http_info["path_params"] = path_params
|
|
1035
|
+
http_info["query_params"] = query_params
|
|
1036
|
+
http_info["header_params"] = header_params
|
|
1037
|
+
http_info["post_params"] = form_params
|
|
1038
|
+
http_info["body"] = body
|
|
1039
|
+
http_info["response_headers"] = response_headers
|
|
1040
|
+
|
|
1041
|
+
return http_info
|
|
1042
|
+
|
|
1043
|
+
def show_workflow_instance(self, request):
|
|
1044
|
+
r"""本接口用于查询指定工作流实例详细
|
|
1045
|
+
|
|
1046
|
+
本接口用于查询指定工作流实例详细。
|
|
1047
|
+
|
|
1048
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1049
|
+
|
|
1050
|
+
:param request: Request instance for ShowWorkflowInstance
|
|
1051
|
+
:type request: :class:`huaweicloudsdkdwr.v3.ShowWorkflowInstanceRequest`
|
|
1052
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.ShowWorkflowInstanceResponse`
|
|
1053
|
+
"""
|
|
1054
|
+
http_info = self._show_workflow_instance_http_info(request)
|
|
1055
|
+
return self._call_api(**http_info)
|
|
1056
|
+
|
|
1057
|
+
def show_workflow_instance_invoker(self, request):
|
|
1058
|
+
http_info = self._show_workflow_instance_http_info(request)
|
|
1059
|
+
return SyncInvoker(self, http_info)
|
|
1060
|
+
|
|
1061
|
+
@classmethod
|
|
1062
|
+
def _show_workflow_instance_http_info(cls, request):
|
|
1063
|
+
http_info = {
|
|
1064
|
+
"method": "GET",
|
|
1065
|
+
"resource_path": "/v3/{project_id}/workflows/{graph_name}/workflowexecution/{execution_name}",
|
|
1066
|
+
"request_type": request.__class__.__name__,
|
|
1067
|
+
"response_type": "ShowWorkflowInstanceResponse"
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1071
|
+
|
|
1072
|
+
cname = None
|
|
1073
|
+
|
|
1074
|
+
collection_formats = {}
|
|
1075
|
+
|
|
1076
|
+
path_params = {}
|
|
1077
|
+
if 'execution_name' in local_var_params:
|
|
1078
|
+
path_params['execution_name'] = local_var_params['execution_name']
|
|
1079
|
+
if 'graph_name' in local_var_params:
|
|
1080
|
+
path_params['graph_name'] = local_var_params['graph_name']
|
|
1081
|
+
|
|
1082
|
+
query_params = []
|
|
1083
|
+
|
|
1084
|
+
header_params = {}
|
|
1085
|
+
|
|
1086
|
+
form_params = {}
|
|
1087
|
+
|
|
1088
|
+
body = None
|
|
1089
|
+
if isinstance(request, SdkStreamRequest):
|
|
1090
|
+
body = request.get_file_stream()
|
|
1091
|
+
|
|
1092
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
1093
|
+
|
|
1094
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1095
|
+
['application/json'])
|
|
1096
|
+
|
|
1097
|
+
auth_settings = []
|
|
1098
|
+
|
|
1099
|
+
http_info["cname"] = cname
|
|
1100
|
+
http_info["collection_formats"] = collection_formats
|
|
1101
|
+
http_info["path_params"] = path_params
|
|
1102
|
+
http_info["query_params"] = query_params
|
|
1103
|
+
http_info["header_params"] = header_params
|
|
1104
|
+
http_info["post_params"] = form_params
|
|
1105
|
+
http_info["body"] = body
|
|
1106
|
+
http_info["response_headers"] = response_headers
|
|
1107
|
+
|
|
1108
|
+
return http_info
|
|
1109
|
+
|
|
1110
|
+
def update_my_action_template(self, request):
|
|
1111
|
+
r"""更新第三方算子模板
|
|
1112
|
+
|
|
1113
|
+
本接口用于修改第三方算子和将三方算子提交审核
|
|
1114
|
+
|
|
1115
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1116
|
+
|
|
1117
|
+
:param request: Request instance for UpdateMyActionTemplate
|
|
1118
|
+
:type request: :class:`huaweicloudsdkdwr.v3.UpdateMyActionTemplateRequest`
|
|
1119
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.UpdateMyActionTemplateResponse`
|
|
1120
|
+
"""
|
|
1121
|
+
http_info = self._update_my_action_template_http_info(request)
|
|
1122
|
+
return self._call_api(**http_info)
|
|
1123
|
+
|
|
1124
|
+
def update_my_action_template_invoker(self, request):
|
|
1125
|
+
http_info = self._update_my_action_template_http_info(request)
|
|
1126
|
+
return SyncInvoker(self, http_info)
|
|
1127
|
+
|
|
1128
|
+
@classmethod
|
|
1129
|
+
def _update_my_action_template_http_info(cls, request):
|
|
1130
|
+
http_info = {
|
|
1131
|
+
"method": "PUT",
|
|
1132
|
+
"resource_path": "/v3/{project_id}/myactiontemplates/{template_name}",
|
|
1133
|
+
"request_type": request.__class__.__name__,
|
|
1134
|
+
"response_type": "UpdateMyActionTemplateResponse"
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1138
|
+
|
|
1139
|
+
cname = None
|
|
1140
|
+
|
|
1141
|
+
collection_formats = {}
|
|
1142
|
+
|
|
1143
|
+
path_params = {}
|
|
1144
|
+
if 'template_name' in local_var_params:
|
|
1145
|
+
path_params['template_name'] = local_var_params['template_name']
|
|
1146
|
+
|
|
1147
|
+
query_params = []
|
|
1148
|
+
|
|
1149
|
+
header_params = {}
|
|
1150
|
+
|
|
1151
|
+
form_params = {}
|
|
1152
|
+
|
|
1153
|
+
body = None
|
|
1154
|
+
if 'body' in local_var_params:
|
|
1155
|
+
body = local_var_params['body']
|
|
1156
|
+
if isinstance(request, SdkStreamRequest):
|
|
1157
|
+
body = request.get_file_stream()
|
|
1158
|
+
|
|
1159
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
1160
|
+
|
|
1161
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1162
|
+
['application/json'])
|
|
1163
|
+
|
|
1164
|
+
auth_settings = []
|
|
1165
|
+
|
|
1166
|
+
http_info["cname"] = cname
|
|
1167
|
+
http_info["collection_formats"] = collection_formats
|
|
1168
|
+
http_info["path_params"] = path_params
|
|
1169
|
+
http_info["query_params"] = query_params
|
|
1170
|
+
http_info["header_params"] = header_params
|
|
1171
|
+
http_info["post_params"] = form_params
|
|
1172
|
+
http_info["body"] = body
|
|
1173
|
+
http_info["response_headers"] = response_headers
|
|
1174
|
+
|
|
1175
|
+
return http_info
|
|
1176
|
+
|
|
1177
|
+
def update_my_action_template_to_deprecated(self, request):
|
|
1178
|
+
r"""禁用第三方算子模板
|
|
1179
|
+
|
|
1180
|
+
本接口用于申请禁用第三方算子。
|
|
1181
|
+
|
|
1182
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1183
|
+
|
|
1184
|
+
:param request: Request instance for UpdateMyActionTemplateToDeprecated
|
|
1185
|
+
:type request: :class:`huaweicloudsdkdwr.v3.UpdateMyActionTemplateToDeprecatedRequest`
|
|
1186
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.UpdateMyActionTemplateToDeprecatedResponse`
|
|
1187
|
+
"""
|
|
1188
|
+
http_info = self._update_my_action_template_to_deprecated_http_info(request)
|
|
1189
|
+
return self._call_api(**http_info)
|
|
1190
|
+
|
|
1191
|
+
def update_my_action_template_to_deprecated_invoker(self, request):
|
|
1192
|
+
http_info = self._update_my_action_template_to_deprecated_http_info(request)
|
|
1193
|
+
return SyncInvoker(self, http_info)
|
|
1194
|
+
|
|
1195
|
+
@classmethod
|
|
1196
|
+
def _update_my_action_template_to_deprecated_http_info(cls, request):
|
|
1197
|
+
http_info = {
|
|
1198
|
+
"method": "POST",
|
|
1199
|
+
"resource_path": "/v3/{project_id}/myactiontemplates/{template_name}/forbid",
|
|
1200
|
+
"request_type": request.__class__.__name__,
|
|
1201
|
+
"response_type": "UpdateMyActionTemplateToDeprecatedResponse"
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1205
|
+
|
|
1206
|
+
cname = None
|
|
1207
|
+
|
|
1208
|
+
collection_formats = {}
|
|
1209
|
+
|
|
1210
|
+
path_params = {}
|
|
1211
|
+
if 'template_name' in local_var_params:
|
|
1212
|
+
path_params['template_name'] = local_var_params['template_name']
|
|
1213
|
+
|
|
1214
|
+
query_params = []
|
|
1215
|
+
|
|
1216
|
+
header_params = {}
|
|
1217
|
+
|
|
1218
|
+
form_params = {}
|
|
1219
|
+
|
|
1220
|
+
body = None
|
|
1221
|
+
if isinstance(request, SdkStreamRequest):
|
|
1222
|
+
body = request.get_file_stream()
|
|
1223
|
+
|
|
1224
|
+
response_headers = ["x-request-id", "Content-Length", ]
|
|
1225
|
+
|
|
1226
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1227
|
+
['application/json'])
|
|
1228
|
+
|
|
1229
|
+
auth_settings = []
|
|
1230
|
+
|
|
1231
|
+
http_info["cname"] = cname
|
|
1232
|
+
http_info["collection_formats"] = collection_formats
|
|
1233
|
+
http_info["path_params"] = path_params
|
|
1234
|
+
http_info["query_params"] = query_params
|
|
1235
|
+
http_info["header_params"] = header_params
|
|
1236
|
+
http_info["post_params"] = form_params
|
|
1237
|
+
http_info["body"] = body
|
|
1238
|
+
http_info["response_headers"] = response_headers
|
|
1239
|
+
|
|
1240
|
+
return http_info
|
|
1241
|
+
|
|
1242
|
+
def create_workflow(self, request):
|
|
1243
|
+
r"""创建工作流
|
|
1244
|
+
|
|
1245
|
+
本接口用于通过Body体直接创建工作流
|
|
1246
|
+
|
|
1247
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1248
|
+
|
|
1249
|
+
:param request: Request instance for CreateWorkflow
|
|
1250
|
+
:type request: :class:`huaweicloudsdkdwr.v3.CreateWorkflowRequest`
|
|
1251
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.CreateWorkflowResponse`
|
|
1252
|
+
"""
|
|
1253
|
+
http_info = self._create_workflow_http_info(request)
|
|
1254
|
+
return self._call_api(**http_info)
|
|
1255
|
+
|
|
1256
|
+
def create_workflow_invoker(self, request):
|
|
1257
|
+
http_info = self._create_workflow_http_info(request)
|
|
1258
|
+
return SyncInvoker(self, http_info)
|
|
1259
|
+
|
|
1260
|
+
@classmethod
|
|
1261
|
+
def _create_workflow_http_info(cls, request):
|
|
1262
|
+
http_info = {
|
|
1263
|
+
"method": "POST",
|
|
1264
|
+
"resource_path": "/v3/{project_id}/workflows/{graph_name}",
|
|
1265
|
+
"request_type": request.__class__.__name__,
|
|
1266
|
+
"response_type": "CreateWorkflowResponse"
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1270
|
+
|
|
1271
|
+
cname = None
|
|
1272
|
+
|
|
1273
|
+
collection_formats = {}
|
|
1274
|
+
|
|
1275
|
+
path_params = {}
|
|
1276
|
+
if 'graph_name' in local_var_params:
|
|
1277
|
+
path_params['graph_name'] = local_var_params['graph_name']
|
|
1278
|
+
|
|
1279
|
+
query_params = []
|
|
1280
|
+
|
|
1281
|
+
header_params = {}
|
|
1282
|
+
|
|
1283
|
+
form_params = {}
|
|
1284
|
+
|
|
1285
|
+
body = None
|
|
1286
|
+
if 'body' in local_var_params:
|
|
1287
|
+
body = local_var_params['body']
|
|
1288
|
+
if isinstance(request, SdkStreamRequest):
|
|
1289
|
+
body = request.get_file_stream()
|
|
1290
|
+
|
|
1291
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
1292
|
+
|
|
1293
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1294
|
+
['application/json'])
|
|
1295
|
+
|
|
1296
|
+
auth_settings = []
|
|
1297
|
+
|
|
1298
|
+
http_info["cname"] = cname
|
|
1299
|
+
http_info["collection_formats"] = collection_formats
|
|
1300
|
+
http_info["path_params"] = path_params
|
|
1301
|
+
http_info["query_params"] = query_params
|
|
1302
|
+
http_info["header_params"] = header_params
|
|
1303
|
+
http_info["post_params"] = form_params
|
|
1304
|
+
http_info["body"] = body
|
|
1305
|
+
http_info["response_headers"] = response_headers
|
|
1306
|
+
|
|
1307
|
+
return http_info
|
|
1308
|
+
|
|
1309
|
+
def delete_workflow(self, request):
|
|
1310
|
+
r"""删除工作流
|
|
1311
|
+
|
|
1312
|
+
本接口用于删除工作流。
|
|
1313
|
+
|
|
1314
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1315
|
+
|
|
1316
|
+
:param request: Request instance for DeleteWorkflow
|
|
1317
|
+
:type request: :class:`huaweicloudsdkdwr.v3.DeleteWorkflowRequest`
|
|
1318
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.DeleteWorkflowResponse`
|
|
1319
|
+
"""
|
|
1320
|
+
http_info = self._delete_workflow_http_info(request)
|
|
1321
|
+
return self._call_api(**http_info)
|
|
1322
|
+
|
|
1323
|
+
def delete_workflow_invoker(self, request):
|
|
1324
|
+
http_info = self._delete_workflow_http_info(request)
|
|
1325
|
+
return SyncInvoker(self, http_info)
|
|
1326
|
+
|
|
1327
|
+
@classmethod
|
|
1328
|
+
def _delete_workflow_http_info(cls, request):
|
|
1329
|
+
http_info = {
|
|
1330
|
+
"method": "DELETE",
|
|
1331
|
+
"resource_path": "/v3/{project_id}/workflows/{graph_name}",
|
|
1332
|
+
"request_type": request.__class__.__name__,
|
|
1333
|
+
"response_type": "DeleteWorkflowResponse"
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1337
|
+
|
|
1338
|
+
cname = None
|
|
1339
|
+
|
|
1340
|
+
collection_formats = {}
|
|
1341
|
+
|
|
1342
|
+
path_params = {}
|
|
1343
|
+
if 'graph_name' in local_var_params:
|
|
1344
|
+
path_params['graph_name'] = local_var_params['graph_name']
|
|
1345
|
+
|
|
1346
|
+
query_params = []
|
|
1347
|
+
|
|
1348
|
+
header_params = {}
|
|
1349
|
+
|
|
1350
|
+
form_params = {}
|
|
1351
|
+
|
|
1352
|
+
body = None
|
|
1353
|
+
if isinstance(request, SdkStreamRequest):
|
|
1354
|
+
body = request.get_file_stream()
|
|
1355
|
+
|
|
1356
|
+
response_headers = ["x-request-id", "Content-Length", ]
|
|
1357
|
+
|
|
1358
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1359
|
+
['application/json'])
|
|
1360
|
+
|
|
1361
|
+
auth_settings = []
|
|
1362
|
+
|
|
1363
|
+
http_info["cname"] = cname
|
|
1364
|
+
http_info["collection_formats"] = collection_formats
|
|
1365
|
+
http_info["path_params"] = path_params
|
|
1366
|
+
http_info["query_params"] = query_params
|
|
1367
|
+
http_info["header_params"] = header_params
|
|
1368
|
+
http_info["post_params"] = form_params
|
|
1369
|
+
http_info["body"] = body
|
|
1370
|
+
http_info["response_headers"] = response_headers
|
|
1371
|
+
|
|
1372
|
+
return http_info
|
|
1373
|
+
|
|
1374
|
+
def list_workflows(self, request):
|
|
1375
|
+
r"""查询工作流列表
|
|
1376
|
+
|
|
1377
|
+
本接口用于查询工作流列表。
|
|
1378
|
+
|
|
1379
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1380
|
+
|
|
1381
|
+
:param request: Request instance for ListWorkflows
|
|
1382
|
+
:type request: :class:`huaweicloudsdkdwr.v3.ListWorkflowsRequest`
|
|
1383
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.ListWorkflowsResponse`
|
|
1384
|
+
"""
|
|
1385
|
+
http_info = self._list_workflows_http_info(request)
|
|
1386
|
+
return self._call_api(**http_info)
|
|
1387
|
+
|
|
1388
|
+
def list_workflows_invoker(self, request):
|
|
1389
|
+
http_info = self._list_workflows_http_info(request)
|
|
1390
|
+
return SyncInvoker(self, http_info)
|
|
1391
|
+
|
|
1392
|
+
@classmethod
|
|
1393
|
+
def _list_workflows_http_info(cls, request):
|
|
1394
|
+
http_info = {
|
|
1395
|
+
"method": "GET",
|
|
1396
|
+
"resource_path": "/v3/{project_id}/workflows",
|
|
1397
|
+
"request_type": request.__class__.__name__,
|
|
1398
|
+
"response_type": "ListWorkflowsResponse"
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1402
|
+
|
|
1403
|
+
cname = None
|
|
1404
|
+
|
|
1405
|
+
collection_formats = {}
|
|
1406
|
+
|
|
1407
|
+
path_params = {}
|
|
1408
|
+
|
|
1409
|
+
query_params = []
|
|
1410
|
+
if 'prefix' in local_var_params:
|
|
1411
|
+
query_params.append(('prefix', local_var_params['prefix']))
|
|
1412
|
+
if 'offset' in local_var_params:
|
|
1413
|
+
query_params.append(('offset', local_var_params['offset']))
|
|
1414
|
+
if 'limit' in local_var_params:
|
|
1415
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
1416
|
+
|
|
1417
|
+
header_params = {}
|
|
1418
|
+
|
|
1419
|
+
form_params = {}
|
|
1420
|
+
|
|
1421
|
+
body = None
|
|
1422
|
+
if isinstance(request, SdkStreamRequest):
|
|
1423
|
+
body = request.get_file_stream()
|
|
1424
|
+
|
|
1425
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
1426
|
+
|
|
1427
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1428
|
+
['application/json'])
|
|
1429
|
+
|
|
1430
|
+
auth_settings = []
|
|
1431
|
+
|
|
1432
|
+
http_info["cname"] = cname
|
|
1433
|
+
http_info["collection_formats"] = collection_formats
|
|
1434
|
+
http_info["path_params"] = path_params
|
|
1435
|
+
http_info["query_params"] = query_params
|
|
1436
|
+
http_info["header_params"] = header_params
|
|
1437
|
+
http_info["post_params"] = form_params
|
|
1438
|
+
http_info["body"] = body
|
|
1439
|
+
http_info["response_headers"] = response_headers
|
|
1440
|
+
|
|
1441
|
+
return http_info
|
|
1442
|
+
|
|
1443
|
+
def show_workflow_info(self, request):
|
|
1444
|
+
r"""查询工作流信息
|
|
1445
|
+
|
|
1446
|
+
本接口用于根据工作流名称查询工作流详细信息。
|
|
1447
|
+
|
|
1448
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1449
|
+
|
|
1450
|
+
:param request: Request instance for ShowWorkflowInfo
|
|
1451
|
+
:type request: :class:`huaweicloudsdkdwr.v3.ShowWorkflowInfoRequest`
|
|
1452
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.ShowWorkflowInfoResponse`
|
|
1453
|
+
"""
|
|
1454
|
+
http_info = self._show_workflow_info_http_info(request)
|
|
1455
|
+
return self._call_api(**http_info)
|
|
1456
|
+
|
|
1457
|
+
def show_workflow_info_invoker(self, request):
|
|
1458
|
+
http_info = self._show_workflow_info_http_info(request)
|
|
1459
|
+
return SyncInvoker(self, http_info)
|
|
1460
|
+
|
|
1461
|
+
@classmethod
|
|
1462
|
+
def _show_workflow_info_http_info(cls, request):
|
|
1463
|
+
http_info = {
|
|
1464
|
+
"method": "GET",
|
|
1465
|
+
"resource_path": "/v3/{project_id}/workflows/{graph_name}",
|
|
1466
|
+
"request_type": request.__class__.__name__,
|
|
1467
|
+
"response_type": "ShowWorkflowInfoResponse"
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1471
|
+
|
|
1472
|
+
cname = None
|
|
1473
|
+
|
|
1474
|
+
collection_formats = {}
|
|
1475
|
+
|
|
1476
|
+
path_params = {}
|
|
1477
|
+
if 'graph_name' in local_var_params:
|
|
1478
|
+
path_params['graph_name'] = local_var_params['graph_name']
|
|
1479
|
+
|
|
1480
|
+
query_params = []
|
|
1481
|
+
|
|
1482
|
+
header_params = {}
|
|
1483
|
+
|
|
1484
|
+
form_params = {}
|
|
1485
|
+
|
|
1486
|
+
body = None
|
|
1487
|
+
if isinstance(request, SdkStreamRequest):
|
|
1488
|
+
body = request.get_file_stream()
|
|
1489
|
+
|
|
1490
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
1491
|
+
|
|
1492
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1493
|
+
['application/json'])
|
|
1494
|
+
|
|
1495
|
+
auth_settings = []
|
|
1496
|
+
|
|
1497
|
+
http_info["cname"] = cname
|
|
1498
|
+
http_info["collection_formats"] = collection_formats
|
|
1499
|
+
http_info["path_params"] = path_params
|
|
1500
|
+
http_info["query_params"] = query_params
|
|
1501
|
+
http_info["header_params"] = header_params
|
|
1502
|
+
http_info["post_params"] = form_params
|
|
1503
|
+
http_info["body"] = body
|
|
1504
|
+
http_info["response_headers"] = response_headers
|
|
1505
|
+
|
|
1506
|
+
return http_info
|
|
1507
|
+
|
|
1508
|
+
def update_workflow(self, request):
|
|
1509
|
+
r"""更新工作流
|
|
1510
|
+
|
|
1511
|
+
Update Workflow
|
|
1512
|
+
|
|
1513
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
1514
|
+
|
|
1515
|
+
:param request: Request instance for UpdateWorkflow
|
|
1516
|
+
:type request: :class:`huaweicloudsdkdwr.v3.UpdateWorkflowRequest`
|
|
1517
|
+
:rtype: :class:`huaweicloudsdkdwr.v3.UpdateWorkflowResponse`
|
|
1518
|
+
"""
|
|
1519
|
+
http_info = self._update_workflow_http_info(request)
|
|
1520
|
+
return self._call_api(**http_info)
|
|
1521
|
+
|
|
1522
|
+
def update_workflow_invoker(self, request):
|
|
1523
|
+
http_info = self._update_workflow_http_info(request)
|
|
1524
|
+
return SyncInvoker(self, http_info)
|
|
1525
|
+
|
|
1526
|
+
@classmethod
|
|
1527
|
+
def _update_workflow_http_info(cls, request):
|
|
1528
|
+
http_info = {
|
|
1529
|
+
"method": "PUT",
|
|
1530
|
+
"resource_path": "/v3/{project_id}/workflows/{graph_name}",
|
|
1531
|
+
"request_type": request.__class__.__name__,
|
|
1532
|
+
"response_type": "UpdateWorkflowResponse"
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
1536
|
+
|
|
1537
|
+
cname = None
|
|
1538
|
+
|
|
1539
|
+
collection_formats = {}
|
|
1540
|
+
|
|
1541
|
+
path_params = {}
|
|
1542
|
+
if 'graph_name' in local_var_params:
|
|
1543
|
+
path_params['graph_name'] = local_var_params['graph_name']
|
|
1544
|
+
|
|
1545
|
+
query_params = []
|
|
1546
|
+
|
|
1547
|
+
header_params = {}
|
|
1548
|
+
|
|
1549
|
+
form_params = {}
|
|
1550
|
+
|
|
1551
|
+
body = None
|
|
1552
|
+
if 'body' in local_var_params:
|
|
1553
|
+
body = local_var_params['body']
|
|
1554
|
+
if isinstance(request, SdkStreamRequest):
|
|
1555
|
+
body = request.get_file_stream()
|
|
1556
|
+
|
|
1557
|
+
response_headers = ["x-request-id", "Connection", "Content-Length", "Date", ]
|
|
1558
|
+
|
|
1559
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
1560
|
+
['application/json'])
|
|
1561
|
+
|
|
1562
|
+
auth_settings = []
|
|
1563
|
+
|
|
1564
|
+
http_info["cname"] = cname
|
|
1565
|
+
http_info["collection_formats"] = collection_formats
|
|
1566
|
+
http_info["path_params"] = path_params
|
|
1567
|
+
http_info["query_params"] = query_params
|
|
1568
|
+
http_info["header_params"] = header_params
|
|
1569
|
+
http_info["post_params"] = form_params
|
|
1570
|
+
http_info["body"] = body
|
|
1571
|
+
http_info["response_headers"] = response_headers
|
|
1572
|
+
|
|
1573
|
+
return http_info
|
|
1574
|
+
|
|
1575
|
+
def _call_api(self, **kwargs):
|
|
1576
|
+
try:
|
|
1577
|
+
return self.do_http_request(**kwargs)
|
|
1578
|
+
except TypeError:
|
|
1579
|
+
import inspect
|
|
1580
|
+
params = inspect.signature(self.do_http_request).parameters
|
|
1581
|
+
http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
|
|
1582
|
+
return self.do_http_request(**http_info)
|
|
1583
|
+
|
|
1584
|
+
def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
|
|
1585
|
+
post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
|
|
1586
|
+
collection_formats=None, request_type=None):
|
|
1587
|
+
"""Makes the HTTP request and returns deserialized data.
|
|
1588
|
+
|
|
1589
|
+
:param resource_path: Path to method endpoint.
|
|
1590
|
+
:param method: Method to call.
|
|
1591
|
+
:param path_params: Path parameters in the url.
|
|
1592
|
+
:param query_params: Query parameters in the url.
|
|
1593
|
+
:param header_params: Header parameters to be placed in the request header.
|
|
1594
|
+
:param body: Request body.
|
|
1595
|
+
:param post_params: Request post form parameters,
|
|
1596
|
+
for `application/x-www-form-urlencoded`, `multipart/form-data`.
|
|
1597
|
+
:param cname: Used for obs endpoint.
|
|
1598
|
+
:param auth_settings: Auth Settings names for the request.
|
|
1599
|
+
:param response_type: Response data type.
|
|
1600
|
+
:param response_headers: Header should be added to response data.
|
|
1601
|
+
:param collection_formats: dict of collection formats for path, query,
|
|
1602
|
+
header, and post parameters.
|
|
1603
|
+
:param request_type: Request data type.
|
|
1604
|
+
:return:
|
|
1605
|
+
Return the response directly.
|
|
1606
|
+
"""
|
|
1607
|
+
return self.do_http_request(
|
|
1608
|
+
method=method,
|
|
1609
|
+
resource_path=resource_path,
|
|
1610
|
+
path_params=path_params,
|
|
1611
|
+
query_params=query_params,
|
|
1612
|
+
header_params=header_params,
|
|
1613
|
+
body=body,
|
|
1614
|
+
post_params=post_params,
|
|
1615
|
+
cname=cname,
|
|
1616
|
+
response_type=response_type,
|
|
1617
|
+
response_headers=response_headers,
|
|
1618
|
+
collection_formats=collection_formats,
|
|
1619
|
+
request_type=request_type)
|