huaweicloudsdkims 3.0.42rc0__py3-none-any.whl → 3.1.160__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkims/v2/__init__.py +31 -3
- huaweicloudsdkims/v2/ims_async_client.py +2198 -1356
- huaweicloudsdkims/v2/ims_client.py +2188 -1347
- huaweicloudsdkims/v2/model/__init__.py +30 -1
- huaweicloudsdkims/v2/model/add_image_tag_request.py +26 -19
- huaweicloudsdkims/v2/model/add_image_tag_request_body.py +19 -16
- huaweicloudsdkims/v2/model/add_image_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/add_or_update_tags_request_body.py +29 -22
- huaweicloudsdkims/v2/model/additional_properties.py +18 -13
- huaweicloudsdkims/v2/model/batch_add_members_request.py +19 -16
- huaweicloudsdkims/v2/model/batch_add_members_request_body.py +84 -19
- huaweicloudsdkims/v2/model/batch_add_members_response.py +19 -13
- huaweicloudsdkims/v2/model/batch_add_or_delete_tags_request.py +26 -19
- huaweicloudsdkims/v2/model/batch_add_or_delete_tags_request_body.py +24 -17
- huaweicloudsdkims/v2/model/batch_add_or_delete_tags_response.py +14 -10
- huaweicloudsdkims/v2/model/batch_delete_members_request.py +19 -16
- huaweicloudsdkims/v2/model/batch_delete_members_response.py +19 -13
- huaweicloudsdkims/v2/model/batch_delete_tags_request.py +139 -0
- huaweicloudsdkims/v2/model/batch_delete_tags_request_body.py +114 -0
- huaweicloudsdkims/v2/model/batch_delete_tags_response.py +85 -0
- huaweicloudsdkims/v2/model/batch_update_members_request.py +19 -16
- huaweicloudsdkims/v2/model/batch_update_members_request_body.py +33 -22
- huaweicloudsdkims/v2/model/batch_update_members_response.py +19 -13
- huaweicloudsdkims/v2/model/copy_image_cross_region_request.py +26 -19
- huaweicloudsdkims/v2/model/copy_image_cross_region_request_body.py +70 -28
- huaweicloudsdkims/v2/model/copy_image_cross_region_response.py +19 -13
- huaweicloudsdkims/v2/model/copy_image_in_region_in_safe_mode_request.py +139 -0
- huaweicloudsdkims/v2/model/copy_image_in_region_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/copy_image_in_region_request.py +26 -19
- huaweicloudsdkims/v2/model/copy_image_in_region_request_body.py +33 -22
- huaweicloudsdkims/v2/model/copy_image_in_region_response.py +19 -13
- huaweicloudsdkims/v2/model/create_data_image.py +33 -22
- huaweicloudsdkims/v2/model/create_data_image_in_safe_mode_request.py +111 -0
- huaweicloudsdkims/v2/model/create_data_image_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/create_data_image_request.py +19 -16
- huaweicloudsdkims/v2/model/create_data_image_request_body.py +63 -41
- huaweicloudsdkims/v2/model/create_data_image_response.py +19 -13
- huaweicloudsdkims/v2/model/create_image_in_safe_mode_request.py +111 -0
- huaweicloudsdkims/v2/model/create_image_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/create_image_request.py +19 -16
- huaweicloudsdkims/v2/model/create_image_request_body.py +139 -70
- huaweicloudsdkims/v2/model/create_image_response.py +19 -13
- huaweicloudsdkims/v2/model/create_or_update_tags_request.py +19 -16
- huaweicloudsdkims/v2/model/create_or_update_tags_response.py +14 -10
- huaweicloudsdkims/v2/model/create_whole_image_request.py +19 -16
- huaweicloudsdkims/v2/model/create_whole_image_request_body.py +74 -50
- huaweicloudsdkims/v2/model/create_whole_image_response.py +19 -13
- huaweicloudsdkims/v2/model/delete_image_tag_request.py +27 -16
- huaweicloudsdkims/v2/model/delete_image_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/export_image_in_safe_mode_request.py +139 -0
- huaweicloudsdkims/v2/model/export_image_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/export_image_request.py +26 -19
- huaweicloudsdkims/v2/model/export_image_request_body.py +55 -19
- huaweicloudsdkims/v2/model/export_image_response.py +19 -13
- huaweicloudsdkims/v2/model/glance_add_image_member_request.py +26 -19
- huaweicloudsdkims/v2/model/glance_add_image_member_request_body.py +18 -13
- huaweicloudsdkims/v2/model/glance_add_image_member_response.py +105 -31
- huaweicloudsdkims/v2/model/glance_create_image_metadata_request.py +19 -16
- huaweicloudsdkims/v2/model/glance_create_image_metadata_request_body.py +58 -37
- huaweicloudsdkims/v2/model/glance_create_image_metadata_response.py +239 -94
- huaweicloudsdkims/v2/model/glance_create_tag_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_create_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_delete_image_member_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_delete_image_member_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_delete_image_request.py +26 -19
- huaweicloudsdkims/v2/model/glance_delete_image_request_body.py +18 -13
- huaweicloudsdkims/v2/model/glance_delete_image_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_delete_tag_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_delete_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_image_members.py +104 -31
- huaweicloudsdkims/v2/model/glance_list_image_member_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_list_image_member_schemas_response.py +30 -20
- huaweicloudsdkims/v2/model/glance_list_image_members_request.py +20 -13
- huaweicloudsdkims/v2/model/glance_list_image_members_response.py +25 -17
- huaweicloudsdkims/v2/model/glance_list_image_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_list_image_schemas_response.py +30 -20
- huaweicloudsdkims/v2/model/glance_list_images_request.py +237 -106
- huaweicloudsdkims/v2/model/glance_list_images_response.py +36 -24
- huaweicloudsdkims/v2/model/glance_show_image_list_response_body.py +1833 -0
- huaweicloudsdkims/v2/model/glance_show_image_member_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_show_image_member_response.py +105 -31
- huaweicloudsdkims/v2/model/glance_show_image_member_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_show_image_member_schemas_response.py +24 -16
- huaweicloudsdkims/v2/model/glance_show_image_request.py +20 -13
- huaweicloudsdkims/v2/model/glance_show_image_response.py +631 -210
- huaweicloudsdkims/v2/model/glance_show_image_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_show_image_schemas_response.py +36 -26
- huaweicloudsdkims/v2/model/glance_update_image_member_request.py +33 -22
- huaweicloudsdkims/v2/model/glance_update_image_member_request_body.py +23 -16
- huaweicloudsdkims/v2/model/glance_update_image_member_response.py +105 -31
- huaweicloudsdkims/v2/model/glance_update_image_request.py +26 -19
- huaweicloudsdkims/v2/model/glance_update_image_request_body.py +28 -19
- huaweicloudsdkims/v2/model/glance_update_image_response.py +631 -210
- huaweicloudsdkims/v2/model/image_info.py +616 -260
- huaweicloudsdkims/v2/model/image_member.py +310 -0
- huaweicloudsdkims/v2/model/image_tag.py +23 -16
- huaweicloudsdkims/v2/model/import_image_quick_in_safe_mode_request.py +111 -0
- huaweicloudsdkims/v2/model/import_image_quick_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/import_image_quick_request.py +19 -16
- huaweicloudsdkims/v2/model/import_image_quick_response.py +19 -13
- huaweicloudsdkims/v2/model/job_entities.py +340 -16
- huaweicloudsdkims/v2/model/job_entities_result.py +173 -0
- huaweicloudsdkims/v2/model/job_progress_entities.py +289 -0
- huaweicloudsdkims/v2/model/links.py +23 -16
- huaweicloudsdkims/v2/model/list_image_by_tags_request.py +19 -16
- huaweicloudsdkims/v2/model/list_image_by_tags_request_body.py +90 -42
- huaweicloudsdkims/v2/model/list_image_by_tags_response.py +25 -17
- huaweicloudsdkims/v2/model/list_image_members_request.py +114 -0
- huaweicloudsdkims/v2/model/list_image_members_response.py +145 -0
- huaweicloudsdkims/v2/model/list_image_tags_request.py +20 -13
- huaweicloudsdkims/v2/model/list_image_tags_response.py +20 -14
- huaweicloudsdkims/v2/model/list_images_request.py +272 -121
- huaweicloudsdkims/v2/model/list_images_response.py +20 -14
- huaweicloudsdkims/v2/model/list_images_tags_request.py +13 -10
- huaweicloudsdkims/v2/model/list_images_tags_response.py +20 -14
- huaweicloudsdkims/v2/model/list_os_versions_request.py +20 -13
- huaweicloudsdkims/v2/model/list_os_versions_response.py +20 -16
- huaweicloudsdkims/v2/model/list_os_versions_response_body.py +24 -17
- huaweicloudsdkims/v2/model/list_tags_request.py +118 -55
- huaweicloudsdkims/v2/model/list_tags_response.py +19 -13
- huaweicloudsdkims/v2/model/list_versions_request.py +84 -0
- huaweicloudsdkims/v2/model/list_versions_response.py +116 -0
- huaweicloudsdkims/v2/model/os_version_info.py +38 -25
- huaweicloudsdkims/v2/model/os_version_response.py +172 -0
- huaweicloudsdkims/v2/model/query_image_by_tags_resource_detail.py +18 -13
- huaweicloudsdkims/v2/model/quick_import_image_by_file_request_body.py +130 -47
- huaweicloudsdkims/v2/model/quota.py +19 -14
- huaweicloudsdkims/v2/model/quota_info.py +38 -25
- huaweicloudsdkims/v2/model/register_image_request.py +26 -19
- huaweicloudsdkims/v2/model/register_image_request_body.py +18 -13
- huaweicloudsdkims/v2/model/register_image_response.py +19 -13
- huaweicloudsdkims/v2/model/resource_tag.py +23 -16
- huaweicloudsdkims/v2/model/show_image_by_tags_resource.py +47 -38
- huaweicloudsdkims/v2/model/show_image_member_request.py +142 -0
- huaweicloudsdkims/v2/model/show_image_member_response.py +319 -0
- huaweicloudsdkims/v2/model/show_image_quota_request.py +13 -10
- huaweicloudsdkims/v2/model/show_image_quota_response.py +20 -16
- huaweicloudsdkims/v2/model/show_job_progress_request.py +114 -0
- huaweicloudsdkims/v2/model/show_job_progress_response.py +315 -0
- huaweicloudsdkims/v2/model/show_job_request.py +20 -13
- huaweicloudsdkims/v2/model/show_job_response.py +55 -37
- huaweicloudsdkims/v2/model/show_version_request.py +114 -0
- huaweicloudsdkims/v2/model/show_version_response.py +116 -0
- huaweicloudsdkims/v2/model/sub_job_entities.py +144 -0
- huaweicloudsdkims/v2/model/sub_job_result.py +314 -0
- huaweicloudsdkims/v2/model/tag_key_value.py +23 -16
- huaweicloudsdkims/v2/model/tags.py +23 -16
- huaweicloudsdkims/v2/model/update_image_request.py +26 -19
- huaweicloudsdkims/v2/model/update_image_request_body.py +29 -21
- huaweicloudsdkims/v2/model/update_image_response.py +600 -254
- huaweicloudsdkims/v2/region/ims_region.py +101 -42
- {huaweicloudsdkims-3.0.42rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/METADATA +9 -9
- huaweicloudsdkims-3.1.160.dist-info/RECORD +158 -0
- {huaweicloudsdkims-3.0.42rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/WHEEL +1 -1
- huaweicloudsdkims/v2/model/glance_show_image_response_body.py +0 -1357
- huaweicloudsdkims-3.0.42rc0.dist-info/RECORD +0 -129
- {huaweicloudsdkims-3.0.42rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/LICENSE +0 -0
- {huaweicloudsdkims-3.0.42rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/top_level.txt +0 -0
@@ -1,17 +1,13 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
import pprint
|
4
|
-
import re
|
5
|
-
|
6
3
|
import six
|
7
4
|
|
8
|
-
|
9
5
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
10
7
|
|
11
8
|
|
12
9
|
class ShowJobResponse(SdkResponse):
|
13
10
|
|
14
|
-
|
15
11
|
"""
|
16
12
|
Attributes:
|
17
13
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +15,6 @@ class ShowJobResponse(SdkResponse):
|
|
19
15
|
attribute_map (dict): The key is attribute name
|
20
16
|
and the value is json key in definition.
|
21
17
|
"""
|
22
|
-
|
23
18
|
sensitive_list = []
|
24
19
|
|
25
20
|
openapi_types = {
|
@@ -45,9 +40,29 @@ class ShowJobResponse(SdkResponse):
|
|
45
40
|
}
|
46
41
|
|
47
42
|
def __init__(self, status=None, job_id=None, job_type=None, begin_time=None, end_time=None, error_code=None, fail_reason=None, entities=None):
|
48
|
-
"""ShowJobResponse
|
43
|
+
r"""ShowJobResponse
|
44
|
+
|
45
|
+
The model defined in huaweicloud sdk
|
46
|
+
|
47
|
+
:param status: 任务状态,目前取值如下: SUCCESS:表示该任务执行已经结束,任务执行成功。 FAIL:表示该任务执行已经结束,任务执行失败。 RUNNING:表示该任务正在执行。 INIT:表给任务还未执行,正在初始化。
|
48
|
+
:type status: str
|
49
|
+
:param job_id: 任务ID。
|
50
|
+
:type job_id: str
|
51
|
+
:param job_type: 任务类型。
|
52
|
+
:type job_type: str
|
53
|
+
:param begin_time: 任务开始执行时间。格式为UTC时间。
|
54
|
+
:type begin_time: str
|
55
|
+
:param end_time: 任务结束时间。格式为UTC时间。
|
56
|
+
:type end_time: str
|
57
|
+
:param error_code: 错误码。
|
58
|
+
:type error_code: str
|
59
|
+
:param fail_reason: 失败原因。
|
60
|
+
:type fail_reason: str
|
61
|
+
:param entities:
|
62
|
+
:type entities: :class:`huaweicloudsdkims.v2.JobEntities`
|
63
|
+
"""
|
49
64
|
|
50
|
-
super().__init__()
|
65
|
+
super(ShowJobResponse, self).__init__()
|
51
66
|
|
52
67
|
self._status = None
|
53
68
|
self._job_id = None
|
@@ -78,7 +93,7 @@ class ShowJobResponse(SdkResponse):
|
|
78
93
|
|
79
94
|
@property
|
80
95
|
def status(self):
|
81
|
-
"""Gets the status of this ShowJobResponse.
|
96
|
+
r"""Gets the status of this ShowJobResponse.
|
82
97
|
|
83
98
|
任务状态,目前取值如下: SUCCESS:表示该任务执行已经结束,任务执行成功。 FAIL:表示该任务执行已经结束,任务执行失败。 RUNNING:表示该任务正在执行。 INIT:表给任务还未执行,正在初始化。
|
84
99
|
|
@@ -89,18 +104,18 @@ class ShowJobResponse(SdkResponse):
|
|
89
104
|
|
90
105
|
@status.setter
|
91
106
|
def status(self, status):
|
92
|
-
"""Sets the status of this ShowJobResponse.
|
107
|
+
r"""Sets the status of this ShowJobResponse.
|
93
108
|
|
94
109
|
任务状态,目前取值如下: SUCCESS:表示该任务执行已经结束,任务执行成功。 FAIL:表示该任务执行已经结束,任务执行失败。 RUNNING:表示该任务正在执行。 INIT:表给任务还未执行,正在初始化。
|
95
110
|
|
96
111
|
:param status: The status of this ShowJobResponse.
|
97
|
-
:type: str
|
112
|
+
:type status: str
|
98
113
|
"""
|
99
114
|
self._status = status
|
100
115
|
|
101
116
|
@property
|
102
117
|
def job_id(self):
|
103
|
-
"""Gets the job_id of this ShowJobResponse.
|
118
|
+
r"""Gets the job_id of this ShowJobResponse.
|
104
119
|
|
105
120
|
任务ID。
|
106
121
|
|
@@ -111,18 +126,18 @@ class ShowJobResponse(SdkResponse):
|
|
111
126
|
|
112
127
|
@job_id.setter
|
113
128
|
def job_id(self, job_id):
|
114
|
-
"""Sets the job_id of this ShowJobResponse.
|
129
|
+
r"""Sets the job_id of this ShowJobResponse.
|
115
130
|
|
116
131
|
任务ID。
|
117
132
|
|
118
133
|
:param job_id: The job_id of this ShowJobResponse.
|
119
|
-
:type: str
|
134
|
+
:type job_id: str
|
120
135
|
"""
|
121
136
|
self._job_id = job_id
|
122
137
|
|
123
138
|
@property
|
124
139
|
def job_type(self):
|
125
|
-
"""Gets the job_type of this ShowJobResponse.
|
140
|
+
r"""Gets the job_type of this ShowJobResponse.
|
126
141
|
|
127
142
|
任务类型。
|
128
143
|
|
@@ -133,18 +148,18 @@ class ShowJobResponse(SdkResponse):
|
|
133
148
|
|
134
149
|
@job_type.setter
|
135
150
|
def job_type(self, job_type):
|
136
|
-
"""Sets the job_type of this ShowJobResponse.
|
151
|
+
r"""Sets the job_type of this ShowJobResponse.
|
137
152
|
|
138
153
|
任务类型。
|
139
154
|
|
140
155
|
:param job_type: The job_type of this ShowJobResponse.
|
141
|
-
:type: str
|
156
|
+
:type job_type: str
|
142
157
|
"""
|
143
158
|
self._job_type = job_type
|
144
159
|
|
145
160
|
@property
|
146
161
|
def begin_time(self):
|
147
|
-
"""Gets the begin_time of this ShowJobResponse.
|
162
|
+
r"""Gets the begin_time of this ShowJobResponse.
|
148
163
|
|
149
164
|
任务开始执行时间。格式为UTC时间。
|
150
165
|
|
@@ -155,18 +170,18 @@ class ShowJobResponse(SdkResponse):
|
|
155
170
|
|
156
171
|
@begin_time.setter
|
157
172
|
def begin_time(self, begin_time):
|
158
|
-
"""Sets the begin_time of this ShowJobResponse.
|
173
|
+
r"""Sets the begin_time of this ShowJobResponse.
|
159
174
|
|
160
175
|
任务开始执行时间。格式为UTC时间。
|
161
176
|
|
162
177
|
:param begin_time: The begin_time of this ShowJobResponse.
|
163
|
-
:type: str
|
178
|
+
:type begin_time: str
|
164
179
|
"""
|
165
180
|
self._begin_time = begin_time
|
166
181
|
|
167
182
|
@property
|
168
183
|
def end_time(self):
|
169
|
-
"""Gets the end_time of this ShowJobResponse.
|
184
|
+
r"""Gets the end_time of this ShowJobResponse.
|
170
185
|
|
171
186
|
任务结束时间。格式为UTC时间。
|
172
187
|
|
@@ -177,18 +192,18 @@ class ShowJobResponse(SdkResponse):
|
|
177
192
|
|
178
193
|
@end_time.setter
|
179
194
|
def end_time(self, end_time):
|
180
|
-
"""Sets the end_time of this ShowJobResponse.
|
195
|
+
r"""Sets the end_time of this ShowJobResponse.
|
181
196
|
|
182
197
|
任务结束时间。格式为UTC时间。
|
183
198
|
|
184
199
|
:param end_time: The end_time of this ShowJobResponse.
|
185
|
-
:type: str
|
200
|
+
:type end_time: str
|
186
201
|
"""
|
187
202
|
self._end_time = end_time
|
188
203
|
|
189
204
|
@property
|
190
205
|
def error_code(self):
|
191
|
-
"""Gets the error_code of this ShowJobResponse.
|
206
|
+
r"""Gets the error_code of this ShowJobResponse.
|
192
207
|
|
193
208
|
错误码。
|
194
209
|
|
@@ -199,18 +214,18 @@ class ShowJobResponse(SdkResponse):
|
|
199
214
|
|
200
215
|
@error_code.setter
|
201
216
|
def error_code(self, error_code):
|
202
|
-
"""Sets the error_code of this ShowJobResponse.
|
217
|
+
r"""Sets the error_code of this ShowJobResponse.
|
203
218
|
|
204
219
|
错误码。
|
205
220
|
|
206
221
|
:param error_code: The error_code of this ShowJobResponse.
|
207
|
-
:type: str
|
222
|
+
:type error_code: str
|
208
223
|
"""
|
209
224
|
self._error_code = error_code
|
210
225
|
|
211
226
|
@property
|
212
227
|
def fail_reason(self):
|
213
|
-
"""Gets the fail_reason of this ShowJobResponse.
|
228
|
+
r"""Gets the fail_reason of this ShowJobResponse.
|
214
229
|
|
215
230
|
失败原因。
|
216
231
|
|
@@ -221,32 +236,30 @@ class ShowJobResponse(SdkResponse):
|
|
221
236
|
|
222
237
|
@fail_reason.setter
|
223
238
|
def fail_reason(self, fail_reason):
|
224
|
-
"""Sets the fail_reason of this ShowJobResponse.
|
239
|
+
r"""Sets the fail_reason of this ShowJobResponse.
|
225
240
|
|
226
241
|
失败原因。
|
227
242
|
|
228
243
|
:param fail_reason: The fail_reason of this ShowJobResponse.
|
229
|
-
:type: str
|
244
|
+
:type fail_reason: str
|
230
245
|
"""
|
231
246
|
self._fail_reason = fail_reason
|
232
247
|
|
233
248
|
@property
|
234
249
|
def entities(self):
|
235
|
-
"""Gets the entities of this ShowJobResponse.
|
236
|
-
|
250
|
+
r"""Gets the entities of this ShowJobResponse.
|
237
251
|
|
238
252
|
:return: The entities of this ShowJobResponse.
|
239
|
-
:rtype: JobEntities
|
253
|
+
:rtype: :class:`huaweicloudsdkims.v2.JobEntities`
|
240
254
|
"""
|
241
255
|
return self._entities
|
242
256
|
|
243
257
|
@entities.setter
|
244
258
|
def entities(self, entities):
|
245
|
-
"""Sets the entities of this ShowJobResponse.
|
246
|
-
|
259
|
+
r"""Sets the entities of this ShowJobResponse.
|
247
260
|
|
248
261
|
:param entities: The entities of this ShowJobResponse.
|
249
|
-
:type: JobEntities
|
262
|
+
:type entities: :class:`huaweicloudsdkims.v2.JobEntities`
|
250
263
|
"""
|
251
264
|
self._entities = entities
|
252
265
|
|
@@ -279,10 +292,15 @@ class ShowJobResponse(SdkResponse):
|
|
279
292
|
|
280
293
|
def to_str(self):
|
281
294
|
"""Returns the string representation of the model"""
|
282
|
-
|
295
|
+
import simplejson as json
|
296
|
+
if six.PY2:
|
297
|
+
import sys
|
298
|
+
reload(sys)
|
299
|
+
sys.setdefaultencoding("utf-8")
|
300
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
283
301
|
|
284
302
|
def __repr__(self):
|
285
|
-
"""For `print`
|
303
|
+
"""For `print`"""
|
286
304
|
return self.to_str()
|
287
305
|
|
288
306
|
def __eq__(self, other):
|
@@ -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 ShowVersionRequest:
|
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
|
+
'version': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'version': 'version'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, version=None):
|
28
|
+
r"""ShowVersionRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param version: API版本号。例如:v2.0
|
33
|
+
:type version: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._version = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.version = version
|
42
|
+
|
43
|
+
@property
|
44
|
+
def version(self):
|
45
|
+
r"""Gets the version of this ShowVersionRequest.
|
46
|
+
|
47
|
+
API版本号。例如:v2.0
|
48
|
+
|
49
|
+
:return: The version of this ShowVersionRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._version
|
53
|
+
|
54
|
+
@version.setter
|
55
|
+
def version(self, version):
|
56
|
+
r"""Sets the version of this ShowVersionRequest.
|
57
|
+
|
58
|
+
API版本号。例如:v2.0
|
59
|
+
|
60
|
+
:param version: The version of this ShowVersionRequest.
|
61
|
+
:type version: str
|
62
|
+
"""
|
63
|
+
self._version = version
|
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, ShowVersionRequest):
|
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,116 @@
|
|
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 ShowVersionResponse(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
|
+
'versions': 'list[OsVersionResponse]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'versions': 'versions'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, versions=None):
|
29
|
+
r"""ShowVersionResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param versions: 版本信息
|
34
|
+
:type versions: list[:class:`huaweicloudsdkims.v2.OsVersionResponse`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowVersionResponse, self).__init__()
|
38
|
+
|
39
|
+
self._versions = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if versions is not None:
|
43
|
+
self.versions = versions
|
44
|
+
|
45
|
+
@property
|
46
|
+
def versions(self):
|
47
|
+
r"""Gets the versions of this ShowVersionResponse.
|
48
|
+
|
49
|
+
版本信息
|
50
|
+
|
51
|
+
:return: The versions of this ShowVersionResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.OsVersionResponse`]
|
53
|
+
"""
|
54
|
+
return self._versions
|
55
|
+
|
56
|
+
@versions.setter
|
57
|
+
def versions(self, versions):
|
58
|
+
r"""Sets the versions of this ShowVersionResponse.
|
59
|
+
|
60
|
+
版本信息
|
61
|
+
|
62
|
+
:param versions: The versions of this ShowVersionResponse.
|
63
|
+
:type versions: list[:class:`huaweicloudsdkims.v2.OsVersionResponse`]
|
64
|
+
"""
|
65
|
+
self._versions = versions
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, ShowVersionResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SubJobEntities:
|
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
|
+
'image_id': 'str',
|
21
|
+
'image_name': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'image_id': 'image_id',
|
26
|
+
'image_name': 'image_name'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, image_id=None, image_name=None):
|
30
|
+
r"""SubJobEntities
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param image_id: 镜像ID。
|
35
|
+
:type image_id: str
|
36
|
+
:param image_name: 镜像名称
|
37
|
+
:type image_name: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._image_id = None
|
43
|
+
self._image_name = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if image_id is not None:
|
47
|
+
self.image_id = image_id
|
48
|
+
if image_name is not None:
|
49
|
+
self.image_name = image_name
|
50
|
+
|
51
|
+
@property
|
52
|
+
def image_id(self):
|
53
|
+
r"""Gets the image_id of this SubJobEntities.
|
54
|
+
|
55
|
+
镜像ID。
|
56
|
+
|
57
|
+
:return: The image_id of this SubJobEntities.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._image_id
|
61
|
+
|
62
|
+
@image_id.setter
|
63
|
+
def image_id(self, image_id):
|
64
|
+
r"""Sets the image_id of this SubJobEntities.
|
65
|
+
|
66
|
+
镜像ID。
|
67
|
+
|
68
|
+
:param image_id: The image_id of this SubJobEntities.
|
69
|
+
:type image_id: str
|
70
|
+
"""
|
71
|
+
self._image_id = image_id
|
72
|
+
|
73
|
+
@property
|
74
|
+
def image_name(self):
|
75
|
+
r"""Gets the image_name of this SubJobEntities.
|
76
|
+
|
77
|
+
镜像名称
|
78
|
+
|
79
|
+
:return: The image_name of this SubJobEntities.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._image_name
|
83
|
+
|
84
|
+
@image_name.setter
|
85
|
+
def image_name(self, image_name):
|
86
|
+
r"""Sets the image_name of this SubJobEntities.
|
87
|
+
|
88
|
+
镜像名称
|
89
|
+
|
90
|
+
:param image_name: The image_name of this SubJobEntities.
|
91
|
+
:type image_name: str
|
92
|
+
"""
|
93
|
+
self._image_name = image_name
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, SubJobEntities):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|