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,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class JobEntitiesResult:
|
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
|
+
'project_id': 'str',
|
22
|
+
'status': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'image_id': 'image_id',
|
27
|
+
'project_id': 'project_id',
|
28
|
+
'status': 'status'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, image_id=None, project_id=None, status=None):
|
32
|
+
r"""JobEntitiesResult
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param image_id: 镜像ID。
|
37
|
+
:type image_id: str
|
38
|
+
:param project_id: 项目ID。
|
39
|
+
:type project_id: str
|
40
|
+
:param status: 任务状态。
|
41
|
+
:type status: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._image_id = None
|
47
|
+
self._project_id = None
|
48
|
+
self._status = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if image_id is not None:
|
52
|
+
self.image_id = image_id
|
53
|
+
if project_id is not None:
|
54
|
+
self.project_id = project_id
|
55
|
+
if status is not None:
|
56
|
+
self.status = status
|
57
|
+
|
58
|
+
@property
|
59
|
+
def image_id(self):
|
60
|
+
r"""Gets the image_id of this JobEntitiesResult.
|
61
|
+
|
62
|
+
镜像ID。
|
63
|
+
|
64
|
+
:return: The image_id of this JobEntitiesResult.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._image_id
|
68
|
+
|
69
|
+
@image_id.setter
|
70
|
+
def image_id(self, image_id):
|
71
|
+
r"""Sets the image_id of this JobEntitiesResult.
|
72
|
+
|
73
|
+
镜像ID。
|
74
|
+
|
75
|
+
:param image_id: The image_id of this JobEntitiesResult.
|
76
|
+
:type image_id: str
|
77
|
+
"""
|
78
|
+
self._image_id = image_id
|
79
|
+
|
80
|
+
@property
|
81
|
+
def project_id(self):
|
82
|
+
r"""Gets the project_id of this JobEntitiesResult.
|
83
|
+
|
84
|
+
项目ID。
|
85
|
+
|
86
|
+
:return: The project_id of this JobEntitiesResult.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._project_id
|
90
|
+
|
91
|
+
@project_id.setter
|
92
|
+
def project_id(self, project_id):
|
93
|
+
r"""Sets the project_id of this JobEntitiesResult.
|
94
|
+
|
95
|
+
项目ID。
|
96
|
+
|
97
|
+
:param project_id: The project_id of this JobEntitiesResult.
|
98
|
+
:type project_id: str
|
99
|
+
"""
|
100
|
+
self._project_id = project_id
|
101
|
+
|
102
|
+
@property
|
103
|
+
def status(self):
|
104
|
+
r"""Gets the status of this JobEntitiesResult.
|
105
|
+
|
106
|
+
任务状态。
|
107
|
+
|
108
|
+
:return: The status of this JobEntitiesResult.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._status
|
112
|
+
|
113
|
+
@status.setter
|
114
|
+
def status(self, status):
|
115
|
+
r"""Sets the status of this JobEntitiesResult.
|
116
|
+
|
117
|
+
任务状态。
|
118
|
+
|
119
|
+
:param status: The status of this JobEntitiesResult.
|
120
|
+
:type status: str
|
121
|
+
"""
|
122
|
+
self._status = status
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, JobEntitiesResult):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -0,0 +1,289 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class JobProgressEntities:
|
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
|
+
'current_task': 'str',
|
22
|
+
'image_name': 'str',
|
23
|
+
'process_percent': 'float',
|
24
|
+
'sub_job_id': 'str',
|
25
|
+
'sub_jobs_result': 'list[SubJobResult]',
|
26
|
+
'sub_jobs_list': 'list[str]'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'image_id': 'image_id',
|
31
|
+
'current_task': 'current_task',
|
32
|
+
'image_name': 'image_name',
|
33
|
+
'process_percent': 'process_percent',
|
34
|
+
'sub_job_id': 'subJobId',
|
35
|
+
'sub_jobs_result': 'sub_jobs_result',
|
36
|
+
'sub_jobs_list': 'sub_jobs_list'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, image_id=None, current_task=None, image_name=None, process_percent=None, sub_job_id=None, sub_jobs_result=None, sub_jobs_list=None):
|
40
|
+
r"""JobProgressEntities
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param image_id: 镜像ID
|
45
|
+
:type image_id: str
|
46
|
+
:param current_task: 当前任务名称
|
47
|
+
:type current_task: str
|
48
|
+
:param image_name: 镜像名称
|
49
|
+
:type image_name: str
|
50
|
+
:param process_percent: 任务执行进度
|
51
|
+
:type process_percent: float
|
52
|
+
:param sub_job_id: 子任务ID
|
53
|
+
:type sub_job_id: str
|
54
|
+
:param sub_jobs_result: 子任务结果列表
|
55
|
+
:type sub_jobs_result: list[:class:`huaweicloudsdkims.v2.SubJobResult`]
|
56
|
+
:param sub_jobs_list: 子任务ID列表
|
57
|
+
:type sub_jobs_list: list[str]
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._image_id = None
|
63
|
+
self._current_task = None
|
64
|
+
self._image_name = None
|
65
|
+
self._process_percent = None
|
66
|
+
self._sub_job_id = None
|
67
|
+
self._sub_jobs_result = None
|
68
|
+
self._sub_jobs_list = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
if image_id is not None:
|
72
|
+
self.image_id = image_id
|
73
|
+
if current_task is not None:
|
74
|
+
self.current_task = current_task
|
75
|
+
if image_name is not None:
|
76
|
+
self.image_name = image_name
|
77
|
+
if process_percent is not None:
|
78
|
+
self.process_percent = process_percent
|
79
|
+
if sub_job_id is not None:
|
80
|
+
self.sub_job_id = sub_job_id
|
81
|
+
if sub_jobs_result is not None:
|
82
|
+
self.sub_jobs_result = sub_jobs_result
|
83
|
+
if sub_jobs_list is not None:
|
84
|
+
self.sub_jobs_list = sub_jobs_list
|
85
|
+
|
86
|
+
@property
|
87
|
+
def image_id(self):
|
88
|
+
r"""Gets the image_id of this JobProgressEntities.
|
89
|
+
|
90
|
+
镜像ID
|
91
|
+
|
92
|
+
:return: The image_id of this JobProgressEntities.
|
93
|
+
:rtype: str
|
94
|
+
"""
|
95
|
+
return self._image_id
|
96
|
+
|
97
|
+
@image_id.setter
|
98
|
+
def image_id(self, image_id):
|
99
|
+
r"""Sets the image_id of this JobProgressEntities.
|
100
|
+
|
101
|
+
镜像ID
|
102
|
+
|
103
|
+
:param image_id: The image_id of this JobProgressEntities.
|
104
|
+
:type image_id: str
|
105
|
+
"""
|
106
|
+
self._image_id = image_id
|
107
|
+
|
108
|
+
@property
|
109
|
+
def current_task(self):
|
110
|
+
r"""Gets the current_task of this JobProgressEntities.
|
111
|
+
|
112
|
+
当前任务名称
|
113
|
+
|
114
|
+
:return: The current_task of this JobProgressEntities.
|
115
|
+
:rtype: str
|
116
|
+
"""
|
117
|
+
return self._current_task
|
118
|
+
|
119
|
+
@current_task.setter
|
120
|
+
def current_task(self, current_task):
|
121
|
+
r"""Sets the current_task of this JobProgressEntities.
|
122
|
+
|
123
|
+
当前任务名称
|
124
|
+
|
125
|
+
:param current_task: The current_task of this JobProgressEntities.
|
126
|
+
:type current_task: str
|
127
|
+
"""
|
128
|
+
self._current_task = current_task
|
129
|
+
|
130
|
+
@property
|
131
|
+
def image_name(self):
|
132
|
+
r"""Gets the image_name of this JobProgressEntities.
|
133
|
+
|
134
|
+
镜像名称
|
135
|
+
|
136
|
+
:return: The image_name of this JobProgressEntities.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._image_name
|
140
|
+
|
141
|
+
@image_name.setter
|
142
|
+
def image_name(self, image_name):
|
143
|
+
r"""Sets the image_name of this JobProgressEntities.
|
144
|
+
|
145
|
+
镜像名称
|
146
|
+
|
147
|
+
:param image_name: The image_name of this JobProgressEntities.
|
148
|
+
:type image_name: str
|
149
|
+
"""
|
150
|
+
self._image_name = image_name
|
151
|
+
|
152
|
+
@property
|
153
|
+
def process_percent(self):
|
154
|
+
r"""Gets the process_percent of this JobProgressEntities.
|
155
|
+
|
156
|
+
任务执行进度
|
157
|
+
|
158
|
+
:return: The process_percent of this JobProgressEntities.
|
159
|
+
:rtype: float
|
160
|
+
"""
|
161
|
+
return self._process_percent
|
162
|
+
|
163
|
+
@process_percent.setter
|
164
|
+
def process_percent(self, process_percent):
|
165
|
+
r"""Sets the process_percent of this JobProgressEntities.
|
166
|
+
|
167
|
+
任务执行进度
|
168
|
+
|
169
|
+
:param process_percent: The process_percent of this JobProgressEntities.
|
170
|
+
:type process_percent: float
|
171
|
+
"""
|
172
|
+
self._process_percent = process_percent
|
173
|
+
|
174
|
+
@property
|
175
|
+
def sub_job_id(self):
|
176
|
+
r"""Gets the sub_job_id of this JobProgressEntities.
|
177
|
+
|
178
|
+
子任务ID
|
179
|
+
|
180
|
+
:return: The sub_job_id of this JobProgressEntities.
|
181
|
+
:rtype: str
|
182
|
+
"""
|
183
|
+
return self._sub_job_id
|
184
|
+
|
185
|
+
@sub_job_id.setter
|
186
|
+
def sub_job_id(self, sub_job_id):
|
187
|
+
r"""Sets the sub_job_id of this JobProgressEntities.
|
188
|
+
|
189
|
+
子任务ID
|
190
|
+
|
191
|
+
:param sub_job_id: The sub_job_id of this JobProgressEntities.
|
192
|
+
:type sub_job_id: str
|
193
|
+
"""
|
194
|
+
self._sub_job_id = sub_job_id
|
195
|
+
|
196
|
+
@property
|
197
|
+
def sub_jobs_result(self):
|
198
|
+
r"""Gets the sub_jobs_result of this JobProgressEntities.
|
199
|
+
|
200
|
+
子任务结果列表
|
201
|
+
|
202
|
+
:return: The sub_jobs_result of this JobProgressEntities.
|
203
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.SubJobResult`]
|
204
|
+
"""
|
205
|
+
return self._sub_jobs_result
|
206
|
+
|
207
|
+
@sub_jobs_result.setter
|
208
|
+
def sub_jobs_result(self, sub_jobs_result):
|
209
|
+
r"""Sets the sub_jobs_result of this JobProgressEntities.
|
210
|
+
|
211
|
+
子任务结果列表
|
212
|
+
|
213
|
+
:param sub_jobs_result: The sub_jobs_result of this JobProgressEntities.
|
214
|
+
:type sub_jobs_result: list[:class:`huaweicloudsdkims.v2.SubJobResult`]
|
215
|
+
"""
|
216
|
+
self._sub_jobs_result = sub_jobs_result
|
217
|
+
|
218
|
+
@property
|
219
|
+
def sub_jobs_list(self):
|
220
|
+
r"""Gets the sub_jobs_list of this JobProgressEntities.
|
221
|
+
|
222
|
+
子任务ID列表
|
223
|
+
|
224
|
+
:return: The sub_jobs_list of this JobProgressEntities.
|
225
|
+
:rtype: list[str]
|
226
|
+
"""
|
227
|
+
return self._sub_jobs_list
|
228
|
+
|
229
|
+
@sub_jobs_list.setter
|
230
|
+
def sub_jobs_list(self, sub_jobs_list):
|
231
|
+
r"""Sets the sub_jobs_list of this JobProgressEntities.
|
232
|
+
|
233
|
+
子任务ID列表
|
234
|
+
|
235
|
+
:param sub_jobs_list: The sub_jobs_list of this JobProgressEntities.
|
236
|
+
:type sub_jobs_list: list[str]
|
237
|
+
"""
|
238
|
+
self._sub_jobs_list = sub_jobs_list
|
239
|
+
|
240
|
+
def to_dict(self):
|
241
|
+
"""Returns the model properties as a dict"""
|
242
|
+
result = {}
|
243
|
+
|
244
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
245
|
+
value = getattr(self, attr)
|
246
|
+
if isinstance(value, list):
|
247
|
+
result[attr] = list(map(
|
248
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
249
|
+
value
|
250
|
+
))
|
251
|
+
elif hasattr(value, "to_dict"):
|
252
|
+
result[attr] = value.to_dict()
|
253
|
+
elif isinstance(value, dict):
|
254
|
+
result[attr] = dict(map(
|
255
|
+
lambda item: (item[0], item[1].to_dict())
|
256
|
+
if hasattr(item[1], "to_dict") else item,
|
257
|
+
value.items()
|
258
|
+
))
|
259
|
+
else:
|
260
|
+
if attr in self.sensitive_list:
|
261
|
+
result[attr] = "****"
|
262
|
+
else:
|
263
|
+
result[attr] = value
|
264
|
+
|
265
|
+
return result
|
266
|
+
|
267
|
+
def to_str(self):
|
268
|
+
"""Returns the string representation of the model"""
|
269
|
+
import simplejson as json
|
270
|
+
if six.PY2:
|
271
|
+
import sys
|
272
|
+
reload(sys)
|
273
|
+
sys.setdefaultencoding("utf-8")
|
274
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
275
|
+
|
276
|
+
def __repr__(self):
|
277
|
+
"""For `print`"""
|
278
|
+
return self.to_str()
|
279
|
+
|
280
|
+
def __eq__(self, other):
|
281
|
+
"""Returns true if both objects are equal"""
|
282
|
+
if not isinstance(other, JobProgressEntities):
|
283
|
+
return False
|
284
|
+
|
285
|
+
return self.__dict__ == other.__dict__
|
286
|
+
|
287
|
+
def __ne__(self, other):
|
288
|
+
"""Returns true if both objects are not equal"""
|
289
|
+
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 Links:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class Links:
|
|
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 Links:
|
|
33
27
|
}
|
34
28
|
|
35
29
|
def __init__(self, href=None, rel=None):
|
36
|
-
"""Links
|
30
|
+
r"""Links
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param href: 域名
|
35
|
+
:type href: str
|
36
|
+
:param rel: 域名描述
|
37
|
+
:type rel: str
|
38
|
+
"""
|
37
39
|
|
38
40
|
|
39
41
|
|
@@ -46,7 +48,7 @@ class Links:
|
|
46
48
|
|
47
49
|
@property
|
48
50
|
def href(self):
|
49
|
-
"""Gets the href of this Links.
|
51
|
+
r"""Gets the href of this Links.
|
50
52
|
|
51
53
|
域名
|
52
54
|
|
@@ -57,18 +59,18 @@ class Links:
|
|
57
59
|
|
58
60
|
@href.setter
|
59
61
|
def href(self, href):
|
60
|
-
"""Sets the href of this Links.
|
62
|
+
r"""Sets the href of this Links.
|
61
63
|
|
62
64
|
域名
|
63
65
|
|
64
66
|
:param href: The href of this Links.
|
65
|
-
:type: str
|
67
|
+
:type href: str
|
66
68
|
"""
|
67
69
|
self._href = href
|
68
70
|
|
69
71
|
@property
|
70
72
|
def rel(self):
|
71
|
-
"""Gets the rel of this Links.
|
73
|
+
r"""Gets the rel of this Links.
|
72
74
|
|
73
75
|
域名描述
|
74
76
|
|
@@ -79,12 +81,12 @@ class Links:
|
|
79
81
|
|
80
82
|
@rel.setter
|
81
83
|
def rel(self, rel):
|
82
|
-
"""Sets the rel of this Links.
|
84
|
+
r"""Sets the rel of this Links.
|
83
85
|
|
84
86
|
域名描述
|
85
87
|
|
86
88
|
:param rel: The rel of this Links.
|
87
|
-
:type: str
|
89
|
+
:type rel: str
|
88
90
|
"""
|
89
91
|
self._rel = rel
|
90
92
|
|
@@ -117,10 +119,15 @@ class Links:
|
|
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 ListImageByTagsRequest:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class ListImageByTagsRequest:
|
|
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 = {
|
@@ -31,7 +25,13 @@ class ListImageByTagsRequest:
|
|
31
25
|
}
|
32
26
|
|
33
27
|
def __init__(self, body=None):
|
34
|
-
"""ListImageByTagsRequest
|
28
|
+
r"""ListImageByTagsRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the ListImageByTagsRequest
|
33
|
+
:type body: :class:`huaweicloudsdkims.v2.ListImageByTagsRequestBody`
|
34
|
+
"""
|
35
35
|
|
36
36
|
|
37
37
|
|
@@ -43,21 +43,19 @@ class ListImageByTagsRequest:
|
|
43
43
|
|
44
44
|
@property
|
45
45
|
def body(self):
|
46
|
-
"""Gets the body of this ListImageByTagsRequest.
|
47
|
-
|
46
|
+
r"""Gets the body of this ListImageByTagsRequest.
|
48
47
|
|
49
48
|
:return: The body of this ListImageByTagsRequest.
|
50
|
-
:rtype: ListImageByTagsRequestBody
|
49
|
+
:rtype: :class:`huaweicloudsdkims.v2.ListImageByTagsRequestBody`
|
51
50
|
"""
|
52
51
|
return self._body
|
53
52
|
|
54
53
|
@body.setter
|
55
54
|
def body(self, body):
|
56
|
-
"""Sets the body of this ListImageByTagsRequest.
|
57
|
-
|
55
|
+
r"""Sets the body of this ListImageByTagsRequest.
|
58
56
|
|
59
57
|
:param body: The body of this ListImageByTagsRequest.
|
60
|
-
:type: ListImageByTagsRequestBody
|
58
|
+
:type body: :class:`huaweicloudsdkims.v2.ListImageByTagsRequestBody`
|
61
59
|
"""
|
62
60
|
self._body = body
|
63
61
|
|
@@ -90,10 +88,15 @@ class ListImageByTagsRequest:
|
|
90
88
|
|
91
89
|
def to_str(self):
|
92
90
|
"""Returns the string representation of the model"""
|
93
|
-
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
94
97
|
|
95
98
|
def __repr__(self):
|
96
|
-
"""For `print`
|
99
|
+
"""For `print`"""
|
97
100
|
return self.to_str()
|
98
101
|
|
99
102
|
def __eq__(self, other):
|