huaweicloudsdkoroas 3.1.66__py2.py3-none-any.whl → 3.1.68__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- huaweicloudsdkoroas/v1/oroas_async_client.py +121 -74
- huaweicloudsdkoroas/v1/oroas_client.py +123 -73
- {huaweicloudsdkoroas-3.1.66.dist-info → huaweicloudsdkoroas-3.1.68.dist-info}/METADATA +2 -2
- {huaweicloudsdkoroas-3.1.66.dist-info → huaweicloudsdkoroas-3.1.68.dist-info}/RECORD +7 -7
- {huaweicloudsdkoroas-3.1.66.dist-info → huaweicloudsdkoroas-3.1.68.dist-info}/LICENSE +0 -0
- {huaweicloudsdkoroas-3.1.66.dist-info → huaweicloudsdkoroas-3.1.68.dist-info}/WHEEL +0 -0
- {huaweicloudsdkoroas-3.1.66.dist-info → huaweicloudsdkoroas-3.1.68.dist-info}/top_level.txt +0 -0
@@ -3,10 +3,15 @@
|
|
3
3
|
from __future__ import absolute_import
|
4
4
|
|
5
5
|
import importlib
|
6
|
+
import warnings
|
6
7
|
|
7
8
|
from huaweicloudsdkcore.client import Client, ClientBuilder
|
8
9
|
from huaweicloudsdkcore.utils import http_utils
|
9
10
|
from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
|
11
|
+
try:
|
12
|
+
from huaweicloudsdkcore.invoker.invoker import AsyncInvoker
|
13
|
+
except ImportError as e:
|
14
|
+
warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkoroas'")
|
10
15
|
|
11
16
|
|
12
17
|
class OroasAsyncClient(Client):
|
@@ -39,9 +44,21 @@ class OroasAsyncClient(Client):
|
|
39
44
|
:type request: :class:`huaweicloudsdkoroas.v1.CreateTaskRequest`
|
40
45
|
:rtype: :class:`huaweicloudsdkoroas.v1.CreateTaskResponse`
|
41
46
|
"""
|
42
|
-
|
47
|
+
http_info = self._create_task_http_info(request)
|
48
|
+
return self._call_api(**http_info)
|
49
|
+
|
50
|
+
def create_task_async_invoker(self, request):
|
51
|
+
http_info = self._create_task_http_info(request)
|
52
|
+
return AsyncInvoker(self, http_info)
|
53
|
+
|
54
|
+
def _create_task_http_info(self, request):
|
55
|
+
http_info = {
|
56
|
+
"method": "POST",
|
57
|
+
"resource_path": "/v1/{project_id}/oroas/{service_group}/{service_type}/tasks",
|
58
|
+
"request_type": request.__class__.__name__,
|
59
|
+
"response_type": "CreateTaskResponse"
|
60
|
+
}
|
43
61
|
|
44
|
-
def _create_task_with_http_info(self, request):
|
45
62
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
46
63
|
|
47
64
|
cname = None
|
@@ -62,11 +79,11 @@ class OroasAsyncClient(Client):
|
|
62
79
|
|
63
80
|
form_params = {}
|
64
81
|
|
65
|
-
|
82
|
+
body = None
|
66
83
|
if 'body' in local_var_params:
|
67
|
-
|
84
|
+
body = local_var_params['body']
|
68
85
|
if isinstance(request, SdkStreamRequest):
|
69
|
-
|
86
|
+
body = request.get_file_stream()
|
70
87
|
|
71
88
|
response_headers = []
|
72
89
|
|
@@ -75,20 +92,16 @@ class OroasAsyncClient(Client):
|
|
75
92
|
|
76
93
|
auth_settings = []
|
77
94
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
response_headers=response_headers,
|
89
|
-
auth_settings=auth_settings,
|
90
|
-
collection_formats=collection_formats,
|
91
|
-
request_type=request.__class__.__name__)
|
95
|
+
http_info["cname"] = cname
|
96
|
+
http_info["collection_formats"] = collection_formats
|
97
|
+
http_info["path_params"] = path_params
|
98
|
+
http_info["query_params"] = query_params
|
99
|
+
http_info["header_params"] = header_params
|
100
|
+
http_info["post_params"] = form_params
|
101
|
+
http_info["body"] = body
|
102
|
+
http_info["response_headers"] = response_headers
|
103
|
+
|
104
|
+
return http_info
|
92
105
|
|
93
106
|
def delete_task_async(self, request):
|
94
107
|
"""删除任务
|
@@ -102,9 +115,21 @@ class OroasAsyncClient(Client):
|
|
102
115
|
:type request: :class:`huaweicloudsdkoroas.v1.DeleteTaskRequest`
|
103
116
|
:rtype: :class:`huaweicloudsdkoroas.v1.DeleteTaskResponse`
|
104
117
|
"""
|
105
|
-
|
118
|
+
http_info = self._delete_task_http_info(request)
|
119
|
+
return self._call_api(**http_info)
|
120
|
+
|
121
|
+
def delete_task_async_invoker(self, request):
|
122
|
+
http_info = self._delete_task_http_info(request)
|
123
|
+
return AsyncInvoker(self, http_info)
|
124
|
+
|
125
|
+
def _delete_task_http_info(self, request):
|
126
|
+
http_info = {
|
127
|
+
"method": "DELETE",
|
128
|
+
"resource_path": "/v1/{project_id}/oroas/{service_group}/{service_type}/tasks/{task_id}",
|
129
|
+
"request_type": request.__class__.__name__,
|
130
|
+
"response_type": "DeleteTaskResponse"
|
131
|
+
}
|
106
132
|
|
107
|
-
def _delete_task_with_http_info(self, request):
|
108
133
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
109
134
|
|
110
135
|
cname = None
|
@@ -127,9 +152,9 @@ class OroasAsyncClient(Client):
|
|
127
152
|
|
128
153
|
form_params = {}
|
129
154
|
|
130
|
-
|
155
|
+
body = None
|
131
156
|
if isinstance(request, SdkStreamRequest):
|
132
|
-
|
157
|
+
body = request.get_file_stream()
|
133
158
|
|
134
159
|
response_headers = []
|
135
160
|
|
@@ -138,20 +163,16 @@ class OroasAsyncClient(Client):
|
|
138
163
|
|
139
164
|
auth_settings = []
|
140
165
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
response_headers=response_headers,
|
152
|
-
auth_settings=auth_settings,
|
153
|
-
collection_formats=collection_formats,
|
154
|
-
request_type=request.__class__.__name__)
|
166
|
+
http_info["cname"] = cname
|
167
|
+
http_info["collection_formats"] = collection_formats
|
168
|
+
http_info["path_params"] = path_params
|
169
|
+
http_info["query_params"] = query_params
|
170
|
+
http_info["header_params"] = header_params
|
171
|
+
http_info["post_params"] = form_params
|
172
|
+
http_info["body"] = body
|
173
|
+
http_info["response_headers"] = response_headers
|
174
|
+
|
175
|
+
return http_info
|
155
176
|
|
156
177
|
def list_task_async(self, request):
|
157
178
|
"""查询任务列表
|
@@ -165,9 +186,21 @@ class OroasAsyncClient(Client):
|
|
165
186
|
:type request: :class:`huaweicloudsdkoroas.v1.ListTaskRequest`
|
166
187
|
:rtype: :class:`huaweicloudsdkoroas.v1.ListTaskResponse`
|
167
188
|
"""
|
168
|
-
|
189
|
+
http_info = self._list_task_http_info(request)
|
190
|
+
return self._call_api(**http_info)
|
191
|
+
|
192
|
+
def list_task_async_invoker(self, request):
|
193
|
+
http_info = self._list_task_http_info(request)
|
194
|
+
return AsyncInvoker(self, http_info)
|
195
|
+
|
196
|
+
def _list_task_http_info(self, request):
|
197
|
+
http_info = {
|
198
|
+
"method": "GET",
|
199
|
+
"resource_path": "/v1/{project_id}/oroas/{service_group}/{service_type}/tasks",
|
200
|
+
"request_type": request.__class__.__name__,
|
201
|
+
"response_type": "ListTaskResponse"
|
202
|
+
}
|
169
203
|
|
170
|
-
def _list_task_with_http_info(self, request):
|
171
204
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
172
205
|
|
173
206
|
cname = None
|
@@ -192,9 +225,9 @@ class OroasAsyncClient(Client):
|
|
192
225
|
|
193
226
|
form_params = {}
|
194
227
|
|
195
|
-
|
228
|
+
body = None
|
196
229
|
if isinstance(request, SdkStreamRequest):
|
197
|
-
|
230
|
+
body = request.get_file_stream()
|
198
231
|
|
199
232
|
response_headers = []
|
200
233
|
|
@@ -203,20 +236,16 @@ class OroasAsyncClient(Client):
|
|
203
236
|
|
204
237
|
auth_settings = []
|
205
238
|
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
response_headers=response_headers,
|
217
|
-
auth_settings=auth_settings,
|
218
|
-
collection_formats=collection_formats,
|
219
|
-
request_type=request.__class__.__name__)
|
239
|
+
http_info["cname"] = cname
|
240
|
+
http_info["collection_formats"] = collection_formats
|
241
|
+
http_info["path_params"] = path_params
|
242
|
+
http_info["query_params"] = query_params
|
243
|
+
http_info["header_params"] = header_params
|
244
|
+
http_info["post_params"] = form_params
|
245
|
+
http_info["body"] = body
|
246
|
+
http_info["response_headers"] = response_headers
|
247
|
+
|
248
|
+
return http_info
|
220
249
|
|
221
250
|
def show_task_async(self, request):
|
222
251
|
"""获取任务详情
|
@@ -230,9 +259,21 @@ class OroasAsyncClient(Client):
|
|
230
259
|
:type request: :class:`huaweicloudsdkoroas.v1.ShowTaskRequest`
|
231
260
|
:rtype: :class:`huaweicloudsdkoroas.v1.ShowTaskResponse`
|
232
261
|
"""
|
233
|
-
|
262
|
+
http_info = self._show_task_http_info(request)
|
263
|
+
return self._call_api(**http_info)
|
264
|
+
|
265
|
+
def show_task_async_invoker(self, request):
|
266
|
+
http_info = self._show_task_http_info(request)
|
267
|
+
return AsyncInvoker(self, http_info)
|
268
|
+
|
269
|
+
def _show_task_http_info(self, request):
|
270
|
+
http_info = {
|
271
|
+
"method": "GET",
|
272
|
+
"resource_path": "/v1/{project_id}/oroas/{service_group}/{service_type}/tasks/{task_id}",
|
273
|
+
"request_type": request.__class__.__name__,
|
274
|
+
"response_type": "ShowTaskResponse"
|
275
|
+
}
|
234
276
|
|
235
|
-
def _show_task_with_http_info(self, request):
|
236
277
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
237
278
|
|
238
279
|
cname = None
|
@@ -257,9 +298,9 @@ class OroasAsyncClient(Client):
|
|
257
298
|
|
258
299
|
form_params = {}
|
259
300
|
|
260
|
-
|
301
|
+
body = None
|
261
302
|
if isinstance(request, SdkStreamRequest):
|
262
|
-
|
303
|
+
body = request.get_file_stream()
|
263
304
|
|
264
305
|
response_headers = []
|
265
306
|
|
@@ -268,20 +309,26 @@ class OroasAsyncClient(Client):
|
|
268
309
|
|
269
310
|
auth_settings = []
|
270
311
|
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
312
|
+
http_info["cname"] = cname
|
313
|
+
http_info["collection_formats"] = collection_formats
|
314
|
+
http_info["path_params"] = path_params
|
315
|
+
http_info["query_params"] = query_params
|
316
|
+
http_info["header_params"] = header_params
|
317
|
+
http_info["post_params"] = form_params
|
318
|
+
http_info["body"] = body
|
319
|
+
http_info["response_headers"] = response_headers
|
320
|
+
|
321
|
+
return http_info
|
322
|
+
|
323
|
+
def _call_api(self, **kwargs):
|
324
|
+
try:
|
325
|
+
kwargs["async_request"] = True
|
326
|
+
return self.do_http_request(**kwargs)
|
327
|
+
except TypeError:
|
328
|
+
import inspect
|
329
|
+
params = inspect.signature(self.do_http_request).parameters
|
330
|
+
http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
|
331
|
+
return self.do_http_request(**http_info)
|
285
332
|
|
286
333
|
def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
|
287
334
|
post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
|
@@ -320,4 +367,4 @@ class OroasAsyncClient(Client):
|
|
320
367
|
response_headers=response_headers,
|
321
368
|
collection_formats=collection_formats,
|
322
369
|
request_type=request_type,
|
323
|
-
|
370
|
+
async_request=True)
|
@@ -3,10 +3,15 @@
|
|
3
3
|
from __future__ import absolute_import
|
4
4
|
|
5
5
|
import importlib
|
6
|
+
import warnings
|
6
7
|
|
7
8
|
from huaweicloudsdkcore.client import Client, ClientBuilder
|
8
9
|
from huaweicloudsdkcore.utils import http_utils
|
9
10
|
from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
|
11
|
+
try:
|
12
|
+
from huaweicloudsdkcore.invoker.invoker import SyncInvoker
|
13
|
+
except ImportError as e:
|
14
|
+
warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkoroas'")
|
10
15
|
|
11
16
|
|
12
17
|
class OroasClient(Client):
|
@@ -38,9 +43,22 @@ class OroasClient(Client):
|
|
38
43
|
:type request: :class:`huaweicloudsdkoroas.v1.CreateTaskRequest`
|
39
44
|
:rtype: :class:`huaweicloudsdkoroas.v1.CreateTaskResponse`
|
40
45
|
"""
|
41
|
-
|
46
|
+
http_info = self._create_task_http_info(request)
|
47
|
+
return self._call_api(**http_info)
|
48
|
+
|
49
|
+
def create_task_invoker(self, request):
|
50
|
+
http_info = self._create_task_http_info(request)
|
51
|
+
return SyncInvoker(self, http_info)
|
52
|
+
|
53
|
+
@classmethod
|
54
|
+
def _create_task_http_info(cls, request):
|
55
|
+
http_info = {
|
56
|
+
"method": "POST",
|
57
|
+
"resource_path": "/v1/{project_id}/oroas/{service_group}/{service_type}/tasks",
|
58
|
+
"request_type": request.__class__.__name__,
|
59
|
+
"response_type": "CreateTaskResponse"
|
60
|
+
}
|
42
61
|
|
43
|
-
def _create_task_with_http_info(self, request):
|
44
62
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
45
63
|
|
46
64
|
cname = None
|
@@ -61,11 +79,11 @@ class OroasClient(Client):
|
|
61
79
|
|
62
80
|
form_params = {}
|
63
81
|
|
64
|
-
|
82
|
+
body = None
|
65
83
|
if 'body' in local_var_params:
|
66
|
-
|
84
|
+
body = local_var_params['body']
|
67
85
|
if isinstance(request, SdkStreamRequest):
|
68
|
-
|
86
|
+
body = request.get_file_stream()
|
69
87
|
|
70
88
|
response_headers = []
|
71
89
|
|
@@ -74,20 +92,16 @@ class OroasClient(Client):
|
|
74
92
|
|
75
93
|
auth_settings = []
|
76
94
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
response_headers=response_headers,
|
88
|
-
auth_settings=auth_settings,
|
89
|
-
collection_formats=collection_formats,
|
90
|
-
request_type=request.__class__.__name__)
|
95
|
+
http_info["cname"] = cname
|
96
|
+
http_info["collection_formats"] = collection_formats
|
97
|
+
http_info["path_params"] = path_params
|
98
|
+
http_info["query_params"] = query_params
|
99
|
+
http_info["header_params"] = header_params
|
100
|
+
http_info["post_params"] = form_params
|
101
|
+
http_info["body"] = body
|
102
|
+
http_info["response_headers"] = response_headers
|
103
|
+
|
104
|
+
return http_info
|
91
105
|
|
92
106
|
def delete_task(self, request):
|
93
107
|
"""删除任务
|
@@ -100,9 +114,22 @@ class OroasClient(Client):
|
|
100
114
|
:type request: :class:`huaweicloudsdkoroas.v1.DeleteTaskRequest`
|
101
115
|
:rtype: :class:`huaweicloudsdkoroas.v1.DeleteTaskResponse`
|
102
116
|
"""
|
103
|
-
|
117
|
+
http_info = self._delete_task_http_info(request)
|
118
|
+
return self._call_api(**http_info)
|
119
|
+
|
120
|
+
def delete_task_invoker(self, request):
|
121
|
+
http_info = self._delete_task_http_info(request)
|
122
|
+
return SyncInvoker(self, http_info)
|
123
|
+
|
124
|
+
@classmethod
|
125
|
+
def _delete_task_http_info(cls, request):
|
126
|
+
http_info = {
|
127
|
+
"method": "DELETE",
|
128
|
+
"resource_path": "/v1/{project_id}/oroas/{service_group}/{service_type}/tasks/{task_id}",
|
129
|
+
"request_type": request.__class__.__name__,
|
130
|
+
"response_type": "DeleteTaskResponse"
|
131
|
+
}
|
104
132
|
|
105
|
-
def _delete_task_with_http_info(self, request):
|
106
133
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
107
134
|
|
108
135
|
cname = None
|
@@ -125,9 +152,9 @@ class OroasClient(Client):
|
|
125
152
|
|
126
153
|
form_params = {}
|
127
154
|
|
128
|
-
|
155
|
+
body = None
|
129
156
|
if isinstance(request, SdkStreamRequest):
|
130
|
-
|
157
|
+
body = request.get_file_stream()
|
131
158
|
|
132
159
|
response_headers = []
|
133
160
|
|
@@ -136,20 +163,16 @@ class OroasClient(Client):
|
|
136
163
|
|
137
164
|
auth_settings = []
|
138
165
|
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
response_headers=response_headers,
|
150
|
-
auth_settings=auth_settings,
|
151
|
-
collection_formats=collection_formats,
|
152
|
-
request_type=request.__class__.__name__)
|
166
|
+
http_info["cname"] = cname
|
167
|
+
http_info["collection_formats"] = collection_formats
|
168
|
+
http_info["path_params"] = path_params
|
169
|
+
http_info["query_params"] = query_params
|
170
|
+
http_info["header_params"] = header_params
|
171
|
+
http_info["post_params"] = form_params
|
172
|
+
http_info["body"] = body
|
173
|
+
http_info["response_headers"] = response_headers
|
174
|
+
|
175
|
+
return http_info
|
153
176
|
|
154
177
|
def list_task(self, request):
|
155
178
|
"""查询任务列表
|
@@ -162,9 +185,22 @@ class OroasClient(Client):
|
|
162
185
|
:type request: :class:`huaweicloudsdkoroas.v1.ListTaskRequest`
|
163
186
|
:rtype: :class:`huaweicloudsdkoroas.v1.ListTaskResponse`
|
164
187
|
"""
|
165
|
-
|
188
|
+
http_info = self._list_task_http_info(request)
|
189
|
+
return self._call_api(**http_info)
|
190
|
+
|
191
|
+
def list_task_invoker(self, request):
|
192
|
+
http_info = self._list_task_http_info(request)
|
193
|
+
return SyncInvoker(self, http_info)
|
194
|
+
|
195
|
+
@classmethod
|
196
|
+
def _list_task_http_info(cls, request):
|
197
|
+
http_info = {
|
198
|
+
"method": "GET",
|
199
|
+
"resource_path": "/v1/{project_id}/oroas/{service_group}/{service_type}/tasks",
|
200
|
+
"request_type": request.__class__.__name__,
|
201
|
+
"response_type": "ListTaskResponse"
|
202
|
+
}
|
166
203
|
|
167
|
-
def _list_task_with_http_info(self, request):
|
168
204
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
169
205
|
|
170
206
|
cname = None
|
@@ -189,9 +225,9 @@ class OroasClient(Client):
|
|
189
225
|
|
190
226
|
form_params = {}
|
191
227
|
|
192
|
-
|
228
|
+
body = None
|
193
229
|
if isinstance(request, SdkStreamRequest):
|
194
|
-
|
230
|
+
body = request.get_file_stream()
|
195
231
|
|
196
232
|
response_headers = []
|
197
233
|
|
@@ -200,20 +236,16 @@ class OroasClient(Client):
|
|
200
236
|
|
201
237
|
auth_settings = []
|
202
238
|
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
response_headers=response_headers,
|
214
|
-
auth_settings=auth_settings,
|
215
|
-
collection_formats=collection_formats,
|
216
|
-
request_type=request.__class__.__name__)
|
239
|
+
http_info["cname"] = cname
|
240
|
+
http_info["collection_formats"] = collection_formats
|
241
|
+
http_info["path_params"] = path_params
|
242
|
+
http_info["query_params"] = query_params
|
243
|
+
http_info["header_params"] = header_params
|
244
|
+
http_info["post_params"] = form_params
|
245
|
+
http_info["body"] = body
|
246
|
+
http_info["response_headers"] = response_headers
|
247
|
+
|
248
|
+
return http_info
|
217
249
|
|
218
250
|
def show_task(self, request):
|
219
251
|
"""获取任务详情
|
@@ -226,9 +258,22 @@ class OroasClient(Client):
|
|
226
258
|
:type request: :class:`huaweicloudsdkoroas.v1.ShowTaskRequest`
|
227
259
|
:rtype: :class:`huaweicloudsdkoroas.v1.ShowTaskResponse`
|
228
260
|
"""
|
229
|
-
|
261
|
+
http_info = self._show_task_http_info(request)
|
262
|
+
return self._call_api(**http_info)
|
263
|
+
|
264
|
+
def show_task_invoker(self, request):
|
265
|
+
http_info = self._show_task_http_info(request)
|
266
|
+
return SyncInvoker(self, http_info)
|
267
|
+
|
268
|
+
@classmethod
|
269
|
+
def _show_task_http_info(cls, request):
|
270
|
+
http_info = {
|
271
|
+
"method": "GET",
|
272
|
+
"resource_path": "/v1/{project_id}/oroas/{service_group}/{service_type}/tasks/{task_id}",
|
273
|
+
"request_type": request.__class__.__name__,
|
274
|
+
"response_type": "ShowTaskResponse"
|
275
|
+
}
|
230
276
|
|
231
|
-
def _show_task_with_http_info(self, request):
|
232
277
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
233
278
|
|
234
279
|
cname = None
|
@@ -253,9 +298,9 @@ class OroasClient(Client):
|
|
253
298
|
|
254
299
|
form_params = {}
|
255
300
|
|
256
|
-
|
301
|
+
body = None
|
257
302
|
if isinstance(request, SdkStreamRequest):
|
258
|
-
|
303
|
+
body = request.get_file_stream()
|
259
304
|
|
260
305
|
response_headers = []
|
261
306
|
|
@@ -264,20 +309,25 @@ class OroasClient(Client):
|
|
264
309
|
|
265
310
|
auth_settings = []
|
266
311
|
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
312
|
+
http_info["cname"] = cname
|
313
|
+
http_info["collection_formats"] = collection_formats
|
314
|
+
http_info["path_params"] = path_params
|
315
|
+
http_info["query_params"] = query_params
|
316
|
+
http_info["header_params"] = header_params
|
317
|
+
http_info["post_params"] = form_params
|
318
|
+
http_info["body"] = body
|
319
|
+
http_info["response_headers"] = response_headers
|
320
|
+
|
321
|
+
return http_info
|
322
|
+
|
323
|
+
def _call_api(self, **kwargs):
|
324
|
+
try:
|
325
|
+
return self.do_http_request(**kwargs)
|
326
|
+
except TypeError:
|
327
|
+
import inspect
|
328
|
+
params = inspect.signature(self.do_http_request).parameters
|
329
|
+
http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
|
330
|
+
return self.do_http_request(**http_info)
|
281
331
|
|
282
332
|
def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
|
283
333
|
post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkoroas
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.68
|
4
4
|
Summary: OROAS
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
6
6
|
Author: HuaweiCloud SDK
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
23
23
|
Description-Content-Type: text/markdown
|
24
24
|
License-File: LICENSE
|
25
|
-
Requires-Dist: huaweicloudsdkcore >=3.1.
|
25
|
+
Requires-Dist: huaweicloudsdkcore >=3.1.68
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
@@ -1,7 +1,7 @@
|
|
1
1
|
huaweicloudsdkoroas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
huaweicloudsdkoroas/v1/__init__.py,sha256=w1jlzFrXc-BJe7N15d8FQoR_WqVwlsmBffMaz0H5fgI,946
|
3
|
-
huaweicloudsdkoroas/v1/oroas_async_client.py,sha256=
|
4
|
-
huaweicloudsdkoroas/v1/oroas_client.py,sha256=
|
3
|
+
huaweicloudsdkoroas/v1/oroas_async_client.py,sha256=6G9PQBePastjGU-L4pUdn7awGnbqUAWTNGMGYnrpD6w,13146
|
4
|
+
huaweicloudsdkoroas/v1/oroas_client.py,sha256=6VAFMioxXOyLPbDcjsk9mH4DyyeiGXVvgLcW2nu2FIk,13049
|
5
5
|
huaweicloudsdkoroas/v1/model/__init__.py,sha256=SBlhUe5R2SpnbF9Bf2YA-qe5ysgFp5kV1X1oAqHdWKQ,848
|
6
6
|
huaweicloudsdkoroas/v1/model/create_task_request.py,sha256=XorDfZtlAqG7HkLDkZYa7WDbu12j4JpOV5C1zk7Q0YY,6665
|
7
7
|
huaweicloudsdkoroas/v1/model/create_task_response.py,sha256=dXG8twuF04wW3cF-c-llEB9zeRiA7R6-zzXiSx6NTts,3155
|
@@ -15,8 +15,8 @@ huaweicloudsdkoroas/v1/model/task_dto.py,sha256=rEoGZSEiKzXC9djE-nV0MncF6Y1MODTH
|
|
15
15
|
huaweicloudsdkoroas/v1/model/task_list_item_vo.py,sha256=Gn4DNVn5uj5wEoBQHf83kRqVWKzgZtJYlsuiGG45PB8,6049
|
16
16
|
huaweicloudsdkoroas/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
17
|
huaweicloudsdkoroas/v1/region/oroas_region.py,sha256=sLxtnuLpyaiz3ZvjmgXT3oQYZAJLFer7A-dW7ccfWmY,906
|
18
|
-
huaweicloudsdkoroas-3.1.
|
19
|
-
huaweicloudsdkoroas-3.1.
|
20
|
-
huaweicloudsdkoroas-3.1.
|
21
|
-
huaweicloudsdkoroas-3.1.
|
22
|
-
huaweicloudsdkoroas-3.1.
|
18
|
+
huaweicloudsdkoroas-3.1.68.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
19
|
+
huaweicloudsdkoroas-3.1.68.dist-info/METADATA,sha256=oGi6_MZNVyCfP14GCUp4CdOfFs7QO-lwlk5oMGnuVsg,1140
|
20
|
+
huaweicloudsdkoroas-3.1.68.dist-info/WHEEL,sha256=P2T-6epvtXQ2cBOE_U1K4_noqlJFN3tj15djMgEu4NM,110
|
21
|
+
huaweicloudsdkoroas-3.1.68.dist-info/top_level.txt,sha256=onHz5byaB6CLNveBHKS-EnC82wxC_n_8EgJMuS_JkE0,20
|
22
|
+
huaweicloudsdkoroas-3.1.68.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|