huaweicloudsdkims 3.0.42rc0__py3-none-any.whl → 3.1.160__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkims/v2/__init__.py +31 -3
- huaweicloudsdkims/v2/ims_async_client.py +2198 -1356
- huaweicloudsdkims/v2/ims_client.py +2188 -1347
- huaweicloudsdkims/v2/model/__init__.py +30 -1
- huaweicloudsdkims/v2/model/add_image_tag_request.py +26 -19
- huaweicloudsdkims/v2/model/add_image_tag_request_body.py +19 -16
- huaweicloudsdkims/v2/model/add_image_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/add_or_update_tags_request_body.py +29 -22
- huaweicloudsdkims/v2/model/additional_properties.py +18 -13
- huaweicloudsdkims/v2/model/batch_add_members_request.py +19 -16
- huaweicloudsdkims/v2/model/batch_add_members_request_body.py +84 -19
- huaweicloudsdkims/v2/model/batch_add_members_response.py +19 -13
- huaweicloudsdkims/v2/model/batch_add_or_delete_tags_request.py +26 -19
- huaweicloudsdkims/v2/model/batch_add_or_delete_tags_request_body.py +24 -17
- huaweicloudsdkims/v2/model/batch_add_or_delete_tags_response.py +14 -10
- huaweicloudsdkims/v2/model/batch_delete_members_request.py +19 -16
- huaweicloudsdkims/v2/model/batch_delete_members_response.py +19 -13
- huaweicloudsdkims/v2/model/batch_delete_tags_request.py +139 -0
- huaweicloudsdkims/v2/model/batch_delete_tags_request_body.py +114 -0
- huaweicloudsdkims/v2/model/batch_delete_tags_response.py +85 -0
- huaweicloudsdkims/v2/model/batch_update_members_request.py +19 -16
- huaweicloudsdkims/v2/model/batch_update_members_request_body.py +33 -22
- huaweicloudsdkims/v2/model/batch_update_members_response.py +19 -13
- huaweicloudsdkims/v2/model/copy_image_cross_region_request.py +26 -19
- huaweicloudsdkims/v2/model/copy_image_cross_region_request_body.py +70 -28
- huaweicloudsdkims/v2/model/copy_image_cross_region_response.py +19 -13
- huaweicloudsdkims/v2/model/copy_image_in_region_in_safe_mode_request.py +139 -0
- huaweicloudsdkims/v2/model/copy_image_in_region_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/copy_image_in_region_request.py +26 -19
- huaweicloudsdkims/v2/model/copy_image_in_region_request_body.py +33 -22
- huaweicloudsdkims/v2/model/copy_image_in_region_response.py +19 -13
- huaweicloudsdkims/v2/model/create_data_image.py +33 -22
- huaweicloudsdkims/v2/model/create_data_image_in_safe_mode_request.py +111 -0
- huaweicloudsdkims/v2/model/create_data_image_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/create_data_image_request.py +19 -16
- huaweicloudsdkims/v2/model/create_data_image_request_body.py +63 -41
- huaweicloudsdkims/v2/model/create_data_image_response.py +19 -13
- huaweicloudsdkims/v2/model/create_image_in_safe_mode_request.py +111 -0
- huaweicloudsdkims/v2/model/create_image_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/create_image_request.py +19 -16
- huaweicloudsdkims/v2/model/create_image_request_body.py +139 -70
- huaweicloudsdkims/v2/model/create_image_response.py +19 -13
- huaweicloudsdkims/v2/model/create_or_update_tags_request.py +19 -16
- huaweicloudsdkims/v2/model/create_or_update_tags_response.py +14 -10
- huaweicloudsdkims/v2/model/create_whole_image_request.py +19 -16
- huaweicloudsdkims/v2/model/create_whole_image_request_body.py +74 -50
- huaweicloudsdkims/v2/model/create_whole_image_response.py +19 -13
- huaweicloudsdkims/v2/model/delete_image_tag_request.py +27 -16
- huaweicloudsdkims/v2/model/delete_image_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/export_image_in_safe_mode_request.py +139 -0
- huaweicloudsdkims/v2/model/export_image_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/export_image_request.py +26 -19
- huaweicloudsdkims/v2/model/export_image_request_body.py +55 -19
- huaweicloudsdkims/v2/model/export_image_response.py +19 -13
- huaweicloudsdkims/v2/model/glance_add_image_member_request.py +26 -19
- huaweicloudsdkims/v2/model/glance_add_image_member_request_body.py +18 -13
- huaweicloudsdkims/v2/model/glance_add_image_member_response.py +105 -31
- huaweicloudsdkims/v2/model/glance_create_image_metadata_request.py +19 -16
- huaweicloudsdkims/v2/model/glance_create_image_metadata_request_body.py +58 -37
- huaweicloudsdkims/v2/model/glance_create_image_metadata_response.py +239 -94
- huaweicloudsdkims/v2/model/glance_create_tag_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_create_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_delete_image_member_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_delete_image_member_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_delete_image_request.py +26 -19
- huaweicloudsdkims/v2/model/glance_delete_image_request_body.py +18 -13
- huaweicloudsdkims/v2/model/glance_delete_image_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_delete_tag_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_delete_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_image_members.py +104 -31
- huaweicloudsdkims/v2/model/glance_list_image_member_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_list_image_member_schemas_response.py +30 -20
- huaweicloudsdkims/v2/model/glance_list_image_members_request.py +20 -13
- huaweicloudsdkims/v2/model/glance_list_image_members_response.py +25 -17
- huaweicloudsdkims/v2/model/glance_list_image_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_list_image_schemas_response.py +30 -20
- huaweicloudsdkims/v2/model/glance_list_images_request.py +237 -106
- huaweicloudsdkims/v2/model/glance_list_images_response.py +36 -24
- huaweicloudsdkims/v2/model/glance_show_image_list_response_body.py +1833 -0
- huaweicloudsdkims/v2/model/glance_show_image_member_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_show_image_member_response.py +105 -31
- huaweicloudsdkims/v2/model/glance_show_image_member_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_show_image_member_schemas_response.py +24 -16
- huaweicloudsdkims/v2/model/glance_show_image_request.py +20 -13
- huaweicloudsdkims/v2/model/glance_show_image_response.py +631 -210
- huaweicloudsdkims/v2/model/glance_show_image_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_show_image_schemas_response.py +36 -26
- huaweicloudsdkims/v2/model/glance_update_image_member_request.py +33 -22
- huaweicloudsdkims/v2/model/glance_update_image_member_request_body.py +23 -16
- huaweicloudsdkims/v2/model/glance_update_image_member_response.py +105 -31
- huaweicloudsdkims/v2/model/glance_update_image_request.py +26 -19
- huaweicloudsdkims/v2/model/glance_update_image_request_body.py +28 -19
- huaweicloudsdkims/v2/model/glance_update_image_response.py +631 -210
- huaweicloudsdkims/v2/model/image_info.py +616 -260
- huaweicloudsdkims/v2/model/image_member.py +310 -0
- huaweicloudsdkims/v2/model/image_tag.py +23 -16
- huaweicloudsdkims/v2/model/import_image_quick_in_safe_mode_request.py +111 -0
- huaweicloudsdkims/v2/model/import_image_quick_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/import_image_quick_request.py +19 -16
- huaweicloudsdkims/v2/model/import_image_quick_response.py +19 -13
- huaweicloudsdkims/v2/model/job_entities.py +340 -16
- huaweicloudsdkims/v2/model/job_entities_result.py +173 -0
- huaweicloudsdkims/v2/model/job_progress_entities.py +289 -0
- huaweicloudsdkims/v2/model/links.py +23 -16
- huaweicloudsdkims/v2/model/list_image_by_tags_request.py +19 -16
- huaweicloudsdkims/v2/model/list_image_by_tags_request_body.py +90 -42
- huaweicloudsdkims/v2/model/list_image_by_tags_response.py +25 -17
- huaweicloudsdkims/v2/model/list_image_members_request.py +114 -0
- huaweicloudsdkims/v2/model/list_image_members_response.py +145 -0
- huaweicloudsdkims/v2/model/list_image_tags_request.py +20 -13
- huaweicloudsdkims/v2/model/list_image_tags_response.py +20 -14
- huaweicloudsdkims/v2/model/list_images_request.py +272 -121
- huaweicloudsdkims/v2/model/list_images_response.py +20 -14
- huaweicloudsdkims/v2/model/list_images_tags_request.py +13 -10
- huaweicloudsdkims/v2/model/list_images_tags_response.py +20 -14
- huaweicloudsdkims/v2/model/list_os_versions_request.py +20 -13
- huaweicloudsdkims/v2/model/list_os_versions_response.py +20 -16
- huaweicloudsdkims/v2/model/list_os_versions_response_body.py +24 -17
- huaweicloudsdkims/v2/model/list_tags_request.py +118 -55
- huaweicloudsdkims/v2/model/list_tags_response.py +19 -13
- huaweicloudsdkims/v2/model/list_versions_request.py +84 -0
- huaweicloudsdkims/v2/model/list_versions_response.py +116 -0
- huaweicloudsdkims/v2/model/os_version_info.py +38 -25
- huaweicloudsdkims/v2/model/os_version_response.py +172 -0
- huaweicloudsdkims/v2/model/query_image_by_tags_resource_detail.py +18 -13
- huaweicloudsdkims/v2/model/quick_import_image_by_file_request_body.py +130 -47
- huaweicloudsdkims/v2/model/quota.py +19 -14
- huaweicloudsdkims/v2/model/quota_info.py +38 -25
- huaweicloudsdkims/v2/model/register_image_request.py +26 -19
- huaweicloudsdkims/v2/model/register_image_request_body.py +18 -13
- huaweicloudsdkims/v2/model/register_image_response.py +19 -13
- huaweicloudsdkims/v2/model/resource_tag.py +23 -16
- huaweicloudsdkims/v2/model/show_image_by_tags_resource.py +47 -38
- huaweicloudsdkims/v2/model/show_image_member_request.py +142 -0
- huaweicloudsdkims/v2/model/show_image_member_response.py +319 -0
- huaweicloudsdkims/v2/model/show_image_quota_request.py +13 -10
- huaweicloudsdkims/v2/model/show_image_quota_response.py +20 -16
- huaweicloudsdkims/v2/model/show_job_progress_request.py +114 -0
- huaweicloudsdkims/v2/model/show_job_progress_response.py +315 -0
- huaweicloudsdkims/v2/model/show_job_request.py +20 -13
- huaweicloudsdkims/v2/model/show_job_response.py +55 -37
- huaweicloudsdkims/v2/model/show_version_request.py +114 -0
- huaweicloudsdkims/v2/model/show_version_response.py +116 -0
- huaweicloudsdkims/v2/model/sub_job_entities.py +144 -0
- huaweicloudsdkims/v2/model/sub_job_result.py +314 -0
- huaweicloudsdkims/v2/model/tag_key_value.py +23 -16
- huaweicloudsdkims/v2/model/tags.py +23 -16
- huaweicloudsdkims/v2/model/update_image_request.py +26 -19
- huaweicloudsdkims/v2/model/update_image_request_body.py +29 -21
- huaweicloudsdkims/v2/model/update_image_response.py +600 -254
- huaweicloudsdkims/v2/region/ims_region.py +101 -42
- {huaweicloudsdkims-3.0.42rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/METADATA +9 -9
- huaweicloudsdkims-3.1.160.dist-info/RECORD +158 -0
- {huaweicloudsdkims-3.0.42rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/WHEEL +1 -1
- huaweicloudsdkims/v2/model/glance_show_image_response_body.py +0 -1357
- huaweicloudsdkims-3.0.42rc0.dist-info/RECORD +0 -129
- {huaweicloudsdkims-3.0.42rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/LICENSE +0 -0
- {huaweicloudsdkims-3.0.42rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/top_level.txt +0 -0
@@ -1,17 +1,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 BatchUpdateMembersResponse(SdkResponse):
|
13
10
|
|
14
|
-
|
15
11
|
"""
|
16
12
|
Attributes:
|
17
13
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +15,6 @@ class BatchUpdateMembersResponse(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 BatchUpdateMembersResponse(SdkResponse):
|
|
31
26
|
}
|
32
27
|
|
33
28
|
def __init__(self, job_id=None):
|
34
|
-
"""BatchUpdateMembersResponse
|
29
|
+
r"""BatchUpdateMembersResponse
|
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(BatchUpdateMembersResponse, self).__init__()
|
37
38
|
|
38
39
|
self._job_id = None
|
39
40
|
self.discriminator = None
|
@@ -43,7 +44,7 @@ class BatchUpdateMembersResponse(SdkResponse):
|
|
43
44
|
|
44
45
|
@property
|
45
46
|
def job_id(self):
|
46
|
-
"""Gets the job_id of this BatchUpdateMembersResponse.
|
47
|
+
r"""Gets the job_id of this BatchUpdateMembersResponse.
|
47
48
|
|
48
49
|
异步任务ID。
|
49
50
|
|
@@ -54,12 +55,12 @@ class BatchUpdateMembersResponse(SdkResponse):
|
|
54
55
|
|
55
56
|
@job_id.setter
|
56
57
|
def job_id(self, job_id):
|
57
|
-
"""Sets the job_id of this BatchUpdateMembersResponse.
|
58
|
+
r"""Sets the job_id of this BatchUpdateMembersResponse.
|
58
59
|
|
59
60
|
异步任务ID。
|
60
61
|
|
61
62
|
:param job_id: The job_id of this BatchUpdateMembersResponse.
|
62
|
-
:type: str
|
63
|
+
:type job_id: str
|
63
64
|
"""
|
64
65
|
self._job_id = job_id
|
65
66
|
|
@@ -92,10 +93,15 @@ class BatchUpdateMembersResponse(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 CopyImageCrossRegionRequest:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class CopyImageCrossRegionRequest:
|
|
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 CopyImageCrossRegionRequest:
|
|
33
27
|
}
|
34
28
|
|
35
29
|
def __init__(self, image_id=None, body=None):
|
36
|
-
"""CopyImageCrossRegionRequest
|
30
|
+
r"""CopyImageCrossRegionRequest
|
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 CopyImageCrossRegionRequest
|
37
|
+
:type body: :class:`huaweicloudsdkims.v2.CopyImageCrossRegionRequestBody`
|
38
|
+
"""
|
37
39
|
|
38
40
|
|
39
41
|
|
@@ -47,8 +49,9 @@ class CopyImageCrossRegionRequest:
|
|
47
49
|
|
48
50
|
@property
|
49
51
|
def image_id(self):
|
50
|
-
"""Gets the image_id of this CopyImageCrossRegionRequest.
|
52
|
+
r"""Gets the image_id of this CopyImageCrossRegionRequest.
|
51
53
|
|
54
|
+
镜像ID
|
52
55
|
|
53
56
|
:return: The image_id of this CopyImageCrossRegionRequest.
|
54
57
|
:rtype: str
|
@@ -57,31 +60,30 @@ class CopyImageCrossRegionRequest:
|
|
57
60
|
|
58
61
|
@image_id.setter
|
59
62
|
def image_id(self, image_id):
|
60
|
-
"""Sets the image_id of this CopyImageCrossRegionRequest.
|
63
|
+
r"""Sets the image_id of this CopyImageCrossRegionRequest.
|
61
64
|
|
65
|
+
镜像ID
|
62
66
|
|
63
67
|
:param image_id: The image_id of this CopyImageCrossRegionRequest.
|
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 CopyImageCrossRegionRequest.
|
71
|
-
|
74
|
+
r"""Gets the body of this CopyImageCrossRegionRequest.
|
72
75
|
|
73
76
|
:return: The body of this CopyImageCrossRegionRequest.
|
74
|
-
:rtype: CopyImageCrossRegionRequestBody
|
77
|
+
:rtype: :class:`huaweicloudsdkims.v2.CopyImageCrossRegionRequestBody`
|
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 CopyImageCrossRegionRequest.
|
81
|
-
|
83
|
+
r"""Sets the body of this CopyImageCrossRegionRequest.
|
82
84
|
|
83
85
|
:param body: The body of this CopyImageCrossRegionRequest.
|
84
|
-
:type: CopyImageCrossRegionRequestBody
|
86
|
+
:type body: :class:`huaweicloudsdkims.v2.CopyImageCrossRegionRequestBody`
|
85
87
|
"""
|
86
88
|
self._body = body
|
87
89
|
|
@@ -114,10 +116,15 @@ class CopyImageCrossRegionRequest:
|
|
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 CopyImageCrossRegionRequestBody:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class CopyImageCrossRegionRequestBody:
|
|
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 = {
|
@@ -27,7 +21,8 @@ class CopyImageCrossRegionRequestBody:
|
|
27
21
|
'description': 'str',
|
28
22
|
'name': 'str',
|
29
23
|
'project_name': 'str',
|
30
|
-
'region': 'str'
|
24
|
+
'region': 'str',
|
25
|
+
'vault_id': 'str'
|
31
26
|
}
|
32
27
|
|
33
28
|
attribute_map = {
|
@@ -35,11 +30,28 @@ class CopyImageCrossRegionRequestBody:
|
|
35
30
|
'description': 'description',
|
36
31
|
'name': 'name',
|
37
32
|
'project_name': 'project_name',
|
38
|
-
'region': 'region'
|
33
|
+
'region': 'region',
|
34
|
+
'vault_id': 'vault_id'
|
39
35
|
}
|
40
36
|
|
41
|
-
def __init__(self, agency_name=None, description=None, name=None, project_name=None, region=None):
|
42
|
-
"""CopyImageCrossRegionRequestBody
|
37
|
+
def __init__(self, agency_name=None, description=None, name=None, project_name=None, region=None, vault_id=None):
|
38
|
+
r"""CopyImageCrossRegionRequestBody
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param agency_name: IMS服务委托名称。
|
43
|
+
:type agency_name: str
|
44
|
+
:param description: 镜像描述信息。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。
|
45
|
+
:type description: str
|
46
|
+
:param name: 镜像名称
|
47
|
+
:type name: str
|
48
|
+
:param project_name: 目的区域的项目名称。
|
49
|
+
:type project_name: str
|
50
|
+
:param region: 目的区域的Region ID。
|
51
|
+
:type region: str
|
52
|
+
:param vault_id: 存储库ID。如果是整机镜像,则在跨Region复制镜像时,为必选参数,需传入该值。
|
53
|
+
:type vault_id: str
|
54
|
+
"""
|
43
55
|
|
44
56
|
|
45
57
|
|
@@ -48,6 +60,7 @@ class CopyImageCrossRegionRequestBody:
|
|
48
60
|
self._name = None
|
49
61
|
self._project_name = None
|
50
62
|
self._region = None
|
63
|
+
self._vault_id = None
|
51
64
|
self.discriminator = None
|
52
65
|
|
53
66
|
self.agency_name = agency_name
|
@@ -56,10 +69,12 @@ class CopyImageCrossRegionRequestBody:
|
|
56
69
|
self.name = name
|
57
70
|
self.project_name = project_name
|
58
71
|
self.region = region
|
72
|
+
if vault_id is not None:
|
73
|
+
self.vault_id = vault_id
|
59
74
|
|
60
75
|
@property
|
61
76
|
def agency_name(self):
|
62
|
-
"""Gets the agency_name of this CopyImageCrossRegionRequestBody.
|
77
|
+
r"""Gets the agency_name of this CopyImageCrossRegionRequestBody.
|
63
78
|
|
64
79
|
IMS服务委托名称。
|
65
80
|
|
@@ -70,18 +85,18 @@ class CopyImageCrossRegionRequestBody:
|
|
70
85
|
|
71
86
|
@agency_name.setter
|
72
87
|
def agency_name(self, agency_name):
|
73
|
-
"""Sets the agency_name of this CopyImageCrossRegionRequestBody.
|
88
|
+
r"""Sets the agency_name of this CopyImageCrossRegionRequestBody.
|
74
89
|
|
75
90
|
IMS服务委托名称。
|
76
91
|
|
77
92
|
:param agency_name: The agency_name of this CopyImageCrossRegionRequestBody.
|
78
|
-
:type: str
|
93
|
+
:type agency_name: str
|
79
94
|
"""
|
80
95
|
self._agency_name = agency_name
|
81
96
|
|
82
97
|
@property
|
83
98
|
def description(self):
|
84
|
-
"""Gets the description of this CopyImageCrossRegionRequestBody.
|
99
|
+
r"""Gets the description of this CopyImageCrossRegionRequestBody.
|
85
100
|
|
86
101
|
镜像描述信息。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。
|
87
102
|
|
@@ -92,18 +107,18 @@ class CopyImageCrossRegionRequestBody:
|
|
92
107
|
|
93
108
|
@description.setter
|
94
109
|
def description(self, description):
|
95
|
-
"""Sets the description of this CopyImageCrossRegionRequestBody.
|
110
|
+
r"""Sets the description of this CopyImageCrossRegionRequestBody.
|
96
111
|
|
97
112
|
镜像描述信息。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。
|
98
113
|
|
99
114
|
:param description: The description of this CopyImageCrossRegionRequestBody.
|
100
|
-
:type: str
|
115
|
+
:type description: str
|
101
116
|
"""
|
102
117
|
self._description = description
|
103
118
|
|
104
119
|
@property
|
105
120
|
def name(self):
|
106
|
-
"""Gets the name of this CopyImageCrossRegionRequestBody.
|
121
|
+
r"""Gets the name of this CopyImageCrossRegionRequestBody.
|
107
122
|
|
108
123
|
镜像名称
|
109
124
|
|
@@ -114,18 +129,18 @@ class CopyImageCrossRegionRequestBody:
|
|
114
129
|
|
115
130
|
@name.setter
|
116
131
|
def name(self, name):
|
117
|
-
"""Sets the name of this CopyImageCrossRegionRequestBody.
|
132
|
+
r"""Sets the name of this CopyImageCrossRegionRequestBody.
|
118
133
|
|
119
134
|
镜像名称
|
120
135
|
|
121
136
|
:param name: The name of this CopyImageCrossRegionRequestBody.
|
122
|
-
:type: str
|
137
|
+
:type name: str
|
123
138
|
"""
|
124
139
|
self._name = name
|
125
140
|
|
126
141
|
@property
|
127
142
|
def project_name(self):
|
128
|
-
"""Gets the project_name of this CopyImageCrossRegionRequestBody.
|
143
|
+
r"""Gets the project_name of this CopyImageCrossRegionRequestBody.
|
129
144
|
|
130
145
|
目的区域的项目名称。
|
131
146
|
|
@@ -136,18 +151,18 @@ class CopyImageCrossRegionRequestBody:
|
|
136
151
|
|
137
152
|
@project_name.setter
|
138
153
|
def project_name(self, project_name):
|
139
|
-
"""Sets the project_name of this CopyImageCrossRegionRequestBody.
|
154
|
+
r"""Sets the project_name of this CopyImageCrossRegionRequestBody.
|
140
155
|
|
141
156
|
目的区域的项目名称。
|
142
157
|
|
143
158
|
:param project_name: The project_name of this CopyImageCrossRegionRequestBody.
|
144
|
-
:type: str
|
159
|
+
:type project_name: str
|
145
160
|
"""
|
146
161
|
self._project_name = project_name
|
147
162
|
|
148
163
|
@property
|
149
164
|
def region(self):
|
150
|
-
"""Gets the region of this CopyImageCrossRegionRequestBody.
|
165
|
+
r"""Gets the region of this CopyImageCrossRegionRequestBody.
|
151
166
|
|
152
167
|
目的区域的Region ID。
|
153
168
|
|
@@ -158,15 +173,37 @@ class CopyImageCrossRegionRequestBody:
|
|
158
173
|
|
159
174
|
@region.setter
|
160
175
|
def region(self, region):
|
161
|
-
"""Sets the region of this CopyImageCrossRegionRequestBody.
|
176
|
+
r"""Sets the region of this CopyImageCrossRegionRequestBody.
|
162
177
|
|
163
178
|
目的区域的Region ID。
|
164
179
|
|
165
180
|
:param region: The region of this CopyImageCrossRegionRequestBody.
|
166
|
-
:type: str
|
181
|
+
:type region: str
|
167
182
|
"""
|
168
183
|
self._region = region
|
169
184
|
|
185
|
+
@property
|
186
|
+
def vault_id(self):
|
187
|
+
r"""Gets the vault_id of this CopyImageCrossRegionRequestBody.
|
188
|
+
|
189
|
+
存储库ID。如果是整机镜像,则在跨Region复制镜像时,为必选参数,需传入该值。
|
190
|
+
|
191
|
+
:return: The vault_id of this CopyImageCrossRegionRequestBody.
|
192
|
+
:rtype: str
|
193
|
+
"""
|
194
|
+
return self._vault_id
|
195
|
+
|
196
|
+
@vault_id.setter
|
197
|
+
def vault_id(self, vault_id):
|
198
|
+
r"""Sets the vault_id of this CopyImageCrossRegionRequestBody.
|
199
|
+
|
200
|
+
存储库ID。如果是整机镜像,则在跨Region复制镜像时,为必选参数,需传入该值。
|
201
|
+
|
202
|
+
:param vault_id: The vault_id of this CopyImageCrossRegionRequestBody.
|
203
|
+
:type vault_id: str
|
204
|
+
"""
|
205
|
+
self._vault_id = vault_id
|
206
|
+
|
170
207
|
def to_dict(self):
|
171
208
|
"""Returns the model properties as a dict"""
|
172
209
|
result = {}
|
@@ -196,10 +233,15 @@ class CopyImageCrossRegionRequestBody:
|
|
196
233
|
|
197
234
|
def to_str(self):
|
198
235
|
"""Returns the string representation of the model"""
|
199
|
-
|
236
|
+
import simplejson as json
|
237
|
+
if six.PY2:
|
238
|
+
import sys
|
239
|
+
reload(sys)
|
240
|
+
sys.setdefaultencoding("utf-8")
|
241
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
200
242
|
|
201
243
|
def __repr__(self):
|
202
|
-
"""For `print`
|
244
|
+
"""For `print`"""
|
203
245
|
return self.to_str()
|
204
246
|
|
205
247
|
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 CopyImageCrossRegionResponse(SdkResponse):
|
13
10
|
|
14
|
-
|
15
11
|
"""
|
16
12
|
Attributes:
|
17
13
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +15,6 @@ class CopyImageCrossRegionResponse(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 CopyImageCrossRegionResponse(SdkResponse):
|
|
31
26
|
}
|
32
27
|
|
33
28
|
def __init__(self, job_id=None):
|
34
|
-
"""CopyImageCrossRegionResponse
|
29
|
+
r"""CopyImageCrossRegionResponse
|
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(CopyImageCrossRegionResponse, self).__init__()
|
37
38
|
|
38
39
|
self._job_id = None
|
39
40
|
self.discriminator = None
|
@@ -43,7 +44,7 @@ class CopyImageCrossRegionResponse(SdkResponse):
|
|
43
44
|
|
44
45
|
@property
|
45
46
|
def job_id(self):
|
46
|
-
"""Gets the job_id of this CopyImageCrossRegionResponse.
|
47
|
+
r"""Gets the job_id of this CopyImageCrossRegionResponse.
|
47
48
|
|
48
49
|
异步任务ID。
|
49
50
|
|
@@ -54,12 +55,12 @@ class CopyImageCrossRegionResponse(SdkResponse):
|
|
54
55
|
|
55
56
|
@job_id.setter
|
56
57
|
def job_id(self, job_id):
|
57
|
-
"""Sets the job_id of this CopyImageCrossRegionResponse.
|
58
|
+
r"""Sets the job_id of this CopyImageCrossRegionResponse.
|
58
59
|
|
59
60
|
异步任务ID。
|
60
61
|
|
61
62
|
:param job_id: The job_id of this CopyImageCrossRegionResponse.
|
62
|
-
:type: str
|
63
|
+
:type job_id: str
|
63
64
|
"""
|
64
65
|
self._job_id = job_id
|
65
66
|
|
@@ -92,10 +93,15 @@ class CopyImageCrossRegionResponse(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):
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CopyImageInRegionInSafeModeRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'image_id': 'str',
|
21
|
+
'body': 'CopyImageInRegionRequestBody'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'image_id': 'image_id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, image_id=None, body=None):
|
30
|
+
r"""CopyImageInRegionInSafeModeRequest
|
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 CopyImageInRegionInSafeModeRequest
|
37
|
+
:type body: :class:`huaweicloudsdkims.v2.CopyImageInRegionRequestBody`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._image_id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.image_id = image_id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def image_id(self):
|
52
|
+
r"""Gets the image_id of this CopyImageInRegionInSafeModeRequest.
|
53
|
+
|
54
|
+
镜像ID
|
55
|
+
|
56
|
+
:return: The image_id of this CopyImageInRegionInSafeModeRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._image_id
|
60
|
+
|
61
|
+
@image_id.setter
|
62
|
+
def image_id(self, image_id):
|
63
|
+
r"""Sets the image_id of this CopyImageInRegionInSafeModeRequest.
|
64
|
+
|
65
|
+
镜像ID
|
66
|
+
|
67
|
+
:param image_id: The image_id of this CopyImageInRegionInSafeModeRequest.
|
68
|
+
:type image_id: str
|
69
|
+
"""
|
70
|
+
self._image_id = image_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
r"""Gets the body of this CopyImageInRegionInSafeModeRequest.
|
75
|
+
|
76
|
+
:return: The body of this CopyImageInRegionInSafeModeRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkims.v2.CopyImageInRegionRequestBody`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
r"""Sets the body of this CopyImageInRegionInSafeModeRequest.
|
84
|
+
|
85
|
+
:param body: The body of this CopyImageInRegionInSafeModeRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkims.v2.CopyImageInRegionRequestBody`
|
87
|
+
"""
|
88
|
+
self._body = body
|
89
|
+
|
90
|
+
def to_dict(self):
|
91
|
+
"""Returns the model properties as a dict"""
|
92
|
+
result = {}
|
93
|
+
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
95
|
+
value = getattr(self, attr)
|
96
|
+
if isinstance(value, list):
|
97
|
+
result[attr] = list(map(
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
99
|
+
value
|
100
|
+
))
|
101
|
+
elif hasattr(value, "to_dict"):
|
102
|
+
result[attr] = value.to_dict()
|
103
|
+
elif isinstance(value, dict):
|
104
|
+
result[attr] = dict(map(
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
107
|
+
value.items()
|
108
|
+
))
|
109
|
+
else:
|
110
|
+
if attr in self.sensitive_list:
|
111
|
+
result[attr] = "****"
|
112
|
+
else:
|
113
|
+
result[attr] = value
|
114
|
+
|
115
|
+
return result
|
116
|
+
|
117
|
+
def to_str(self):
|
118
|
+
"""Returns the string representation of the model"""
|
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)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
"""For `print`"""
|
128
|
+
return self.to_str()
|
129
|
+
|
130
|
+
def __eq__(self, other):
|
131
|
+
"""Returns true if both objects are equal"""
|
132
|
+
if not isinstance(other, CopyImageInRegionInSafeModeRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
return not self == other
|