huaweicloudsdkworkspace 3.1.94__py2.py3-none-any.whl → 3.1.96__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huaweicloudsdkworkspace might be problematic. Click here for more details.
- huaweicloudsdkworkspace/v2/__init__.py +2 -0
- huaweicloudsdkworkspace/v2/model/__init__.py +2 -0
- huaweicloudsdkworkspace/v2/model/show_job_request.py +114 -0
- huaweicloudsdkworkspace/v2/model/show_job_response.py +348 -0
- huaweicloudsdkworkspace/v2/workspace_async_client.py +65 -0
- huaweicloudsdkworkspace/v2/workspace_client.py +65 -0
- {huaweicloudsdkworkspace-3.1.94.dist-info → huaweicloudsdkworkspace-3.1.96.dist-info}/METADATA +2 -2
- {huaweicloudsdkworkspace-3.1.94.dist-info → huaweicloudsdkworkspace-3.1.96.dist-info}/RECORD +11 -9
- {huaweicloudsdkworkspace-3.1.94.dist-info → huaweicloudsdkworkspace-3.1.96.dist-info}/LICENSE +0 -0
- {huaweicloudsdkworkspace-3.1.94.dist-info → huaweicloudsdkworkspace-3.1.96.dist-info}/WHEEL +0 -0
- {huaweicloudsdkworkspace-3.1.94.dist-info → huaweicloudsdkworkspace-3.1.96.dist-info}/top_level.txt +0 -0
|
@@ -279,6 +279,8 @@ from huaweicloudsdkworkspace.v2.model.show_desktop_network_request import ShowDe
|
|
|
279
279
|
from huaweicloudsdkworkspace.v2.model.show_desktop_network_response import ShowDesktopNetworkResponse
|
|
280
280
|
from huaweicloudsdkworkspace.v2.model.show_desktop_remote_assistance_info_request import ShowDesktopRemoteAssistanceInfoRequest
|
|
281
281
|
from huaweicloudsdkworkspace.v2.model.show_desktop_remote_assistance_info_response import ShowDesktopRemoteAssistanceInfoResponse
|
|
282
|
+
from huaweicloudsdkworkspace.v2.model.show_job_request import ShowJobRequest
|
|
283
|
+
from huaweicloudsdkworkspace.v2.model.show_job_response import ShowJobResponse
|
|
282
284
|
from huaweicloudsdkworkspace.v2.model.show_quotas_request import ShowQuotasRequest
|
|
283
285
|
from huaweicloudsdkworkspace.v2.model.show_quotas_response import ShowQuotasResponse
|
|
284
286
|
from huaweicloudsdkworkspace.v2.model.show_scheduled_tasks_request import ShowScheduledTasksRequest
|
|
@@ -277,6 +277,8 @@ from huaweicloudsdkworkspace.v2.model.show_desktop_network_request import ShowDe
|
|
|
277
277
|
from huaweicloudsdkworkspace.v2.model.show_desktop_network_response import ShowDesktopNetworkResponse
|
|
278
278
|
from huaweicloudsdkworkspace.v2.model.show_desktop_remote_assistance_info_request import ShowDesktopRemoteAssistanceInfoRequest
|
|
279
279
|
from huaweicloudsdkworkspace.v2.model.show_desktop_remote_assistance_info_response import ShowDesktopRemoteAssistanceInfoResponse
|
|
280
|
+
from huaweicloudsdkworkspace.v2.model.show_job_request import ShowJobRequest
|
|
281
|
+
from huaweicloudsdkworkspace.v2.model.show_job_response import ShowJobResponse
|
|
280
282
|
from huaweicloudsdkworkspace.v2.model.show_quotas_request import ShowQuotasRequest
|
|
281
283
|
from huaweicloudsdkworkspace.v2.model.show_quotas_response import ShowQuotasResponse
|
|
282
284
|
from huaweicloudsdkworkspace.v2.model.show_scheduled_tasks_request import ShowScheduledTasksRequest
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ShowJobRequest:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'job_id': 'str'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'job_id': 'job_id'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, job_id=None):
|
|
28
|
+
"""ShowJobRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param job_id: 任务ID。
|
|
33
|
+
:type job_id: str
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._job_id = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
self.job_id = job_id
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def job_id(self):
|
|
45
|
+
"""Gets the job_id of this ShowJobRequest.
|
|
46
|
+
|
|
47
|
+
任务ID。
|
|
48
|
+
|
|
49
|
+
:return: The job_id of this ShowJobRequest.
|
|
50
|
+
:rtype: str
|
|
51
|
+
"""
|
|
52
|
+
return self._job_id
|
|
53
|
+
|
|
54
|
+
@job_id.setter
|
|
55
|
+
def job_id(self, job_id):
|
|
56
|
+
"""Sets the job_id of this ShowJobRequest.
|
|
57
|
+
|
|
58
|
+
任务ID。
|
|
59
|
+
|
|
60
|
+
:param job_id: The job_id of this ShowJobRequest.
|
|
61
|
+
:type job_id: str
|
|
62
|
+
"""
|
|
63
|
+
self._job_id = job_id
|
|
64
|
+
|
|
65
|
+
def to_dict(self):
|
|
66
|
+
"""Returns the model properties as a dict"""
|
|
67
|
+
result = {}
|
|
68
|
+
|
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
70
|
+
value = getattr(self, attr)
|
|
71
|
+
if isinstance(value, list):
|
|
72
|
+
result[attr] = list(map(
|
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
74
|
+
value
|
|
75
|
+
))
|
|
76
|
+
elif hasattr(value, "to_dict"):
|
|
77
|
+
result[attr] = value.to_dict()
|
|
78
|
+
elif isinstance(value, dict):
|
|
79
|
+
result[attr] = dict(map(
|
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
|
82
|
+
value.items()
|
|
83
|
+
))
|
|
84
|
+
else:
|
|
85
|
+
if attr in self.sensitive_list:
|
|
86
|
+
result[attr] = "****"
|
|
87
|
+
else:
|
|
88
|
+
result[attr] = value
|
|
89
|
+
|
|
90
|
+
return result
|
|
91
|
+
|
|
92
|
+
def to_str(self):
|
|
93
|
+
"""Returns the string representation of the model"""
|
|
94
|
+
import simplejson as json
|
|
95
|
+
if six.PY2:
|
|
96
|
+
import sys
|
|
97
|
+
reload(sys)
|
|
98
|
+
sys.setdefaultencoding("utf-8")
|
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
100
|
+
|
|
101
|
+
def __repr__(self):
|
|
102
|
+
"""For `print`"""
|
|
103
|
+
return self.to_str()
|
|
104
|
+
|
|
105
|
+
def __eq__(self, other):
|
|
106
|
+
"""Returns true if both objects are equal"""
|
|
107
|
+
if not isinstance(other, ShowJobRequest):
|
|
108
|
+
return False
|
|
109
|
+
|
|
110
|
+
return self.__dict__ == other.__dict__
|
|
111
|
+
|
|
112
|
+
def __ne__(self, other):
|
|
113
|
+
"""Returns true if both objects are not equal"""
|
|
114
|
+
return not self == other
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ShowJobResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'id': 'str',
|
|
22
|
+
'job_type': 'str',
|
|
23
|
+
'begin_time': 'str',
|
|
24
|
+
'end_time': 'str',
|
|
25
|
+
'status': 'str',
|
|
26
|
+
'job_error_code': 'str',
|
|
27
|
+
'fail_reason': 'str',
|
|
28
|
+
'sub_jobs_total': 'int',
|
|
29
|
+
'sub_jobs': 'list[JobDetailInfo]'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
attribute_map = {
|
|
33
|
+
'id': 'id',
|
|
34
|
+
'job_type': 'job_type',
|
|
35
|
+
'begin_time': 'begin_time',
|
|
36
|
+
'end_time': 'end_time',
|
|
37
|
+
'status': 'status',
|
|
38
|
+
'job_error_code': 'job_error_code',
|
|
39
|
+
'fail_reason': 'fail_reason',
|
|
40
|
+
'sub_jobs_total': 'sub_jobs_total',
|
|
41
|
+
'sub_jobs': 'sub_jobs'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
def __init__(self, id=None, job_type=None, begin_time=None, end_time=None, status=None, job_error_code=None, fail_reason=None, sub_jobs_total=None, sub_jobs=None):
|
|
45
|
+
"""ShowJobResponse
|
|
46
|
+
|
|
47
|
+
The model defined in huaweicloud sdk
|
|
48
|
+
|
|
49
|
+
:param id: 任务ID
|
|
50
|
+
:type id: str
|
|
51
|
+
:param job_type: 任务类型
|
|
52
|
+
:type job_type: str
|
|
53
|
+
:param begin_time: 任务开始时间
|
|
54
|
+
:type begin_time: str
|
|
55
|
+
:param end_time: 任务结束时间
|
|
56
|
+
:type end_time: str
|
|
57
|
+
:param status: 任务状态
|
|
58
|
+
:type status: str
|
|
59
|
+
:param job_error_code: 任务错误码
|
|
60
|
+
:type job_error_code: str
|
|
61
|
+
:param fail_reason: 任务失败原因
|
|
62
|
+
:type fail_reason: str
|
|
63
|
+
:param sub_jobs_total: 子任务总数
|
|
64
|
+
:type sub_jobs_total: int
|
|
65
|
+
:param sub_jobs: 子任务列表
|
|
66
|
+
:type sub_jobs: list[:class:`huaweicloudsdkworkspace.v2.JobDetailInfo`]
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
super(ShowJobResponse, self).__init__()
|
|
70
|
+
|
|
71
|
+
self._id = None
|
|
72
|
+
self._job_type = None
|
|
73
|
+
self._begin_time = None
|
|
74
|
+
self._end_time = None
|
|
75
|
+
self._status = None
|
|
76
|
+
self._job_error_code = None
|
|
77
|
+
self._fail_reason = None
|
|
78
|
+
self._sub_jobs_total = None
|
|
79
|
+
self._sub_jobs = None
|
|
80
|
+
self.discriminator = None
|
|
81
|
+
|
|
82
|
+
if id is not None:
|
|
83
|
+
self.id = id
|
|
84
|
+
if job_type is not None:
|
|
85
|
+
self.job_type = job_type
|
|
86
|
+
if begin_time is not None:
|
|
87
|
+
self.begin_time = begin_time
|
|
88
|
+
if end_time is not None:
|
|
89
|
+
self.end_time = end_time
|
|
90
|
+
if status is not None:
|
|
91
|
+
self.status = status
|
|
92
|
+
if job_error_code is not None:
|
|
93
|
+
self.job_error_code = job_error_code
|
|
94
|
+
if fail_reason is not None:
|
|
95
|
+
self.fail_reason = fail_reason
|
|
96
|
+
if sub_jobs_total is not None:
|
|
97
|
+
self.sub_jobs_total = sub_jobs_total
|
|
98
|
+
if sub_jobs is not None:
|
|
99
|
+
self.sub_jobs = sub_jobs
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def id(self):
|
|
103
|
+
"""Gets the id of this ShowJobResponse.
|
|
104
|
+
|
|
105
|
+
任务ID
|
|
106
|
+
|
|
107
|
+
:return: The id of this ShowJobResponse.
|
|
108
|
+
:rtype: str
|
|
109
|
+
"""
|
|
110
|
+
return self._id
|
|
111
|
+
|
|
112
|
+
@id.setter
|
|
113
|
+
def id(self, id):
|
|
114
|
+
"""Sets the id of this ShowJobResponse.
|
|
115
|
+
|
|
116
|
+
任务ID
|
|
117
|
+
|
|
118
|
+
:param id: The id of this ShowJobResponse.
|
|
119
|
+
:type id: str
|
|
120
|
+
"""
|
|
121
|
+
self._id = id
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def job_type(self):
|
|
125
|
+
"""Gets the job_type of this ShowJobResponse.
|
|
126
|
+
|
|
127
|
+
任务类型
|
|
128
|
+
|
|
129
|
+
:return: The job_type of this ShowJobResponse.
|
|
130
|
+
:rtype: str
|
|
131
|
+
"""
|
|
132
|
+
return self._job_type
|
|
133
|
+
|
|
134
|
+
@job_type.setter
|
|
135
|
+
def job_type(self, job_type):
|
|
136
|
+
"""Sets the job_type of this ShowJobResponse.
|
|
137
|
+
|
|
138
|
+
任务类型
|
|
139
|
+
|
|
140
|
+
:param job_type: The job_type of this ShowJobResponse.
|
|
141
|
+
:type job_type: str
|
|
142
|
+
"""
|
|
143
|
+
self._job_type = job_type
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def begin_time(self):
|
|
147
|
+
"""Gets the begin_time of this ShowJobResponse.
|
|
148
|
+
|
|
149
|
+
任务开始时间
|
|
150
|
+
|
|
151
|
+
:return: The begin_time of this ShowJobResponse.
|
|
152
|
+
:rtype: str
|
|
153
|
+
"""
|
|
154
|
+
return self._begin_time
|
|
155
|
+
|
|
156
|
+
@begin_time.setter
|
|
157
|
+
def begin_time(self, begin_time):
|
|
158
|
+
"""Sets the begin_time of this ShowJobResponse.
|
|
159
|
+
|
|
160
|
+
任务开始时间
|
|
161
|
+
|
|
162
|
+
:param begin_time: The begin_time of this ShowJobResponse.
|
|
163
|
+
:type begin_time: str
|
|
164
|
+
"""
|
|
165
|
+
self._begin_time = begin_time
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def end_time(self):
|
|
169
|
+
"""Gets the end_time of this ShowJobResponse.
|
|
170
|
+
|
|
171
|
+
任务结束时间
|
|
172
|
+
|
|
173
|
+
:return: The end_time of this ShowJobResponse.
|
|
174
|
+
:rtype: str
|
|
175
|
+
"""
|
|
176
|
+
return self._end_time
|
|
177
|
+
|
|
178
|
+
@end_time.setter
|
|
179
|
+
def end_time(self, end_time):
|
|
180
|
+
"""Sets the end_time of this ShowJobResponse.
|
|
181
|
+
|
|
182
|
+
任务结束时间
|
|
183
|
+
|
|
184
|
+
:param end_time: The end_time of this ShowJobResponse.
|
|
185
|
+
:type end_time: str
|
|
186
|
+
"""
|
|
187
|
+
self._end_time = end_time
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
def status(self):
|
|
191
|
+
"""Gets the status of this ShowJobResponse.
|
|
192
|
+
|
|
193
|
+
任务状态
|
|
194
|
+
|
|
195
|
+
:return: The status of this ShowJobResponse.
|
|
196
|
+
:rtype: str
|
|
197
|
+
"""
|
|
198
|
+
return self._status
|
|
199
|
+
|
|
200
|
+
@status.setter
|
|
201
|
+
def status(self, status):
|
|
202
|
+
"""Sets the status of this ShowJobResponse.
|
|
203
|
+
|
|
204
|
+
任务状态
|
|
205
|
+
|
|
206
|
+
:param status: The status of this ShowJobResponse.
|
|
207
|
+
:type status: str
|
|
208
|
+
"""
|
|
209
|
+
self._status = status
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
def job_error_code(self):
|
|
213
|
+
"""Gets the job_error_code of this ShowJobResponse.
|
|
214
|
+
|
|
215
|
+
任务错误码
|
|
216
|
+
|
|
217
|
+
:return: The job_error_code of this ShowJobResponse.
|
|
218
|
+
:rtype: str
|
|
219
|
+
"""
|
|
220
|
+
return self._job_error_code
|
|
221
|
+
|
|
222
|
+
@job_error_code.setter
|
|
223
|
+
def job_error_code(self, job_error_code):
|
|
224
|
+
"""Sets the job_error_code of this ShowJobResponse.
|
|
225
|
+
|
|
226
|
+
任务错误码
|
|
227
|
+
|
|
228
|
+
:param job_error_code: The job_error_code of this ShowJobResponse.
|
|
229
|
+
:type job_error_code: str
|
|
230
|
+
"""
|
|
231
|
+
self._job_error_code = job_error_code
|
|
232
|
+
|
|
233
|
+
@property
|
|
234
|
+
def fail_reason(self):
|
|
235
|
+
"""Gets the fail_reason of this ShowJobResponse.
|
|
236
|
+
|
|
237
|
+
任务失败原因
|
|
238
|
+
|
|
239
|
+
:return: The fail_reason of this ShowJobResponse.
|
|
240
|
+
:rtype: str
|
|
241
|
+
"""
|
|
242
|
+
return self._fail_reason
|
|
243
|
+
|
|
244
|
+
@fail_reason.setter
|
|
245
|
+
def fail_reason(self, fail_reason):
|
|
246
|
+
"""Sets the fail_reason of this ShowJobResponse.
|
|
247
|
+
|
|
248
|
+
任务失败原因
|
|
249
|
+
|
|
250
|
+
:param fail_reason: The fail_reason of this ShowJobResponse.
|
|
251
|
+
:type fail_reason: str
|
|
252
|
+
"""
|
|
253
|
+
self._fail_reason = fail_reason
|
|
254
|
+
|
|
255
|
+
@property
|
|
256
|
+
def sub_jobs_total(self):
|
|
257
|
+
"""Gets the sub_jobs_total of this ShowJobResponse.
|
|
258
|
+
|
|
259
|
+
子任务总数
|
|
260
|
+
|
|
261
|
+
:return: The sub_jobs_total of this ShowJobResponse.
|
|
262
|
+
:rtype: int
|
|
263
|
+
"""
|
|
264
|
+
return self._sub_jobs_total
|
|
265
|
+
|
|
266
|
+
@sub_jobs_total.setter
|
|
267
|
+
def sub_jobs_total(self, sub_jobs_total):
|
|
268
|
+
"""Sets the sub_jobs_total of this ShowJobResponse.
|
|
269
|
+
|
|
270
|
+
子任务总数
|
|
271
|
+
|
|
272
|
+
:param sub_jobs_total: The sub_jobs_total of this ShowJobResponse.
|
|
273
|
+
:type sub_jobs_total: int
|
|
274
|
+
"""
|
|
275
|
+
self._sub_jobs_total = sub_jobs_total
|
|
276
|
+
|
|
277
|
+
@property
|
|
278
|
+
def sub_jobs(self):
|
|
279
|
+
"""Gets the sub_jobs of this ShowJobResponse.
|
|
280
|
+
|
|
281
|
+
子任务列表
|
|
282
|
+
|
|
283
|
+
:return: The sub_jobs of this ShowJobResponse.
|
|
284
|
+
:rtype: list[:class:`huaweicloudsdkworkspace.v2.JobDetailInfo`]
|
|
285
|
+
"""
|
|
286
|
+
return self._sub_jobs
|
|
287
|
+
|
|
288
|
+
@sub_jobs.setter
|
|
289
|
+
def sub_jobs(self, sub_jobs):
|
|
290
|
+
"""Sets the sub_jobs of this ShowJobResponse.
|
|
291
|
+
|
|
292
|
+
子任务列表
|
|
293
|
+
|
|
294
|
+
:param sub_jobs: The sub_jobs of this ShowJobResponse.
|
|
295
|
+
:type sub_jobs: list[:class:`huaweicloudsdkworkspace.v2.JobDetailInfo`]
|
|
296
|
+
"""
|
|
297
|
+
self._sub_jobs = sub_jobs
|
|
298
|
+
|
|
299
|
+
def to_dict(self):
|
|
300
|
+
"""Returns the model properties as a dict"""
|
|
301
|
+
result = {}
|
|
302
|
+
|
|
303
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
304
|
+
value = getattr(self, attr)
|
|
305
|
+
if isinstance(value, list):
|
|
306
|
+
result[attr] = list(map(
|
|
307
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
308
|
+
value
|
|
309
|
+
))
|
|
310
|
+
elif hasattr(value, "to_dict"):
|
|
311
|
+
result[attr] = value.to_dict()
|
|
312
|
+
elif isinstance(value, dict):
|
|
313
|
+
result[attr] = dict(map(
|
|
314
|
+
lambda item: (item[0], item[1].to_dict())
|
|
315
|
+
if hasattr(item[1], "to_dict") else item,
|
|
316
|
+
value.items()
|
|
317
|
+
))
|
|
318
|
+
else:
|
|
319
|
+
if attr in self.sensitive_list:
|
|
320
|
+
result[attr] = "****"
|
|
321
|
+
else:
|
|
322
|
+
result[attr] = value
|
|
323
|
+
|
|
324
|
+
return result
|
|
325
|
+
|
|
326
|
+
def to_str(self):
|
|
327
|
+
"""Returns the string representation of the model"""
|
|
328
|
+
import simplejson as json
|
|
329
|
+
if six.PY2:
|
|
330
|
+
import sys
|
|
331
|
+
reload(sys)
|
|
332
|
+
sys.setdefaultencoding("utf-8")
|
|
333
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
334
|
+
|
|
335
|
+
def __repr__(self):
|
|
336
|
+
"""For `print`"""
|
|
337
|
+
return self.to_str()
|
|
338
|
+
|
|
339
|
+
def __eq__(self, other):
|
|
340
|
+
"""Returns true if both objects are equal"""
|
|
341
|
+
if not isinstance(other, ShowJobResponse):
|
|
342
|
+
return False
|
|
343
|
+
|
|
344
|
+
return self.__dict__ == other.__dict__
|
|
345
|
+
|
|
346
|
+
def __ne__(self, other):
|
|
347
|
+
"""Returns true if both objects are not equal"""
|
|
348
|
+
return not self == other
|
|
@@ -3629,6 +3629,71 @@ class WorkspaceAsyncClient(Client):
|
|
|
3629
3629
|
|
|
3630
3630
|
return http_info
|
|
3631
3631
|
|
|
3632
|
+
def show_job_async(self, request):
|
|
3633
|
+
"""查询任务详情
|
|
3634
|
+
|
|
3635
|
+
该接口用于查询异步任务的执行情况,比如查询创建桌面任务的执行状态。
|
|
3636
|
+
|
|
3637
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
3638
|
+
|
|
3639
|
+
|
|
3640
|
+
:param request: Request instance for ShowJob
|
|
3641
|
+
:type request: :class:`huaweicloudsdkworkspace.v2.ShowJobRequest`
|
|
3642
|
+
:rtype: :class:`huaweicloudsdkworkspace.v2.ShowJobResponse`
|
|
3643
|
+
"""
|
|
3644
|
+
http_info = self._show_job_http_info(request)
|
|
3645
|
+
return self._call_api(**http_info)
|
|
3646
|
+
|
|
3647
|
+
def show_job_async_invoker(self, request):
|
|
3648
|
+
http_info = self._show_job_http_info(request)
|
|
3649
|
+
return AsyncInvoker(self, http_info)
|
|
3650
|
+
|
|
3651
|
+
def _show_job_http_info(self, request):
|
|
3652
|
+
http_info = {
|
|
3653
|
+
"method": "GET",
|
|
3654
|
+
"resource_path": "/v2/{project_id}/workspace-jobs/{job_id}",
|
|
3655
|
+
"request_type": request.__class__.__name__,
|
|
3656
|
+
"response_type": "ShowJobResponse"
|
|
3657
|
+
}
|
|
3658
|
+
|
|
3659
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
3660
|
+
|
|
3661
|
+
cname = None
|
|
3662
|
+
|
|
3663
|
+
collection_formats = {}
|
|
3664
|
+
|
|
3665
|
+
path_params = {}
|
|
3666
|
+
if 'job_id' in local_var_params:
|
|
3667
|
+
path_params['job_id'] = local_var_params['job_id']
|
|
3668
|
+
|
|
3669
|
+
query_params = []
|
|
3670
|
+
|
|
3671
|
+
header_params = {}
|
|
3672
|
+
|
|
3673
|
+
form_params = {}
|
|
3674
|
+
|
|
3675
|
+
body = None
|
|
3676
|
+
if isinstance(request, SdkStreamRequest):
|
|
3677
|
+
body = request.get_file_stream()
|
|
3678
|
+
|
|
3679
|
+
response_headers = []
|
|
3680
|
+
|
|
3681
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
3682
|
+
['application/json'])
|
|
3683
|
+
|
|
3684
|
+
auth_settings = []
|
|
3685
|
+
|
|
3686
|
+
http_info["cname"] = cname
|
|
3687
|
+
http_info["collection_formats"] = collection_formats
|
|
3688
|
+
http_info["path_params"] = path_params
|
|
3689
|
+
http_info["query_params"] = query_params
|
|
3690
|
+
http_info["header_params"] = header_params
|
|
3691
|
+
http_info["post_params"] = form_params
|
|
3692
|
+
http_info["body"] = body
|
|
3693
|
+
http_info["response_headers"] = response_headers
|
|
3694
|
+
|
|
3695
|
+
return http_info
|
|
3696
|
+
|
|
3632
3697
|
def apply_desktops_internet_async(self, request):
|
|
3633
3698
|
"""开通桌面上网功能
|
|
3634
3699
|
|
|
@@ -3629,6 +3629,71 @@ class WorkspaceClient(Client):
|
|
|
3629
3629
|
|
|
3630
3630
|
return http_info
|
|
3631
3631
|
|
|
3632
|
+
def show_job(self, request):
|
|
3633
|
+
"""查询任务详情
|
|
3634
|
+
|
|
3635
|
+
该接口用于查询异步任务的执行情况,比如查询创建桌面任务的执行状态。
|
|
3636
|
+
|
|
3637
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
3638
|
+
|
|
3639
|
+
:param request: Request instance for ShowJob
|
|
3640
|
+
:type request: :class:`huaweicloudsdkworkspace.v2.ShowJobRequest`
|
|
3641
|
+
:rtype: :class:`huaweicloudsdkworkspace.v2.ShowJobResponse`
|
|
3642
|
+
"""
|
|
3643
|
+
http_info = self._show_job_http_info(request)
|
|
3644
|
+
return self._call_api(**http_info)
|
|
3645
|
+
|
|
3646
|
+
def show_job_invoker(self, request):
|
|
3647
|
+
http_info = self._show_job_http_info(request)
|
|
3648
|
+
return SyncInvoker(self, http_info)
|
|
3649
|
+
|
|
3650
|
+
@classmethod
|
|
3651
|
+
def _show_job_http_info(cls, request):
|
|
3652
|
+
http_info = {
|
|
3653
|
+
"method": "GET",
|
|
3654
|
+
"resource_path": "/v2/{project_id}/workspace-jobs/{job_id}",
|
|
3655
|
+
"request_type": request.__class__.__name__,
|
|
3656
|
+
"response_type": "ShowJobResponse"
|
|
3657
|
+
}
|
|
3658
|
+
|
|
3659
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
3660
|
+
|
|
3661
|
+
cname = None
|
|
3662
|
+
|
|
3663
|
+
collection_formats = {}
|
|
3664
|
+
|
|
3665
|
+
path_params = {}
|
|
3666
|
+
if 'job_id' in local_var_params:
|
|
3667
|
+
path_params['job_id'] = local_var_params['job_id']
|
|
3668
|
+
|
|
3669
|
+
query_params = []
|
|
3670
|
+
|
|
3671
|
+
header_params = {}
|
|
3672
|
+
|
|
3673
|
+
form_params = {}
|
|
3674
|
+
|
|
3675
|
+
body = None
|
|
3676
|
+
if isinstance(request, SdkStreamRequest):
|
|
3677
|
+
body = request.get_file_stream()
|
|
3678
|
+
|
|
3679
|
+
response_headers = []
|
|
3680
|
+
|
|
3681
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
3682
|
+
['application/json'])
|
|
3683
|
+
|
|
3684
|
+
auth_settings = []
|
|
3685
|
+
|
|
3686
|
+
http_info["cname"] = cname
|
|
3687
|
+
http_info["collection_formats"] = collection_formats
|
|
3688
|
+
http_info["path_params"] = path_params
|
|
3689
|
+
http_info["query_params"] = query_params
|
|
3690
|
+
http_info["header_params"] = header_params
|
|
3691
|
+
http_info["post_params"] = form_params
|
|
3692
|
+
http_info["body"] = body
|
|
3693
|
+
http_info["response_headers"] = response_headers
|
|
3694
|
+
|
|
3695
|
+
return http_info
|
|
3696
|
+
|
|
3632
3697
|
def apply_desktops_internet(self, request):
|
|
3633
3698
|
"""开通桌面上网功能
|
|
3634
3699
|
|
{huaweicloudsdkworkspace-3.1.94.dist-info → huaweicloudsdkworkspace-3.1.96.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huaweicloudsdkworkspace
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.96
|
|
4
4
|
Summary: Workspace
|
|
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.96
|
|
26
26
|
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
{huaweicloudsdkworkspace-3.1.94.dist-info → huaweicloudsdkworkspace-3.1.96.dist-info}/RECORD
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
huaweicloudsdkworkspace/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
huaweicloudsdkworkspace/v2/__init__.py,sha256=
|
|
3
|
-
huaweicloudsdkworkspace/v2/workspace_async_client.py,sha256=
|
|
4
|
-
huaweicloudsdkworkspace/v2/workspace_client.py,sha256=
|
|
5
|
-
huaweicloudsdkworkspace/v2/model/__init__.py,sha256
|
|
2
|
+
huaweicloudsdkworkspace/v2/__init__.py,sha256=yBv2lywztFMXdiizs69yuuzVBhN3LK3PnSOxwvHk8MQ,32374
|
|
3
|
+
huaweicloudsdkworkspace/v2/workspace_async_client.py,sha256=EGD4MO23VGe0nmRexDwyRA66ZcLikKs1IwLR7TvGTyU,236806
|
|
4
|
+
huaweicloudsdkworkspace/v2/workspace_client.py,sha256=uH5jCmbCHZlmZWXtikhTJg9nuFXGxiMUKjD2ZEsCmTw,236903
|
|
5
|
+
huaweicloudsdkworkspace/v2/model/__init__.py,sha256=-inif4TyZa_uIV0JusLAl-AaJcn-emvfKIYy7WcOphI,32252
|
|
6
6
|
huaweicloudsdkworkspace/v2/model/access_policy_detail_info.py,sha256=IUDhfa-8D_b5U-bHF7Mt98BokuLqc0EvkvkN0tAqK8E,6089
|
|
7
7
|
huaweicloudsdkworkspace/v2/model/access_policy_info.py,sha256=yWW3l7exK5IeiBFTzrqcIZhezqqxsCDW7v1ItMv2quo,4338
|
|
8
8
|
huaweicloudsdkworkspace/v2/model/access_policy_object.py,sha256=mw_an1YHdWcDrPlfatFKip6Ls34nF_ckN-4RqX-Zhdw,4915
|
|
@@ -277,6 +277,8 @@ huaweicloudsdkworkspace/v2/model/show_desktop_network_request.py,sha256=ejl8biVR
|
|
|
277
277
|
huaweicloudsdkworkspace/v2/model/show_desktop_network_response.py,sha256=cpN5u29RkThgKXoFPK7dCWUFxsDyxSUaaEAyVVEn3IY,5285
|
|
278
278
|
huaweicloudsdkworkspace/v2/model/show_desktop_remote_assistance_info_request.py,sha256=UlyM7PlkPN8OG8MFEeJX-06ZKD9m-M0XcJ49YoS_DKs,3211
|
|
279
279
|
huaweicloudsdkworkspace/v2/model/show_desktop_remote_assistance_info_response.py,sha256=waexeWS0rVJ1hrXcwPAsA70qeGLrQhppGwwD9Cne3iU,12281
|
|
280
|
+
huaweicloudsdkworkspace/v2/model/show_job_request.py,sha256=fsJ43OiHHGi_w76wl3_g_SrzkRee2m2zzaXG0rrNa_Y,2955
|
|
281
|
+
huaweicloudsdkworkspace/v2/model/show_job_response.py,sha256=mGaNwsv4pzs2utLs-Khr3bfGLwPFdkzREuBW3g2-wNY,9546
|
|
280
282
|
huaweicloudsdkworkspace/v2/model/show_quotas_request.py,sha256=-WYLA93XuLgRzTZs8QlH3ZTIbRdp5MpyDSKP24C2ZoI,2309
|
|
281
283
|
huaweicloudsdkworkspace/v2/model/show_quotas_response.py,sha256=yAyAWr9bMVhmTw0Wszt69HwAzSCJwFECy2NfsIFnA2M,4327
|
|
282
284
|
huaweicloudsdkworkspace/v2/model/show_scheduled_tasks_request.py,sha256=kDv_XIxsO7H2uV41toxAuMo0Ja-9q6DVLcE8H-l5PtM,3054
|
|
@@ -340,8 +342,8 @@ huaweicloudsdkworkspace/v2/model/volume_detail.py,sha256=EadIl0qszTD9oQEGiRlmZrb
|
|
|
340
342
|
huaweicloudsdkworkspace/v2/model/vpc.py,sha256=rKqAU5vZK4Y059h5LIFxWfWefxsgiERApZaw3Wm5qlY,4099
|
|
341
343
|
huaweicloudsdkworkspace/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
342
344
|
huaweicloudsdkworkspace/v2/region/workspace_region.py,sha256=sQ3AfV2rupDNT_nxIFCCXOLNLg-jtEI6B4CSXUYeof8,2359
|
|
343
|
-
huaweicloudsdkworkspace-3.1.
|
|
344
|
-
huaweicloudsdkworkspace-3.1.
|
|
345
|
-
huaweicloudsdkworkspace-3.1.
|
|
346
|
-
huaweicloudsdkworkspace-3.1.
|
|
347
|
-
huaweicloudsdkworkspace-3.1.
|
|
345
|
+
huaweicloudsdkworkspace-3.1.96.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
|
346
|
+
huaweicloudsdkworkspace-3.1.96.dist-info/METADATA,sha256=iqDqBe_qbySgfwvocOmD88vF_XxUNct8GOyhngHmJ5Q,1152
|
|
347
|
+
huaweicloudsdkworkspace-3.1.96.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
|
|
348
|
+
huaweicloudsdkworkspace-3.1.96.dist-info/top_level.txt,sha256=Iqj0R-5g-jAYosVE4_il8rB8wRuaDb2fefMXUBmIAs4,24
|
|
349
|
+
huaweicloudsdkworkspace-3.1.96.dist-info/RECORD,,
|
{huaweicloudsdkworkspace-3.1.94.dist-info → huaweicloudsdkworkspace-3.1.96.dist-info}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
{huaweicloudsdkworkspace-3.1.94.dist-info → huaweicloudsdkworkspace-3.1.96.dist-info}/top_level.txt
RENAMED
|
File without changes
|