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,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 ImportImageQuickRequest:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class ImportImageQuickRequest:
|
|
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 ImportImageQuickRequest:
|
|
31
25
|
}
|
32
26
|
|
33
27
|
def __init__(self, body=None):
|
34
|
-
"""ImportImageQuickRequest
|
28
|
+
r"""ImportImageQuickRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the ImportImageQuickRequest
|
33
|
+
:type body: :class:`huaweicloudsdkims.v2.QuickImportImageByFileRequestBody`
|
34
|
+
"""
|
35
35
|
|
36
36
|
|
37
37
|
|
@@ -43,21 +43,19 @@ class ImportImageQuickRequest:
|
|
43
43
|
|
44
44
|
@property
|
45
45
|
def body(self):
|
46
|
-
"""Gets the body of this ImportImageQuickRequest.
|
47
|
-
|
46
|
+
r"""Gets the body of this ImportImageQuickRequest.
|
48
47
|
|
49
48
|
:return: The body of this ImportImageQuickRequest.
|
50
|
-
:rtype: QuickImportImageByFileRequestBody
|
49
|
+
:rtype: :class:`huaweicloudsdkims.v2.QuickImportImageByFileRequestBody`
|
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 ImportImageQuickRequest.
|
57
|
-
|
55
|
+
r"""Sets the body of this ImportImageQuickRequest.
|
58
56
|
|
59
57
|
:param body: The body of this ImportImageQuickRequest.
|
60
|
-
:type: QuickImportImageByFileRequestBody
|
58
|
+
:type body: :class:`huaweicloudsdkims.v2.QuickImportImageByFileRequestBody`
|
61
59
|
"""
|
62
60
|
self._body = body
|
63
61
|
|
@@ -90,10 +88,15 @@ class ImportImageQuickRequest:
|
|
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):
|
@@ -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 ImportImageQuickResponse(SdkResponse):
|
13
10
|
|
14
|
-
|
15
11
|
"""
|
16
12
|
Attributes:
|
17
13
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +15,6 @@ class ImportImageQuickResponse(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 = {
|
@@ -31,9 +26,15 @@ class ImportImageQuickResponse(SdkResponse):
|
|
31
26
|
}
|
32
27
|
|
33
28
|
def __init__(self, job_id=None):
|
34
|
-
"""ImportImageQuickResponse
|
29
|
+
r"""ImportImageQuickResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param job_id: 异步任务ID。
|
34
|
+
:type job_id: str
|
35
|
+
"""
|
35
36
|
|
36
|
-
super().__init__()
|
37
|
+
super(ImportImageQuickResponse, self).__init__()
|
37
38
|
|
38
39
|
self._job_id = None
|
39
40
|
self.discriminator = None
|
@@ -43,7 +44,7 @@ class ImportImageQuickResponse(SdkResponse):
|
|
43
44
|
|
44
45
|
@property
|
45
46
|
def job_id(self):
|
46
|
-
"""Gets the job_id of this ImportImageQuickResponse.
|
47
|
+
r"""Gets the job_id of this ImportImageQuickResponse.
|
47
48
|
|
48
49
|
异步任务ID。
|
49
50
|
|
@@ -54,12 +55,12 @@ class ImportImageQuickResponse(SdkResponse):
|
|
54
55
|
|
55
56
|
@job_id.setter
|
56
57
|
def job_id(self, job_id):
|
57
|
-
"""Sets the job_id of this ImportImageQuickResponse.
|
58
|
+
r"""Sets the job_id of this ImportImageQuickResponse.
|
58
59
|
|
59
60
|
异步任务ID。
|
60
61
|
|
61
62
|
:param job_id: The job_id of this ImportImageQuickResponse.
|
62
|
-
:type: str
|
63
|
+
:type job_id: str
|
63
64
|
"""
|
64
65
|
self._job_id = job_id
|
65
66
|
|
@@ -92,10 +93,15 @@ class ImportImageQuickResponse(SdkResponse):
|
|
92
93
|
|
93
94
|
def to_str(self):
|
94
95
|
"""Returns the string representation of the model"""
|
95
|
-
|
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)
|
96
102
|
|
97
103
|
def __repr__(self):
|
98
|
-
"""For `print`
|
104
|
+
"""For `print`"""
|
99
105
|
return self.to_str()
|
100
106
|
|
101
107
|
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 JobEntities:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,31 +14,113 @@ class JobEntities:
|
|
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 = {
|
26
|
-
'image_id': 'str'
|
20
|
+
'image_id': 'str',
|
21
|
+
'current_task': 'str',
|
22
|
+
'image_name': 'str',
|
23
|
+
'addition_error_code': 'str',
|
24
|
+
'addition_error_msg': 'str',
|
25
|
+
'error_code': 'str',
|
26
|
+
'error': 'str',
|
27
|
+
'alarm_code': 'str',
|
28
|
+
'process_percent': 'float',
|
29
|
+
'results': 'list[JobEntitiesResult]',
|
30
|
+
'sub_jobs_result': 'list[SubJobResult]',
|
31
|
+
'sub_jobs_list': 'list[str]'
|
27
32
|
}
|
28
33
|
|
29
34
|
attribute_map = {
|
30
|
-
'image_id': 'image_id'
|
35
|
+
'image_id': 'image_id',
|
36
|
+
'current_task': 'current_task',
|
37
|
+
'image_name': 'image_name',
|
38
|
+
'addition_error_code': 'addition_error_code',
|
39
|
+
'addition_error_msg': 'addition_error_msg',
|
40
|
+
'error_code': 'error_code',
|
41
|
+
'error': 'error',
|
42
|
+
'alarm_code': 'alarm_code',
|
43
|
+
'process_percent': 'process_percent',
|
44
|
+
'results': 'results',
|
45
|
+
'sub_jobs_result': 'sub_jobs_result',
|
46
|
+
'sub_jobs_list': 'sub_jobs_list'
|
31
47
|
}
|
32
48
|
|
33
|
-
def __init__(self, image_id=None):
|
34
|
-
"""JobEntities
|
49
|
+
def __init__(self, image_id=None, current_task=None, image_name=None, addition_error_code=None, addition_error_msg=None, error_code=None, error=None, alarm_code=None, process_percent=None, results=None, sub_jobs_result=None, sub_jobs_list=None):
|
50
|
+
r"""JobEntities
|
51
|
+
|
52
|
+
The model defined in huaweicloud sdk
|
53
|
+
|
54
|
+
:param image_id: 镜像ID
|
55
|
+
:type image_id: str
|
56
|
+
:param current_task: 当前任务名称
|
57
|
+
:type current_task: str
|
58
|
+
:param image_name: 镜像名称
|
59
|
+
:type image_name: str
|
60
|
+
:param addition_error_code: 添加错误码
|
61
|
+
:type addition_error_code: str
|
62
|
+
:param addition_error_msg: 添加错误消息
|
63
|
+
:type addition_error_msg: str
|
64
|
+
:param error_code: 错误码
|
65
|
+
:type error_code: str
|
66
|
+
:param error: 错误消息
|
67
|
+
:type error: str
|
68
|
+
:param alarm_code: 告警代码
|
69
|
+
:type alarm_code: str
|
70
|
+
:param process_percent: 任务执行进度
|
71
|
+
:type process_percent: float
|
72
|
+
:param results: 批量任务执行结果
|
73
|
+
:type results: list[:class:`huaweicloudsdkims.v2.JobEntitiesResult`]
|
74
|
+
:param sub_jobs_result: 子任务结果列表
|
75
|
+
:type sub_jobs_result: list[:class:`huaweicloudsdkims.v2.SubJobResult`]
|
76
|
+
:param sub_jobs_list: 子任务ID列表
|
77
|
+
:type sub_jobs_list: list[str]
|
78
|
+
"""
|
35
79
|
|
36
80
|
|
37
81
|
|
38
82
|
self._image_id = None
|
83
|
+
self._current_task = None
|
84
|
+
self._image_name = None
|
85
|
+
self._addition_error_code = None
|
86
|
+
self._addition_error_msg = None
|
87
|
+
self._error_code = None
|
88
|
+
self._error = None
|
89
|
+
self._alarm_code = None
|
90
|
+
self._process_percent = None
|
91
|
+
self._results = None
|
92
|
+
self._sub_jobs_result = None
|
93
|
+
self._sub_jobs_list = None
|
39
94
|
self.discriminator = None
|
40
95
|
|
41
96
|
if image_id is not None:
|
42
97
|
self.image_id = image_id
|
98
|
+
if current_task is not None:
|
99
|
+
self.current_task = current_task
|
100
|
+
if image_name is not None:
|
101
|
+
self.image_name = image_name
|
102
|
+
if addition_error_code is not None:
|
103
|
+
self.addition_error_code = addition_error_code
|
104
|
+
if addition_error_msg is not None:
|
105
|
+
self.addition_error_msg = addition_error_msg
|
106
|
+
if error_code is not None:
|
107
|
+
self.error_code = error_code
|
108
|
+
if error is not None:
|
109
|
+
self.error = error
|
110
|
+
if alarm_code is not None:
|
111
|
+
self.alarm_code = alarm_code
|
112
|
+
if process_percent is not None:
|
113
|
+
self.process_percent = process_percent
|
114
|
+
if results is not None:
|
115
|
+
self.results = results
|
116
|
+
if sub_jobs_result is not None:
|
117
|
+
self.sub_jobs_result = sub_jobs_result
|
118
|
+
if sub_jobs_list is not None:
|
119
|
+
self.sub_jobs_list = sub_jobs_list
|
43
120
|
|
44
121
|
@property
|
45
122
|
def image_id(self):
|
46
|
-
"""Gets the image_id of this JobEntities.
|
123
|
+
r"""Gets the image_id of this JobEntities.
|
47
124
|
|
48
125
|
镜像ID
|
49
126
|
|
@@ -54,15 +131,257 @@ class JobEntities:
|
|
54
131
|
|
55
132
|
@image_id.setter
|
56
133
|
def image_id(self, image_id):
|
57
|
-
"""Sets the image_id of this JobEntities.
|
134
|
+
r"""Sets the image_id of this JobEntities.
|
58
135
|
|
59
136
|
镜像ID
|
60
137
|
|
61
138
|
:param image_id: The image_id of this JobEntities.
|
62
|
-
:type: str
|
139
|
+
:type image_id: str
|
63
140
|
"""
|
64
141
|
self._image_id = image_id
|
65
142
|
|
143
|
+
@property
|
144
|
+
def current_task(self):
|
145
|
+
r"""Gets the current_task of this JobEntities.
|
146
|
+
|
147
|
+
当前任务名称
|
148
|
+
|
149
|
+
:return: The current_task of this JobEntities.
|
150
|
+
:rtype: str
|
151
|
+
"""
|
152
|
+
return self._current_task
|
153
|
+
|
154
|
+
@current_task.setter
|
155
|
+
def current_task(self, current_task):
|
156
|
+
r"""Sets the current_task of this JobEntities.
|
157
|
+
|
158
|
+
当前任务名称
|
159
|
+
|
160
|
+
:param current_task: The current_task of this JobEntities.
|
161
|
+
:type current_task: str
|
162
|
+
"""
|
163
|
+
self._current_task = current_task
|
164
|
+
|
165
|
+
@property
|
166
|
+
def image_name(self):
|
167
|
+
r"""Gets the image_name of this JobEntities.
|
168
|
+
|
169
|
+
镜像名称
|
170
|
+
|
171
|
+
:return: The image_name of this JobEntities.
|
172
|
+
:rtype: str
|
173
|
+
"""
|
174
|
+
return self._image_name
|
175
|
+
|
176
|
+
@image_name.setter
|
177
|
+
def image_name(self, image_name):
|
178
|
+
r"""Sets the image_name of this JobEntities.
|
179
|
+
|
180
|
+
镜像名称
|
181
|
+
|
182
|
+
:param image_name: The image_name of this JobEntities.
|
183
|
+
:type image_name: str
|
184
|
+
"""
|
185
|
+
self._image_name = image_name
|
186
|
+
|
187
|
+
@property
|
188
|
+
def addition_error_code(self):
|
189
|
+
r"""Gets the addition_error_code of this JobEntities.
|
190
|
+
|
191
|
+
添加错误码
|
192
|
+
|
193
|
+
:return: The addition_error_code of this JobEntities.
|
194
|
+
:rtype: str
|
195
|
+
"""
|
196
|
+
return self._addition_error_code
|
197
|
+
|
198
|
+
@addition_error_code.setter
|
199
|
+
def addition_error_code(self, addition_error_code):
|
200
|
+
r"""Sets the addition_error_code of this JobEntities.
|
201
|
+
|
202
|
+
添加错误码
|
203
|
+
|
204
|
+
:param addition_error_code: The addition_error_code of this JobEntities.
|
205
|
+
:type addition_error_code: str
|
206
|
+
"""
|
207
|
+
self._addition_error_code = addition_error_code
|
208
|
+
|
209
|
+
@property
|
210
|
+
def addition_error_msg(self):
|
211
|
+
r"""Gets the addition_error_msg of this JobEntities.
|
212
|
+
|
213
|
+
添加错误消息
|
214
|
+
|
215
|
+
:return: The addition_error_msg of this JobEntities.
|
216
|
+
:rtype: str
|
217
|
+
"""
|
218
|
+
return self._addition_error_msg
|
219
|
+
|
220
|
+
@addition_error_msg.setter
|
221
|
+
def addition_error_msg(self, addition_error_msg):
|
222
|
+
r"""Sets the addition_error_msg of this JobEntities.
|
223
|
+
|
224
|
+
添加错误消息
|
225
|
+
|
226
|
+
:param addition_error_msg: The addition_error_msg of this JobEntities.
|
227
|
+
:type addition_error_msg: str
|
228
|
+
"""
|
229
|
+
self._addition_error_msg = addition_error_msg
|
230
|
+
|
231
|
+
@property
|
232
|
+
def error_code(self):
|
233
|
+
r"""Gets the error_code of this JobEntities.
|
234
|
+
|
235
|
+
错误码
|
236
|
+
|
237
|
+
:return: The error_code of this JobEntities.
|
238
|
+
:rtype: str
|
239
|
+
"""
|
240
|
+
return self._error_code
|
241
|
+
|
242
|
+
@error_code.setter
|
243
|
+
def error_code(self, error_code):
|
244
|
+
r"""Sets the error_code of this JobEntities.
|
245
|
+
|
246
|
+
错误码
|
247
|
+
|
248
|
+
:param error_code: The error_code of this JobEntities.
|
249
|
+
:type error_code: str
|
250
|
+
"""
|
251
|
+
self._error_code = error_code
|
252
|
+
|
253
|
+
@property
|
254
|
+
def error(self):
|
255
|
+
r"""Gets the error of this JobEntities.
|
256
|
+
|
257
|
+
错误消息
|
258
|
+
|
259
|
+
:return: The error of this JobEntities.
|
260
|
+
:rtype: str
|
261
|
+
"""
|
262
|
+
return self._error
|
263
|
+
|
264
|
+
@error.setter
|
265
|
+
def error(self, error):
|
266
|
+
r"""Sets the error of this JobEntities.
|
267
|
+
|
268
|
+
错误消息
|
269
|
+
|
270
|
+
:param error: The error of this JobEntities.
|
271
|
+
:type error: str
|
272
|
+
"""
|
273
|
+
self._error = error
|
274
|
+
|
275
|
+
@property
|
276
|
+
def alarm_code(self):
|
277
|
+
r"""Gets the alarm_code of this JobEntities.
|
278
|
+
|
279
|
+
告警代码
|
280
|
+
|
281
|
+
:return: The alarm_code of this JobEntities.
|
282
|
+
:rtype: str
|
283
|
+
"""
|
284
|
+
return self._alarm_code
|
285
|
+
|
286
|
+
@alarm_code.setter
|
287
|
+
def alarm_code(self, alarm_code):
|
288
|
+
r"""Sets the alarm_code of this JobEntities.
|
289
|
+
|
290
|
+
告警代码
|
291
|
+
|
292
|
+
:param alarm_code: The alarm_code of this JobEntities.
|
293
|
+
:type alarm_code: str
|
294
|
+
"""
|
295
|
+
self._alarm_code = alarm_code
|
296
|
+
|
297
|
+
@property
|
298
|
+
def process_percent(self):
|
299
|
+
r"""Gets the process_percent of this JobEntities.
|
300
|
+
|
301
|
+
任务执行进度
|
302
|
+
|
303
|
+
:return: The process_percent of this JobEntities.
|
304
|
+
:rtype: float
|
305
|
+
"""
|
306
|
+
return self._process_percent
|
307
|
+
|
308
|
+
@process_percent.setter
|
309
|
+
def process_percent(self, process_percent):
|
310
|
+
r"""Sets the process_percent of this JobEntities.
|
311
|
+
|
312
|
+
任务执行进度
|
313
|
+
|
314
|
+
:param process_percent: The process_percent of this JobEntities.
|
315
|
+
:type process_percent: float
|
316
|
+
"""
|
317
|
+
self._process_percent = process_percent
|
318
|
+
|
319
|
+
@property
|
320
|
+
def results(self):
|
321
|
+
r"""Gets the results of this JobEntities.
|
322
|
+
|
323
|
+
批量任务执行结果
|
324
|
+
|
325
|
+
:return: The results of this JobEntities.
|
326
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.JobEntitiesResult`]
|
327
|
+
"""
|
328
|
+
return self._results
|
329
|
+
|
330
|
+
@results.setter
|
331
|
+
def results(self, results):
|
332
|
+
r"""Sets the results of this JobEntities.
|
333
|
+
|
334
|
+
批量任务执行结果
|
335
|
+
|
336
|
+
:param results: The results of this JobEntities.
|
337
|
+
:type results: list[:class:`huaweicloudsdkims.v2.JobEntitiesResult`]
|
338
|
+
"""
|
339
|
+
self._results = results
|
340
|
+
|
341
|
+
@property
|
342
|
+
def sub_jobs_result(self):
|
343
|
+
r"""Gets the sub_jobs_result of this JobEntities.
|
344
|
+
|
345
|
+
子任务结果列表
|
346
|
+
|
347
|
+
:return: The sub_jobs_result of this JobEntities.
|
348
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.SubJobResult`]
|
349
|
+
"""
|
350
|
+
return self._sub_jobs_result
|
351
|
+
|
352
|
+
@sub_jobs_result.setter
|
353
|
+
def sub_jobs_result(self, sub_jobs_result):
|
354
|
+
r"""Sets the sub_jobs_result of this JobEntities.
|
355
|
+
|
356
|
+
子任务结果列表
|
357
|
+
|
358
|
+
:param sub_jobs_result: The sub_jobs_result of this JobEntities.
|
359
|
+
:type sub_jobs_result: list[:class:`huaweicloudsdkims.v2.SubJobResult`]
|
360
|
+
"""
|
361
|
+
self._sub_jobs_result = sub_jobs_result
|
362
|
+
|
363
|
+
@property
|
364
|
+
def sub_jobs_list(self):
|
365
|
+
r"""Gets the sub_jobs_list of this JobEntities.
|
366
|
+
|
367
|
+
子任务ID列表
|
368
|
+
|
369
|
+
:return: The sub_jobs_list of this JobEntities.
|
370
|
+
:rtype: list[str]
|
371
|
+
"""
|
372
|
+
return self._sub_jobs_list
|
373
|
+
|
374
|
+
@sub_jobs_list.setter
|
375
|
+
def sub_jobs_list(self, sub_jobs_list):
|
376
|
+
r"""Sets the sub_jobs_list of this JobEntities.
|
377
|
+
|
378
|
+
子任务ID列表
|
379
|
+
|
380
|
+
:param sub_jobs_list: The sub_jobs_list of this JobEntities.
|
381
|
+
:type sub_jobs_list: list[str]
|
382
|
+
"""
|
383
|
+
self._sub_jobs_list = sub_jobs_list
|
384
|
+
|
66
385
|
def to_dict(self):
|
67
386
|
"""Returns the model properties as a dict"""
|
68
387
|
result = {}
|
@@ -92,10 +411,15 @@ class JobEntities:
|
|
92
411
|
|
93
412
|
def to_str(self):
|
94
413
|
"""Returns the string representation of the model"""
|
95
|
-
|
414
|
+
import simplejson as json
|
415
|
+
if six.PY2:
|
416
|
+
import sys
|
417
|
+
reload(sys)
|
418
|
+
sys.setdefaultencoding("utf-8")
|
419
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
96
420
|
|
97
421
|
def __repr__(self):
|
98
|
-
"""For `print`
|
422
|
+
"""For `print`"""
|
99
423
|
return self.to_str()
|
100
424
|
|
101
425
|
def __eq__(self, other):
|