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
@@ -0,0 +1,116 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class CopyImageInRegionInSafeModeResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'job_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, job_id=None):
|
29
|
+
r"""CopyImageInRegionInSafeModeResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param job_id: 异步任务ID。
|
34
|
+
:type job_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CopyImageInRegionInSafeModeResponse, self).__init__()
|
38
|
+
|
39
|
+
self._job_id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if job_id is not None:
|
43
|
+
self.job_id = job_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def job_id(self):
|
47
|
+
r"""Gets the job_id of this CopyImageInRegionInSafeModeResponse.
|
48
|
+
|
49
|
+
异步任务ID。
|
50
|
+
|
51
|
+
:return: The job_id of this CopyImageInRegionInSafeModeResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._job_id
|
55
|
+
|
56
|
+
@job_id.setter
|
57
|
+
def job_id(self, job_id):
|
58
|
+
r"""Sets the job_id of this CopyImageInRegionInSafeModeResponse.
|
59
|
+
|
60
|
+
异步任务ID。
|
61
|
+
|
62
|
+
:param job_id: The job_id of this CopyImageInRegionInSafeModeResponse.
|
63
|
+
:type job_id: str
|
64
|
+
"""
|
65
|
+
self._job_id = job_id
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, CopyImageInRegionInSafeModeResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -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 CopyImageInRegionRequest:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class CopyImageInRegionRequest:
|
|
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 CopyImageInRegionRequest:
|
|
33
27
|
}
|
34
28
|
|
35
29
|
def __init__(self, image_id=None, body=None):
|
36
|
-
"""CopyImageInRegionRequest
|
30
|
+
r"""CopyImageInRegionRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param image_id: 镜像ID
|
35
|
+
:type image_id: str
|
36
|
+
:param body: Body of the CopyImageInRegionRequest
|
37
|
+
:type body: :class:`huaweicloudsdkims.v2.CopyImageInRegionRequestBody`
|
38
|
+
"""
|
37
39
|
|
38
40
|
|
39
41
|
|
@@ -47,8 +49,9 @@ class CopyImageInRegionRequest:
|
|
47
49
|
|
48
50
|
@property
|
49
51
|
def image_id(self):
|
50
|
-
"""Gets the image_id of this CopyImageInRegionRequest.
|
52
|
+
r"""Gets the image_id of this CopyImageInRegionRequest.
|
51
53
|
|
54
|
+
镜像ID
|
52
55
|
|
53
56
|
:return: The image_id of this CopyImageInRegionRequest.
|
54
57
|
:rtype: str
|
@@ -57,31 +60,30 @@ class CopyImageInRegionRequest:
|
|
57
60
|
|
58
61
|
@image_id.setter
|
59
62
|
def image_id(self, image_id):
|
60
|
-
"""Sets the image_id of this CopyImageInRegionRequest.
|
63
|
+
r"""Sets the image_id of this CopyImageInRegionRequest.
|
61
64
|
|
65
|
+
镜像ID
|
62
66
|
|
63
67
|
:param image_id: The image_id of this CopyImageInRegionRequest.
|
64
|
-
:type: str
|
68
|
+
:type image_id: str
|
65
69
|
"""
|
66
70
|
self._image_id = image_id
|
67
71
|
|
68
72
|
@property
|
69
73
|
def body(self):
|
70
|
-
"""Gets the body of this CopyImageInRegionRequest.
|
71
|
-
|
74
|
+
r"""Gets the body of this CopyImageInRegionRequest.
|
72
75
|
|
73
76
|
:return: The body of this CopyImageInRegionRequest.
|
74
|
-
:rtype: CopyImageInRegionRequestBody
|
77
|
+
:rtype: :class:`huaweicloudsdkims.v2.CopyImageInRegionRequestBody`
|
75
78
|
"""
|
76
79
|
return self._body
|
77
80
|
|
78
81
|
@body.setter
|
79
82
|
def body(self, body):
|
80
|
-
"""Sets the body of this CopyImageInRegionRequest.
|
81
|
-
|
83
|
+
r"""Sets the body of this CopyImageInRegionRequest.
|
82
84
|
|
83
85
|
:param body: The body of this CopyImageInRegionRequest.
|
84
|
-
:type: CopyImageInRegionRequestBody
|
86
|
+
:type body: :class:`huaweicloudsdkims.v2.CopyImageInRegionRequestBody`
|
85
87
|
"""
|
86
88
|
self._body = body
|
87
89
|
|
@@ -114,10 +116,15 @@ class CopyImageInRegionRequest:
|
|
114
116
|
|
115
117
|
def to_str(self):
|
116
118
|
"""Returns the string representation of the model"""
|
117
|
-
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
118
125
|
|
119
126
|
def __repr__(self):
|
120
|
-
"""For `print`
|
127
|
+
"""For `print`"""
|
121
128
|
return self.to_str()
|
122
129
|
|
123
130
|
def __eq__(self, other):
|
@@ -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 CopyImageInRegionRequestBody:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class CopyImageInRegionRequestBody:
|
|
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 = {
|
@@ -37,7 +31,19 @@ class CopyImageInRegionRequestBody:
|
|
37
31
|
}
|
38
32
|
|
39
33
|
def __init__(self, cmk_id=None, description=None, enterprise_project_id=None, name=None):
|
40
|
-
"""CopyImageInRegionRequestBody
|
34
|
+
r"""CopyImageInRegionRequestBody
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param cmk_id: 加密密钥。默认为空。
|
39
|
+
:type cmk_id: str
|
40
|
+
:param description: 镜像描述信息。_description参数说明请参考镜像属性。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。
|
41
|
+
:type description: str
|
42
|
+
:param enterprise_project_id: 表示当前镜像所属的企业项目。 取值为0或无该值,表示属于default企业项目。 取值为UUID,表示属于该UUID对应的企业项目。关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。
|
43
|
+
:type enterprise_project_id: str
|
44
|
+
:param name: 镜像名称
|
45
|
+
:type name: str
|
46
|
+
"""
|
41
47
|
|
42
48
|
|
43
49
|
|
@@ -57,7 +63,7 @@ class CopyImageInRegionRequestBody:
|
|
57
63
|
|
58
64
|
@property
|
59
65
|
def cmk_id(self):
|
60
|
-
"""Gets the cmk_id of this CopyImageInRegionRequestBody.
|
66
|
+
r"""Gets the cmk_id of this CopyImageInRegionRequestBody.
|
61
67
|
|
62
68
|
加密密钥。默认为空。
|
63
69
|
|
@@ -68,18 +74,18 @@ class CopyImageInRegionRequestBody:
|
|
68
74
|
|
69
75
|
@cmk_id.setter
|
70
76
|
def cmk_id(self, cmk_id):
|
71
|
-
"""Sets the cmk_id of this CopyImageInRegionRequestBody.
|
77
|
+
r"""Sets the cmk_id of this CopyImageInRegionRequestBody.
|
72
78
|
|
73
79
|
加密密钥。默认为空。
|
74
80
|
|
75
81
|
:param cmk_id: The cmk_id of this CopyImageInRegionRequestBody.
|
76
|
-
:type: str
|
82
|
+
:type cmk_id: str
|
77
83
|
"""
|
78
84
|
self._cmk_id = cmk_id
|
79
85
|
|
80
86
|
@property
|
81
87
|
def description(self):
|
82
|
-
"""Gets the description of this CopyImageInRegionRequestBody.
|
88
|
+
r"""Gets the description of this CopyImageInRegionRequestBody.
|
83
89
|
|
84
90
|
镜像描述信息。_description参数说明请参考镜像属性。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。
|
85
91
|
|
@@ -90,18 +96,18 @@ class CopyImageInRegionRequestBody:
|
|
90
96
|
|
91
97
|
@description.setter
|
92
98
|
def description(self, description):
|
93
|
-
"""Sets the description of this CopyImageInRegionRequestBody.
|
99
|
+
r"""Sets the description of this CopyImageInRegionRequestBody.
|
94
100
|
|
95
101
|
镜像描述信息。_description参数说明请参考镜像属性。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。
|
96
102
|
|
97
103
|
:param description: The description of this CopyImageInRegionRequestBody.
|
98
|
-
:type: str
|
104
|
+
:type description: str
|
99
105
|
"""
|
100
106
|
self._description = description
|
101
107
|
|
102
108
|
@property
|
103
109
|
def enterprise_project_id(self):
|
104
|
-
"""Gets the enterprise_project_id of this CopyImageInRegionRequestBody.
|
110
|
+
r"""Gets the enterprise_project_id of this CopyImageInRegionRequestBody.
|
105
111
|
|
106
112
|
表示当前镜像所属的企业项目。 取值为0或无该值,表示属于default企业项目。 取值为UUID,表示属于该UUID对应的企业项目。关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。
|
107
113
|
|
@@ -112,18 +118,18 @@ class CopyImageInRegionRequestBody:
|
|
112
118
|
|
113
119
|
@enterprise_project_id.setter
|
114
120
|
def enterprise_project_id(self, enterprise_project_id):
|
115
|
-
"""Sets the enterprise_project_id of this CopyImageInRegionRequestBody.
|
121
|
+
r"""Sets the enterprise_project_id of this CopyImageInRegionRequestBody.
|
116
122
|
|
117
123
|
表示当前镜像所属的企业项目。 取值为0或无该值,表示属于default企业项目。 取值为UUID,表示属于该UUID对应的企业项目。关于企业项目ID的获取及企业项目特性的详细信息,请参考《企业管理用户指南》。
|
118
124
|
|
119
125
|
:param enterprise_project_id: The enterprise_project_id of this CopyImageInRegionRequestBody.
|
120
|
-
:type: str
|
126
|
+
:type enterprise_project_id: str
|
121
127
|
"""
|
122
128
|
self._enterprise_project_id = enterprise_project_id
|
123
129
|
|
124
130
|
@property
|
125
131
|
def name(self):
|
126
|
-
"""Gets the name of this CopyImageInRegionRequestBody.
|
132
|
+
r"""Gets the name of this CopyImageInRegionRequestBody.
|
127
133
|
|
128
134
|
镜像名称
|
129
135
|
|
@@ -134,12 +140,12 @@ class CopyImageInRegionRequestBody:
|
|
134
140
|
|
135
141
|
@name.setter
|
136
142
|
def name(self, name):
|
137
|
-
"""Sets the name of this CopyImageInRegionRequestBody.
|
143
|
+
r"""Sets the name of this CopyImageInRegionRequestBody.
|
138
144
|
|
139
145
|
镜像名称
|
140
146
|
|
141
147
|
:param name: The name of this CopyImageInRegionRequestBody.
|
142
|
-
:type: str
|
148
|
+
:type name: str
|
143
149
|
"""
|
144
150
|
self._name = name
|
145
151
|
|
@@ -172,10 +178,15 @@ class CopyImageInRegionRequestBody:
|
|
172
178
|
|
173
179
|
def to_str(self):
|
174
180
|
"""Returns the string representation of the model"""
|
175
|
-
|
181
|
+
import simplejson as json
|
182
|
+
if six.PY2:
|
183
|
+
import sys
|
184
|
+
reload(sys)
|
185
|
+
sys.setdefaultencoding("utf-8")
|
186
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
176
187
|
|
177
188
|
def __repr__(self):
|
178
|
-
"""For `print`
|
189
|
+
"""For `print`"""
|
179
190
|
return self.to_str()
|
180
191
|
|
181
192
|
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 CopyImageInRegionResponse(SdkResponse):
|
13
10
|
|
14
|
-
|
15
11
|
"""
|
16
12
|
Attributes:
|
17
13
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +15,6 @@ class CopyImageInRegionResponse(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 CopyImageInRegionResponse(SdkResponse):
|
|
31
26
|
}
|
32
27
|
|
33
28
|
def __init__(self, job_id=None):
|
34
|
-
"""CopyImageInRegionResponse
|
29
|
+
r"""CopyImageInRegionResponse
|
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(CopyImageInRegionResponse, self).__init__()
|
37
38
|
|
38
39
|
self._job_id = None
|
39
40
|
self.discriminator = None
|
@@ -43,7 +44,7 @@ class CopyImageInRegionResponse(SdkResponse):
|
|
43
44
|
|
44
45
|
@property
|
45
46
|
def job_id(self):
|
46
|
-
"""Gets the job_id of this CopyImageInRegionResponse.
|
47
|
+
r"""Gets the job_id of this CopyImageInRegionResponse.
|
47
48
|
|
48
49
|
异步任务ID。
|
49
50
|
|
@@ -54,12 +55,12 @@ class CopyImageInRegionResponse(SdkResponse):
|
|
54
55
|
|
55
56
|
@job_id.setter
|
56
57
|
def job_id(self, job_id):
|
57
|
-
"""Sets the job_id of this CopyImageInRegionResponse.
|
58
|
+
r"""Sets the job_id of this CopyImageInRegionResponse.
|
58
59
|
|
59
60
|
异步任务ID。
|
60
61
|
|
61
62
|
:param job_id: The job_id of this CopyImageInRegionResponse.
|
62
|
-
:type: str
|
63
|
+
:type job_id: str
|
63
64
|
"""
|
64
65
|
self._job_id = job_id
|
65
66
|
|
@@ -92,10 +93,15 @@ class CopyImageInRegionResponse(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 CreateDataImage:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class CreateDataImage:
|
|
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 = {
|
@@ -37,7 +31,19 @@ class CreateDataImage:
|
|
37
31
|
}
|
38
32
|
|
39
33
|
def __init__(self, name=None, volume_id=None, description=None, tags=None):
|
40
|
-
"""CreateDataImage
|
34
|
+
r"""CreateDataImage
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param name: 数据盘镜像名称。
|
39
|
+
:type name: str
|
40
|
+
:param volume_id: 数据盘ID。
|
41
|
+
:type volume_id: str
|
42
|
+
:param description: 数据盘描述。
|
43
|
+
:type description: str
|
44
|
+
:param tags: 数据盘镜像标签。
|
45
|
+
:type tags: list[str]
|
46
|
+
"""
|
41
47
|
|
42
48
|
|
43
49
|
|
@@ -56,7 +62,7 @@ class CreateDataImage:
|
|
56
62
|
|
57
63
|
@property
|
58
64
|
def name(self):
|
59
|
-
"""Gets the name of this CreateDataImage.
|
65
|
+
r"""Gets the name of this CreateDataImage.
|
60
66
|
|
61
67
|
数据盘镜像名称。
|
62
68
|
|
@@ -67,18 +73,18 @@ class CreateDataImage:
|
|
67
73
|
|
68
74
|
@name.setter
|
69
75
|
def name(self, name):
|
70
|
-
"""Sets the name of this CreateDataImage.
|
76
|
+
r"""Sets the name of this CreateDataImage.
|
71
77
|
|
72
78
|
数据盘镜像名称。
|
73
79
|
|
74
80
|
:param name: The name of this CreateDataImage.
|
75
|
-
:type: str
|
81
|
+
:type name: str
|
76
82
|
"""
|
77
83
|
self._name = name
|
78
84
|
|
79
85
|
@property
|
80
86
|
def volume_id(self):
|
81
|
-
"""Gets the volume_id of this CreateDataImage.
|
87
|
+
r"""Gets the volume_id of this CreateDataImage.
|
82
88
|
|
83
89
|
数据盘ID。
|
84
90
|
|
@@ -89,18 +95,18 @@ class CreateDataImage:
|
|
89
95
|
|
90
96
|
@volume_id.setter
|
91
97
|
def volume_id(self, volume_id):
|
92
|
-
"""Sets the volume_id of this CreateDataImage.
|
98
|
+
r"""Sets the volume_id of this CreateDataImage.
|
93
99
|
|
94
100
|
数据盘ID。
|
95
101
|
|
96
102
|
:param volume_id: The volume_id of this CreateDataImage.
|
97
|
-
:type: str
|
103
|
+
:type volume_id: str
|
98
104
|
"""
|
99
105
|
self._volume_id = volume_id
|
100
106
|
|
101
107
|
@property
|
102
108
|
def description(self):
|
103
|
-
"""Gets the description of this CreateDataImage.
|
109
|
+
r"""Gets the description of this CreateDataImage.
|
104
110
|
|
105
111
|
数据盘描述。
|
106
112
|
|
@@ -111,18 +117,18 @@ class CreateDataImage:
|
|
111
117
|
|
112
118
|
@description.setter
|
113
119
|
def description(self, description):
|
114
|
-
"""Sets the description of this CreateDataImage.
|
120
|
+
r"""Sets the description of this CreateDataImage.
|
115
121
|
|
116
122
|
数据盘描述。
|
117
123
|
|
118
124
|
:param description: The description of this CreateDataImage.
|
119
|
-
:type: str
|
125
|
+
:type description: str
|
120
126
|
"""
|
121
127
|
self._description = description
|
122
128
|
|
123
129
|
@property
|
124
130
|
def tags(self):
|
125
|
-
"""Gets the tags of this CreateDataImage.
|
131
|
+
r"""Gets the tags of this CreateDataImage.
|
126
132
|
|
127
133
|
数据盘镜像标签。
|
128
134
|
|
@@ -133,12 +139,12 @@ class CreateDataImage:
|
|
133
139
|
|
134
140
|
@tags.setter
|
135
141
|
def tags(self, tags):
|
136
|
-
"""Sets the tags of this CreateDataImage.
|
142
|
+
r"""Sets the tags of this CreateDataImage.
|
137
143
|
|
138
144
|
数据盘镜像标签。
|
139
145
|
|
140
146
|
:param tags: The tags of this CreateDataImage.
|
141
|
-
:type: list[str]
|
147
|
+
:type tags: list[str]
|
142
148
|
"""
|
143
149
|
self._tags = tags
|
144
150
|
|
@@ -171,10 +177,15 @@ class CreateDataImage:
|
|
171
177
|
|
172
178
|
def to_str(self):
|
173
179
|
"""Returns the string representation of the model"""
|
174
|
-
|
180
|
+
import simplejson as json
|
181
|
+
if six.PY2:
|
182
|
+
import sys
|
183
|
+
reload(sys)
|
184
|
+
sys.setdefaultencoding("utf-8")
|
185
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
175
186
|
|
176
187
|
def __repr__(self):
|
177
|
-
"""For `print`
|
188
|
+
"""For `print`"""
|
178
189
|
return self.to_str()
|
179
190
|
|
180
191
|
def __eq__(self, other):
|