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
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateDataImageInSafeModeRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'body': 'CreateDataImageRequestBody'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""CreateDataImageInSafeModeRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateDataImageInSafeModeRequest
|
33
|
+
:type body: :class:`huaweicloudsdkims.v2.CreateDataImageRequestBody`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this CreateDataImageInSafeModeRequest.
|
47
|
+
|
48
|
+
:return: The body of this CreateDataImageInSafeModeRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkims.v2.CreateDataImageRequestBody`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this CreateDataImageInSafeModeRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CreateDataImageInSafeModeRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkims.v2.CreateDataImageRequestBody`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
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)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, CreateDataImageInSafeModeRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|
@@ -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 CreateDataImageInSafeModeResponse(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"""CreateDataImageInSafeModeResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param job_id: 异步任务ID。
|
34
|
+
:type job_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateDataImageInSafeModeResponse, 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 CreateDataImageInSafeModeResponse.
|
48
|
+
|
49
|
+
异步任务ID。
|
50
|
+
|
51
|
+
:return: The job_id of this CreateDataImageInSafeModeResponse.
|
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 CreateDataImageInSafeModeResponse.
|
59
|
+
|
60
|
+
异步任务ID。
|
61
|
+
|
62
|
+
:param job_id: The job_id of this CreateDataImageInSafeModeResponse.
|
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, CreateDataImageInSafeModeResponse):
|
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 CreateDataImageRequest:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class CreateDataImageRequest:
|
|
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 CreateDataImageRequest:
|
|
31
25
|
}
|
32
26
|
|
33
27
|
def __init__(self, body=None):
|
34
|
-
"""CreateDataImageRequest
|
28
|
+
r"""CreateDataImageRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateDataImageRequest
|
33
|
+
:type body: :class:`huaweicloudsdkims.v2.CreateDataImageRequestBody`
|
34
|
+
"""
|
35
35
|
|
36
36
|
|
37
37
|
|
@@ -43,21 +43,19 @@ class CreateDataImageRequest:
|
|
43
43
|
|
44
44
|
@property
|
45
45
|
def body(self):
|
46
|
-
"""Gets the body of this CreateDataImageRequest.
|
47
|
-
|
46
|
+
r"""Gets the body of this CreateDataImageRequest.
|
48
47
|
|
49
48
|
:return: The body of this CreateDataImageRequest.
|
50
|
-
:rtype: CreateDataImageRequestBody
|
49
|
+
:rtype: :class:`huaweicloudsdkims.v2.CreateDataImageRequestBody`
|
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 CreateDataImageRequest.
|
57
|
-
|
55
|
+
r"""Sets the body of this CreateDataImageRequest.
|
58
56
|
|
59
57
|
:param body: The body of this CreateDataImageRequest.
|
60
|
-
:type: CreateDataImageRequestBody
|
58
|
+
:type body: :class:`huaweicloudsdkims.v2.CreateDataImageRequestBody`
|
61
59
|
"""
|
62
60
|
self._body = body
|
63
61
|
|
@@ -90,10 +88,15 @@ class CreateDataImageRequest:
|
|
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 CreateDataImageRequestBody:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class CreateDataImageRequestBody:
|
|
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 = {
|
@@ -47,7 +41,29 @@ class CreateDataImageRequestBody:
|
|
47
41
|
}
|
48
42
|
|
49
43
|
def __init__(self, cmk_id=None, description=None, enterprise_project_id=None, image_tags=None, image_url=None, min_disk=None, name=None, os_type=None, tags=None):
|
50
|
-
"""CreateDataImageRequestBody
|
44
|
+
r"""CreateDataImageRequestBody
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param cmk_id: 创建加密镜像的用户主密钥,具体取值请参考《密钥管理服务用户指南》获取。
|
49
|
+
:type cmk_id: str
|
50
|
+
:param description: 镜像描述信息。_description参数说明请参考镜像属性。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。
|
51
|
+
:type description: str
|
52
|
+
:param enterprise_project_id: 表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目;取值为UUID,表示属于该UUID对应的企业项目。
|
53
|
+
:type enterprise_project_id: str
|
54
|
+
:param image_tags: 新规范的镜像标签列表。默认为空。 tags和image_tags只能使用一个。
|
55
|
+
:type image_tags: list[:class:`huaweicloudsdkims.v2.ImageTag`]
|
56
|
+
:param image_url: OBS桶中外部镜像文件地址。格式为<OBS桶名>:<OBS镜像文件名称>。 此处的OBS桶和镜像文件的存储类别必须是OBS标准存储。
|
57
|
+
:type image_url: str
|
58
|
+
:param min_disk: 最小数据盘大小。取值范围40-2048GB。
|
59
|
+
:type min_disk: int
|
60
|
+
:param name: 镜像名称。
|
61
|
+
:type name: str
|
62
|
+
:param os_type: 操作系统类型。只能是Windows、Linux二者之一,默认Linux。
|
63
|
+
:type os_type: str
|
64
|
+
:param tags: 镜像标签列表。默认为空。 tags和image_tags只能使用一个。
|
65
|
+
:type tags: list[str]
|
66
|
+
"""
|
51
67
|
|
52
68
|
|
53
69
|
|
@@ -73,13 +89,14 @@ class CreateDataImageRequestBody:
|
|
73
89
|
self.image_url = image_url
|
74
90
|
self.min_disk = min_disk
|
75
91
|
self.name = name
|
76
|
-
|
92
|
+
if os_type is not None:
|
93
|
+
self.os_type = os_type
|
77
94
|
if tags is not None:
|
78
95
|
self.tags = tags
|
79
96
|
|
80
97
|
@property
|
81
98
|
def cmk_id(self):
|
82
|
-
"""Gets the cmk_id of this CreateDataImageRequestBody.
|
99
|
+
r"""Gets the cmk_id of this CreateDataImageRequestBody.
|
83
100
|
|
84
101
|
创建加密镜像的用户主密钥,具体取值请参考《密钥管理服务用户指南》获取。
|
85
102
|
|
@@ -90,18 +107,18 @@ class CreateDataImageRequestBody:
|
|
90
107
|
|
91
108
|
@cmk_id.setter
|
92
109
|
def cmk_id(self, cmk_id):
|
93
|
-
"""Sets the cmk_id of this CreateDataImageRequestBody.
|
110
|
+
r"""Sets the cmk_id of this CreateDataImageRequestBody.
|
94
111
|
|
95
112
|
创建加密镜像的用户主密钥,具体取值请参考《密钥管理服务用户指南》获取。
|
96
113
|
|
97
114
|
:param cmk_id: The cmk_id of this CreateDataImageRequestBody.
|
98
|
-
:type: str
|
115
|
+
:type cmk_id: str
|
99
116
|
"""
|
100
117
|
self._cmk_id = cmk_id
|
101
118
|
|
102
119
|
@property
|
103
120
|
def description(self):
|
104
|
-
"""Gets the description of this CreateDataImageRequestBody.
|
121
|
+
r"""Gets the description of this CreateDataImageRequestBody.
|
105
122
|
|
106
123
|
镜像描述信息。_description参数说明请参考镜像属性。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。
|
107
124
|
|
@@ -112,18 +129,18 @@ class CreateDataImageRequestBody:
|
|
112
129
|
|
113
130
|
@description.setter
|
114
131
|
def description(self, description):
|
115
|
-
"""Sets the description of this CreateDataImageRequestBody.
|
132
|
+
r"""Sets the description of this CreateDataImageRequestBody.
|
116
133
|
|
117
134
|
镜像描述信息。_description参数说明请参考镜像属性。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。
|
118
135
|
|
119
136
|
:param description: The description of this CreateDataImageRequestBody.
|
120
|
-
:type: str
|
137
|
+
:type description: str
|
121
138
|
"""
|
122
139
|
self._description = description
|
123
140
|
|
124
141
|
@property
|
125
142
|
def enterprise_project_id(self):
|
126
|
-
"""Gets the enterprise_project_id of this CreateDataImageRequestBody.
|
143
|
+
r"""Gets the enterprise_project_id of this CreateDataImageRequestBody.
|
127
144
|
|
128
145
|
表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目;取值为UUID,表示属于该UUID对应的企业项目。
|
129
146
|
|
@@ -134,40 +151,40 @@ class CreateDataImageRequestBody:
|
|
134
151
|
|
135
152
|
@enterprise_project_id.setter
|
136
153
|
def enterprise_project_id(self, enterprise_project_id):
|
137
|
-
"""Sets the enterprise_project_id of this CreateDataImageRequestBody.
|
154
|
+
r"""Sets the enterprise_project_id of this CreateDataImageRequestBody.
|
138
155
|
|
139
156
|
表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目;取值为UUID,表示属于该UUID对应的企业项目。
|
140
157
|
|
141
158
|
:param enterprise_project_id: The enterprise_project_id of this CreateDataImageRequestBody.
|
142
|
-
:type: str
|
159
|
+
:type enterprise_project_id: str
|
143
160
|
"""
|
144
161
|
self._enterprise_project_id = enterprise_project_id
|
145
162
|
|
146
163
|
@property
|
147
164
|
def image_tags(self):
|
148
|
-
"""Gets the image_tags of this CreateDataImageRequestBody.
|
165
|
+
r"""Gets the image_tags of this CreateDataImageRequestBody.
|
149
166
|
|
150
167
|
新规范的镜像标签列表。默认为空。 tags和image_tags只能使用一个。
|
151
168
|
|
152
169
|
:return: The image_tags of this CreateDataImageRequestBody.
|
153
|
-
:rtype: list[ImageTag]
|
170
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.ImageTag`]
|
154
171
|
"""
|
155
172
|
return self._image_tags
|
156
173
|
|
157
174
|
@image_tags.setter
|
158
175
|
def image_tags(self, image_tags):
|
159
|
-
"""Sets the image_tags of this CreateDataImageRequestBody.
|
176
|
+
r"""Sets the image_tags of this CreateDataImageRequestBody.
|
160
177
|
|
161
178
|
新规范的镜像标签列表。默认为空。 tags和image_tags只能使用一个。
|
162
179
|
|
163
180
|
:param image_tags: The image_tags of this CreateDataImageRequestBody.
|
164
|
-
:type: list[ImageTag]
|
181
|
+
:type image_tags: list[:class:`huaweicloudsdkims.v2.ImageTag`]
|
165
182
|
"""
|
166
183
|
self._image_tags = image_tags
|
167
184
|
|
168
185
|
@property
|
169
186
|
def image_url(self):
|
170
|
-
"""Gets the image_url of this CreateDataImageRequestBody.
|
187
|
+
r"""Gets the image_url of this CreateDataImageRequestBody.
|
171
188
|
|
172
189
|
OBS桶中外部镜像文件地址。格式为<OBS桶名>:<OBS镜像文件名称>。 此处的OBS桶和镜像文件的存储类别必须是OBS标准存储。
|
173
190
|
|
@@ -178,18 +195,18 @@ class CreateDataImageRequestBody:
|
|
178
195
|
|
179
196
|
@image_url.setter
|
180
197
|
def image_url(self, image_url):
|
181
|
-
"""Sets the image_url of this CreateDataImageRequestBody.
|
198
|
+
r"""Sets the image_url of this CreateDataImageRequestBody.
|
182
199
|
|
183
200
|
OBS桶中外部镜像文件地址。格式为<OBS桶名>:<OBS镜像文件名称>。 此处的OBS桶和镜像文件的存储类别必须是OBS标准存储。
|
184
201
|
|
185
202
|
:param image_url: The image_url of this CreateDataImageRequestBody.
|
186
|
-
:type: str
|
203
|
+
:type image_url: str
|
187
204
|
"""
|
188
205
|
self._image_url = image_url
|
189
206
|
|
190
207
|
@property
|
191
208
|
def min_disk(self):
|
192
|
-
"""Gets the min_disk of this CreateDataImageRequestBody.
|
209
|
+
r"""Gets the min_disk of this CreateDataImageRequestBody.
|
193
210
|
|
194
211
|
最小数据盘大小。取值范围40-2048GB。
|
195
212
|
|
@@ -200,18 +217,18 @@ class CreateDataImageRequestBody:
|
|
200
217
|
|
201
218
|
@min_disk.setter
|
202
219
|
def min_disk(self, min_disk):
|
203
|
-
"""Sets the min_disk of this CreateDataImageRequestBody.
|
220
|
+
r"""Sets the min_disk of this CreateDataImageRequestBody.
|
204
221
|
|
205
222
|
最小数据盘大小。取值范围40-2048GB。
|
206
223
|
|
207
224
|
:param min_disk: The min_disk of this CreateDataImageRequestBody.
|
208
|
-
:type: int
|
225
|
+
:type min_disk: int
|
209
226
|
"""
|
210
227
|
self._min_disk = min_disk
|
211
228
|
|
212
229
|
@property
|
213
230
|
def name(self):
|
214
|
-
"""Gets the name of this CreateDataImageRequestBody.
|
231
|
+
r"""Gets the name of this CreateDataImageRequestBody.
|
215
232
|
|
216
233
|
镜像名称。
|
217
234
|
|
@@ -222,20 +239,20 @@ class CreateDataImageRequestBody:
|
|
222
239
|
|
223
240
|
@name.setter
|
224
241
|
def name(self, name):
|
225
|
-
"""Sets the name of this CreateDataImageRequestBody.
|
242
|
+
r"""Sets the name of this CreateDataImageRequestBody.
|
226
243
|
|
227
244
|
镜像名称。
|
228
245
|
|
229
246
|
:param name: The name of this CreateDataImageRequestBody.
|
230
|
-
:type: str
|
247
|
+
:type name: str
|
231
248
|
"""
|
232
249
|
self._name = name
|
233
250
|
|
234
251
|
@property
|
235
252
|
def os_type(self):
|
236
|
-
"""Gets the os_type of this CreateDataImageRequestBody.
|
253
|
+
r"""Gets the os_type of this CreateDataImageRequestBody.
|
237
254
|
|
238
|
-
操作系统类型。只能是Windows、Linux
|
255
|
+
操作系统类型。只能是Windows、Linux二者之一,默认Linux。
|
239
256
|
|
240
257
|
:return: The os_type of this CreateDataImageRequestBody.
|
241
258
|
:rtype: str
|
@@ -244,18 +261,18 @@ class CreateDataImageRequestBody:
|
|
244
261
|
|
245
262
|
@os_type.setter
|
246
263
|
def os_type(self, os_type):
|
247
|
-
"""Sets the os_type of this CreateDataImageRequestBody.
|
264
|
+
r"""Sets the os_type of this CreateDataImageRequestBody.
|
248
265
|
|
249
|
-
操作系统类型。只能是Windows、Linux
|
266
|
+
操作系统类型。只能是Windows、Linux二者之一,默认Linux。
|
250
267
|
|
251
268
|
:param os_type: The os_type of this CreateDataImageRequestBody.
|
252
|
-
:type: str
|
269
|
+
:type os_type: str
|
253
270
|
"""
|
254
271
|
self._os_type = os_type
|
255
272
|
|
256
273
|
@property
|
257
274
|
def tags(self):
|
258
|
-
"""Gets the tags of this CreateDataImageRequestBody.
|
275
|
+
r"""Gets the tags of this CreateDataImageRequestBody.
|
259
276
|
|
260
277
|
镜像标签列表。默认为空。 tags和image_tags只能使用一个。
|
261
278
|
|
@@ -266,12 +283,12 @@ class CreateDataImageRequestBody:
|
|
266
283
|
|
267
284
|
@tags.setter
|
268
285
|
def tags(self, tags):
|
269
|
-
"""Sets the tags of this CreateDataImageRequestBody.
|
286
|
+
r"""Sets the tags of this CreateDataImageRequestBody.
|
270
287
|
|
271
288
|
镜像标签列表。默认为空。 tags和image_tags只能使用一个。
|
272
289
|
|
273
290
|
:param tags: The tags of this CreateDataImageRequestBody.
|
274
|
-
:type: list[str]
|
291
|
+
:type tags: list[str]
|
275
292
|
"""
|
276
293
|
self._tags = tags
|
277
294
|
|
@@ -304,10 +321,15 @@ class CreateDataImageRequestBody:
|
|
304
321
|
|
305
322
|
def to_str(self):
|
306
323
|
"""Returns the string representation of the model"""
|
307
|
-
|
324
|
+
import simplejson as json
|
325
|
+
if six.PY2:
|
326
|
+
import sys
|
327
|
+
reload(sys)
|
328
|
+
sys.setdefaultencoding("utf-8")
|
329
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
308
330
|
|
309
331
|
def __repr__(self):
|
310
|
-
"""For `print`
|
332
|
+
"""For `print`"""
|
311
333
|
return self.to_str()
|
312
334
|
|
313
335
|
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 CreateDataImageResponse(SdkResponse):
|
13
10
|
|
14
|
-
|
15
11
|
"""
|
16
12
|
Attributes:
|
17
13
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +15,6 @@ class CreateDataImageResponse(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 CreateDataImageResponse(SdkResponse):
|
|
31
26
|
}
|
32
27
|
|
33
28
|
def __init__(self, job_id=None):
|
34
|
-
"""CreateDataImageResponse
|
29
|
+
r"""CreateDataImageResponse
|
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(CreateDataImageResponse, self).__init__()
|
37
38
|
|
38
39
|
self._job_id = None
|
39
40
|
self.discriminator = None
|
@@ -43,7 +44,7 @@ class CreateDataImageResponse(SdkResponse):
|
|
43
44
|
|
44
45
|
@property
|
45
46
|
def job_id(self):
|
46
|
-
"""Gets the job_id of this CreateDataImageResponse.
|
47
|
+
r"""Gets the job_id of this CreateDataImageResponse.
|
47
48
|
|
48
49
|
异步任务ID。
|
49
50
|
|
@@ -54,12 +55,12 @@ class CreateDataImageResponse(SdkResponse):
|
|
54
55
|
|
55
56
|
@job_id.setter
|
56
57
|
def job_id(self, job_id):
|
57
|
-
"""Sets the job_id of this CreateDataImageResponse.
|
58
|
+
r"""Sets the job_id of this CreateDataImageResponse.
|
58
59
|
|
59
60
|
异步任务ID。
|
60
61
|
|
61
62
|
:param job_id: The job_id of this CreateDataImageResponse.
|
62
|
-
:type: str
|
63
|
+
:type job_id: str
|
63
64
|
"""
|
64
65
|
self._job_id = job_id
|
65
66
|
|
@@ -92,10 +93,15 @@ class CreateDataImageResponse(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):
|