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.
Files changed (158) hide show
  1. huaweicloudsdkims/v2/__init__.py +31 -3
  2. huaweicloudsdkims/v2/ims_async_client.py +2198 -1356
  3. huaweicloudsdkims/v2/ims_client.py +2188 -1347
  4. huaweicloudsdkims/v2/model/__init__.py +30 -1
  5. huaweicloudsdkims/v2/model/add_image_tag_request.py +26 -19
  6. huaweicloudsdkims/v2/model/add_image_tag_request_body.py +19 -16
  7. huaweicloudsdkims/v2/model/add_image_tag_response.py +14 -10
  8. huaweicloudsdkims/v2/model/add_or_update_tags_request_body.py +29 -22
  9. huaweicloudsdkims/v2/model/additional_properties.py +18 -13
  10. huaweicloudsdkims/v2/model/batch_add_members_request.py +19 -16
  11. huaweicloudsdkims/v2/model/batch_add_members_request_body.py +84 -19
  12. huaweicloudsdkims/v2/model/batch_add_members_response.py +19 -13
  13. huaweicloudsdkims/v2/model/batch_add_or_delete_tags_request.py +26 -19
  14. huaweicloudsdkims/v2/model/batch_add_or_delete_tags_request_body.py +24 -17
  15. huaweicloudsdkims/v2/model/batch_add_or_delete_tags_response.py +14 -10
  16. huaweicloudsdkims/v2/model/batch_delete_members_request.py +19 -16
  17. huaweicloudsdkims/v2/model/batch_delete_members_response.py +19 -13
  18. huaweicloudsdkims/v2/model/batch_delete_tags_request.py +139 -0
  19. huaweicloudsdkims/v2/model/batch_delete_tags_request_body.py +114 -0
  20. huaweicloudsdkims/v2/model/batch_delete_tags_response.py +85 -0
  21. huaweicloudsdkims/v2/model/batch_update_members_request.py +19 -16
  22. huaweicloudsdkims/v2/model/batch_update_members_request_body.py +33 -22
  23. huaweicloudsdkims/v2/model/batch_update_members_response.py +19 -13
  24. huaweicloudsdkims/v2/model/copy_image_cross_region_request.py +26 -19
  25. huaweicloudsdkims/v2/model/copy_image_cross_region_request_body.py +70 -28
  26. huaweicloudsdkims/v2/model/copy_image_cross_region_response.py +19 -13
  27. huaweicloudsdkims/v2/model/copy_image_in_region_in_safe_mode_request.py +139 -0
  28. huaweicloudsdkims/v2/model/copy_image_in_region_in_safe_mode_response.py +116 -0
  29. huaweicloudsdkims/v2/model/copy_image_in_region_request.py +26 -19
  30. huaweicloudsdkims/v2/model/copy_image_in_region_request_body.py +33 -22
  31. huaweicloudsdkims/v2/model/copy_image_in_region_response.py +19 -13
  32. huaweicloudsdkims/v2/model/create_data_image.py +33 -22
  33. huaweicloudsdkims/v2/model/create_data_image_in_safe_mode_request.py +111 -0
  34. huaweicloudsdkims/v2/model/create_data_image_in_safe_mode_response.py +116 -0
  35. huaweicloudsdkims/v2/model/create_data_image_request.py +19 -16
  36. huaweicloudsdkims/v2/model/create_data_image_request_body.py +63 -41
  37. huaweicloudsdkims/v2/model/create_data_image_response.py +19 -13
  38. huaweicloudsdkims/v2/model/create_image_in_safe_mode_request.py +111 -0
  39. huaweicloudsdkims/v2/model/create_image_in_safe_mode_response.py +116 -0
  40. huaweicloudsdkims/v2/model/create_image_request.py +19 -16
  41. huaweicloudsdkims/v2/model/create_image_request_body.py +139 -70
  42. huaweicloudsdkims/v2/model/create_image_response.py +19 -13
  43. huaweicloudsdkims/v2/model/create_or_update_tags_request.py +19 -16
  44. huaweicloudsdkims/v2/model/create_or_update_tags_response.py +14 -10
  45. huaweicloudsdkims/v2/model/create_whole_image_request.py +19 -16
  46. huaweicloudsdkims/v2/model/create_whole_image_request_body.py +74 -50
  47. huaweicloudsdkims/v2/model/create_whole_image_response.py +19 -13
  48. huaweicloudsdkims/v2/model/delete_image_tag_request.py +27 -16
  49. huaweicloudsdkims/v2/model/delete_image_tag_response.py +14 -10
  50. huaweicloudsdkims/v2/model/export_image_in_safe_mode_request.py +139 -0
  51. huaweicloudsdkims/v2/model/export_image_in_safe_mode_response.py +116 -0
  52. huaweicloudsdkims/v2/model/export_image_request.py +26 -19
  53. huaweicloudsdkims/v2/model/export_image_request_body.py +55 -19
  54. huaweicloudsdkims/v2/model/export_image_response.py +19 -13
  55. huaweicloudsdkims/v2/model/glance_add_image_member_request.py +26 -19
  56. huaweicloudsdkims/v2/model/glance_add_image_member_request_body.py +18 -13
  57. huaweicloudsdkims/v2/model/glance_add_image_member_response.py +105 -31
  58. huaweicloudsdkims/v2/model/glance_create_image_metadata_request.py +19 -16
  59. huaweicloudsdkims/v2/model/glance_create_image_metadata_request_body.py +58 -37
  60. huaweicloudsdkims/v2/model/glance_create_image_metadata_response.py +239 -94
  61. huaweicloudsdkims/v2/model/glance_create_tag_request.py +27 -16
  62. huaweicloudsdkims/v2/model/glance_create_tag_response.py +14 -10
  63. huaweicloudsdkims/v2/model/glance_delete_image_member_request.py +27 -16
  64. huaweicloudsdkims/v2/model/glance_delete_image_member_response.py +14 -10
  65. huaweicloudsdkims/v2/model/glance_delete_image_request.py +26 -19
  66. huaweicloudsdkims/v2/model/glance_delete_image_request_body.py +18 -13
  67. huaweicloudsdkims/v2/model/glance_delete_image_response.py +14 -10
  68. huaweicloudsdkims/v2/model/glance_delete_tag_request.py +27 -16
  69. huaweicloudsdkims/v2/model/glance_delete_tag_response.py +14 -10
  70. huaweicloudsdkims/v2/model/glance_image_members.py +104 -31
  71. huaweicloudsdkims/v2/model/glance_list_image_member_schemas_request.py +13 -10
  72. huaweicloudsdkims/v2/model/glance_list_image_member_schemas_response.py +30 -20
  73. huaweicloudsdkims/v2/model/glance_list_image_members_request.py +20 -13
  74. huaweicloudsdkims/v2/model/glance_list_image_members_response.py +25 -17
  75. huaweicloudsdkims/v2/model/glance_list_image_schemas_request.py +13 -10
  76. huaweicloudsdkims/v2/model/glance_list_image_schemas_response.py +30 -20
  77. huaweicloudsdkims/v2/model/glance_list_images_request.py +237 -106
  78. huaweicloudsdkims/v2/model/glance_list_images_response.py +36 -24
  79. huaweicloudsdkims/v2/model/glance_show_image_list_response_body.py +1833 -0
  80. huaweicloudsdkims/v2/model/glance_show_image_member_request.py +27 -16
  81. huaweicloudsdkims/v2/model/glance_show_image_member_response.py +105 -31
  82. huaweicloudsdkims/v2/model/glance_show_image_member_schemas_request.py +13 -10
  83. huaweicloudsdkims/v2/model/glance_show_image_member_schemas_response.py +24 -16
  84. huaweicloudsdkims/v2/model/glance_show_image_request.py +20 -13
  85. huaweicloudsdkims/v2/model/glance_show_image_response.py +631 -210
  86. huaweicloudsdkims/v2/model/glance_show_image_schemas_request.py +13 -10
  87. huaweicloudsdkims/v2/model/glance_show_image_schemas_response.py +36 -26
  88. huaweicloudsdkims/v2/model/glance_update_image_member_request.py +33 -22
  89. huaweicloudsdkims/v2/model/glance_update_image_member_request_body.py +23 -16
  90. huaweicloudsdkims/v2/model/glance_update_image_member_response.py +105 -31
  91. huaweicloudsdkims/v2/model/glance_update_image_request.py +26 -19
  92. huaweicloudsdkims/v2/model/glance_update_image_request_body.py +28 -19
  93. huaweicloudsdkims/v2/model/glance_update_image_response.py +631 -210
  94. huaweicloudsdkims/v2/model/image_info.py +616 -260
  95. huaweicloudsdkims/v2/model/image_member.py +310 -0
  96. huaweicloudsdkims/v2/model/image_tag.py +23 -16
  97. huaweicloudsdkims/v2/model/import_image_quick_in_safe_mode_request.py +111 -0
  98. huaweicloudsdkims/v2/model/import_image_quick_in_safe_mode_response.py +116 -0
  99. huaweicloudsdkims/v2/model/import_image_quick_request.py +19 -16
  100. huaweicloudsdkims/v2/model/import_image_quick_response.py +19 -13
  101. huaweicloudsdkims/v2/model/job_entities.py +340 -16
  102. huaweicloudsdkims/v2/model/job_entities_result.py +173 -0
  103. huaweicloudsdkims/v2/model/job_progress_entities.py +289 -0
  104. huaweicloudsdkims/v2/model/links.py +23 -16
  105. huaweicloudsdkims/v2/model/list_image_by_tags_request.py +19 -16
  106. huaweicloudsdkims/v2/model/list_image_by_tags_request_body.py +90 -42
  107. huaweicloudsdkims/v2/model/list_image_by_tags_response.py +25 -17
  108. huaweicloudsdkims/v2/model/list_image_members_request.py +114 -0
  109. huaweicloudsdkims/v2/model/list_image_members_response.py +145 -0
  110. huaweicloudsdkims/v2/model/list_image_tags_request.py +20 -13
  111. huaweicloudsdkims/v2/model/list_image_tags_response.py +20 -14
  112. huaweicloudsdkims/v2/model/list_images_request.py +272 -121
  113. huaweicloudsdkims/v2/model/list_images_response.py +20 -14
  114. huaweicloudsdkims/v2/model/list_images_tags_request.py +13 -10
  115. huaweicloudsdkims/v2/model/list_images_tags_response.py +20 -14
  116. huaweicloudsdkims/v2/model/list_os_versions_request.py +20 -13
  117. huaweicloudsdkims/v2/model/list_os_versions_response.py +20 -16
  118. huaweicloudsdkims/v2/model/list_os_versions_response_body.py +24 -17
  119. huaweicloudsdkims/v2/model/list_tags_request.py +118 -55
  120. huaweicloudsdkims/v2/model/list_tags_response.py +19 -13
  121. huaweicloudsdkims/v2/model/list_versions_request.py +84 -0
  122. huaweicloudsdkims/v2/model/list_versions_response.py +116 -0
  123. huaweicloudsdkims/v2/model/os_version_info.py +38 -25
  124. huaweicloudsdkims/v2/model/os_version_response.py +172 -0
  125. huaweicloudsdkims/v2/model/query_image_by_tags_resource_detail.py +18 -13
  126. huaweicloudsdkims/v2/model/quick_import_image_by_file_request_body.py +130 -47
  127. huaweicloudsdkims/v2/model/quota.py +19 -14
  128. huaweicloudsdkims/v2/model/quota_info.py +38 -25
  129. huaweicloudsdkims/v2/model/register_image_request.py +26 -19
  130. huaweicloudsdkims/v2/model/register_image_request_body.py +18 -13
  131. huaweicloudsdkims/v2/model/register_image_response.py +19 -13
  132. huaweicloudsdkims/v2/model/resource_tag.py +23 -16
  133. huaweicloudsdkims/v2/model/show_image_by_tags_resource.py +47 -38
  134. huaweicloudsdkims/v2/model/show_image_member_request.py +142 -0
  135. huaweicloudsdkims/v2/model/show_image_member_response.py +319 -0
  136. huaweicloudsdkims/v2/model/show_image_quota_request.py +13 -10
  137. huaweicloudsdkims/v2/model/show_image_quota_response.py +20 -16
  138. huaweicloudsdkims/v2/model/show_job_progress_request.py +114 -0
  139. huaweicloudsdkims/v2/model/show_job_progress_response.py +315 -0
  140. huaweicloudsdkims/v2/model/show_job_request.py +20 -13
  141. huaweicloudsdkims/v2/model/show_job_response.py +55 -37
  142. huaweicloudsdkims/v2/model/show_version_request.py +114 -0
  143. huaweicloudsdkims/v2/model/show_version_response.py +116 -0
  144. huaweicloudsdkims/v2/model/sub_job_entities.py +144 -0
  145. huaweicloudsdkims/v2/model/sub_job_result.py +314 -0
  146. huaweicloudsdkims/v2/model/tag_key_value.py +23 -16
  147. huaweicloudsdkims/v2/model/tags.py +23 -16
  148. huaweicloudsdkims/v2/model/update_image_request.py +26 -19
  149. huaweicloudsdkims/v2/model/update_image_request_body.py +29 -21
  150. huaweicloudsdkims/v2/model/update_image_response.py +600 -254
  151. huaweicloudsdkims/v2/region/ims_region.py +101 -42
  152. {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/METADATA +9 -9
  153. huaweicloudsdkims-3.1.160.dist-info/RECORD +158 -0
  154. {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/WHEEL +1 -1
  155. huaweicloudsdkims/v2/model/glance_show_image_response_body.py +0 -1357
  156. huaweicloudsdkims-3.0.43rc0.dist-info/RECORD +0 -129
  157. {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/LICENSE +0 -0
  158. {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 ListTagsRequest:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class ListTagsRequest:
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 = {
@@ -59,7 +53,41 @@ class ListTagsRequest:
59
53
  }
60
54
 
61
55
  def __init__(self, limit=None, page=None, imagetype=None, id=None, status=None, name=None, min_disk=None, platform=None, os_type=None, member_status=None, virtual_env_type=None, enterprise_project_id=None, architecture=None, created_at=None, updated_at=None):
62
- """ListTagsRequest - a model defined in huaweicloud sdk"""
56
+ r"""ListTagsRequest
57
+
58
+ The model defined in huaweicloud sdk
59
+
60
+ :param limit: 用于分页,表示查询几条记录,取值为整数,默认为所有。
61
+ :type limit: int
62
+ :param page: 页码,表示需要查询第几页的数据。默认值为1。
63
+ :type page: int
64
+ :param imagetype: 镜像类型,目前支持以下类型:公共镜像:gold私有镜像:private共享镜像:shared 市场镜像:market
65
+ :type imagetype: str
66
+ :param id: 镜像ID。
67
+ :type id: str
68
+ :param status: 镜像状态。取值如下: queued:表示镜像元数据已经创建成功,等待上传镜像文件。 saving:表示镜像正在上传文件到后端存储。 deleted:表示镜像已经删除。 killed:表示镜像上传错误。 active:表示镜像可以正常使用。
69
+ :type status: str
70
+ :param name: 镜像名称。
71
+ :type name: str
72
+ :param min_disk: 镜像运行需要的最小磁盘,单位为GB 。
73
+ :type min_disk: int
74
+ :param platform: 镜像平台分类。
75
+ :type platform: str
76
+ :param os_type: 镜像系统类型,取值如下:Linux,Windows,Other
77
+ :type os_type: str
78
+ :param member_status: 成员状态。目前取值有accepted、rejected、pending。
79
+ :type member_status: str
80
+ :param virtual_env_type: 镜像使用环境类型:FusionCompute、Ironic、DataImage。
81
+ :type virtual_env_type: str
82
+ :param enterprise_project_id: 表示查询某个企业项目下的镜像。
83
+ :type enterprise_project_id: str
84
+ :param architecture: 镜像架构类型。取值包括:x86,arm
85
+ :type architecture: str
86
+ :param created_at: 镜像创建时间。支持按照时间点过滤查询,取值格式为“操作符:UTC时间”。 其中操作符支持如下几种: gt:大于 gte:大于等于 lt:小于 lte:小于等于 eq:等于 neq:不等于 时间格式支持:yyyy-MM-ddThh:mm:ssZ或者yyyy-MM-dd hh:mm:ss 例如,查询创建时间在2018-10-28 10:00:00之前的镜像,可以通过如下条件过滤: created_at=gt:2018-10-28T10:00:00Z
87
+ :type created_at: str
88
+ :param updated_at: 镜像修改时间。支持按照时间点过滤查询,取值格式为“ 操作符:UTC时间”。 其中操作符支持如下几种: gt:大于 gte:大于等于 lt:小于 lte:小于等于 eq:等于 neq:不等于 时间格式支持:yyyy-MM-ddThh:mm:ssZ或者yyyy-MM-dd hh:mm:ss 例如,查询修改时间在2018-10-28 10:00:00之前的镜像,可以通过如下条件过滤: updated_at=gt:2018-10-28T10:00:00Z
89
+ :type updated_at: str
90
+ """
63
91
 
64
92
 
65
93
 
@@ -113,8 +141,9 @@ class ListTagsRequest:
113
141
 
114
142
  @property
115
143
  def limit(self):
116
- """Gets the limit of this ListTagsRequest.
144
+ r"""Gets the limit of this ListTagsRequest.
117
145
 
146
+ 用于分页,表示查询几条记录,取值为整数,默认为所有。
118
147
 
119
148
  :return: The limit of this ListTagsRequest.
120
149
  :rtype: int
@@ -123,18 +152,20 @@ class ListTagsRequest:
123
152
 
124
153
  @limit.setter
125
154
  def limit(self, limit):
126
- """Sets the limit of this ListTagsRequest.
155
+ r"""Sets the limit of this ListTagsRequest.
127
156
 
157
+ 用于分页,表示查询几条记录,取值为整数,默认为所有。
128
158
 
129
159
  :param limit: The limit of this ListTagsRequest.
130
- :type: int
160
+ :type limit: int
131
161
  """
132
162
  self._limit = limit
133
163
 
134
164
  @property
135
165
  def page(self):
136
- """Gets the page of this ListTagsRequest.
166
+ r"""Gets the page of this ListTagsRequest.
137
167
 
168
+ 页码,表示需要查询第几页的数据。默认值为1。
138
169
 
139
170
  :return: The page of this ListTagsRequest.
140
171
  :rtype: int
@@ -143,18 +174,20 @@ class ListTagsRequest:
143
174
 
144
175
  @page.setter
145
176
  def page(self, page):
146
- """Sets the page of this ListTagsRequest.
177
+ r"""Sets the page of this ListTagsRequest.
147
178
 
179
+ 页码,表示需要查询第几页的数据。默认值为1。
148
180
 
149
181
  :param page: The page of this ListTagsRequest.
150
- :type: int
182
+ :type page: int
151
183
  """
152
184
  self._page = page
153
185
 
154
186
  @property
155
187
  def imagetype(self):
156
- """Gets the imagetype of this ListTagsRequest.
188
+ r"""Gets the imagetype of this ListTagsRequest.
157
189
 
190
+ 镜像类型,目前支持以下类型:公共镜像:gold私有镜像:private共享镜像:shared 市场镜像:market
158
191
 
159
192
  :return: The imagetype of this ListTagsRequest.
160
193
  :rtype: str
@@ -163,18 +196,20 @@ class ListTagsRequest:
163
196
 
164
197
  @imagetype.setter
165
198
  def imagetype(self, imagetype):
166
- """Sets the imagetype of this ListTagsRequest.
199
+ r"""Sets the imagetype of this ListTagsRequest.
167
200
 
201
+ 镜像类型,目前支持以下类型:公共镜像:gold私有镜像:private共享镜像:shared 市场镜像:market
168
202
 
169
203
  :param imagetype: The imagetype of this ListTagsRequest.
170
- :type: str
204
+ :type imagetype: str
171
205
  """
172
206
  self._imagetype = imagetype
173
207
 
174
208
  @property
175
209
  def id(self):
176
- """Gets the id of this ListTagsRequest.
210
+ r"""Gets the id of this ListTagsRequest.
177
211
 
212
+ 镜像ID。
178
213
 
179
214
  :return: The id of this ListTagsRequest.
180
215
  :rtype: str
@@ -183,18 +218,20 @@ class ListTagsRequest:
183
218
 
184
219
  @id.setter
185
220
  def id(self, id):
186
- """Sets the id of this ListTagsRequest.
221
+ r"""Sets the id of this ListTagsRequest.
187
222
 
223
+ 镜像ID。
188
224
 
189
225
  :param id: The id of this ListTagsRequest.
190
- :type: str
226
+ :type id: str
191
227
  """
192
228
  self._id = id
193
229
 
194
230
  @property
195
231
  def status(self):
196
- """Gets the status of this ListTagsRequest.
232
+ r"""Gets the status of this ListTagsRequest.
197
233
 
234
+ 镜像状态。取值如下: queued:表示镜像元数据已经创建成功,等待上传镜像文件。 saving:表示镜像正在上传文件到后端存储。 deleted:表示镜像已经删除。 killed:表示镜像上传错误。 active:表示镜像可以正常使用。
198
235
 
199
236
  :return: The status of this ListTagsRequest.
200
237
  :rtype: str
@@ -203,18 +240,20 @@ class ListTagsRequest:
203
240
 
204
241
  @status.setter
205
242
  def status(self, status):
206
- """Sets the status of this ListTagsRequest.
243
+ r"""Sets the status of this ListTagsRequest.
207
244
 
245
+ 镜像状态。取值如下: queued:表示镜像元数据已经创建成功,等待上传镜像文件。 saving:表示镜像正在上传文件到后端存储。 deleted:表示镜像已经删除。 killed:表示镜像上传错误。 active:表示镜像可以正常使用。
208
246
 
209
247
  :param status: The status of this ListTagsRequest.
210
- :type: str
248
+ :type status: str
211
249
  """
212
250
  self._status = status
213
251
 
214
252
  @property
215
253
  def name(self):
216
- """Gets the name of this ListTagsRequest.
254
+ r"""Gets the name of this ListTagsRequest.
217
255
 
256
+ 镜像名称。
218
257
 
219
258
  :return: The name of this ListTagsRequest.
220
259
  :rtype: str
@@ -223,18 +262,20 @@ class ListTagsRequest:
223
262
 
224
263
  @name.setter
225
264
  def name(self, name):
226
- """Sets the name of this ListTagsRequest.
265
+ r"""Sets the name of this ListTagsRequest.
227
266
 
267
+ 镜像名称。
228
268
 
229
269
  :param name: The name of this ListTagsRequest.
230
- :type: str
270
+ :type name: str
231
271
  """
232
272
  self._name = name
233
273
 
234
274
  @property
235
275
  def min_disk(self):
236
- """Gets the min_disk of this ListTagsRequest.
276
+ r"""Gets the min_disk of this ListTagsRequest.
237
277
 
278
+ 镜像运行需要的最小磁盘,单位为GB 。
238
279
 
239
280
  :return: The min_disk of this ListTagsRequest.
240
281
  :rtype: int
@@ -243,18 +284,20 @@ class ListTagsRequest:
243
284
 
244
285
  @min_disk.setter
245
286
  def min_disk(self, min_disk):
246
- """Sets the min_disk of this ListTagsRequest.
287
+ r"""Sets the min_disk of this ListTagsRequest.
247
288
 
289
+ 镜像运行需要的最小磁盘,单位为GB 。
248
290
 
249
291
  :param min_disk: The min_disk of this ListTagsRequest.
250
- :type: int
292
+ :type min_disk: int
251
293
  """
252
294
  self._min_disk = min_disk
253
295
 
254
296
  @property
255
297
  def platform(self):
256
- """Gets the platform of this ListTagsRequest.
298
+ r"""Gets the platform of this ListTagsRequest.
257
299
 
300
+ 镜像平台分类。
258
301
 
259
302
  :return: The platform of this ListTagsRequest.
260
303
  :rtype: str
@@ -263,18 +306,20 @@ class ListTagsRequest:
263
306
 
264
307
  @platform.setter
265
308
  def platform(self, platform):
266
- """Sets the platform of this ListTagsRequest.
309
+ r"""Sets the platform of this ListTagsRequest.
267
310
 
311
+ 镜像平台分类。
268
312
 
269
313
  :param platform: The platform of this ListTagsRequest.
270
- :type: str
314
+ :type platform: str
271
315
  """
272
316
  self._platform = platform
273
317
 
274
318
  @property
275
319
  def os_type(self):
276
- """Gets the os_type of this ListTagsRequest.
320
+ r"""Gets the os_type of this ListTagsRequest.
277
321
 
322
+ 镜像系统类型,取值如下:Linux,Windows,Other
278
323
 
279
324
  :return: The os_type of this ListTagsRequest.
280
325
  :rtype: str
@@ -283,18 +328,20 @@ class ListTagsRequest:
283
328
 
284
329
  @os_type.setter
285
330
  def os_type(self, os_type):
286
- """Sets the os_type of this ListTagsRequest.
331
+ r"""Sets the os_type of this ListTagsRequest.
287
332
 
333
+ 镜像系统类型,取值如下:Linux,Windows,Other
288
334
 
289
335
  :param os_type: The os_type of this ListTagsRequest.
290
- :type: str
336
+ :type os_type: str
291
337
  """
292
338
  self._os_type = os_type
293
339
 
294
340
  @property
295
341
  def member_status(self):
296
- """Gets the member_status of this ListTagsRequest.
342
+ r"""Gets the member_status of this ListTagsRequest.
297
343
 
344
+ 成员状态。目前取值有accepted、rejected、pending。
298
345
 
299
346
  :return: The member_status of this ListTagsRequest.
300
347
  :rtype: str
@@ -303,18 +350,20 @@ class ListTagsRequest:
303
350
 
304
351
  @member_status.setter
305
352
  def member_status(self, member_status):
306
- """Sets the member_status of this ListTagsRequest.
353
+ r"""Sets the member_status of this ListTagsRequest.
307
354
 
355
+ 成员状态。目前取值有accepted、rejected、pending。
308
356
 
309
357
  :param member_status: The member_status of this ListTagsRequest.
310
- :type: str
358
+ :type member_status: str
311
359
  """
312
360
  self._member_status = member_status
313
361
 
314
362
  @property
315
363
  def virtual_env_type(self):
316
- """Gets the virtual_env_type of this ListTagsRequest.
364
+ r"""Gets the virtual_env_type of this ListTagsRequest.
317
365
 
366
+ 镜像使用环境类型:FusionCompute、Ironic、DataImage。
318
367
 
319
368
  :return: The virtual_env_type of this ListTagsRequest.
320
369
  :rtype: str
@@ -323,18 +372,20 @@ class ListTagsRequest:
323
372
 
324
373
  @virtual_env_type.setter
325
374
  def virtual_env_type(self, virtual_env_type):
326
- """Sets the virtual_env_type of this ListTagsRequest.
375
+ r"""Sets the virtual_env_type of this ListTagsRequest.
327
376
 
377
+ 镜像使用环境类型:FusionCompute、Ironic、DataImage。
328
378
 
329
379
  :param virtual_env_type: The virtual_env_type of this ListTagsRequest.
330
- :type: str
380
+ :type virtual_env_type: str
331
381
  """
332
382
  self._virtual_env_type = virtual_env_type
333
383
 
334
384
  @property
335
385
  def enterprise_project_id(self):
336
- """Gets the enterprise_project_id of this ListTagsRequest.
386
+ r"""Gets the enterprise_project_id of this ListTagsRequest.
337
387
 
388
+ 表示查询某个企业项目下的镜像。
338
389
 
339
390
  :return: The enterprise_project_id of this ListTagsRequest.
340
391
  :rtype: str
@@ -343,18 +394,20 @@ class ListTagsRequest:
343
394
 
344
395
  @enterprise_project_id.setter
345
396
  def enterprise_project_id(self, enterprise_project_id):
346
- """Sets the enterprise_project_id of this ListTagsRequest.
397
+ r"""Sets the enterprise_project_id of this ListTagsRequest.
347
398
 
399
+ 表示查询某个企业项目下的镜像。
348
400
 
349
401
  :param enterprise_project_id: The enterprise_project_id of this ListTagsRequest.
350
- :type: str
402
+ :type enterprise_project_id: str
351
403
  """
352
404
  self._enterprise_project_id = enterprise_project_id
353
405
 
354
406
  @property
355
407
  def architecture(self):
356
- """Gets the architecture of this ListTagsRequest.
408
+ r"""Gets the architecture of this ListTagsRequest.
357
409
 
410
+ 镜像架构类型。取值包括:x86,arm
358
411
 
359
412
  :return: The architecture of this ListTagsRequest.
360
413
  :rtype: str
@@ -363,18 +416,20 @@ class ListTagsRequest:
363
416
 
364
417
  @architecture.setter
365
418
  def architecture(self, architecture):
366
- """Sets the architecture of this ListTagsRequest.
419
+ r"""Sets the architecture of this ListTagsRequest.
367
420
 
421
+ 镜像架构类型。取值包括:x86,arm
368
422
 
369
423
  :param architecture: The architecture of this ListTagsRequest.
370
- :type: str
424
+ :type architecture: str
371
425
  """
372
426
  self._architecture = architecture
373
427
 
374
428
  @property
375
429
  def created_at(self):
376
- """Gets the created_at of this ListTagsRequest.
430
+ r"""Gets the created_at of this ListTagsRequest.
377
431
 
432
+ 镜像创建时间。支持按照时间点过滤查询,取值格式为“操作符:UTC时间”。 其中操作符支持如下几种: gt:大于 gte:大于等于 lt:小于 lte:小于等于 eq:等于 neq:不等于 时间格式支持:yyyy-MM-ddThh:mm:ssZ或者yyyy-MM-dd hh:mm:ss 例如,查询创建时间在2018-10-28 10:00:00之前的镜像,可以通过如下条件过滤: created_at=gt:2018-10-28T10:00:00Z
378
433
 
379
434
  :return: The created_at of this ListTagsRequest.
380
435
  :rtype: str
@@ -383,18 +438,20 @@ class ListTagsRequest:
383
438
 
384
439
  @created_at.setter
385
440
  def created_at(self, created_at):
386
- """Sets the created_at of this ListTagsRequest.
441
+ r"""Sets the created_at of this ListTagsRequest.
387
442
 
443
+ 镜像创建时间。支持按照时间点过滤查询,取值格式为“操作符:UTC时间”。 其中操作符支持如下几种: gt:大于 gte:大于等于 lt:小于 lte:小于等于 eq:等于 neq:不等于 时间格式支持:yyyy-MM-ddThh:mm:ssZ或者yyyy-MM-dd hh:mm:ss 例如,查询创建时间在2018-10-28 10:00:00之前的镜像,可以通过如下条件过滤: created_at=gt:2018-10-28T10:00:00Z
388
444
 
389
445
  :param created_at: The created_at of this ListTagsRequest.
390
- :type: str
446
+ :type created_at: str
391
447
  """
392
448
  self._created_at = created_at
393
449
 
394
450
  @property
395
451
  def updated_at(self):
396
- """Gets the updated_at of this ListTagsRequest.
452
+ r"""Gets the updated_at of this ListTagsRequest.
397
453
 
454
+ 镜像修改时间。支持按照时间点过滤查询,取值格式为“ 操作符:UTC时间”。 其中操作符支持如下几种: gt:大于 gte:大于等于 lt:小于 lte:小于等于 eq:等于 neq:不等于 时间格式支持:yyyy-MM-ddThh:mm:ssZ或者yyyy-MM-dd hh:mm:ss 例如,查询修改时间在2018-10-28 10:00:00之前的镜像,可以通过如下条件过滤: updated_at=gt:2018-10-28T10:00:00Z
398
455
 
399
456
  :return: The updated_at of this ListTagsRequest.
400
457
  :rtype: str
@@ -403,11 +460,12 @@ class ListTagsRequest:
403
460
 
404
461
  @updated_at.setter
405
462
  def updated_at(self, updated_at):
406
- """Sets the updated_at of this ListTagsRequest.
463
+ r"""Sets the updated_at of this ListTagsRequest.
407
464
 
465
+ 镜像修改时间。支持按照时间点过滤查询,取值格式为“ 操作符:UTC时间”。 其中操作符支持如下几种: gt:大于 gte:大于等于 lt:小于 lte:小于等于 eq:等于 neq:不等于 时间格式支持:yyyy-MM-ddThh:mm:ssZ或者yyyy-MM-dd hh:mm:ss 例如,查询修改时间在2018-10-28 10:00:00之前的镜像,可以通过如下条件过滤: updated_at=gt:2018-10-28T10:00:00Z
408
466
 
409
467
  :param updated_at: The updated_at of this ListTagsRequest.
410
- :type: str
468
+ :type updated_at: str
411
469
  """
412
470
  self._updated_at = updated_at
413
471
 
@@ -440,10 +498,15 @@ class ListTagsRequest:
440
498
 
441
499
  def to_str(self):
442
500
  """Returns the string representation of the model"""
443
- return pprint.pformat(self.to_dict())
501
+ import simplejson as json
502
+ if six.PY2:
503
+ import sys
504
+ reload(sys)
505
+ sys.setdefaultencoding("utf-8")
506
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
444
507
 
445
508
  def __repr__(self):
446
- """For `print` and `pprint`"""
509
+ """For `print`"""
447
510
  return self.to_str()
448
511
 
449
512
  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 ListTagsResponse(SdkResponse):
13
10
 
14
-
15
11
  """
16
12
  Attributes:
17
13
  openapi_types (dict): The key is attribute name
@@ -19,7 +15,6 @@ class ListTagsResponse(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 ListTagsResponse(SdkResponse):
31
26
  }
32
27
 
33
28
  def __init__(self, tags=None):
34
- """ListTagsResponse - a model defined in huaweicloud sdk"""
29
+ r"""ListTagsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param tags: 标签列表
34
+ :type tags: list[str]
35
+ """
35
36
 
36
- super().__init__()
37
+ super(ListTagsResponse, self).__init__()
37
38
 
38
39
  self._tags = None
39
40
  self.discriminator = None
@@ -43,7 +44,7 @@ class ListTagsResponse(SdkResponse):
43
44
 
44
45
  @property
45
46
  def tags(self):
46
- """Gets the tags of this ListTagsResponse.
47
+ r"""Gets the tags of this ListTagsResponse.
47
48
 
48
49
  标签列表
49
50
 
@@ -54,12 +55,12 @@ class ListTagsResponse(SdkResponse):
54
55
 
55
56
  @tags.setter
56
57
  def tags(self, tags):
57
- """Sets the tags of this ListTagsResponse.
58
+ r"""Sets the tags of this ListTagsResponse.
58
59
 
59
60
  标签列表
60
61
 
61
62
  :param tags: The tags of this ListTagsResponse.
62
- :type: list[str]
63
+ :type tags: list[str]
63
64
  """
64
65
  self._tags = tags
65
66
 
@@ -92,10 +93,15 @@ class ListTagsResponse(SdkResponse):
92
93
 
93
94
  def to_str(self):
94
95
  """Returns the string representation of the model"""
95
- return pprint.pformat(self.to_dict())
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` and `pprint`"""
104
+ """For `print`"""
99
105
  return self.to_str()
100
106
 
101
107
  def __eq__(self, other):
@@ -0,0 +1,84 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListVersionsRequest:
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
+ }
21
+
22
+ attribute_map = {
23
+ }
24
+
25
+ def __init__(self):
26
+ r"""ListVersionsRequest
27
+
28
+ The model defined in huaweicloud sdk
29
+
30
+ """
31
+
32
+
33
+ self.discriminator = None
34
+
35
+ def to_dict(self):
36
+ """Returns the model properties as a dict"""
37
+ result = {}
38
+
39
+ for attr, _ in six.iteritems(self.openapi_types):
40
+ value = getattr(self, attr)
41
+ if isinstance(value, list):
42
+ result[attr] = list(map(
43
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
44
+ value
45
+ ))
46
+ elif hasattr(value, "to_dict"):
47
+ result[attr] = value.to_dict()
48
+ elif isinstance(value, dict):
49
+ result[attr] = dict(map(
50
+ lambda item: (item[0], item[1].to_dict())
51
+ if hasattr(item[1], "to_dict") else item,
52
+ value.items()
53
+ ))
54
+ else:
55
+ if attr in self.sensitive_list:
56
+ result[attr] = "****"
57
+ else:
58
+ result[attr] = value
59
+
60
+ return result
61
+
62
+ def to_str(self):
63
+ """Returns the string representation of the model"""
64
+ import simplejson as json
65
+ if six.PY2:
66
+ import sys
67
+ reload(sys)
68
+ sys.setdefaultencoding("utf-8")
69
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
70
+
71
+ def __repr__(self):
72
+ """For `print`"""
73
+ return self.to_str()
74
+
75
+ def __eq__(self, other):
76
+ """Returns true if both objects are equal"""
77
+ if not isinstance(other, ListVersionsRequest):
78
+ return False
79
+
80
+ return self.__dict__ == other.__dict__
81
+
82
+ def __ne__(self, other):
83
+ """Returns true if both objects are not equal"""
84
+ return not self == other