huaweicloudsdkims 3.0.43rc0__py3-none-any.whl → 3.1.160__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkims/v2/__init__.py +31 -3
- huaweicloudsdkims/v2/ims_async_client.py +2198 -1356
- huaweicloudsdkims/v2/ims_client.py +2188 -1347
- huaweicloudsdkims/v2/model/__init__.py +30 -1
- huaweicloudsdkims/v2/model/add_image_tag_request.py +26 -19
- huaweicloudsdkims/v2/model/add_image_tag_request_body.py +19 -16
- huaweicloudsdkims/v2/model/add_image_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/add_or_update_tags_request_body.py +29 -22
- huaweicloudsdkims/v2/model/additional_properties.py +18 -13
- huaweicloudsdkims/v2/model/batch_add_members_request.py +19 -16
- huaweicloudsdkims/v2/model/batch_add_members_request_body.py +84 -19
- huaweicloudsdkims/v2/model/batch_add_members_response.py +19 -13
- huaweicloudsdkims/v2/model/batch_add_or_delete_tags_request.py +26 -19
- huaweicloudsdkims/v2/model/batch_add_or_delete_tags_request_body.py +24 -17
- huaweicloudsdkims/v2/model/batch_add_or_delete_tags_response.py +14 -10
- huaweicloudsdkims/v2/model/batch_delete_members_request.py +19 -16
- huaweicloudsdkims/v2/model/batch_delete_members_response.py +19 -13
- huaweicloudsdkims/v2/model/batch_delete_tags_request.py +139 -0
- huaweicloudsdkims/v2/model/batch_delete_tags_request_body.py +114 -0
- huaweicloudsdkims/v2/model/batch_delete_tags_response.py +85 -0
- huaweicloudsdkims/v2/model/batch_update_members_request.py +19 -16
- huaweicloudsdkims/v2/model/batch_update_members_request_body.py +33 -22
- huaweicloudsdkims/v2/model/batch_update_members_response.py +19 -13
- huaweicloudsdkims/v2/model/copy_image_cross_region_request.py +26 -19
- huaweicloudsdkims/v2/model/copy_image_cross_region_request_body.py +70 -28
- huaweicloudsdkims/v2/model/copy_image_cross_region_response.py +19 -13
- huaweicloudsdkims/v2/model/copy_image_in_region_in_safe_mode_request.py +139 -0
- huaweicloudsdkims/v2/model/copy_image_in_region_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/copy_image_in_region_request.py +26 -19
- huaweicloudsdkims/v2/model/copy_image_in_region_request_body.py +33 -22
- huaweicloudsdkims/v2/model/copy_image_in_region_response.py +19 -13
- huaweicloudsdkims/v2/model/create_data_image.py +33 -22
- huaweicloudsdkims/v2/model/create_data_image_in_safe_mode_request.py +111 -0
- huaweicloudsdkims/v2/model/create_data_image_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/create_data_image_request.py +19 -16
- huaweicloudsdkims/v2/model/create_data_image_request_body.py +63 -41
- huaweicloudsdkims/v2/model/create_data_image_response.py +19 -13
- huaweicloudsdkims/v2/model/create_image_in_safe_mode_request.py +111 -0
- huaweicloudsdkims/v2/model/create_image_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/create_image_request.py +19 -16
- huaweicloudsdkims/v2/model/create_image_request_body.py +139 -70
- huaweicloudsdkims/v2/model/create_image_response.py +19 -13
- huaweicloudsdkims/v2/model/create_or_update_tags_request.py +19 -16
- huaweicloudsdkims/v2/model/create_or_update_tags_response.py +14 -10
- huaweicloudsdkims/v2/model/create_whole_image_request.py +19 -16
- huaweicloudsdkims/v2/model/create_whole_image_request_body.py +74 -50
- huaweicloudsdkims/v2/model/create_whole_image_response.py +19 -13
- huaweicloudsdkims/v2/model/delete_image_tag_request.py +27 -16
- huaweicloudsdkims/v2/model/delete_image_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/export_image_in_safe_mode_request.py +139 -0
- huaweicloudsdkims/v2/model/export_image_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/export_image_request.py +26 -19
- huaweicloudsdkims/v2/model/export_image_request_body.py +55 -19
- huaweicloudsdkims/v2/model/export_image_response.py +19 -13
- huaweicloudsdkims/v2/model/glance_add_image_member_request.py +26 -19
- huaweicloudsdkims/v2/model/glance_add_image_member_request_body.py +18 -13
- huaweicloudsdkims/v2/model/glance_add_image_member_response.py +105 -31
- huaweicloudsdkims/v2/model/glance_create_image_metadata_request.py +19 -16
- huaweicloudsdkims/v2/model/glance_create_image_metadata_request_body.py +58 -37
- huaweicloudsdkims/v2/model/glance_create_image_metadata_response.py +239 -94
- huaweicloudsdkims/v2/model/glance_create_tag_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_create_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_delete_image_member_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_delete_image_member_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_delete_image_request.py +26 -19
- huaweicloudsdkims/v2/model/glance_delete_image_request_body.py +18 -13
- huaweicloudsdkims/v2/model/glance_delete_image_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_delete_tag_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_delete_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_image_members.py +104 -31
- huaweicloudsdkims/v2/model/glance_list_image_member_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_list_image_member_schemas_response.py +30 -20
- huaweicloudsdkims/v2/model/glance_list_image_members_request.py +20 -13
- huaweicloudsdkims/v2/model/glance_list_image_members_response.py +25 -17
- huaweicloudsdkims/v2/model/glance_list_image_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_list_image_schemas_response.py +30 -20
- huaweicloudsdkims/v2/model/glance_list_images_request.py +237 -106
- huaweicloudsdkims/v2/model/glance_list_images_response.py +36 -24
- huaweicloudsdkims/v2/model/glance_show_image_list_response_body.py +1833 -0
- huaweicloudsdkims/v2/model/glance_show_image_member_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_show_image_member_response.py +105 -31
- huaweicloudsdkims/v2/model/glance_show_image_member_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_show_image_member_schemas_response.py +24 -16
- huaweicloudsdkims/v2/model/glance_show_image_request.py +20 -13
- huaweicloudsdkims/v2/model/glance_show_image_response.py +631 -210
- huaweicloudsdkims/v2/model/glance_show_image_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_show_image_schemas_response.py +36 -26
- huaweicloudsdkims/v2/model/glance_update_image_member_request.py +33 -22
- huaweicloudsdkims/v2/model/glance_update_image_member_request_body.py +23 -16
- huaweicloudsdkims/v2/model/glance_update_image_member_response.py +105 -31
- huaweicloudsdkims/v2/model/glance_update_image_request.py +26 -19
- huaweicloudsdkims/v2/model/glance_update_image_request_body.py +28 -19
- huaweicloudsdkims/v2/model/glance_update_image_response.py +631 -210
- huaweicloudsdkims/v2/model/image_info.py +616 -260
- huaweicloudsdkims/v2/model/image_member.py +310 -0
- huaweicloudsdkims/v2/model/image_tag.py +23 -16
- huaweicloudsdkims/v2/model/import_image_quick_in_safe_mode_request.py +111 -0
- huaweicloudsdkims/v2/model/import_image_quick_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/import_image_quick_request.py +19 -16
- huaweicloudsdkims/v2/model/import_image_quick_response.py +19 -13
- huaweicloudsdkims/v2/model/job_entities.py +340 -16
- huaweicloudsdkims/v2/model/job_entities_result.py +173 -0
- huaweicloudsdkims/v2/model/job_progress_entities.py +289 -0
- huaweicloudsdkims/v2/model/links.py +23 -16
- huaweicloudsdkims/v2/model/list_image_by_tags_request.py +19 -16
- huaweicloudsdkims/v2/model/list_image_by_tags_request_body.py +90 -42
- huaweicloudsdkims/v2/model/list_image_by_tags_response.py +25 -17
- huaweicloudsdkims/v2/model/list_image_members_request.py +114 -0
- huaweicloudsdkims/v2/model/list_image_members_response.py +145 -0
- huaweicloudsdkims/v2/model/list_image_tags_request.py +20 -13
- huaweicloudsdkims/v2/model/list_image_tags_response.py +20 -14
- huaweicloudsdkims/v2/model/list_images_request.py +272 -121
- huaweicloudsdkims/v2/model/list_images_response.py +20 -14
- huaweicloudsdkims/v2/model/list_images_tags_request.py +13 -10
- huaweicloudsdkims/v2/model/list_images_tags_response.py +20 -14
- huaweicloudsdkims/v2/model/list_os_versions_request.py +20 -13
- huaweicloudsdkims/v2/model/list_os_versions_response.py +20 -16
- huaweicloudsdkims/v2/model/list_os_versions_response_body.py +24 -17
- huaweicloudsdkims/v2/model/list_tags_request.py +118 -55
- huaweicloudsdkims/v2/model/list_tags_response.py +19 -13
- huaweicloudsdkims/v2/model/list_versions_request.py +84 -0
- huaweicloudsdkims/v2/model/list_versions_response.py +116 -0
- huaweicloudsdkims/v2/model/os_version_info.py +38 -25
- huaweicloudsdkims/v2/model/os_version_response.py +172 -0
- huaweicloudsdkims/v2/model/query_image_by_tags_resource_detail.py +18 -13
- huaweicloudsdkims/v2/model/quick_import_image_by_file_request_body.py +130 -47
- huaweicloudsdkims/v2/model/quota.py +19 -14
- huaweicloudsdkims/v2/model/quota_info.py +38 -25
- huaweicloudsdkims/v2/model/register_image_request.py +26 -19
- huaweicloudsdkims/v2/model/register_image_request_body.py +18 -13
- huaweicloudsdkims/v2/model/register_image_response.py +19 -13
- huaweicloudsdkims/v2/model/resource_tag.py +23 -16
- huaweicloudsdkims/v2/model/show_image_by_tags_resource.py +47 -38
- huaweicloudsdkims/v2/model/show_image_member_request.py +142 -0
- huaweicloudsdkims/v2/model/show_image_member_response.py +319 -0
- huaweicloudsdkims/v2/model/show_image_quota_request.py +13 -10
- huaweicloudsdkims/v2/model/show_image_quota_response.py +20 -16
- huaweicloudsdkims/v2/model/show_job_progress_request.py +114 -0
- huaweicloudsdkims/v2/model/show_job_progress_response.py +315 -0
- huaweicloudsdkims/v2/model/show_job_request.py +20 -13
- huaweicloudsdkims/v2/model/show_job_response.py +55 -37
- huaweicloudsdkims/v2/model/show_version_request.py +114 -0
- huaweicloudsdkims/v2/model/show_version_response.py +116 -0
- huaweicloudsdkims/v2/model/sub_job_entities.py +144 -0
- huaweicloudsdkims/v2/model/sub_job_result.py +314 -0
- huaweicloudsdkims/v2/model/tag_key_value.py +23 -16
- huaweicloudsdkims/v2/model/tags.py +23 -16
- huaweicloudsdkims/v2/model/update_image_request.py +26 -19
- huaweicloudsdkims/v2/model/update_image_request_body.py +29 -21
- huaweicloudsdkims/v2/model/update_image_response.py +600 -254
- huaweicloudsdkims/v2/region/ims_region.py +101 -42
- {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/METADATA +9 -9
- huaweicloudsdkims-3.1.160.dist-info/RECORD +158 -0
- {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/WHEEL +1 -1
- huaweicloudsdkims/v2/model/glance_show_image_response_body.py +0 -1357
- huaweicloudsdkims-3.0.43rc0.dist-info/RECORD +0 -129
- {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/LICENSE +0 -0
- {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/top_level.txt +0 -0
@@ -1,17 +1,12 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
import pprint
|
4
|
-
import re
|
5
|
-
|
6
3
|
import six
|
7
4
|
|
8
|
-
|
9
|
-
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
10
6
|
|
11
7
|
|
12
8
|
class QuotaInfo:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class QuotaInfo:
|
|
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 = {
|
@@ -39,7 +33,21 @@ class QuotaInfo:
|
|
39
33
|
}
|
40
34
|
|
41
35
|
def __init__(self, type=None, used=None, quota=None, min=None, max=None):
|
42
|
-
"""QuotaInfo
|
36
|
+
r"""QuotaInfo
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param type: 查询的资源类型。
|
41
|
+
:type type: str
|
42
|
+
:param used: 已使用的资源配额。
|
43
|
+
:type used: int
|
44
|
+
:param quota: 查询出的资源的总配额。
|
45
|
+
:type quota: int
|
46
|
+
:param min: 资源的最小配额。
|
47
|
+
:type min: int
|
48
|
+
:param max: 资源的最大配额。
|
49
|
+
:type max: int
|
50
|
+
"""
|
43
51
|
|
44
52
|
|
45
53
|
|
@@ -58,7 +66,7 @@ class QuotaInfo:
|
|
58
66
|
|
59
67
|
@property
|
60
68
|
def type(self):
|
61
|
-
"""Gets the type of this QuotaInfo.
|
69
|
+
r"""Gets the type of this QuotaInfo.
|
62
70
|
|
63
71
|
查询的资源类型。
|
64
72
|
|
@@ -69,18 +77,18 @@ class QuotaInfo:
|
|
69
77
|
|
70
78
|
@type.setter
|
71
79
|
def type(self, type):
|
72
|
-
"""Sets the type of this QuotaInfo.
|
80
|
+
r"""Sets the type of this QuotaInfo.
|
73
81
|
|
74
82
|
查询的资源类型。
|
75
83
|
|
76
84
|
:param type: The type of this QuotaInfo.
|
77
|
-
:type: str
|
85
|
+
:type type: str
|
78
86
|
"""
|
79
87
|
self._type = type
|
80
88
|
|
81
89
|
@property
|
82
90
|
def used(self):
|
83
|
-
"""Gets the used of this QuotaInfo.
|
91
|
+
r"""Gets the used of this QuotaInfo.
|
84
92
|
|
85
93
|
已使用的资源配额。
|
86
94
|
|
@@ -91,18 +99,18 @@ class QuotaInfo:
|
|
91
99
|
|
92
100
|
@used.setter
|
93
101
|
def used(self, used):
|
94
|
-
"""Sets the used of this QuotaInfo.
|
102
|
+
r"""Sets the used of this QuotaInfo.
|
95
103
|
|
96
104
|
已使用的资源配额。
|
97
105
|
|
98
106
|
:param used: The used of this QuotaInfo.
|
99
|
-
:type: int
|
107
|
+
:type used: int
|
100
108
|
"""
|
101
109
|
self._used = used
|
102
110
|
|
103
111
|
@property
|
104
112
|
def quota(self):
|
105
|
-
"""Gets the quota of this QuotaInfo.
|
113
|
+
r"""Gets the quota of this QuotaInfo.
|
106
114
|
|
107
115
|
查询出的资源的总配额。
|
108
116
|
|
@@ -113,18 +121,18 @@ class QuotaInfo:
|
|
113
121
|
|
114
122
|
@quota.setter
|
115
123
|
def quota(self, quota):
|
116
|
-
"""Sets the quota of this QuotaInfo.
|
124
|
+
r"""Sets the quota of this QuotaInfo.
|
117
125
|
|
118
126
|
查询出的资源的总配额。
|
119
127
|
|
120
128
|
:param quota: The quota of this QuotaInfo.
|
121
|
-
:type: int
|
129
|
+
:type quota: int
|
122
130
|
"""
|
123
131
|
self._quota = quota
|
124
132
|
|
125
133
|
@property
|
126
134
|
def min(self):
|
127
|
-
"""Gets the min of this QuotaInfo.
|
135
|
+
r"""Gets the min of this QuotaInfo.
|
128
136
|
|
129
137
|
资源的最小配额。
|
130
138
|
|
@@ -135,18 +143,18 @@ class QuotaInfo:
|
|
135
143
|
|
136
144
|
@min.setter
|
137
145
|
def min(self, min):
|
138
|
-
"""Sets the min of this QuotaInfo.
|
146
|
+
r"""Sets the min of this QuotaInfo.
|
139
147
|
|
140
148
|
资源的最小配额。
|
141
149
|
|
142
150
|
:param min: The min of this QuotaInfo.
|
143
|
-
:type: int
|
151
|
+
:type min: int
|
144
152
|
"""
|
145
153
|
self._min = min
|
146
154
|
|
147
155
|
@property
|
148
156
|
def max(self):
|
149
|
-
"""Gets the max of this QuotaInfo.
|
157
|
+
r"""Gets the max of this QuotaInfo.
|
150
158
|
|
151
159
|
资源的最大配额。
|
152
160
|
|
@@ -157,12 +165,12 @@ class QuotaInfo:
|
|
157
165
|
|
158
166
|
@max.setter
|
159
167
|
def max(self, max):
|
160
|
-
"""Sets the max of this QuotaInfo.
|
168
|
+
r"""Sets the max of this QuotaInfo.
|
161
169
|
|
162
170
|
资源的最大配额。
|
163
171
|
|
164
172
|
:param max: The max of this QuotaInfo.
|
165
|
-
:type: int
|
173
|
+
:type max: int
|
166
174
|
"""
|
167
175
|
self._max = max
|
168
176
|
|
@@ -195,10 +203,15 @@ class QuotaInfo:
|
|
195
203
|
|
196
204
|
def to_str(self):
|
197
205
|
"""Returns the string representation of the model"""
|
198
|
-
|
206
|
+
import simplejson as json
|
207
|
+
if six.PY2:
|
208
|
+
import sys
|
209
|
+
reload(sys)
|
210
|
+
sys.setdefaultencoding("utf-8")
|
211
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
199
212
|
|
200
213
|
def __repr__(self):
|
201
|
-
"""For `print`
|
214
|
+
"""For `print`"""
|
202
215
|
return self.to_str()
|
203
216
|
|
204
217
|
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 RegisterImageRequest:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class RegisterImageRequest:
|
|
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 RegisterImageRequest:
|
|
33
27
|
}
|
34
28
|
|
35
29
|
def __init__(self, image_id=None, body=None):
|
36
|
-
"""RegisterImageRequest
|
30
|
+
r"""RegisterImageRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param image_id: 镜像ID。 image_id为用户调用创建镜像元数据接口所创建出来镜像的id,使用其他方式创建的镜像id会导致注册失败。 注册接口调用成功后,请根据镜像id查询镜像的状态。镜像状态变为active表示镜像注册成功,详情请参见查询镜像详情(OpenStack原生)。
|
35
|
+
:type image_id: str
|
36
|
+
:param body: Body of the RegisterImageRequest
|
37
|
+
:type body: :class:`huaweicloudsdkims.v2.RegisterImageRequestBody`
|
38
|
+
"""
|
37
39
|
|
38
40
|
|
39
41
|
|
@@ -47,8 +49,9 @@ class RegisterImageRequest:
|
|
47
49
|
|
48
50
|
@property
|
49
51
|
def image_id(self):
|
50
|
-
"""Gets the image_id of this RegisterImageRequest.
|
52
|
+
r"""Gets the image_id of this RegisterImageRequest.
|
51
53
|
|
54
|
+
镜像ID。 image_id为用户调用创建镜像元数据接口所创建出来镜像的id,使用其他方式创建的镜像id会导致注册失败。 注册接口调用成功后,请根据镜像id查询镜像的状态。镜像状态变为active表示镜像注册成功,详情请参见查询镜像详情(OpenStack原生)。
|
52
55
|
|
53
56
|
:return: The image_id of this RegisterImageRequest.
|
54
57
|
:rtype: str
|
@@ -57,31 +60,30 @@ class RegisterImageRequest:
|
|
57
60
|
|
58
61
|
@image_id.setter
|
59
62
|
def image_id(self, image_id):
|
60
|
-
"""Sets the image_id of this RegisterImageRequest.
|
63
|
+
r"""Sets the image_id of this RegisterImageRequest.
|
61
64
|
|
65
|
+
镜像ID。 image_id为用户调用创建镜像元数据接口所创建出来镜像的id,使用其他方式创建的镜像id会导致注册失败。 注册接口调用成功后,请根据镜像id查询镜像的状态。镜像状态变为active表示镜像注册成功,详情请参见查询镜像详情(OpenStack原生)。
|
62
66
|
|
63
67
|
:param image_id: The image_id of this RegisterImageRequest.
|
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 RegisterImageRequest.
|
71
|
-
|
74
|
+
r"""Gets the body of this RegisterImageRequest.
|
72
75
|
|
73
76
|
:return: The body of this RegisterImageRequest.
|
74
|
-
:rtype: RegisterImageRequestBody
|
77
|
+
:rtype: :class:`huaweicloudsdkims.v2.RegisterImageRequestBody`
|
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 RegisterImageRequest.
|
81
|
-
|
83
|
+
r"""Sets the body of this RegisterImageRequest.
|
82
84
|
|
83
85
|
:param body: The body of this RegisterImageRequest.
|
84
|
-
:type: RegisterImageRequestBody
|
86
|
+
:type body: :class:`huaweicloudsdkims.v2.RegisterImageRequestBody`
|
85
87
|
"""
|
86
88
|
self._body = body
|
87
89
|
|
@@ -114,10 +116,15 @@ class RegisterImageRequest:
|
|
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 RegisterImageRequestBody:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class RegisterImageRequestBody:
|
|
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 RegisterImageRequestBody:
|
|
31
25
|
}
|
32
26
|
|
33
27
|
def __init__(self, image_url=None):
|
34
|
-
"""RegisterImageRequestBody
|
28
|
+
r"""RegisterImageRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param image_url: 源镜像的URL,格式:<bucket>:<file> image_url对应的镜像桶中的文件,镜像文件格式的取值范围为:ZVHD、QCOW2、VHD、RAW、VHDX、QED、VDI、QCOW、ZVHD2、VMDK。
|
33
|
+
:type image_url: str
|
34
|
+
"""
|
35
35
|
|
36
36
|
|
37
37
|
|
@@ -42,7 +42,7 @@ class RegisterImageRequestBody:
|
|
42
42
|
|
43
43
|
@property
|
44
44
|
def image_url(self):
|
45
|
-
"""Gets the image_url of this RegisterImageRequestBody.
|
45
|
+
r"""Gets the image_url of this RegisterImageRequestBody.
|
46
46
|
|
47
47
|
源镜像的URL,格式:<bucket>:<file> image_url对应的镜像桶中的文件,镜像文件格式的取值范围为:ZVHD、QCOW2、VHD、RAW、VHDX、QED、VDI、QCOW、ZVHD2、VMDK。
|
48
48
|
|
@@ -53,12 +53,12 @@ class RegisterImageRequestBody:
|
|
53
53
|
|
54
54
|
@image_url.setter
|
55
55
|
def image_url(self, image_url):
|
56
|
-
"""Sets the image_url of this RegisterImageRequestBody.
|
56
|
+
r"""Sets the image_url of this RegisterImageRequestBody.
|
57
57
|
|
58
58
|
源镜像的URL,格式:<bucket>:<file> image_url对应的镜像桶中的文件,镜像文件格式的取值范围为:ZVHD、QCOW2、VHD、RAW、VHDX、QED、VDI、QCOW、ZVHD2、VMDK。
|
59
59
|
|
60
60
|
:param image_url: The image_url of this RegisterImageRequestBody.
|
61
|
-
:type: str
|
61
|
+
:type image_url: str
|
62
62
|
"""
|
63
63
|
self._image_url = image_url
|
64
64
|
|
@@ -91,10 +91,15 @@ class RegisterImageRequestBody:
|
|
91
91
|
|
92
92
|
def to_str(self):
|
93
93
|
"""Returns the string representation of the model"""
|
94
|
-
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
95
100
|
|
96
101
|
def __repr__(self):
|
97
|
-
"""For `print`
|
102
|
+
"""For `print`"""
|
98
103
|
return self.to_str()
|
99
104
|
|
100
105
|
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 RegisterImageResponse(SdkResponse):
|
13
10
|
|
14
|
-
|
15
11
|
"""
|
16
12
|
Attributes:
|
17
13
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +15,6 @@ class RegisterImageResponse(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 RegisterImageResponse(SdkResponse):
|
|
31
26
|
}
|
32
27
|
|
33
28
|
def __init__(self, job_id=None):
|
34
|
-
"""RegisterImageResponse
|
29
|
+
r"""RegisterImageResponse
|
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(RegisterImageResponse, self).__init__()
|
37
38
|
|
38
39
|
self._job_id = None
|
39
40
|
self.discriminator = None
|
@@ -43,7 +44,7 @@ class RegisterImageResponse(SdkResponse):
|
|
43
44
|
|
44
45
|
@property
|
45
46
|
def job_id(self):
|
46
|
-
"""Gets the job_id of this RegisterImageResponse.
|
47
|
+
r"""Gets the job_id of this RegisterImageResponse.
|
47
48
|
|
48
49
|
异步任务ID。
|
49
50
|
|
@@ -54,12 +55,12 @@ class RegisterImageResponse(SdkResponse):
|
|
54
55
|
|
55
56
|
@job_id.setter
|
56
57
|
def job_id(self, job_id):
|
57
|
-
"""Sets the job_id of this RegisterImageResponse.
|
58
|
+
r"""Sets the job_id of this RegisterImageResponse.
|
58
59
|
|
59
60
|
异步任务ID。
|
60
61
|
|
61
62
|
:param job_id: The job_id of this RegisterImageResponse.
|
62
|
-
:type: str
|
63
|
+
:type job_id: str
|
63
64
|
"""
|
64
65
|
self._job_id = job_id
|
65
66
|
|
@@ -92,10 +93,15 @@ class RegisterImageResponse(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 ResourceTag:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class ResourceTag:
|
|
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 ResourceTag:
|
|
33
27
|
}
|
34
28
|
|
35
29
|
def __init__(self, key=None, value=None):
|
36
|
-
"""ResourceTag
|
30
|
+
r"""ResourceTag
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param key: 标签的键
|
35
|
+
:type key: str
|
36
|
+
:param value: 标签的值
|
37
|
+
:type value: str
|
38
|
+
"""
|
37
39
|
|
38
40
|
|
39
41
|
|
@@ -46,7 +48,7 @@ class ResourceTag:
|
|
46
48
|
|
47
49
|
@property
|
48
50
|
def key(self):
|
49
|
-
"""Gets the key of this ResourceTag.
|
51
|
+
r"""Gets the key of this ResourceTag.
|
50
52
|
|
51
53
|
标签的键
|
52
54
|
|
@@ -57,18 +59,18 @@ class ResourceTag:
|
|
57
59
|
|
58
60
|
@key.setter
|
59
61
|
def key(self, key):
|
60
|
-
"""Sets the key of this ResourceTag.
|
62
|
+
r"""Sets the key of this ResourceTag.
|
61
63
|
|
62
64
|
标签的键
|
63
65
|
|
64
66
|
:param key: The key of this ResourceTag.
|
65
|
-
:type: str
|
67
|
+
:type key: str
|
66
68
|
"""
|
67
69
|
self._key = key
|
68
70
|
|
69
71
|
@property
|
70
72
|
def value(self):
|
71
|
-
"""Gets the value of this ResourceTag.
|
73
|
+
r"""Gets the value of this ResourceTag.
|
72
74
|
|
73
75
|
标签的值
|
74
76
|
|
@@ -79,12 +81,12 @@ class ResourceTag:
|
|
79
81
|
|
80
82
|
@value.setter
|
81
83
|
def value(self, value):
|
82
|
-
"""Sets the value of this ResourceTag.
|
84
|
+
r"""Sets the value of this ResourceTag.
|
83
85
|
|
84
86
|
标签的值
|
85
87
|
|
86
88
|
:param value: The value of this ResourceTag.
|
87
|
-
:type: str
|
89
|
+
:type value: str
|
88
90
|
"""
|
89
91
|
self._value = value
|
90
92
|
|
@@ -117,10 +119,15 @@ class ResourceTag:
|
|
117
119
|
|
118
120
|
def to_str(self):
|
119
121
|
"""Returns the string representation of the model"""
|
120
|
-
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
121
128
|
|
122
129
|
def __repr__(self):
|
123
|
-
"""For `print`
|
130
|
+
"""For `print`"""
|
124
131
|
return self.to_str()
|
125
132
|
|
126
133
|
def __eq__(self, other):
|