huaweicloudsdkims 3.0.43rc0__py3-none-any.whl → 3.1.161__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.161.dist-info}/METADATA +9 -9
  153. huaweicloudsdkims-3.1.161.dist-info/RECORD +158 -0
  154. {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.161.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.161.dist-info}/LICENSE +0 -0
  158. {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.161.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 CreateImageRequestBody:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class CreateImageRequestBody:
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 = {
@@ -40,7 +34,8 @@ class CreateImageRequestBody:
40
34
  'type': 'str',
41
35
  'is_quick_import': 'bool',
42
36
  'architecture': 'str',
43
- 'volume_id': 'str'
37
+ 'volume_id': 'str',
38
+ 'hw_firmware_type': 'str'
44
39
  }
45
40
 
46
41
  attribute_map = {
@@ -61,11 +56,54 @@ class CreateImageRequestBody:
61
56
  'type': 'type',
62
57
  'is_quick_import': 'is_quick_import',
63
58
  'architecture': 'architecture',
64
- 'volume_id': 'volume_id'
59
+ 'volume_id': 'volume_id',
60
+ 'hw_firmware_type': 'hw_firmware_type'
65
61
  }
66
62
 
67
- def __init__(self, data_images=None, description=None, enterprise_project_id=None, image_tags=None, instance_id=None, name=None, tags=None, max_ram=None, min_ram=None, os_version=None, image_url=None, min_disk=None, is_config=None, cmk_id=None, type=None, is_quick_import=None, architecture=None, volume_id=None):
68
- """CreateImageRequestBody - a model defined in huaweicloud sdk"""
63
+ def __init__(self, data_images=None, description=None, enterprise_project_id=None, image_tags=None, instance_id=None, name=None, tags=None, max_ram=None, min_ram=None, os_version=None, image_url=None, min_disk=None, is_config=None, cmk_id=None, type=None, is_quick_import=None, architecture=None, volume_id=None, hw_firmware_type=None):
64
+ r"""CreateImageRequestBody
65
+
66
+ The model defined in huaweicloud sdk
67
+
68
+ :param data_images: 需要转换的数据盘信息,其中,当使用云服务器上的数据盘进行私有数据盘镜像创建时,该字段必选。 如果不是用于制作数据盘镜像,该字段默认为空。
69
+ :type data_images: list[:class:`huaweicloudsdkims.v2.CreateDataImage`]
70
+ :param description: 镜像描述信息。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。
71
+ :type description: str
72
+ :param enterprise_project_id: 表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目。
73
+ :type enterprise_project_id: str
74
+ :param image_tags: 新规范的镜像标签列表。默认为空。tags和image_tags只能使用一个。
75
+ :type image_tags: list[:class:`huaweicloudsdkims.v2.TagKeyValue`]
76
+ :param instance_id: 需要转换的云服务器ID。使用instance_id字段,从云服务器制作私有镜像时,该字段填写云服务器ID。
77
+ :type instance_id: str
78
+ :param name: 镜像名称
79
+ :type name: str
80
+ :param tags: 镜像标签列表。默认为空。tags和image_tags只能使用一个。
81
+ :type tags: list[str]
82
+ :param max_ram: 表示镜像支持的最大内存,单位为MB。
83
+ :type max_ram: int
84
+ :param min_ram: 表示镜像支持的最小内存,单位为MB,默认为0,表示不受限制。
85
+ :type min_ram: int
86
+ :param os_version: 操作系统版本。 使用上传至OBS桶中的外部镜像文件制作镜像时生效。 当“is_quick_import”的值为“true”时,即使用镜像文件快速导入方式导入系统盘镜像,则该参数为必填参数。
87
+ :type os_version: str
88
+ :param image_url: OBS桶中外部镜像文件地址。 在使用OBS桶的外部镜像文件制作镜像时生效且为必选字段。格式为<OBS桶名>:<OBS镜像文件名称>。
89
+ :type image_url: str
90
+ :param min_disk: 最小系统盘大小。 在使用OBS桶的外部镜像文件制作镜像时生效且为必选字段。取值为40~1024GB。
91
+ :type min_disk: int
92
+ :param is_config: 是否自动配置。 取值为true或false。 如果需要后台自动配置,取值为true,否则为false。默认取值为false。
93
+ :type is_config: bool
94
+ :param cmk_id: 创建加密镜像的用户主密钥,具体取值请参考《密钥管理服务用户指南》获取。
95
+ :type cmk_id: str
96
+ :param type: 镜像的类型。 取值为ECS、BMS、FusionCompute、Ironic。默认使用“ECS”。 ECS/FusionCompute:表示是ECS服务器的镜像。 BMS/Ironic:表示是BMS服务器的镜像。
97
+ :type type: str
98
+ :param is_quick_import: 是否使用镜像文件快速导入方式,导入系统盘镜像。 是,配置为true。 否,配置为false。 关于镜像文件快速导入的约束与限制请参见镜像文件快速导入。
99
+ :type is_quick_import: bool
100
+ :param architecture: 镜像的架构类型。取值包括: x86 arm 默认使用“x86”。 当架构类型为arm时,镜像引导方式将自动转为UEFI的引导方式。
101
+ :type architecture: str
102
+ :param volume_id: 数据盘的卷ID。当数据盘创建系统盘镜像时,该参数必选
103
+ :type volume_id: str
104
+ :param hw_firmware_type: 云主机云服务器的启动方式。目前支持: bios:表示bios引导启动。 uefi:表示uefi引导启动。
105
+ :type hw_firmware_type: str
106
+ """
69
107
 
70
108
 
71
109
 
@@ -87,6 +125,7 @@ class CreateImageRequestBody:
87
125
  self._is_quick_import = None
88
126
  self._architecture = None
89
127
  self._volume_id = None
128
+ self._hw_firmware_type = None
90
129
  self.discriminator = None
91
130
 
92
131
  if data_images is not None:
@@ -99,7 +138,8 @@ class CreateImageRequestBody:
99
138
  self.image_tags = image_tags
100
139
  if instance_id is not None:
101
140
  self.instance_id = instance_id
102
- self.name = name
141
+ if name is not None:
142
+ self.name = name
103
143
  if tags is not None:
104
144
  self.tags = tags
105
145
  if max_ram is not None:
@@ -124,32 +164,34 @@ class CreateImageRequestBody:
124
164
  self.architecture = architecture
125
165
  if volume_id is not None:
126
166
  self.volume_id = volume_id
167
+ if hw_firmware_type is not None:
168
+ self.hw_firmware_type = hw_firmware_type
127
169
 
128
170
  @property
129
171
  def data_images(self):
130
- """Gets the data_images of this CreateImageRequestBody.
172
+ r"""Gets the data_images of this CreateImageRequestBody.
131
173
 
132
174
  需要转换的数据盘信息,其中,当使用云服务器上的数据盘进行私有数据盘镜像创建时,该字段必选。 如果不是用于制作数据盘镜像,该字段默认为空。
133
175
 
134
176
  :return: The data_images of this CreateImageRequestBody.
135
- :rtype: list[CreateDataImage]
177
+ :rtype: list[:class:`huaweicloudsdkims.v2.CreateDataImage`]
136
178
  """
137
179
  return self._data_images
138
180
 
139
181
  @data_images.setter
140
182
  def data_images(self, data_images):
141
- """Sets the data_images of this CreateImageRequestBody.
183
+ r"""Sets the data_images of this CreateImageRequestBody.
142
184
 
143
185
  需要转换的数据盘信息,其中,当使用云服务器上的数据盘进行私有数据盘镜像创建时,该字段必选。 如果不是用于制作数据盘镜像,该字段默认为空。
144
186
 
145
187
  :param data_images: The data_images of this CreateImageRequestBody.
146
- :type: list[CreateDataImage]
188
+ :type data_images: list[:class:`huaweicloudsdkims.v2.CreateDataImage`]
147
189
  """
148
190
  self._data_images = data_images
149
191
 
150
192
  @property
151
193
  def description(self):
152
- """Gets the description of this CreateImageRequestBody.
194
+ r"""Gets the description of this CreateImageRequestBody.
153
195
 
154
196
  镜像描述信息。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。
155
197
 
@@ -160,18 +202,18 @@ class CreateImageRequestBody:
160
202
 
161
203
  @description.setter
162
204
  def description(self, description):
163
- """Sets the description of this CreateImageRequestBody.
205
+ r"""Sets the description of this CreateImageRequestBody.
164
206
 
165
207
  镜像描述信息。支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。默认为空。
166
208
 
167
209
  :param description: The description of this CreateImageRequestBody.
168
- :type: str
210
+ :type description: str
169
211
  """
170
212
  self._description = description
171
213
 
172
214
  @property
173
215
  def enterprise_project_id(self):
174
- """Gets the enterprise_project_id of this CreateImageRequestBody.
216
+ r"""Gets the enterprise_project_id of this CreateImageRequestBody.
175
217
 
176
218
  表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目。
177
219
 
@@ -182,40 +224,40 @@ class CreateImageRequestBody:
182
224
 
183
225
  @enterprise_project_id.setter
184
226
  def enterprise_project_id(self, enterprise_project_id):
185
- """Sets the enterprise_project_id of this CreateImageRequestBody.
227
+ r"""Sets the enterprise_project_id of this CreateImageRequestBody.
186
228
 
187
229
  表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目。取值为UUID,表示属于该UUID对应的企业项目。
188
230
 
189
231
  :param enterprise_project_id: The enterprise_project_id of this CreateImageRequestBody.
190
- :type: str
232
+ :type enterprise_project_id: str
191
233
  """
192
234
  self._enterprise_project_id = enterprise_project_id
193
235
 
194
236
  @property
195
237
  def image_tags(self):
196
- """Gets the image_tags of this CreateImageRequestBody.
238
+ r"""Gets the image_tags of this CreateImageRequestBody.
197
239
 
198
240
  新规范的镜像标签列表。默认为空。tags和image_tags只能使用一个。
199
241
 
200
242
  :return: The image_tags of this CreateImageRequestBody.
201
- :rtype: list[TagKeyValue]
243
+ :rtype: list[:class:`huaweicloudsdkims.v2.TagKeyValue`]
202
244
  """
203
245
  return self._image_tags
204
246
 
205
247
  @image_tags.setter
206
248
  def image_tags(self, image_tags):
207
- """Sets the image_tags of this CreateImageRequestBody.
249
+ r"""Sets the image_tags of this CreateImageRequestBody.
208
250
 
209
251
  新规范的镜像标签列表。默认为空。tags和image_tags只能使用一个。
210
252
 
211
253
  :param image_tags: The image_tags of this CreateImageRequestBody.
212
- :type: list[TagKeyValue]
254
+ :type image_tags: list[:class:`huaweicloudsdkims.v2.TagKeyValue`]
213
255
  """
214
256
  self._image_tags = image_tags
215
257
 
216
258
  @property
217
259
  def instance_id(self):
218
- """Gets the instance_id of this CreateImageRequestBody.
260
+ r"""Gets the instance_id of this CreateImageRequestBody.
219
261
 
220
262
  需要转换的云服务器ID。使用instance_id字段,从云服务器制作私有镜像时,该字段填写云服务器ID。
221
263
 
@@ -226,18 +268,18 @@ class CreateImageRequestBody:
226
268
 
227
269
  @instance_id.setter
228
270
  def instance_id(self, instance_id):
229
- """Sets the instance_id of this CreateImageRequestBody.
271
+ r"""Sets the instance_id of this CreateImageRequestBody.
230
272
 
231
273
  需要转换的云服务器ID。使用instance_id字段,从云服务器制作私有镜像时,该字段填写云服务器ID。
232
274
 
233
275
  :param instance_id: The instance_id of this CreateImageRequestBody.
234
- :type: str
276
+ :type instance_id: str
235
277
  """
236
278
  self._instance_id = instance_id
237
279
 
238
280
  @property
239
281
  def name(self):
240
- """Gets the name of this CreateImageRequestBody.
282
+ r"""Gets the name of this CreateImageRequestBody.
241
283
 
242
284
  镜像名称
243
285
 
@@ -248,18 +290,18 @@ class CreateImageRequestBody:
248
290
 
249
291
  @name.setter
250
292
  def name(self, name):
251
- """Sets the name of this CreateImageRequestBody.
293
+ r"""Sets the name of this CreateImageRequestBody.
252
294
 
253
295
  镜像名称
254
296
 
255
297
  :param name: The name of this CreateImageRequestBody.
256
- :type: str
298
+ :type name: str
257
299
  """
258
300
  self._name = name
259
301
 
260
302
  @property
261
303
  def tags(self):
262
- """Gets the tags of this CreateImageRequestBody.
304
+ r"""Gets the tags of this CreateImageRequestBody.
263
305
 
264
306
  镜像标签列表。默认为空。tags和image_tags只能使用一个。
265
307
 
@@ -270,18 +312,18 @@ class CreateImageRequestBody:
270
312
 
271
313
  @tags.setter
272
314
  def tags(self, tags):
273
- """Sets the tags of this CreateImageRequestBody.
315
+ r"""Sets the tags of this CreateImageRequestBody.
274
316
 
275
317
  镜像标签列表。默认为空。tags和image_tags只能使用一个。
276
318
 
277
319
  :param tags: The tags of this CreateImageRequestBody.
278
- :type: list[str]
320
+ :type tags: list[str]
279
321
  """
280
322
  self._tags = tags
281
323
 
282
324
  @property
283
325
  def max_ram(self):
284
- """Gets the max_ram of this CreateImageRequestBody.
326
+ r"""Gets the max_ram of this CreateImageRequestBody.
285
327
 
286
328
  表示镜像支持的最大内存,单位为MB。
287
329
 
@@ -292,18 +334,18 @@ class CreateImageRequestBody:
292
334
 
293
335
  @max_ram.setter
294
336
  def max_ram(self, max_ram):
295
- """Sets the max_ram of this CreateImageRequestBody.
337
+ r"""Sets the max_ram of this CreateImageRequestBody.
296
338
 
297
339
  表示镜像支持的最大内存,单位为MB。
298
340
 
299
341
  :param max_ram: The max_ram of this CreateImageRequestBody.
300
- :type: int
342
+ :type max_ram: int
301
343
  """
302
344
  self._max_ram = max_ram
303
345
 
304
346
  @property
305
347
  def min_ram(self):
306
- """Gets the min_ram of this CreateImageRequestBody.
348
+ r"""Gets the min_ram of this CreateImageRequestBody.
307
349
 
308
350
  表示镜像支持的最小内存,单位为MB,默认为0,表示不受限制。
309
351
 
@@ -314,18 +356,18 @@ class CreateImageRequestBody:
314
356
 
315
357
  @min_ram.setter
316
358
  def min_ram(self, min_ram):
317
- """Sets the min_ram of this CreateImageRequestBody.
359
+ r"""Sets the min_ram of this CreateImageRequestBody.
318
360
 
319
361
  表示镜像支持的最小内存,单位为MB,默认为0,表示不受限制。
320
362
 
321
363
  :param min_ram: The min_ram of this CreateImageRequestBody.
322
- :type: int
364
+ :type min_ram: int
323
365
  """
324
366
  self._min_ram = min_ram
325
367
 
326
368
  @property
327
369
  def os_version(self):
328
- """Gets the os_version of this CreateImageRequestBody.
370
+ r"""Gets the os_version of this CreateImageRequestBody.
329
371
 
330
372
  操作系统版本。 使用上传至OBS桶中的外部镜像文件制作镜像时生效。 当“is_quick_import”的值为“true”时,即使用镜像文件快速导入方式导入系统盘镜像,则该参数为必填参数。
331
373
 
@@ -336,18 +378,18 @@ class CreateImageRequestBody:
336
378
 
337
379
  @os_version.setter
338
380
  def os_version(self, os_version):
339
- """Sets the os_version of this CreateImageRequestBody.
381
+ r"""Sets the os_version of this CreateImageRequestBody.
340
382
 
341
383
  操作系统版本。 使用上传至OBS桶中的外部镜像文件制作镜像时生效。 当“is_quick_import”的值为“true”时,即使用镜像文件快速导入方式导入系统盘镜像,则该参数为必填参数。
342
384
 
343
385
  :param os_version: The os_version of this CreateImageRequestBody.
344
- :type: str
386
+ :type os_version: str
345
387
  """
346
388
  self._os_version = os_version
347
389
 
348
390
  @property
349
391
  def image_url(self):
350
- """Gets the image_url of this CreateImageRequestBody.
392
+ r"""Gets the image_url of this CreateImageRequestBody.
351
393
 
352
394
  OBS桶中外部镜像文件地址。 在使用OBS桶的外部镜像文件制作镜像时生效且为必选字段。格式为<OBS桶名>:<OBS镜像文件名称>。
353
395
 
@@ -358,18 +400,18 @@ class CreateImageRequestBody:
358
400
 
359
401
  @image_url.setter
360
402
  def image_url(self, image_url):
361
- """Sets the image_url of this CreateImageRequestBody.
403
+ r"""Sets the image_url of this CreateImageRequestBody.
362
404
 
363
405
  OBS桶中外部镜像文件地址。 在使用OBS桶的外部镜像文件制作镜像时生效且为必选字段。格式为<OBS桶名>:<OBS镜像文件名称>。
364
406
 
365
407
  :param image_url: The image_url of this CreateImageRequestBody.
366
- :type: str
408
+ :type image_url: str
367
409
  """
368
410
  self._image_url = image_url
369
411
 
370
412
  @property
371
413
  def min_disk(self):
372
- """Gets the min_disk of this CreateImageRequestBody.
414
+ r"""Gets the min_disk of this CreateImageRequestBody.
373
415
 
374
416
  最小系统盘大小。 在使用OBS桶的外部镜像文件制作镜像时生效且为必选字段。取值为40~1024GB。
375
417
 
@@ -380,18 +422,18 @@ class CreateImageRequestBody:
380
422
 
381
423
  @min_disk.setter
382
424
  def min_disk(self, min_disk):
383
- """Sets the min_disk of this CreateImageRequestBody.
425
+ r"""Sets the min_disk of this CreateImageRequestBody.
384
426
 
385
427
  最小系统盘大小。 在使用OBS桶的外部镜像文件制作镜像时生效且为必选字段。取值为40~1024GB。
386
428
 
387
429
  :param min_disk: The min_disk of this CreateImageRequestBody.
388
- :type: int
430
+ :type min_disk: int
389
431
  """
390
432
  self._min_disk = min_disk
391
433
 
392
434
  @property
393
435
  def is_config(self):
394
- """Gets the is_config of this CreateImageRequestBody.
436
+ r"""Gets the is_config of this CreateImageRequestBody.
395
437
 
396
438
  是否自动配置。 取值为true或false。 如果需要后台自动配置,取值为true,否则为false。默认取值为false。
397
439
 
@@ -402,18 +444,18 @@ class CreateImageRequestBody:
402
444
 
403
445
  @is_config.setter
404
446
  def is_config(self, is_config):
405
- """Sets the is_config of this CreateImageRequestBody.
447
+ r"""Sets the is_config of this CreateImageRequestBody.
406
448
 
407
449
  是否自动配置。 取值为true或false。 如果需要后台自动配置,取值为true,否则为false。默认取值为false。
408
450
 
409
451
  :param is_config: The is_config of this CreateImageRequestBody.
410
- :type: bool
452
+ :type is_config: bool
411
453
  """
412
454
  self._is_config = is_config
413
455
 
414
456
  @property
415
457
  def cmk_id(self):
416
- """Gets the cmk_id of this CreateImageRequestBody.
458
+ r"""Gets the cmk_id of this CreateImageRequestBody.
417
459
 
418
460
  创建加密镜像的用户主密钥,具体取值请参考《密钥管理服务用户指南》获取。
419
461
 
@@ -424,18 +466,18 @@ class CreateImageRequestBody:
424
466
 
425
467
  @cmk_id.setter
426
468
  def cmk_id(self, cmk_id):
427
- """Sets the cmk_id of this CreateImageRequestBody.
469
+ r"""Sets the cmk_id of this CreateImageRequestBody.
428
470
 
429
471
  创建加密镜像的用户主密钥,具体取值请参考《密钥管理服务用户指南》获取。
430
472
 
431
473
  :param cmk_id: The cmk_id of this CreateImageRequestBody.
432
- :type: str
474
+ :type cmk_id: str
433
475
  """
434
476
  self._cmk_id = cmk_id
435
477
 
436
478
  @property
437
479
  def type(self):
438
- """Gets the type of this CreateImageRequestBody.
480
+ r"""Gets the type of this CreateImageRequestBody.
439
481
 
440
482
  镜像的类型。 取值为ECS、BMS、FusionCompute、Ironic。默认使用“ECS”。 ECS/FusionCompute:表示是ECS服务器的镜像。 BMS/Ironic:表示是BMS服务器的镜像。
441
483
 
@@ -446,18 +488,18 @@ class CreateImageRequestBody:
446
488
 
447
489
  @type.setter
448
490
  def type(self, type):
449
- """Sets the type of this CreateImageRequestBody.
491
+ r"""Sets the type of this CreateImageRequestBody.
450
492
 
451
493
  镜像的类型。 取值为ECS、BMS、FusionCompute、Ironic。默认使用“ECS”。 ECS/FusionCompute:表示是ECS服务器的镜像。 BMS/Ironic:表示是BMS服务器的镜像。
452
494
 
453
495
  :param type: The type of this CreateImageRequestBody.
454
- :type: str
496
+ :type type: str
455
497
  """
456
498
  self._type = type
457
499
 
458
500
  @property
459
501
  def is_quick_import(self):
460
- """Gets the is_quick_import of this CreateImageRequestBody.
502
+ r"""Gets the is_quick_import of this CreateImageRequestBody.
461
503
 
462
504
  是否使用镜像文件快速导入方式,导入系统盘镜像。 是,配置为true。 否,配置为false。 关于镜像文件快速导入的约束与限制请参见镜像文件快速导入。
463
505
 
@@ -468,18 +510,18 @@ class CreateImageRequestBody:
468
510
 
469
511
  @is_quick_import.setter
470
512
  def is_quick_import(self, is_quick_import):
471
- """Sets the is_quick_import of this CreateImageRequestBody.
513
+ r"""Sets the is_quick_import of this CreateImageRequestBody.
472
514
 
473
515
  是否使用镜像文件快速导入方式,导入系统盘镜像。 是,配置为true。 否,配置为false。 关于镜像文件快速导入的约束与限制请参见镜像文件快速导入。
474
516
 
475
517
  :param is_quick_import: The is_quick_import of this CreateImageRequestBody.
476
- :type: bool
518
+ :type is_quick_import: bool
477
519
  """
478
520
  self._is_quick_import = is_quick_import
479
521
 
480
522
  @property
481
523
  def architecture(self):
482
- """Gets the architecture of this CreateImageRequestBody.
524
+ r"""Gets the architecture of this CreateImageRequestBody.
483
525
 
484
526
  镜像的架构类型。取值包括: x86 arm 默认使用“x86”。 当架构类型为arm时,镜像引导方式将自动转为UEFI的引导方式。
485
527
 
@@ -490,18 +532,18 @@ class CreateImageRequestBody:
490
532
 
491
533
  @architecture.setter
492
534
  def architecture(self, architecture):
493
- """Sets the architecture of this CreateImageRequestBody.
535
+ r"""Sets the architecture of this CreateImageRequestBody.
494
536
 
495
537
  镜像的架构类型。取值包括: x86 arm 默认使用“x86”。 当架构类型为arm时,镜像引导方式将自动转为UEFI的引导方式。
496
538
 
497
539
  :param architecture: The architecture of this CreateImageRequestBody.
498
- :type: str
540
+ :type architecture: str
499
541
  """
500
542
  self._architecture = architecture
501
543
 
502
544
  @property
503
545
  def volume_id(self):
504
- """Gets the volume_id of this CreateImageRequestBody.
546
+ r"""Gets the volume_id of this CreateImageRequestBody.
505
547
 
506
548
  数据盘的卷ID。当数据盘创建系统盘镜像时,该参数必选
507
549
 
@@ -512,15 +554,37 @@ class CreateImageRequestBody:
512
554
 
513
555
  @volume_id.setter
514
556
  def volume_id(self, volume_id):
515
- """Sets the volume_id of this CreateImageRequestBody.
557
+ r"""Sets the volume_id of this CreateImageRequestBody.
516
558
 
517
559
  数据盘的卷ID。当数据盘创建系统盘镜像时,该参数必选
518
560
 
519
561
  :param volume_id: The volume_id of this CreateImageRequestBody.
520
- :type: str
562
+ :type volume_id: str
521
563
  """
522
564
  self._volume_id = volume_id
523
565
 
566
+ @property
567
+ def hw_firmware_type(self):
568
+ r"""Gets the hw_firmware_type of this CreateImageRequestBody.
569
+
570
+ 云主机云服务器的启动方式。目前支持: bios:表示bios引导启动。 uefi:表示uefi引导启动。
571
+
572
+ :return: The hw_firmware_type of this CreateImageRequestBody.
573
+ :rtype: str
574
+ """
575
+ return self._hw_firmware_type
576
+
577
+ @hw_firmware_type.setter
578
+ def hw_firmware_type(self, hw_firmware_type):
579
+ r"""Sets the hw_firmware_type of this CreateImageRequestBody.
580
+
581
+ 云主机云服务器的启动方式。目前支持: bios:表示bios引导启动。 uefi:表示uefi引导启动。
582
+
583
+ :param hw_firmware_type: The hw_firmware_type of this CreateImageRequestBody.
584
+ :type hw_firmware_type: str
585
+ """
586
+ self._hw_firmware_type = hw_firmware_type
587
+
524
588
  def to_dict(self):
525
589
  """Returns the model properties as a dict"""
526
590
  result = {}
@@ -550,10 +614,15 @@ class CreateImageRequestBody:
550
614
 
551
615
  def to_str(self):
552
616
  """Returns the string representation of the model"""
553
- return pprint.pformat(self.to_dict())
617
+ import simplejson as json
618
+ if six.PY2:
619
+ import sys
620
+ reload(sys)
621
+ sys.setdefaultencoding("utf-8")
622
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
554
623
 
555
624
  def __repr__(self):
556
- """For `print` and `pprint`"""
625
+ """For `print`"""
557
626
  return self.to_str()
558
627
 
559
628
  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 CreateImageResponse(SdkResponse):
13
10
 
14
-
15
11
  """
16
12
  Attributes:
17
13
  openapi_types (dict): The key is attribute name
@@ -19,7 +15,6 @@ class CreateImageResponse(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 CreateImageResponse(SdkResponse):
31
26
  }
32
27
 
33
28
  def __init__(self, job_id=None):
34
- """CreateImageResponse - a model defined in huaweicloud sdk"""
29
+ r"""CreateImageResponse
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(CreateImageResponse, self).__init__()
37
38
 
38
39
  self._job_id = None
39
40
  self.discriminator = None
@@ -43,7 +44,7 @@ class CreateImageResponse(SdkResponse):
43
44
 
44
45
  @property
45
46
  def job_id(self):
46
- """Gets the job_id of this CreateImageResponse.
47
+ r"""Gets the job_id of this CreateImageResponse.
47
48
 
48
49
  异步任务ID。
49
50
 
@@ -54,12 +55,12 @@ class CreateImageResponse(SdkResponse):
54
55
 
55
56
  @job_id.setter
56
57
  def job_id(self, job_id):
57
- """Sets the job_id of this CreateImageResponse.
58
+ r"""Sets the job_id of this CreateImageResponse.
58
59
 
59
60
  异步任务ID。
60
61
 
61
62
  :param job_id: The job_id of this CreateImageResponse.
62
- :type: str
63
+ :type job_id: str
63
64
  """
64
65
  self._job_id = job_id
65
66
 
@@ -92,10 +93,15 @@ class CreateImageResponse(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):