huaweicloudsdkims 3.0.43rc0__py3-none-any.whl → 3.1.161__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.43rc0.dist-info → huaweicloudsdkims-3.1.161.dist-info}/METADATA +9 -9
- huaweicloudsdkims-3.1.161.dist-info/RECORD +158 -0
- {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.161.dist-info}/WHEEL +1 -1
- huaweicloudsdkims/v2/model/glance_show_image_response_body.py +0 -1357
- huaweicloudsdkims-3.0.43rc0.dist-info/RECORD +0 -129
- {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.161.dist-info}/LICENSE +0 -0
- {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.161.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,314 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SubJobResult:
|
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
|
+
'status': 'str',
|
21
|
+
'job_id': 'str',
|
22
|
+
'job_type': 'str',
|
23
|
+
'begin_time': 'str',
|
24
|
+
'end_time': 'str',
|
25
|
+
'error_code': 'str',
|
26
|
+
'fail_reason': 'str',
|
27
|
+
'entities': 'SubJobEntities'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'status': 'status',
|
32
|
+
'job_id': 'job_id',
|
33
|
+
'job_type': 'job_type',
|
34
|
+
'begin_time': 'begin_time',
|
35
|
+
'end_time': 'end_time',
|
36
|
+
'error_code': 'error_code',
|
37
|
+
'fail_reason': 'fail_reason',
|
38
|
+
'entities': 'entities'
|
39
|
+
}
|
40
|
+
|
41
|
+
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):
|
42
|
+
r"""SubJobResult
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param status: 任务状态,目前取值如下: SUCCESS:表示该任务执行已经结束,任务执行成功。 FAIL:表示该任务执行已经结束,任务执行失败。 RUNNING:表示该任务正在执行。 INIT:表给任务还未执行,正在初始化。
|
47
|
+
:type status: str
|
48
|
+
:param job_id: 子任务ID。
|
49
|
+
:type job_id: str
|
50
|
+
:param job_type: 子任务类型。
|
51
|
+
:type job_type: str
|
52
|
+
:param begin_time: 子任务开始执行时间。格式为UTC时间。
|
53
|
+
:type begin_time: str
|
54
|
+
:param end_time: 子任务结束时间。格式为UTC时间。
|
55
|
+
:type end_time: str
|
56
|
+
:param error_code: 错误码。
|
57
|
+
:type error_code: str
|
58
|
+
:param fail_reason: 失败原因。
|
59
|
+
:type fail_reason: str
|
60
|
+
:param entities:
|
61
|
+
:type entities: :class:`huaweicloudsdkims.v2.SubJobEntities`
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._status = None
|
67
|
+
self._job_id = None
|
68
|
+
self._job_type = None
|
69
|
+
self._begin_time = None
|
70
|
+
self._end_time = None
|
71
|
+
self._error_code = None
|
72
|
+
self._fail_reason = None
|
73
|
+
self._entities = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
if status is not None:
|
77
|
+
self.status = status
|
78
|
+
if job_id is not None:
|
79
|
+
self.job_id = job_id
|
80
|
+
if job_type is not None:
|
81
|
+
self.job_type = job_type
|
82
|
+
if begin_time is not None:
|
83
|
+
self.begin_time = begin_time
|
84
|
+
if end_time is not None:
|
85
|
+
self.end_time = end_time
|
86
|
+
if error_code is not None:
|
87
|
+
self.error_code = error_code
|
88
|
+
if fail_reason is not None:
|
89
|
+
self.fail_reason = fail_reason
|
90
|
+
if entities is not None:
|
91
|
+
self.entities = entities
|
92
|
+
|
93
|
+
@property
|
94
|
+
def status(self):
|
95
|
+
r"""Gets the status of this SubJobResult.
|
96
|
+
|
97
|
+
任务状态,目前取值如下: SUCCESS:表示该任务执行已经结束,任务执行成功。 FAIL:表示该任务执行已经结束,任务执行失败。 RUNNING:表示该任务正在执行。 INIT:表给任务还未执行,正在初始化。
|
98
|
+
|
99
|
+
:return: The status of this SubJobResult.
|
100
|
+
:rtype: str
|
101
|
+
"""
|
102
|
+
return self._status
|
103
|
+
|
104
|
+
@status.setter
|
105
|
+
def status(self, status):
|
106
|
+
r"""Sets the status of this SubJobResult.
|
107
|
+
|
108
|
+
任务状态,目前取值如下: SUCCESS:表示该任务执行已经结束,任务执行成功。 FAIL:表示该任务执行已经结束,任务执行失败。 RUNNING:表示该任务正在执行。 INIT:表给任务还未执行,正在初始化。
|
109
|
+
|
110
|
+
:param status: The status of this SubJobResult.
|
111
|
+
:type status: str
|
112
|
+
"""
|
113
|
+
self._status = status
|
114
|
+
|
115
|
+
@property
|
116
|
+
def job_id(self):
|
117
|
+
r"""Gets the job_id of this SubJobResult.
|
118
|
+
|
119
|
+
子任务ID。
|
120
|
+
|
121
|
+
:return: The job_id of this SubJobResult.
|
122
|
+
:rtype: str
|
123
|
+
"""
|
124
|
+
return self._job_id
|
125
|
+
|
126
|
+
@job_id.setter
|
127
|
+
def job_id(self, job_id):
|
128
|
+
r"""Sets the job_id of this SubJobResult.
|
129
|
+
|
130
|
+
子任务ID。
|
131
|
+
|
132
|
+
:param job_id: The job_id of this SubJobResult.
|
133
|
+
:type job_id: str
|
134
|
+
"""
|
135
|
+
self._job_id = job_id
|
136
|
+
|
137
|
+
@property
|
138
|
+
def job_type(self):
|
139
|
+
r"""Gets the job_type of this SubJobResult.
|
140
|
+
|
141
|
+
子任务类型。
|
142
|
+
|
143
|
+
:return: The job_type of this SubJobResult.
|
144
|
+
:rtype: str
|
145
|
+
"""
|
146
|
+
return self._job_type
|
147
|
+
|
148
|
+
@job_type.setter
|
149
|
+
def job_type(self, job_type):
|
150
|
+
r"""Sets the job_type of this SubJobResult.
|
151
|
+
|
152
|
+
子任务类型。
|
153
|
+
|
154
|
+
:param job_type: The job_type of this SubJobResult.
|
155
|
+
:type job_type: str
|
156
|
+
"""
|
157
|
+
self._job_type = job_type
|
158
|
+
|
159
|
+
@property
|
160
|
+
def begin_time(self):
|
161
|
+
r"""Gets the begin_time of this SubJobResult.
|
162
|
+
|
163
|
+
子任务开始执行时间。格式为UTC时间。
|
164
|
+
|
165
|
+
:return: The begin_time of this SubJobResult.
|
166
|
+
:rtype: str
|
167
|
+
"""
|
168
|
+
return self._begin_time
|
169
|
+
|
170
|
+
@begin_time.setter
|
171
|
+
def begin_time(self, begin_time):
|
172
|
+
r"""Sets the begin_time of this SubJobResult.
|
173
|
+
|
174
|
+
子任务开始执行时间。格式为UTC时间。
|
175
|
+
|
176
|
+
:param begin_time: The begin_time of this SubJobResult.
|
177
|
+
:type begin_time: str
|
178
|
+
"""
|
179
|
+
self._begin_time = begin_time
|
180
|
+
|
181
|
+
@property
|
182
|
+
def end_time(self):
|
183
|
+
r"""Gets the end_time of this SubJobResult.
|
184
|
+
|
185
|
+
子任务结束时间。格式为UTC时间。
|
186
|
+
|
187
|
+
:return: The end_time of this SubJobResult.
|
188
|
+
:rtype: str
|
189
|
+
"""
|
190
|
+
return self._end_time
|
191
|
+
|
192
|
+
@end_time.setter
|
193
|
+
def end_time(self, end_time):
|
194
|
+
r"""Sets the end_time of this SubJobResult.
|
195
|
+
|
196
|
+
子任务结束时间。格式为UTC时间。
|
197
|
+
|
198
|
+
:param end_time: The end_time of this SubJobResult.
|
199
|
+
:type end_time: str
|
200
|
+
"""
|
201
|
+
self._end_time = end_time
|
202
|
+
|
203
|
+
@property
|
204
|
+
def error_code(self):
|
205
|
+
r"""Gets the error_code of this SubJobResult.
|
206
|
+
|
207
|
+
错误码。
|
208
|
+
|
209
|
+
:return: The error_code of this SubJobResult.
|
210
|
+
:rtype: str
|
211
|
+
"""
|
212
|
+
return self._error_code
|
213
|
+
|
214
|
+
@error_code.setter
|
215
|
+
def error_code(self, error_code):
|
216
|
+
r"""Sets the error_code of this SubJobResult.
|
217
|
+
|
218
|
+
错误码。
|
219
|
+
|
220
|
+
:param error_code: The error_code of this SubJobResult.
|
221
|
+
:type error_code: str
|
222
|
+
"""
|
223
|
+
self._error_code = error_code
|
224
|
+
|
225
|
+
@property
|
226
|
+
def fail_reason(self):
|
227
|
+
r"""Gets the fail_reason of this SubJobResult.
|
228
|
+
|
229
|
+
失败原因。
|
230
|
+
|
231
|
+
:return: The fail_reason of this SubJobResult.
|
232
|
+
:rtype: str
|
233
|
+
"""
|
234
|
+
return self._fail_reason
|
235
|
+
|
236
|
+
@fail_reason.setter
|
237
|
+
def fail_reason(self, fail_reason):
|
238
|
+
r"""Sets the fail_reason of this SubJobResult.
|
239
|
+
|
240
|
+
失败原因。
|
241
|
+
|
242
|
+
:param fail_reason: The fail_reason of this SubJobResult.
|
243
|
+
:type fail_reason: str
|
244
|
+
"""
|
245
|
+
self._fail_reason = fail_reason
|
246
|
+
|
247
|
+
@property
|
248
|
+
def entities(self):
|
249
|
+
r"""Gets the entities of this SubJobResult.
|
250
|
+
|
251
|
+
:return: The entities of this SubJobResult.
|
252
|
+
:rtype: :class:`huaweicloudsdkims.v2.SubJobEntities`
|
253
|
+
"""
|
254
|
+
return self._entities
|
255
|
+
|
256
|
+
@entities.setter
|
257
|
+
def entities(self, entities):
|
258
|
+
r"""Sets the entities of this SubJobResult.
|
259
|
+
|
260
|
+
:param entities: The entities of this SubJobResult.
|
261
|
+
:type entities: :class:`huaweicloudsdkims.v2.SubJobEntities`
|
262
|
+
"""
|
263
|
+
self._entities = entities
|
264
|
+
|
265
|
+
def to_dict(self):
|
266
|
+
"""Returns the model properties as a dict"""
|
267
|
+
result = {}
|
268
|
+
|
269
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
270
|
+
value = getattr(self, attr)
|
271
|
+
if isinstance(value, list):
|
272
|
+
result[attr] = list(map(
|
273
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
274
|
+
value
|
275
|
+
))
|
276
|
+
elif hasattr(value, "to_dict"):
|
277
|
+
result[attr] = value.to_dict()
|
278
|
+
elif isinstance(value, dict):
|
279
|
+
result[attr] = dict(map(
|
280
|
+
lambda item: (item[0], item[1].to_dict())
|
281
|
+
if hasattr(item[1], "to_dict") else item,
|
282
|
+
value.items()
|
283
|
+
))
|
284
|
+
else:
|
285
|
+
if attr in self.sensitive_list:
|
286
|
+
result[attr] = "****"
|
287
|
+
else:
|
288
|
+
result[attr] = value
|
289
|
+
|
290
|
+
return result
|
291
|
+
|
292
|
+
def to_str(self):
|
293
|
+
"""Returns the string representation of the model"""
|
294
|
+
import simplejson as json
|
295
|
+
if six.PY2:
|
296
|
+
import sys
|
297
|
+
reload(sys)
|
298
|
+
sys.setdefaultencoding("utf-8")
|
299
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
300
|
+
|
301
|
+
def __repr__(self):
|
302
|
+
"""For `print`"""
|
303
|
+
return self.to_str()
|
304
|
+
|
305
|
+
def __eq__(self, other):
|
306
|
+
"""Returns true if both objects are equal"""
|
307
|
+
if not isinstance(other, SubJobResult):
|
308
|
+
return False
|
309
|
+
|
310
|
+
return self.__dict__ == other.__dict__
|
311
|
+
|
312
|
+
def __ne__(self, other):
|
313
|
+
"""Returns true if both objects are not equal"""
|
314
|
+
return not self == other
|
@@ -1,17 +1,12 @@
|
|
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.utils.http_utils import sanitize_for_serialization
|
10
6
|
|
11
7
|
|
12
8
|
class TagKeyValue:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class TagKeyValue:
|
|
19
14
|
attribute_map (dict): The key is attribute name
|
20
15
|
and the value is json key in definition.
|
21
16
|
"""
|
22
|
-
|
23
17
|
sensitive_list = []
|
24
18
|
|
25
19
|
openapi_types = {
|
@@ -33,7 +27,15 @@ class TagKeyValue:
|
|
33
27
|
}
|
34
28
|
|
35
29
|
def __init__(self, key=None, value=None):
|
36
|
-
"""TagKeyValue
|
30
|
+
r"""TagKeyValue
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param key: 标签的键
|
35
|
+
:type key: str
|
36
|
+
:param value: 标签的值
|
37
|
+
:type value: str
|
38
|
+
"""
|
37
39
|
|
38
40
|
|
39
41
|
|
@@ -46,7 +48,7 @@ class TagKeyValue:
|
|
46
48
|
|
47
49
|
@property
|
48
50
|
def key(self):
|
49
|
-
"""Gets the key of this TagKeyValue.
|
51
|
+
r"""Gets the key of this TagKeyValue.
|
50
52
|
|
51
53
|
标签的键
|
52
54
|
|
@@ -57,18 +59,18 @@ class TagKeyValue:
|
|
57
59
|
|
58
60
|
@key.setter
|
59
61
|
def key(self, key):
|
60
|
-
"""Sets the key of this TagKeyValue.
|
62
|
+
r"""Sets the key of this TagKeyValue.
|
61
63
|
|
62
64
|
标签的键
|
63
65
|
|
64
66
|
:param key: The key of this TagKeyValue.
|
65
|
-
:type: str
|
67
|
+
:type key: str
|
66
68
|
"""
|
67
69
|
self._key = key
|
68
70
|
|
69
71
|
@property
|
70
72
|
def value(self):
|
71
|
-
"""Gets the value of this TagKeyValue.
|
73
|
+
r"""Gets the value of this TagKeyValue.
|
72
74
|
|
73
75
|
标签的值
|
74
76
|
|
@@ -79,12 +81,12 @@ class TagKeyValue:
|
|
79
81
|
|
80
82
|
@value.setter
|
81
83
|
def value(self, value):
|
82
|
-
"""Sets the value of this TagKeyValue.
|
84
|
+
r"""Sets the value of this TagKeyValue.
|
83
85
|
|
84
86
|
标签的值
|
85
87
|
|
86
88
|
:param value: The value of this TagKeyValue.
|
87
|
-
:type: str
|
89
|
+
:type value: str
|
88
90
|
"""
|
89
91
|
self._value = value
|
90
92
|
|
@@ -117,10 +119,15 @@ class TagKeyValue:
|
|
117
119
|
|
118
120
|
def to_str(self):
|
119
121
|
"""Returns the string representation of the model"""
|
120
|
-
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
121
128
|
|
122
129
|
def __repr__(self):
|
123
|
-
"""For `print`
|
130
|
+
"""For `print`"""
|
124
131
|
return self.to_str()
|
125
132
|
|
126
133
|
def __eq__(self, other):
|
@@ -1,17 +1,12 @@
|
|
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.utils.http_utils import sanitize_for_serialization
|
10
6
|
|
11
7
|
|
12
8
|
class Tags:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class Tags:
|
|
19
14
|
attribute_map (dict): The key is attribute name
|
20
15
|
and the value is json key in definition.
|
21
16
|
"""
|
22
|
-
|
23
17
|
sensitive_list = []
|
24
18
|
|
25
19
|
openapi_types = {
|
@@ -33,7 +27,15 @@ class Tags:
|
|
33
27
|
}
|
34
28
|
|
35
29
|
def __init__(self, key=None, values=None):
|
36
|
-
"""Tags
|
30
|
+
r"""Tags
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param key: 标签的键。最大长度127个unicode字符,key不能为空。
|
35
|
+
:type key: str
|
36
|
+
:param values: 标签的值列表。每个值最大长度255个unicode字符,如果values为空列表,则标签的值可以是任意值。值列表中的值之间为或的关系。
|
37
|
+
:type values: list[str]
|
38
|
+
"""
|
37
39
|
|
38
40
|
|
39
41
|
|
@@ -46,7 +48,7 @@ class Tags:
|
|
46
48
|
|
47
49
|
@property
|
48
50
|
def key(self):
|
49
|
-
"""Gets the key of this Tags.
|
51
|
+
r"""Gets the key of this Tags.
|
50
52
|
|
51
53
|
标签的键。最大长度127个unicode字符,key不能为空。
|
52
54
|
|
@@ -57,18 +59,18 @@ class Tags:
|
|
57
59
|
|
58
60
|
@key.setter
|
59
61
|
def key(self, key):
|
60
|
-
"""Sets the key of this Tags.
|
62
|
+
r"""Sets the key of this Tags.
|
61
63
|
|
62
64
|
标签的键。最大长度127个unicode字符,key不能为空。
|
63
65
|
|
64
66
|
:param key: The key of this Tags.
|
65
|
-
:type: str
|
67
|
+
:type key: str
|
66
68
|
"""
|
67
69
|
self._key = key
|
68
70
|
|
69
71
|
@property
|
70
72
|
def values(self):
|
71
|
-
"""Gets the values of this Tags.
|
73
|
+
r"""Gets the values of this Tags.
|
72
74
|
|
73
75
|
标签的值列表。每个值最大长度255个unicode字符,如果values为空列表,则标签的值可以是任意值。值列表中的值之间为或的关系。
|
74
76
|
|
@@ -79,12 +81,12 @@ class Tags:
|
|
79
81
|
|
80
82
|
@values.setter
|
81
83
|
def values(self, values):
|
82
|
-
"""Sets the values of this Tags.
|
84
|
+
r"""Sets the values of this Tags.
|
83
85
|
|
84
86
|
标签的值列表。每个值最大长度255个unicode字符,如果values为空列表,则标签的值可以是任意值。值列表中的值之间为或的关系。
|
85
87
|
|
86
88
|
:param values: The values of this Tags.
|
87
|
-
:type: list[str]
|
89
|
+
:type values: list[str]
|
88
90
|
"""
|
89
91
|
self._values = values
|
90
92
|
|
@@ -117,10 +119,15 @@ class Tags:
|
|
117
119
|
|
118
120
|
def to_str(self):
|
119
121
|
"""Returns the string representation of the model"""
|
120
|
-
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
121
128
|
|
122
129
|
def __repr__(self):
|
123
|
-
"""For `print`
|
130
|
+
"""For `print`"""
|
124
131
|
return self.to_str()
|
125
132
|
|
126
133
|
def __eq__(self, other):
|
@@ -1,17 +1,12 @@
|
|
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.utils.http_utils import sanitize_for_serialization
|
10
6
|
|
11
7
|
|
12
8
|
class UpdateImageRequest:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class UpdateImageRequest:
|
|
19
14
|
attribute_map (dict): The key is attribute name
|
20
15
|
and the value is json key in definition.
|
21
16
|
"""
|
22
|
-
|
23
17
|
sensitive_list = []
|
24
18
|
|
25
19
|
openapi_types = {
|
@@ -33,7 +27,15 @@ class UpdateImageRequest:
|
|
33
27
|
}
|
34
28
|
|
35
29
|
def __init__(self, image_id=None, body=None):
|
36
|
-
"""UpdateImageRequest
|
30
|
+
r"""UpdateImageRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param image_id: 镜像ID
|
35
|
+
:type image_id: str
|
36
|
+
:param body: Body of the UpdateImageRequest
|
37
|
+
:type body: list[:class:`huaweicloudsdkims.v2.UpdateImageRequestBody`]
|
38
|
+
"""
|
37
39
|
|
38
40
|
|
39
41
|
|
@@ -47,8 +49,9 @@ class UpdateImageRequest:
|
|
47
49
|
|
48
50
|
@property
|
49
51
|
def image_id(self):
|
50
|
-
"""Gets the image_id of this UpdateImageRequest.
|
52
|
+
r"""Gets the image_id of this UpdateImageRequest.
|
51
53
|
|
54
|
+
镜像ID
|
52
55
|
|
53
56
|
:return: The image_id of this UpdateImageRequest.
|
54
57
|
:rtype: str
|
@@ -57,31 +60,30 @@ class UpdateImageRequest:
|
|
57
60
|
|
58
61
|
@image_id.setter
|
59
62
|
def image_id(self, image_id):
|
60
|
-
"""Sets the image_id of this UpdateImageRequest.
|
63
|
+
r"""Sets the image_id of this UpdateImageRequest.
|
61
64
|
|
65
|
+
镜像ID
|
62
66
|
|
63
67
|
:param image_id: The image_id of this UpdateImageRequest.
|
64
|
-
:type: str
|
68
|
+
:type image_id: str
|
65
69
|
"""
|
66
70
|
self._image_id = image_id
|
67
71
|
|
68
72
|
@property
|
69
73
|
def body(self):
|
70
|
-
"""Gets the body of this UpdateImageRequest.
|
71
|
-
|
74
|
+
r"""Gets the body of this UpdateImageRequest.
|
72
75
|
|
73
76
|
:return: The body of this UpdateImageRequest.
|
74
|
-
:rtype: list[UpdateImageRequestBody]
|
77
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.UpdateImageRequestBody`]
|
75
78
|
"""
|
76
79
|
return self._body
|
77
80
|
|
78
81
|
@body.setter
|
79
82
|
def body(self, body):
|
80
|
-
"""Sets the body of this UpdateImageRequest.
|
81
|
-
|
83
|
+
r"""Sets the body of this UpdateImageRequest.
|
82
84
|
|
83
85
|
:param body: The body of this UpdateImageRequest.
|
84
|
-
:type: list[UpdateImageRequestBody]
|
86
|
+
:type body: list[:class:`huaweicloudsdkims.v2.UpdateImageRequestBody`]
|
85
87
|
"""
|
86
88
|
self._body = body
|
87
89
|
|
@@ -114,10 +116,15 @@ class UpdateImageRequest:
|
|
114
116
|
|
115
117
|
def to_str(self):
|
116
118
|
"""Returns the string representation of the model"""
|
117
|
-
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
118
125
|
|
119
126
|
def __repr__(self):
|
120
|
-
"""For `print`
|
127
|
+
"""For `print`"""
|
121
128
|
return self.to_str()
|
122
129
|
|
123
130
|
def __eq__(self, other):
|