huaweicloudsdkims 3.0.43rc0__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.43rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/METADATA +9 -9
- huaweicloudsdkims-3.1.160.dist-info/RECORD +158 -0
- {huaweicloudsdkims-3.0.43rc0.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.43rc0.dist-info/RECORD +0 -129
- {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/LICENSE +0 -0
- {huaweicloudsdkims-3.0.43rc0.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 CreateOrUpdateTagsRequest:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class CreateOrUpdateTagsRequest:
|
|
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 CreateOrUpdateTagsRequest:
|
|
31
25
|
}
|
32
26
|
|
33
27
|
def __init__(self, body=None):
|
34
|
-
"""CreateOrUpdateTagsRequest
|
28
|
+
r"""CreateOrUpdateTagsRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateOrUpdateTagsRequest
|
33
|
+
:type body: :class:`huaweicloudsdkims.v2.AddOrUpdateTagsRequestBody`
|
34
|
+
"""
|
35
35
|
|
36
36
|
|
37
37
|
|
@@ -43,21 +43,19 @@ class CreateOrUpdateTagsRequest:
|
|
43
43
|
|
44
44
|
@property
|
45
45
|
def body(self):
|
46
|
-
"""Gets the body of this CreateOrUpdateTagsRequest.
|
47
|
-
|
46
|
+
r"""Gets the body of this CreateOrUpdateTagsRequest.
|
48
47
|
|
49
48
|
:return: The body of this CreateOrUpdateTagsRequest.
|
50
|
-
:rtype: AddOrUpdateTagsRequestBody
|
49
|
+
:rtype: :class:`huaweicloudsdkims.v2.AddOrUpdateTagsRequestBody`
|
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 CreateOrUpdateTagsRequest.
|
57
|
-
|
55
|
+
r"""Sets the body of this CreateOrUpdateTagsRequest.
|
58
56
|
|
59
57
|
:param body: The body of this CreateOrUpdateTagsRequest.
|
60
|
-
:type: AddOrUpdateTagsRequestBody
|
58
|
+
:type body: :class:`huaweicloudsdkims.v2.AddOrUpdateTagsRequestBody`
|
61
59
|
"""
|
62
60
|
self._body = body
|
63
61
|
|
@@ -90,10 +88,15 @@ class CreateOrUpdateTagsRequest:
|
|
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 CreateOrUpdateTagsResponse(SdkResponse):
|
13
10
|
|
14
|
-
|
15
11
|
"""
|
16
12
|
Attributes:
|
17
13
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +15,6 @@ class CreateOrUpdateTagsResponse(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 = {
|
@@ -29,9 +24,13 @@ class CreateOrUpdateTagsResponse(SdkResponse):
|
|
29
24
|
}
|
30
25
|
|
31
26
|
def __init__(self):
|
32
|
-
"""CreateOrUpdateTagsResponse
|
27
|
+
r"""CreateOrUpdateTagsResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
33
32
|
|
34
|
-
super().__init__()
|
33
|
+
super(CreateOrUpdateTagsResponse, self).__init__()
|
35
34
|
self.discriminator = None
|
36
35
|
|
37
36
|
def to_dict(self):
|
@@ -63,10 +62,15 @@ class CreateOrUpdateTagsResponse(SdkResponse):
|
|
63
62
|
|
64
63
|
def to_str(self):
|
65
64
|
"""Returns the string representation of the model"""
|
66
|
-
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
67
71
|
|
68
72
|
def __repr__(self):
|
69
|
-
"""For `print`
|
73
|
+
"""For `print`"""
|
70
74
|
return self.to_str()
|
71
75
|
|
72
76
|
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 CreateWholeImageRequest:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class CreateWholeImageRequest:
|
|
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 CreateWholeImageRequest:
|
|
31
25
|
}
|
32
26
|
|
33
27
|
def __init__(self, body=None):
|
34
|
-
"""CreateWholeImageRequest
|
28
|
+
r"""CreateWholeImageRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateWholeImageRequest
|
33
|
+
:type body: :class:`huaweicloudsdkims.v2.CreateWholeImageRequestBody`
|
34
|
+
"""
|
35
35
|
|
36
36
|
|
37
37
|
|
@@ -43,21 +43,19 @@ class CreateWholeImageRequest:
|
|
43
43
|
|
44
44
|
@property
|
45
45
|
def body(self):
|
46
|
-
"""Gets the body of this CreateWholeImageRequest.
|
47
|
-
|
46
|
+
r"""Gets the body of this CreateWholeImageRequest.
|
48
47
|
|
49
48
|
:return: The body of this CreateWholeImageRequest.
|
50
|
-
:rtype: CreateWholeImageRequestBody
|
49
|
+
:rtype: :class:`huaweicloudsdkims.v2.CreateWholeImageRequestBody`
|
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 CreateWholeImageRequest.
|
57
|
-
|
55
|
+
r"""Sets the body of this CreateWholeImageRequest.
|
58
56
|
|
59
57
|
:param body: The body of this CreateWholeImageRequest.
|
60
|
-
:type: CreateWholeImageRequestBody
|
58
|
+
:type body: :class:`huaweicloudsdkims.v2.CreateWholeImageRequestBody`
|
61
59
|
"""
|
62
60
|
self._body = body
|
63
61
|
|
@@ -90,10 +88,15 @@ class CreateWholeImageRequest:
|
|
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,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 CreateWholeImageRequestBody:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class CreateWholeImageRequestBody:
|
|
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 = {
|
@@ -51,7 +45,33 @@ class CreateWholeImageRequestBody:
|
|
51
45
|
}
|
52
46
|
|
53
47
|
def __init__(self, description=None, enterprise_project_id=None, image_tags=None, instance_id=None, name=None, tags=None, backup_id=None, whole_image_type=None, max_ram=None, min_ram=None, vault_id=None):
|
54
|
-
"""CreateWholeImageRequestBody
|
48
|
+
r"""CreateWholeImageRequestBody
|
49
|
+
|
50
|
+
The model defined in huaweicloud sdk
|
51
|
+
|
52
|
+
:param description: 镜像描述信息。 支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。
|
53
|
+
:type description: str
|
54
|
+
:param enterprise_project_id: 表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目。关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。
|
55
|
+
:type enterprise_project_id: str
|
56
|
+
:param image_tags: 新规范的镜像标签列表。默认为空。tags和image_tags只能使用一个。
|
57
|
+
:type image_tags: list[:class:`huaweicloudsdkims.v2.TagKeyValue`]
|
58
|
+
:param instance_id: 弹性云服务器ID。使用弹性云服务器制作整机镜像时使用此参数且必填。 如果使用备份创建整机镜像,该参数应换成backup_id。 非必填的原因是需要兼容“使用备份创建整机镜像”和“使用弹性云服务器制作整机镜像”两种场景的body体。
|
59
|
+
:type instance_id: str
|
60
|
+
:param name: 镜像名称。 名称的首尾字母不能为空格。 名称的长度至为1~128位。 名称包含以下4种字符: 大写字母 小写字母 数字 特殊字符包含-、.、_、空格和中文。
|
61
|
+
:type name: str
|
62
|
+
:param tags: 镜像标签列表。tags和image_tags只能使用一个。
|
63
|
+
:type tags: list[str]
|
64
|
+
:param backup_id: 使用云服务器备份创建整机镜像使用此参数且必填。 如果使用ECS创建整机镜像,则该参数应传为instance_id。 非必填的原因是需要兼容“使用备份创建整机镜像”和“使用弹性云服务器制作整机镜像”两种场景的body体。
|
65
|
+
:type backup_id: str
|
66
|
+
:param whole_image_type: 使用备份创建整机镜像时,该字段区分是CBR服务的备份还是CSBS服务的备份,取值为:CBR/CSBS。 使用ECS创建整机镜像时,该字段不填
|
67
|
+
:type whole_image_type: str
|
68
|
+
:param max_ram: 表示镜像支持的最大内存,单位为MB,默认不设置。
|
69
|
+
:type max_ram: int
|
70
|
+
:param min_ram: 表示镜像支持的最小内存,单位为MB,默认为0。
|
71
|
+
:type min_ram: int
|
72
|
+
:param vault_id: 表示云服务器待加入的或已加入的存储库的ID。 使用云服务器创建整机镜像的过程为:先创建一个备份,再将备份创建为整机镜像。如果这个备份为CBR,vault_id为必填项;如果备份为CSBS,vault_id参数可不填。
|
73
|
+
:type vault_id: str
|
74
|
+
"""
|
55
75
|
|
56
76
|
|
57
77
|
|
@@ -74,8 +94,7 @@ class CreateWholeImageRequestBody:
|
|
74
94
|
self.enterprise_project_id = enterprise_project_id
|
75
95
|
if image_tags is not None:
|
76
96
|
self.image_tags = image_tags
|
77
|
-
|
78
|
-
self.instance_id = instance_id
|
97
|
+
self.instance_id = instance_id
|
79
98
|
self.name = name
|
80
99
|
if tags is not None:
|
81
100
|
self.tags = tags
|
@@ -92,7 +111,7 @@ class CreateWholeImageRequestBody:
|
|
92
111
|
|
93
112
|
@property
|
94
113
|
def description(self):
|
95
|
-
"""Gets the description of this CreateWholeImageRequestBody.
|
114
|
+
r"""Gets the description of this CreateWholeImageRequestBody.
|
96
115
|
|
97
116
|
镜像描述信息。 支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。
|
98
117
|
|
@@ -103,18 +122,18 @@ class CreateWholeImageRequestBody:
|
|
103
122
|
|
104
123
|
@description.setter
|
105
124
|
def description(self, description):
|
106
|
-
"""Sets the description of this CreateWholeImageRequestBody.
|
125
|
+
r"""Sets the description of this CreateWholeImageRequestBody.
|
107
126
|
|
108
127
|
镜像描述信息。 支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。
|
109
128
|
|
110
129
|
:param description: The description of this CreateWholeImageRequestBody.
|
111
|
-
:type: str
|
130
|
+
:type description: str
|
112
131
|
"""
|
113
132
|
self._description = description
|
114
133
|
|
115
134
|
@property
|
116
135
|
def enterprise_project_id(self):
|
117
|
-
"""Gets the enterprise_project_id of this CreateWholeImageRequestBody.
|
136
|
+
r"""Gets the enterprise_project_id of this CreateWholeImageRequestBody.
|
118
137
|
|
119
138
|
表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目。关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。
|
120
139
|
|
@@ -125,42 +144,42 @@ class CreateWholeImageRequestBody:
|
|
125
144
|
|
126
145
|
@enterprise_project_id.setter
|
127
146
|
def enterprise_project_id(self, enterprise_project_id):
|
128
|
-
"""Sets the enterprise_project_id of this CreateWholeImageRequestBody.
|
147
|
+
r"""Sets the enterprise_project_id of this CreateWholeImageRequestBody.
|
129
148
|
|
130
149
|
表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目。关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。
|
131
150
|
|
132
151
|
:param enterprise_project_id: The enterprise_project_id of this CreateWholeImageRequestBody.
|
133
|
-
:type: str
|
152
|
+
:type enterprise_project_id: str
|
134
153
|
"""
|
135
154
|
self._enterprise_project_id = enterprise_project_id
|
136
155
|
|
137
156
|
@property
|
138
157
|
def image_tags(self):
|
139
|
-
"""Gets the image_tags of this CreateWholeImageRequestBody.
|
158
|
+
r"""Gets the image_tags of this CreateWholeImageRequestBody.
|
140
159
|
|
141
160
|
新规范的镜像标签列表。默认为空。tags和image_tags只能使用一个。
|
142
161
|
|
143
162
|
:return: The image_tags of this CreateWholeImageRequestBody.
|
144
|
-
:rtype: list[TagKeyValue]
|
163
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.TagKeyValue`]
|
145
164
|
"""
|
146
165
|
return self._image_tags
|
147
166
|
|
148
167
|
@image_tags.setter
|
149
168
|
def image_tags(self, image_tags):
|
150
|
-
"""Sets the image_tags of this CreateWholeImageRequestBody.
|
169
|
+
r"""Sets the image_tags of this CreateWholeImageRequestBody.
|
151
170
|
|
152
171
|
新规范的镜像标签列表。默认为空。tags和image_tags只能使用一个。
|
153
172
|
|
154
173
|
:param image_tags: The image_tags of this CreateWholeImageRequestBody.
|
155
|
-
:type: list[TagKeyValue]
|
174
|
+
:type image_tags: list[:class:`huaweicloudsdkims.v2.TagKeyValue`]
|
156
175
|
"""
|
157
176
|
self._image_tags = image_tags
|
158
177
|
|
159
178
|
@property
|
160
179
|
def instance_id(self):
|
161
|
-
"""Gets the instance_id of this CreateWholeImageRequestBody.
|
180
|
+
r"""Gets the instance_id of this CreateWholeImageRequestBody.
|
162
181
|
|
163
|
-
弹性云服务器ID
|
182
|
+
弹性云服务器ID。使用弹性云服务器制作整机镜像时使用此参数且必填。 如果使用备份创建整机镜像,该参数应换成backup_id。 非必填的原因是需要兼容“使用备份创建整机镜像”和“使用弹性云服务器制作整机镜像”两种场景的body体。
|
164
183
|
|
165
184
|
:return: The instance_id of this CreateWholeImageRequestBody.
|
166
185
|
:rtype: str
|
@@ -169,18 +188,18 @@ class CreateWholeImageRequestBody:
|
|
169
188
|
|
170
189
|
@instance_id.setter
|
171
190
|
def instance_id(self, instance_id):
|
172
|
-
"""Sets the instance_id of this CreateWholeImageRequestBody.
|
191
|
+
r"""Sets the instance_id of this CreateWholeImageRequestBody.
|
173
192
|
|
174
|
-
弹性云服务器ID
|
193
|
+
弹性云服务器ID。使用弹性云服务器制作整机镜像时使用此参数且必填。 如果使用备份创建整机镜像,该参数应换成backup_id。 非必填的原因是需要兼容“使用备份创建整机镜像”和“使用弹性云服务器制作整机镜像”两种场景的body体。
|
175
194
|
|
176
195
|
:param instance_id: The instance_id of this CreateWholeImageRequestBody.
|
177
|
-
:type: str
|
196
|
+
:type instance_id: str
|
178
197
|
"""
|
179
198
|
self._instance_id = instance_id
|
180
199
|
|
181
200
|
@property
|
182
201
|
def name(self):
|
183
|
-
"""Gets the name of this CreateWholeImageRequestBody.
|
202
|
+
r"""Gets the name of this CreateWholeImageRequestBody.
|
184
203
|
|
185
204
|
镜像名称。 名称的首尾字母不能为空格。 名称的长度至为1~128位。 名称包含以下4种字符: 大写字母 小写字母 数字 特殊字符包含-、.、_、空格和中文。
|
186
205
|
|
@@ -191,18 +210,18 @@ class CreateWholeImageRequestBody:
|
|
191
210
|
|
192
211
|
@name.setter
|
193
212
|
def name(self, name):
|
194
|
-
"""Sets the name of this CreateWholeImageRequestBody.
|
213
|
+
r"""Sets the name of this CreateWholeImageRequestBody.
|
195
214
|
|
196
215
|
镜像名称。 名称的首尾字母不能为空格。 名称的长度至为1~128位。 名称包含以下4种字符: 大写字母 小写字母 数字 特殊字符包含-、.、_、空格和中文。
|
197
216
|
|
198
217
|
:param name: The name of this CreateWholeImageRequestBody.
|
199
|
-
:type: str
|
218
|
+
:type name: str
|
200
219
|
"""
|
201
220
|
self._name = name
|
202
221
|
|
203
222
|
@property
|
204
223
|
def tags(self):
|
205
|
-
"""Gets the tags of this CreateWholeImageRequestBody.
|
224
|
+
r"""Gets the tags of this CreateWholeImageRequestBody.
|
206
225
|
|
207
226
|
镜像标签列表。tags和image_tags只能使用一个。
|
208
227
|
|
@@ -213,20 +232,20 @@ class CreateWholeImageRequestBody:
|
|
213
232
|
|
214
233
|
@tags.setter
|
215
234
|
def tags(self, tags):
|
216
|
-
"""Sets the tags of this CreateWholeImageRequestBody.
|
235
|
+
r"""Sets the tags of this CreateWholeImageRequestBody.
|
217
236
|
|
218
237
|
镜像标签列表。tags和image_tags只能使用一个。
|
219
238
|
|
220
239
|
:param tags: The tags of this CreateWholeImageRequestBody.
|
221
|
-
:type: list[str]
|
240
|
+
:type tags: list[str]
|
222
241
|
"""
|
223
242
|
self._tags = tags
|
224
243
|
|
225
244
|
@property
|
226
245
|
def backup_id(self):
|
227
|
-
"""Gets the backup_id of this CreateWholeImageRequestBody.
|
246
|
+
r"""Gets the backup_id of this CreateWholeImageRequestBody.
|
228
247
|
|
229
|
-
|
248
|
+
使用云服务器备份创建整机镜像使用此参数且必填。 如果使用ECS创建整机镜像,则该参数应传为instance_id。 非必填的原因是需要兼容“使用备份创建整机镜像”和“使用弹性云服务器制作整机镜像”两种场景的body体。
|
230
249
|
|
231
250
|
:return: The backup_id of this CreateWholeImageRequestBody.
|
232
251
|
:rtype: str
|
@@ -235,18 +254,18 @@ class CreateWholeImageRequestBody:
|
|
235
254
|
|
236
255
|
@backup_id.setter
|
237
256
|
def backup_id(self, backup_id):
|
238
|
-
"""Sets the backup_id of this CreateWholeImageRequestBody.
|
257
|
+
r"""Sets the backup_id of this CreateWholeImageRequestBody.
|
239
258
|
|
240
|
-
|
259
|
+
使用云服务器备份创建整机镜像使用此参数且必填。 如果使用ECS创建整机镜像,则该参数应传为instance_id。 非必填的原因是需要兼容“使用备份创建整机镜像”和“使用弹性云服务器制作整机镜像”两种场景的body体。
|
241
260
|
|
242
261
|
:param backup_id: The backup_id of this CreateWholeImageRequestBody.
|
243
|
-
:type: str
|
262
|
+
:type backup_id: str
|
244
263
|
"""
|
245
264
|
self._backup_id = backup_id
|
246
265
|
|
247
266
|
@property
|
248
267
|
def whole_image_type(self):
|
249
|
-
"""Gets the whole_image_type of this CreateWholeImageRequestBody.
|
268
|
+
r"""Gets the whole_image_type of this CreateWholeImageRequestBody.
|
250
269
|
|
251
270
|
使用备份创建整机镜像时,该字段区分是CBR服务的备份还是CSBS服务的备份,取值为:CBR/CSBS。 使用ECS创建整机镜像时,该字段不填
|
252
271
|
|
@@ -257,18 +276,18 @@ class CreateWholeImageRequestBody:
|
|
257
276
|
|
258
277
|
@whole_image_type.setter
|
259
278
|
def whole_image_type(self, whole_image_type):
|
260
|
-
"""Sets the whole_image_type of this CreateWholeImageRequestBody.
|
279
|
+
r"""Sets the whole_image_type of this CreateWholeImageRequestBody.
|
261
280
|
|
262
281
|
使用备份创建整机镜像时,该字段区分是CBR服务的备份还是CSBS服务的备份,取值为:CBR/CSBS。 使用ECS创建整机镜像时,该字段不填
|
263
282
|
|
264
283
|
:param whole_image_type: The whole_image_type of this CreateWholeImageRequestBody.
|
265
|
-
:type: str
|
284
|
+
:type whole_image_type: str
|
266
285
|
"""
|
267
286
|
self._whole_image_type = whole_image_type
|
268
287
|
|
269
288
|
@property
|
270
289
|
def max_ram(self):
|
271
|
-
"""Gets the max_ram of this CreateWholeImageRequestBody.
|
290
|
+
r"""Gets the max_ram of this CreateWholeImageRequestBody.
|
272
291
|
|
273
292
|
表示镜像支持的最大内存,单位为MB,默认不设置。
|
274
293
|
|
@@ -279,18 +298,18 @@ class CreateWholeImageRequestBody:
|
|
279
298
|
|
280
299
|
@max_ram.setter
|
281
300
|
def max_ram(self, max_ram):
|
282
|
-
"""Sets the max_ram of this CreateWholeImageRequestBody.
|
301
|
+
r"""Sets the max_ram of this CreateWholeImageRequestBody.
|
283
302
|
|
284
303
|
表示镜像支持的最大内存,单位为MB,默认不设置。
|
285
304
|
|
286
305
|
:param max_ram: The max_ram of this CreateWholeImageRequestBody.
|
287
|
-
:type: int
|
306
|
+
:type max_ram: int
|
288
307
|
"""
|
289
308
|
self._max_ram = max_ram
|
290
309
|
|
291
310
|
@property
|
292
311
|
def min_ram(self):
|
293
|
-
"""Gets the min_ram of this CreateWholeImageRequestBody.
|
312
|
+
r"""Gets the min_ram of this CreateWholeImageRequestBody.
|
294
313
|
|
295
314
|
表示镜像支持的最小内存,单位为MB,默认为0。
|
296
315
|
|
@@ -301,18 +320,18 @@ class CreateWholeImageRequestBody:
|
|
301
320
|
|
302
321
|
@min_ram.setter
|
303
322
|
def min_ram(self, min_ram):
|
304
|
-
"""Sets the min_ram of this CreateWholeImageRequestBody.
|
323
|
+
r"""Sets the min_ram of this CreateWholeImageRequestBody.
|
305
324
|
|
306
325
|
表示镜像支持的最小内存,单位为MB,默认为0。
|
307
326
|
|
308
327
|
:param min_ram: The min_ram of this CreateWholeImageRequestBody.
|
309
|
-
:type: int
|
328
|
+
:type min_ram: int
|
310
329
|
"""
|
311
330
|
self._min_ram = min_ram
|
312
331
|
|
313
332
|
@property
|
314
333
|
def vault_id(self):
|
315
|
-
"""Gets the vault_id of this CreateWholeImageRequestBody.
|
334
|
+
r"""Gets the vault_id of this CreateWholeImageRequestBody.
|
316
335
|
|
317
336
|
表示云服务器待加入的或已加入的存储库的ID。 使用云服务器创建整机镜像的过程为:先创建一个备份,再将备份创建为整机镜像。如果这个备份为CBR,vault_id为必填项;如果备份为CSBS,vault_id参数可不填。
|
318
337
|
|
@@ -323,12 +342,12 @@ class CreateWholeImageRequestBody:
|
|
323
342
|
|
324
343
|
@vault_id.setter
|
325
344
|
def vault_id(self, vault_id):
|
326
|
-
"""Sets the vault_id of this CreateWholeImageRequestBody.
|
345
|
+
r"""Sets the vault_id of this CreateWholeImageRequestBody.
|
327
346
|
|
328
347
|
表示云服务器待加入的或已加入的存储库的ID。 使用云服务器创建整机镜像的过程为:先创建一个备份,再将备份创建为整机镜像。如果这个备份为CBR,vault_id为必填项;如果备份为CSBS,vault_id参数可不填。
|
329
348
|
|
330
349
|
:param vault_id: The vault_id of this CreateWholeImageRequestBody.
|
331
|
-
:type: str
|
350
|
+
:type vault_id: str
|
332
351
|
"""
|
333
352
|
self._vault_id = vault_id
|
334
353
|
|
@@ -361,10 +380,15 @@ class CreateWholeImageRequestBody:
|
|
361
380
|
|
362
381
|
def to_str(self):
|
363
382
|
"""Returns the string representation of the model"""
|
364
|
-
|
383
|
+
import simplejson as json
|
384
|
+
if six.PY2:
|
385
|
+
import sys
|
386
|
+
reload(sys)
|
387
|
+
sys.setdefaultencoding("utf-8")
|
388
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
365
389
|
|
366
390
|
def __repr__(self):
|
367
|
-
"""For `print`
|
391
|
+
"""For `print`"""
|
368
392
|
return self.to_str()
|
369
393
|
|
370
394
|
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 CreateWholeImageResponse(SdkResponse):
|
13
10
|
|
14
|
-
|
15
11
|
"""
|
16
12
|
Attributes:
|
17
13
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +15,6 @@ class CreateWholeImageResponse(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 CreateWholeImageResponse(SdkResponse):
|
|
31
26
|
}
|
32
27
|
|
33
28
|
def __init__(self, job_id=None):
|
34
|
-
"""CreateWholeImageResponse
|
29
|
+
r"""CreateWholeImageResponse
|
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(CreateWholeImageResponse, self).__init__()
|
37
38
|
|
38
39
|
self._job_id = None
|
39
40
|
self.discriminator = None
|
@@ -43,7 +44,7 @@ class CreateWholeImageResponse(SdkResponse):
|
|
43
44
|
|
44
45
|
@property
|
45
46
|
def job_id(self):
|
46
|
-
"""Gets the job_id of this CreateWholeImageResponse.
|
47
|
+
r"""Gets the job_id of this CreateWholeImageResponse.
|
47
48
|
|
48
49
|
异步任务ID。
|
49
50
|
|
@@ -54,12 +55,12 @@ class CreateWholeImageResponse(SdkResponse):
|
|
54
55
|
|
55
56
|
@job_id.setter
|
56
57
|
def job_id(self, job_id):
|
57
|
-
"""Sets the job_id of this CreateWholeImageResponse.
|
58
|
+
r"""Sets the job_id of this CreateWholeImageResponse.
|
58
59
|
|
59
60
|
异步任务ID。
|
60
61
|
|
61
62
|
:param job_id: The job_id of this CreateWholeImageResponse.
|
62
|
-
:type: str
|
63
|
+
:type job_id: str
|
63
64
|
"""
|
64
65
|
self._job_id = job_id
|
65
66
|
|
@@ -92,10 +93,15 @@ class CreateWholeImageResponse(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):
|