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.
- 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.161.dist-info}/METADATA +9 -9
- huaweicloudsdkims-3.1.161.dist-info/RECORD +158 -0
- {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.161.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.161.dist-info}/LICENSE +0 -0
- {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 ImageInfo:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,18 +14,15 @@ class ImageInfo:
|
|
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 = {
|
26
20
|
'backup_id': 'str',
|
27
21
|
'data_origin': 'str',
|
28
22
|
'description': 'str',
|
29
|
-
'image_location': 'str',
|
30
23
|
'image_size': 'str',
|
31
24
|
'image_source_type': 'str',
|
32
25
|
'imagetype': 'str',
|
33
|
-
'is_config_init': 'str',
|
34
26
|
'isregistered': 'str',
|
35
27
|
'originalimagename': 'str',
|
36
28
|
'os_bit': 'str',
|
@@ -69,7 +61,6 @@ class ImageInfo:
|
|
69
61
|
'virtual_env_type': 'str',
|
70
62
|
'virtual_size': 'int',
|
71
63
|
'visibility': 'str',
|
72
|
-
'architecture': 'str',
|
73
64
|
'support_fc_inject': 'str',
|
74
65
|
'hw_firmware_type': 'str',
|
75
66
|
'support_arm': 'str',
|
@@ -77,18 +68,27 @@ class ImageInfo:
|
|
77
68
|
'system__cmkid': 'str',
|
78
69
|
'os_feature_list': 'str',
|
79
70
|
'account_code': 'str',
|
80
|
-
'hw_vif_multiqueue_enabled': 'str'
|
71
|
+
'hw_vif_multiqueue_enabled': 'str',
|
72
|
+
'is_offshelved': 'str',
|
73
|
+
'lazyloading': 'str',
|
74
|
+
'root_origin': 'str',
|
75
|
+
'sequence_num': 'str',
|
76
|
+
'active_at': 'str',
|
77
|
+
'support_agent_list': 'str',
|
78
|
+
'image_displayname': 'str',
|
79
|
+
'support_amd': 'str',
|
80
|
+
'support_kvm_hi1822_hisriov': 'str',
|
81
|
+
'support_kvm_hi1822_hivirtionet': 'str',
|
82
|
+
'os_shutdown_timeout': 'str'
|
81
83
|
}
|
82
84
|
|
83
85
|
attribute_map = {
|
84
86
|
'backup_id': '__backup_id',
|
85
87
|
'data_origin': '__data_origin',
|
86
88
|
'description': '__description',
|
87
|
-
'image_location': '__image_location',
|
88
89
|
'image_size': '__image_size',
|
89
90
|
'image_source_type': '__image_source_type',
|
90
91
|
'imagetype': '__imagetype',
|
91
|
-
'is_config_init': '__is_config_init',
|
92
92
|
'isregistered': '__isregistered',
|
93
93
|
'originalimagename': '__originalimagename',
|
94
94
|
'os_bit': '__os_bit',
|
@@ -127,7 +127,6 @@ class ImageInfo:
|
|
127
127
|
'virtual_env_type': 'virtual_env_type',
|
128
128
|
'virtual_size': 'virtual_size',
|
129
129
|
'visibility': 'visibility',
|
130
|
-
'architecture': 'architecture',
|
131
130
|
'support_fc_inject': '__support_fc_inject',
|
132
131
|
'hw_firmware_type': 'hw_firmware_type',
|
133
132
|
'support_arm': '__support_arm',
|
@@ -135,22 +134,161 @@ class ImageInfo:
|
|
135
134
|
'system__cmkid': '__system__cmkid',
|
136
135
|
'os_feature_list': '__os_feature_list',
|
137
136
|
'account_code': '__account_code',
|
138
|
-
'hw_vif_multiqueue_enabled': 'hw_vif_multiqueue_enabled'
|
137
|
+
'hw_vif_multiqueue_enabled': 'hw_vif_multiqueue_enabled',
|
138
|
+
'is_offshelved': '__is_offshelved',
|
139
|
+
'lazyloading': '__lazyloading',
|
140
|
+
'root_origin': '__root_origin',
|
141
|
+
'sequence_num': '__sequence_num',
|
142
|
+
'active_at': 'active_at',
|
143
|
+
'support_agent_list': '__support_agent_list',
|
144
|
+
'image_displayname': '__image_displayname',
|
145
|
+
'support_amd': '__support_amd',
|
146
|
+
'support_kvm_hi1822_hisriov': '__support_kvm_hi1822_hisriov',
|
147
|
+
'support_kvm_hi1822_hivirtionet': '__support_kvm_hi1822_hivirtionet',
|
148
|
+
'os_shutdown_timeout': 'os_shutdown_timeout'
|
139
149
|
}
|
140
150
|
|
141
|
-
def __init__(self, backup_id=None, data_origin=None, description=None,
|
142
|
-
"""ImageInfo
|
151
|
+
def __init__(self, backup_id=None, data_origin=None, description=None, image_size=None, image_source_type=None, imagetype=None, isregistered=None, originalimagename=None, os_bit=None, os_type=None, os_version=None, platform=None, productcode=None, support_diskintensive=None, support_highperformance=None, support_kvm=None, support_kvm_gpu_type=None, support_kvm_infiniband=None, support_largememory=None, support_xen=None, support_xen_gpu_type=None, support_xen_hana=None, system_support_market=None, checksum=None, container_format=None, created_at=None, disk_format=None, enterprise_project_id=None, file=None, id=None, min_disk=None, min_ram=None, name=None, owner=None, protected=None, schema=None, _self=None, size=None, status=None, tags=None, updated_at=None, virtual_env_type=None, virtual_size=None, visibility=None, support_fc_inject=None, hw_firmware_type=None, support_arm=None, max_ram=None, system__cmkid=None, os_feature_list=None, account_code=None, hw_vif_multiqueue_enabled=None, is_offshelved=None, lazyloading=None, root_origin=None, sequence_num=None, active_at=None, support_agent_list=None, image_displayname=None, support_amd=None, support_kvm_hi1822_hisriov=None, support_kvm_hi1822_hivirtionet=None, os_shutdown_timeout=None):
|
152
|
+
r"""ImageInfo
|
153
|
+
|
154
|
+
The model defined in huaweicloud sdk
|
155
|
+
|
156
|
+
:param backup_id: 备份ID。如果是备份创建的镜像,则填写为备份的ID,否则为空
|
157
|
+
:type backup_id: str
|
158
|
+
:param data_origin: 镜像来源。公共镜像为空
|
159
|
+
:type data_origin: str
|
160
|
+
:param description: 镜像描述信息。 支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。
|
161
|
+
:type description: str
|
162
|
+
:param image_size: 镜像文件的大小,单位为字节
|
163
|
+
:type image_size: str
|
164
|
+
:param image_source_type: 镜像后端存储类型,目前只支持uds
|
165
|
+
:type image_source_type: str
|
166
|
+
:param imagetype: 镜像类型,目前支持以下类型: 公共镜像:gold 私有镜像:private 共享镜像:shared 市场镜像:market
|
167
|
+
:type imagetype: str
|
168
|
+
:param isregistered: 是否是注册过的镜像,取值为“true”或者“false”
|
169
|
+
:type isregistered: str
|
170
|
+
:param originalimagename: 父镜像ID。公共镜像或通过文件创建的私有镜像,取值为空
|
171
|
+
:type originalimagename: str
|
172
|
+
:param os_bit: 操作系统位数,一般取值为“32”或者“64”
|
173
|
+
:type os_bit: str
|
174
|
+
:param os_type: 操作系统类型,目前取值Linux, Windows,Other
|
175
|
+
:type os_type: str
|
176
|
+
:param os_version: 操作系统具体版本
|
177
|
+
:type os_version: str
|
178
|
+
:param platform: 镜像平台分类
|
179
|
+
:type platform: str
|
180
|
+
:param productcode: 市场镜像的产品ID
|
181
|
+
:type productcode: str
|
182
|
+
:param support_diskintensive: 镜像来源表示该镜像支持密集存储。如果镜像支持密集存储性能,则值为true,否则无需增加该属性。
|
183
|
+
:type support_diskintensive: str
|
184
|
+
:param support_highperformance: 表示该镜像支持高计算性能。如果镜像支持高计算性能,则值为true,否则无需增加该属性。
|
185
|
+
:type support_highperformance: str
|
186
|
+
:param support_kvm: 如果镜像支持KVM,取值为true,否则无需增加该属性。
|
187
|
+
:type support_kvm: str
|
188
|
+
:param support_kvm_gpu_type: 表示该镜像是支持KVM虚拟化平台下的GPU类型,如果不支持KVM虚拟机下GPU类型,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。
|
189
|
+
:type support_kvm_gpu_type: str
|
190
|
+
:param support_kvm_infiniband: 如果镜像支持KVM虚拟化下Infiniband网卡类型,取值为true。否则,无需添加该属性。该属性与“__support_xen”属性不共存。
|
191
|
+
:type support_kvm_infiniband: str
|
192
|
+
:param support_largememory: 表示该镜像支持超大内存。如果镜像支持超大内存,取值为true,否则无需增加该属性。
|
193
|
+
:type support_largememory: str
|
194
|
+
:param support_xen: 如果镜像支持XEN,取值为true,否则无需增加该属性。
|
195
|
+
:type support_xen: str
|
196
|
+
:param support_xen_gpu_type: 表示该镜像是支持XEN虚拟化平台下的GPU优化类型,如果不支持XEN虚拟化下GPU类型,无需添加该属性 。该属性与“__support_xen”和“__support_kvm”属性不共存。
|
197
|
+
:type support_xen_gpu_type: str
|
198
|
+
:param support_xen_hana: 如果镜像支持XEN虚拟化下HANA类型,取值为true。否则,无需添加该属性。该属性与“__support_xen” 和“__support_kvm”属性不共存。
|
199
|
+
:type support_xen_hana: str
|
200
|
+
:param system_support_market: 表示当前镜像是否支持发布为市场镜像,true表示支持,false 表示不支持
|
201
|
+
:type system_support_market: bool
|
202
|
+
:param checksum: 目前暂时不使用
|
203
|
+
:type checksum: str
|
204
|
+
:param container_format: 容器类型
|
205
|
+
:type container_format: str
|
206
|
+
:param created_at: 创建时间。格式为UTC时间
|
207
|
+
:type created_at: str
|
208
|
+
:param disk_format: 镜像的格式,目前支持vhd,zvhd、raw,qcow2。默认值是vhd
|
209
|
+
:type disk_format: str
|
210
|
+
:param enterprise_project_id: 表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目,取值为UUID,表示属于该UUID对应的企业项目。
|
211
|
+
:type enterprise_project_id: str
|
212
|
+
:param file: 镜像文件下载和上传链接
|
213
|
+
:type file: str
|
214
|
+
:param id: 镜像ID
|
215
|
+
:type id: str
|
216
|
+
:param min_disk: 镜像运行需要的最小磁盘容量,单位为GB。取值为40~1024GB。
|
217
|
+
:type min_disk: int
|
218
|
+
:param min_ram: 镜像运行需要的最小内存,单位为MB。参数取值依据弹性云服务器的规格限制,默认设置为0
|
219
|
+
:type min_ram: int
|
220
|
+
:param name: 镜像名称。 名称的首尾字母不能为空格。 名称的长度至为1~128位。 名称包含以下4种字符: 大写字母 小写字母 数字 特殊字符包含-、.、_、空格和中文。
|
221
|
+
:type name: str
|
222
|
+
:param owner: 镜像属于哪个租户
|
223
|
+
:type owner: str
|
224
|
+
:param protected: 是否是受保护的,受保护的镜像不允许删除。取值为true或false
|
225
|
+
:type protected: bool
|
226
|
+
:param schema: 镜像视图
|
227
|
+
:type schema: str
|
228
|
+
:param _self: 镜像链接信息
|
229
|
+
:type _self: str
|
230
|
+
:param size: 目前暂时不使用
|
231
|
+
:type size: int
|
232
|
+
:param status: 镜像状态。取值如下:queued:表示镜像元数据已经创建成功,等待 上传镜像文件。saving:表示镜像 正在上传文件到后端存储。deleted:表示镜像已经删除。killed:表示镜像上传错误。active:表示镜像可以正常使用
|
233
|
+
:type status: str
|
234
|
+
:param tags: 镜像标签列表
|
235
|
+
:type tags: list[str]
|
236
|
+
:param updated_at: 更新时间。格式为UTC时间
|
237
|
+
:type updated_at: str
|
238
|
+
:param virtual_env_type: 镜像使用环境类型:FusionCompute,Ironic,DataImage。如果弹性云服务器镜像,则取值为FusionCompute,如果是数据卷镜像则取Dat aImage,如果是裸金属服务器镜像,则取值是Ironic
|
239
|
+
:type virtual_env_type: str
|
240
|
+
:param virtual_size: 目前暂时不使用
|
241
|
+
:type virtual_size: int
|
242
|
+
:param visibility: 是否被其他租户可见,取值为private、public或shared
|
243
|
+
:type visibility: str
|
244
|
+
:param support_fc_inject: 表示当前镜像支持CloudInit密码/密钥注入方式,建议设置为\"true\"或者\"false\"。 如果取值为\"true\",表示该镜像不支持CloudInit注入密码/密钥,其他取值时表示支持CloudInit注入密钥/密码。
|
245
|
+
:type support_fc_inject: str
|
246
|
+
:param hw_firmware_type: 云服务器的启动方式。目前支持: bios:表示bios引导启动。 uefi:表示uefi引导启动。
|
247
|
+
:type hw_firmware_type: str
|
248
|
+
:param support_arm: 是否是ARM架构类型的镜像,取值为“true”或者“false”。
|
249
|
+
:type support_arm: str
|
250
|
+
:param max_ram: 镜像支持的最大内存,单位为MB。取值可以参考云服务器规格限制,一般不设置。
|
251
|
+
:type max_ram: str
|
252
|
+
:param system__cmkid: 加密镜像所使用的密钥ID。
|
253
|
+
:type system__cmkid: str
|
254
|
+
:param os_feature_list: 镜像附加属性。该属性采用JSON格式来标识镜像支持的高级特性清单。
|
255
|
+
:type os_feature_list: str
|
256
|
+
:param account_code: 收费镜像标识。
|
257
|
+
:type account_code: str
|
258
|
+
:param hw_vif_multiqueue_enabled: 镜像是否支持网卡多队列。取值为“true”或者“false”。
|
259
|
+
:type hw_vif_multiqueue_enabled: str
|
260
|
+
:param is_offshelved: 表示当前市场镜像是否下架。true:已下架 false:未下架
|
261
|
+
:type is_offshelved: str
|
262
|
+
:param lazyloading: 镜像是否支持延迟加载。取值为“True”或“False”。
|
263
|
+
:type lazyloading: str
|
264
|
+
:param root_origin: 表示当前镜像来源是从外部导入。取值:file。
|
265
|
+
:type root_origin: str
|
266
|
+
:param sequence_num: 表示当前镜像对应云服务器的系统盘插槽位置。目前暂时不用
|
267
|
+
:type sequence_num: str
|
268
|
+
:param active_at: 镜像状态变为正常的时间。
|
269
|
+
:type active_at: str
|
270
|
+
:param support_agent_list: 镜像是否支持企业主机安全或主机监控。 hss:企业主机安全 ces:主机监控
|
271
|
+
:type support_agent_list: str
|
272
|
+
:param image_displayname: 对外展示名称。
|
273
|
+
:type image_displayname: str
|
274
|
+
:param support_amd: 是否是AMD架构类型的镜像。取值为“true”或者“false”。
|
275
|
+
:type support_amd: str
|
276
|
+
:param support_kvm_hi1822_hisriov: 如果镜像支持sriov直通,取值为true,否则无需增加该属性。
|
277
|
+
:type support_kvm_hi1822_hisriov: str
|
278
|
+
:param support_kvm_hi1822_hivirtionet: 如果镜像支持Virtio-net直通规格,取值为true,否则无需增加该属性。
|
279
|
+
:type support_kvm_hi1822_hivirtionet: str
|
280
|
+
:param os_shutdown_timeout: 设置虚拟机的优雅关机超时时间,设置范围为60-300,默认为60(取值为整数,单位为秒)。 云服务器在优雅关机超时后会触发强制关机,避免实例长时间处于关机状态中。 当您的云服务器关机过程中由于特定软件的状态、保存等原因导致优雅关机时间过长,会触发超时强制关机。 您可以通过设置镜像该字段,使得发放的云服务器优雅关机超时时间变长。 该字段当前只影响弹性云服务器,不影响裸金属服务器。
|
281
|
+
:type os_shutdown_timeout: str
|
282
|
+
"""
|
143
283
|
|
144
284
|
|
145
285
|
|
146
286
|
self._backup_id = None
|
147
287
|
self._data_origin = None
|
148
288
|
self._description = None
|
149
|
-
self._image_location = None
|
150
289
|
self._image_size = None
|
151
290
|
self._image_source_type = None
|
152
291
|
self._imagetype = None
|
153
|
-
self._is_config_init = None
|
154
292
|
self._isregistered = None
|
155
293
|
self._originalimagename = None
|
156
294
|
self._os_bit = None
|
@@ -189,7 +327,6 @@ class ImageInfo:
|
|
189
327
|
self._virtual_env_type = None
|
190
328
|
self._virtual_size = None
|
191
329
|
self._visibility = None
|
192
|
-
self._architecture = None
|
193
330
|
self._support_fc_inject = None
|
194
331
|
self._hw_firmware_type = None
|
195
332
|
self._support_arm = None
|
@@ -198,22 +335,38 @@ class ImageInfo:
|
|
198
335
|
self._os_feature_list = None
|
199
336
|
self._account_code = None
|
200
337
|
self._hw_vif_multiqueue_enabled = None
|
338
|
+
self._is_offshelved = None
|
339
|
+
self._lazyloading = None
|
340
|
+
self._root_origin = None
|
341
|
+
self._sequence_num = None
|
342
|
+
self._active_at = None
|
343
|
+
self._support_agent_list = None
|
344
|
+
self._image_displayname = None
|
345
|
+
self._support_amd = None
|
346
|
+
self._support_kvm_hi1822_hisriov = None
|
347
|
+
self._support_kvm_hi1822_hivirtionet = None
|
348
|
+
self._os_shutdown_timeout = None
|
201
349
|
self.discriminator = None
|
202
350
|
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
351
|
+
if backup_id is not None:
|
352
|
+
self.backup_id = backup_id
|
353
|
+
if data_origin is not None:
|
354
|
+
self.data_origin = data_origin
|
355
|
+
if description is not None:
|
356
|
+
self.description = description
|
207
357
|
self.image_size = image_size
|
208
358
|
self.image_source_type = image_source_type
|
209
359
|
self.imagetype = imagetype
|
210
|
-
self.is_config_init = is_config_init
|
211
360
|
self.isregistered = isregistered
|
212
|
-
|
213
|
-
|
361
|
+
if originalimagename is not None:
|
362
|
+
self.originalimagename = originalimagename
|
363
|
+
if os_bit is not None:
|
364
|
+
self.os_bit = os_bit
|
214
365
|
self.os_type = os_type
|
215
|
-
|
216
|
-
|
366
|
+
if os_version is not None:
|
367
|
+
self.os_version = os_version
|
368
|
+
if platform is not None:
|
369
|
+
self.platform = platform
|
217
370
|
if productcode is not None:
|
218
371
|
self.productcode = productcode
|
219
372
|
if support_diskintensive is not None:
|
@@ -242,7 +395,8 @@ class ImageInfo:
|
|
242
395
|
self.created_at = created_at
|
243
396
|
if disk_format is not None:
|
244
397
|
self.disk_format = disk_format
|
245
|
-
|
398
|
+
if enterprise_project_id is not None:
|
399
|
+
self.enterprise_project_id = enterprise_project_id
|
246
400
|
if file is not None:
|
247
401
|
self.file = file
|
248
402
|
self.id = id
|
@@ -260,9 +414,9 @@ class ImageInfo:
|
|
260
414
|
self.tags = tags
|
261
415
|
self.updated_at = updated_at
|
262
416
|
self.virtual_env_type = virtual_env_type
|
263
|
-
|
417
|
+
if virtual_size is not None:
|
418
|
+
self.virtual_size = virtual_size
|
264
419
|
self.visibility = visibility
|
265
|
-
self.architecture = architecture
|
266
420
|
if support_fc_inject is not None:
|
267
421
|
self.support_fc_inject = support_fc_inject
|
268
422
|
if hw_firmware_type is not None:
|
@@ -279,10 +433,31 @@ class ImageInfo:
|
|
279
433
|
self.account_code = account_code
|
280
434
|
if hw_vif_multiqueue_enabled is not None:
|
281
435
|
self.hw_vif_multiqueue_enabled = hw_vif_multiqueue_enabled
|
436
|
+
if is_offshelved is not None:
|
437
|
+
self.is_offshelved = is_offshelved
|
438
|
+
if lazyloading is not None:
|
439
|
+
self.lazyloading = lazyloading
|
440
|
+
if root_origin is not None:
|
441
|
+
self.root_origin = root_origin
|
442
|
+
if sequence_num is not None:
|
443
|
+
self.sequence_num = sequence_num
|
444
|
+
self.active_at = active_at
|
445
|
+
if support_agent_list is not None:
|
446
|
+
self.support_agent_list = support_agent_list
|
447
|
+
if image_displayname is not None:
|
448
|
+
self.image_displayname = image_displayname
|
449
|
+
if support_amd is not None:
|
450
|
+
self.support_amd = support_amd
|
451
|
+
if support_kvm_hi1822_hisriov is not None:
|
452
|
+
self.support_kvm_hi1822_hisriov = support_kvm_hi1822_hisriov
|
453
|
+
if support_kvm_hi1822_hivirtionet is not None:
|
454
|
+
self.support_kvm_hi1822_hivirtionet = support_kvm_hi1822_hivirtionet
|
455
|
+
if os_shutdown_timeout is not None:
|
456
|
+
self.os_shutdown_timeout = os_shutdown_timeout
|
282
457
|
|
283
458
|
@property
|
284
459
|
def backup_id(self):
|
285
|
-
"""Gets the backup_id of this ImageInfo.
|
460
|
+
r"""Gets the backup_id of this ImageInfo.
|
286
461
|
|
287
462
|
备份ID。如果是备份创建的镜像,则填写为备份的ID,否则为空
|
288
463
|
|
@@ -293,18 +468,18 @@ class ImageInfo:
|
|
293
468
|
|
294
469
|
@backup_id.setter
|
295
470
|
def backup_id(self, backup_id):
|
296
|
-
"""Sets the backup_id of this ImageInfo.
|
471
|
+
r"""Sets the backup_id of this ImageInfo.
|
297
472
|
|
298
473
|
备份ID。如果是备份创建的镜像,则填写为备份的ID,否则为空
|
299
474
|
|
300
475
|
:param backup_id: The backup_id of this ImageInfo.
|
301
|
-
:type: str
|
476
|
+
:type backup_id: str
|
302
477
|
"""
|
303
478
|
self._backup_id = backup_id
|
304
479
|
|
305
480
|
@property
|
306
481
|
def data_origin(self):
|
307
|
-
"""Gets the data_origin of this ImageInfo.
|
482
|
+
r"""Gets the data_origin of this ImageInfo.
|
308
483
|
|
309
484
|
镜像来源。公共镜像为空
|
310
485
|
|
@@ -315,18 +490,18 @@ class ImageInfo:
|
|
315
490
|
|
316
491
|
@data_origin.setter
|
317
492
|
def data_origin(self, data_origin):
|
318
|
-
"""Sets the data_origin of this ImageInfo.
|
493
|
+
r"""Sets the data_origin of this ImageInfo.
|
319
494
|
|
320
495
|
镜像来源。公共镜像为空
|
321
496
|
|
322
497
|
:param data_origin: The data_origin of this ImageInfo.
|
323
|
-
:type: str
|
498
|
+
:type data_origin: str
|
324
499
|
"""
|
325
500
|
self._data_origin = data_origin
|
326
501
|
|
327
502
|
@property
|
328
503
|
def description(self):
|
329
|
-
"""Gets the description of this ImageInfo.
|
504
|
+
r"""Gets the description of this ImageInfo.
|
330
505
|
|
331
506
|
镜像描述信息。 支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。
|
332
507
|
|
@@ -337,40 +512,18 @@ class ImageInfo:
|
|
337
512
|
|
338
513
|
@description.setter
|
339
514
|
def description(self, description):
|
340
|
-
"""Sets the description of this ImageInfo.
|
515
|
+
r"""Sets the description of this ImageInfo.
|
341
516
|
|
342
517
|
镜像描述信息。 支持字母、数字、中文等,不支持回车、<、 >,长度不能超过1024个字符。
|
343
518
|
|
344
519
|
:param description: The description of this ImageInfo.
|
345
|
-
:type: str
|
520
|
+
:type description: str
|
346
521
|
"""
|
347
522
|
self._description = description
|
348
523
|
|
349
|
-
@property
|
350
|
-
def image_location(self):
|
351
|
-
"""Gets the image_location of this ImageInfo.
|
352
|
-
|
353
|
-
镜像的存储位置
|
354
|
-
|
355
|
-
:return: The image_location of this ImageInfo.
|
356
|
-
:rtype: str
|
357
|
-
"""
|
358
|
-
return self._image_location
|
359
|
-
|
360
|
-
@image_location.setter
|
361
|
-
def image_location(self, image_location):
|
362
|
-
"""Sets the image_location of this ImageInfo.
|
363
|
-
|
364
|
-
镜像的存储位置
|
365
|
-
|
366
|
-
:param image_location: The image_location of this ImageInfo.
|
367
|
-
:type: str
|
368
|
-
"""
|
369
|
-
self._image_location = image_location
|
370
|
-
|
371
524
|
@property
|
372
525
|
def image_size(self):
|
373
|
-
"""Gets the image_size of this ImageInfo.
|
526
|
+
r"""Gets the image_size of this ImageInfo.
|
374
527
|
|
375
528
|
镜像文件的大小,单位为字节
|
376
529
|
|
@@ -381,18 +534,18 @@ class ImageInfo:
|
|
381
534
|
|
382
535
|
@image_size.setter
|
383
536
|
def image_size(self, image_size):
|
384
|
-
"""Sets the image_size of this ImageInfo.
|
537
|
+
r"""Sets the image_size of this ImageInfo.
|
385
538
|
|
386
539
|
镜像文件的大小,单位为字节
|
387
540
|
|
388
541
|
:param image_size: The image_size of this ImageInfo.
|
389
|
-
:type: str
|
542
|
+
:type image_size: str
|
390
543
|
"""
|
391
544
|
self._image_size = image_size
|
392
545
|
|
393
546
|
@property
|
394
547
|
def image_source_type(self):
|
395
|
-
"""Gets the image_source_type of this ImageInfo.
|
548
|
+
r"""Gets the image_source_type of this ImageInfo.
|
396
549
|
|
397
550
|
镜像后端存储类型,目前只支持uds
|
398
551
|
|
@@ -403,20 +556,20 @@ class ImageInfo:
|
|
403
556
|
|
404
557
|
@image_source_type.setter
|
405
558
|
def image_source_type(self, image_source_type):
|
406
|
-
"""Sets the image_source_type of this ImageInfo.
|
559
|
+
r"""Sets the image_source_type of this ImageInfo.
|
407
560
|
|
408
561
|
镜像后端存储类型,目前只支持uds
|
409
562
|
|
410
563
|
:param image_source_type: The image_source_type of this ImageInfo.
|
411
|
-
:type: str
|
564
|
+
:type image_source_type: str
|
412
565
|
"""
|
413
566
|
self._image_source_type = image_source_type
|
414
567
|
|
415
568
|
@property
|
416
569
|
def imagetype(self):
|
417
|
-
"""Gets the imagetype of this ImageInfo.
|
570
|
+
r"""Gets the imagetype of this ImageInfo.
|
418
571
|
|
419
|
-
镜像类型,目前支持以下类型: 公共镜像:gold 私有镜像:private 共享镜像:shared
|
572
|
+
镜像类型,目前支持以下类型: 公共镜像:gold 私有镜像:private 共享镜像:shared 市场镜像:market
|
420
573
|
|
421
574
|
:return: The imagetype of this ImageInfo.
|
422
575
|
:rtype: str
|
@@ -425,40 +578,18 @@ class ImageInfo:
|
|
425
578
|
|
426
579
|
@imagetype.setter
|
427
580
|
def imagetype(self, imagetype):
|
428
|
-
"""Sets the imagetype of this ImageInfo.
|
581
|
+
r"""Sets the imagetype of this ImageInfo.
|
429
582
|
|
430
|
-
镜像类型,目前支持以下类型: 公共镜像:gold 私有镜像:private 共享镜像:shared
|
583
|
+
镜像类型,目前支持以下类型: 公共镜像:gold 私有镜像:private 共享镜像:shared 市场镜像:market
|
431
584
|
|
432
585
|
:param imagetype: The imagetype of this ImageInfo.
|
433
|
-
:type: str
|
586
|
+
:type imagetype: str
|
434
587
|
"""
|
435
588
|
self._imagetype = imagetype
|
436
589
|
|
437
|
-
@property
|
438
|
-
def is_config_init(self):
|
439
|
-
"""Gets the is_config_init of this ImageInfo.
|
440
|
-
|
441
|
-
是否完成了初始化配置。取值为true或false。如果用户确定完成了初始化配置,则可以设置为true,否则设置为false。默认为false。
|
442
|
-
|
443
|
-
:return: The is_config_init of this ImageInfo.
|
444
|
-
:rtype: str
|
445
|
-
"""
|
446
|
-
return self._is_config_init
|
447
|
-
|
448
|
-
@is_config_init.setter
|
449
|
-
def is_config_init(self, is_config_init):
|
450
|
-
"""Sets the is_config_init of this ImageInfo.
|
451
|
-
|
452
|
-
是否完成了初始化配置。取值为true或false。如果用户确定完成了初始化配置,则可以设置为true,否则设置为false。默认为false。
|
453
|
-
|
454
|
-
:param is_config_init: The is_config_init of this ImageInfo.
|
455
|
-
:type: str
|
456
|
-
"""
|
457
|
-
self._is_config_init = is_config_init
|
458
|
-
|
459
590
|
@property
|
460
591
|
def isregistered(self):
|
461
|
-
"""Gets the isregistered of this ImageInfo.
|
592
|
+
r"""Gets the isregistered of this ImageInfo.
|
462
593
|
|
463
594
|
是否是注册过的镜像,取值为“true”或者“false”
|
464
595
|
|
@@ -469,18 +600,18 @@ class ImageInfo:
|
|
469
600
|
|
470
601
|
@isregistered.setter
|
471
602
|
def isregistered(self, isregistered):
|
472
|
-
"""Sets the isregistered of this ImageInfo.
|
603
|
+
r"""Sets the isregistered of this ImageInfo.
|
473
604
|
|
474
605
|
是否是注册过的镜像,取值为“true”或者“false”
|
475
606
|
|
476
607
|
:param isregistered: The isregistered of this ImageInfo.
|
477
|
-
:type: str
|
608
|
+
:type isregistered: str
|
478
609
|
"""
|
479
610
|
self._isregistered = isregistered
|
480
611
|
|
481
612
|
@property
|
482
613
|
def originalimagename(self):
|
483
|
-
"""Gets the originalimagename of this ImageInfo.
|
614
|
+
r"""Gets the originalimagename of this ImageInfo.
|
484
615
|
|
485
616
|
父镜像ID。公共镜像或通过文件创建的私有镜像,取值为空
|
486
617
|
|
@@ -491,18 +622,18 @@ class ImageInfo:
|
|
491
622
|
|
492
623
|
@originalimagename.setter
|
493
624
|
def originalimagename(self, originalimagename):
|
494
|
-
"""Sets the originalimagename of this ImageInfo.
|
625
|
+
r"""Sets the originalimagename of this ImageInfo.
|
495
626
|
|
496
627
|
父镜像ID。公共镜像或通过文件创建的私有镜像,取值为空
|
497
628
|
|
498
629
|
:param originalimagename: The originalimagename of this ImageInfo.
|
499
|
-
:type: str
|
630
|
+
:type originalimagename: str
|
500
631
|
"""
|
501
632
|
self._originalimagename = originalimagename
|
502
633
|
|
503
634
|
@property
|
504
635
|
def os_bit(self):
|
505
|
-
"""Gets the os_bit of this ImageInfo.
|
636
|
+
r"""Gets the os_bit of this ImageInfo.
|
506
637
|
|
507
638
|
操作系统位数,一般取值为“32”或者“64”
|
508
639
|
|
@@ -513,18 +644,18 @@ class ImageInfo:
|
|
513
644
|
|
514
645
|
@os_bit.setter
|
515
646
|
def os_bit(self, os_bit):
|
516
|
-
"""Sets the os_bit of this ImageInfo.
|
647
|
+
r"""Sets the os_bit of this ImageInfo.
|
517
648
|
|
518
649
|
操作系统位数,一般取值为“32”或者“64”
|
519
650
|
|
520
651
|
:param os_bit: The os_bit of this ImageInfo.
|
521
|
-
:type: str
|
652
|
+
:type os_bit: str
|
522
653
|
"""
|
523
654
|
self._os_bit = os_bit
|
524
655
|
|
525
656
|
@property
|
526
657
|
def os_type(self):
|
527
|
-
"""Gets the os_type of this ImageInfo.
|
658
|
+
r"""Gets the os_type of this ImageInfo.
|
528
659
|
|
529
660
|
操作系统类型,目前取值Linux, Windows,Other
|
530
661
|
|
@@ -535,18 +666,18 @@ class ImageInfo:
|
|
535
666
|
|
536
667
|
@os_type.setter
|
537
668
|
def os_type(self, os_type):
|
538
|
-
"""Sets the os_type of this ImageInfo.
|
669
|
+
r"""Sets the os_type of this ImageInfo.
|
539
670
|
|
540
671
|
操作系统类型,目前取值Linux, Windows,Other
|
541
672
|
|
542
673
|
:param os_type: The os_type of this ImageInfo.
|
543
|
-
:type: str
|
674
|
+
:type os_type: str
|
544
675
|
"""
|
545
676
|
self._os_type = os_type
|
546
677
|
|
547
678
|
@property
|
548
679
|
def os_version(self):
|
549
|
-
"""Gets the os_version of this ImageInfo.
|
680
|
+
r"""Gets the os_version of this ImageInfo.
|
550
681
|
|
551
682
|
操作系统具体版本
|
552
683
|
|
@@ -557,18 +688,18 @@ class ImageInfo:
|
|
557
688
|
|
558
689
|
@os_version.setter
|
559
690
|
def os_version(self, os_version):
|
560
|
-
"""Sets the os_version of this ImageInfo.
|
691
|
+
r"""Sets the os_version of this ImageInfo.
|
561
692
|
|
562
693
|
操作系统具体版本
|
563
694
|
|
564
695
|
:param os_version: The os_version of this ImageInfo.
|
565
|
-
:type: str
|
696
|
+
:type os_version: str
|
566
697
|
"""
|
567
698
|
self._os_version = os_version
|
568
699
|
|
569
700
|
@property
|
570
701
|
def platform(self):
|
571
|
-
"""Gets the platform of this ImageInfo.
|
702
|
+
r"""Gets the platform of this ImageInfo.
|
572
703
|
|
573
704
|
镜像平台分类
|
574
705
|
|
@@ -579,18 +710,18 @@ class ImageInfo:
|
|
579
710
|
|
580
711
|
@platform.setter
|
581
712
|
def platform(self, platform):
|
582
|
-
"""Sets the platform of this ImageInfo.
|
713
|
+
r"""Sets the platform of this ImageInfo.
|
583
714
|
|
584
715
|
镜像平台分类
|
585
716
|
|
586
717
|
:param platform: The platform of this ImageInfo.
|
587
|
-
:type: str
|
718
|
+
:type platform: str
|
588
719
|
"""
|
589
720
|
self._platform = platform
|
590
721
|
|
591
722
|
@property
|
592
723
|
def productcode(self):
|
593
|
-
"""Gets the productcode of this ImageInfo.
|
724
|
+
r"""Gets the productcode of this ImageInfo.
|
594
725
|
|
595
726
|
市场镜像的产品ID
|
596
727
|
|
@@ -601,18 +732,18 @@ class ImageInfo:
|
|
601
732
|
|
602
733
|
@productcode.setter
|
603
734
|
def productcode(self, productcode):
|
604
|
-
"""Sets the productcode of this ImageInfo.
|
735
|
+
r"""Sets the productcode of this ImageInfo.
|
605
736
|
|
606
737
|
市场镜像的产品ID
|
607
738
|
|
608
739
|
:param productcode: The productcode of this ImageInfo.
|
609
|
-
:type: str
|
740
|
+
:type productcode: str
|
610
741
|
"""
|
611
742
|
self._productcode = productcode
|
612
743
|
|
613
744
|
@property
|
614
745
|
def support_diskintensive(self):
|
615
|
-
"""Gets the support_diskintensive of this ImageInfo.
|
746
|
+
r"""Gets the support_diskintensive of this ImageInfo.
|
616
747
|
|
617
748
|
镜像来源表示该镜像支持密集存储。如果镜像支持密集存储性能,则值为true,否则无需增加该属性。
|
618
749
|
|
@@ -623,18 +754,18 @@ class ImageInfo:
|
|
623
754
|
|
624
755
|
@support_diskintensive.setter
|
625
756
|
def support_diskintensive(self, support_diskintensive):
|
626
|
-
"""Sets the support_diskintensive of this ImageInfo.
|
757
|
+
r"""Sets the support_diskintensive of this ImageInfo.
|
627
758
|
|
628
759
|
镜像来源表示该镜像支持密集存储。如果镜像支持密集存储性能,则值为true,否则无需增加该属性。
|
629
760
|
|
630
761
|
:param support_diskintensive: The support_diskintensive of this ImageInfo.
|
631
|
-
:type: str
|
762
|
+
:type support_diskintensive: str
|
632
763
|
"""
|
633
764
|
self._support_diskintensive = support_diskintensive
|
634
765
|
|
635
766
|
@property
|
636
767
|
def support_highperformance(self):
|
637
|
-
"""Gets the support_highperformance of this ImageInfo.
|
768
|
+
r"""Gets the support_highperformance of this ImageInfo.
|
638
769
|
|
639
770
|
表示该镜像支持高计算性能。如果镜像支持高计算性能,则值为true,否则无需增加该属性。
|
640
771
|
|
@@ -645,18 +776,18 @@ class ImageInfo:
|
|
645
776
|
|
646
777
|
@support_highperformance.setter
|
647
778
|
def support_highperformance(self, support_highperformance):
|
648
|
-
"""Sets the support_highperformance of this ImageInfo.
|
779
|
+
r"""Sets the support_highperformance of this ImageInfo.
|
649
780
|
|
650
781
|
表示该镜像支持高计算性能。如果镜像支持高计算性能,则值为true,否则无需增加该属性。
|
651
782
|
|
652
783
|
:param support_highperformance: The support_highperformance of this ImageInfo.
|
653
|
-
:type: str
|
784
|
+
:type support_highperformance: str
|
654
785
|
"""
|
655
786
|
self._support_highperformance = support_highperformance
|
656
787
|
|
657
788
|
@property
|
658
789
|
def support_kvm(self):
|
659
|
-
"""Gets the support_kvm of this ImageInfo.
|
790
|
+
r"""Gets the support_kvm of this ImageInfo.
|
660
791
|
|
661
792
|
如果镜像支持KVM,取值为true,否则无需增加该属性。
|
662
793
|
|
@@ -667,18 +798,18 @@ class ImageInfo:
|
|
667
798
|
|
668
799
|
@support_kvm.setter
|
669
800
|
def support_kvm(self, support_kvm):
|
670
|
-
"""Sets the support_kvm of this ImageInfo.
|
801
|
+
r"""Sets the support_kvm of this ImageInfo.
|
671
802
|
|
672
803
|
如果镜像支持KVM,取值为true,否则无需增加该属性。
|
673
804
|
|
674
805
|
:param support_kvm: The support_kvm of this ImageInfo.
|
675
|
-
:type: str
|
806
|
+
:type support_kvm: str
|
676
807
|
"""
|
677
808
|
self._support_kvm = support_kvm
|
678
809
|
|
679
810
|
@property
|
680
811
|
def support_kvm_gpu_type(self):
|
681
|
-
"""Gets the support_kvm_gpu_type of this ImageInfo.
|
812
|
+
r"""Gets the support_kvm_gpu_type of this ImageInfo.
|
682
813
|
|
683
814
|
表示该镜像是支持KVM虚拟化平台下的GPU类型,如果不支持KVM虚拟机下GPU类型,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。
|
684
815
|
|
@@ -689,18 +820,18 @@ class ImageInfo:
|
|
689
820
|
|
690
821
|
@support_kvm_gpu_type.setter
|
691
822
|
def support_kvm_gpu_type(self, support_kvm_gpu_type):
|
692
|
-
"""Sets the support_kvm_gpu_type of this ImageInfo.
|
823
|
+
r"""Sets the support_kvm_gpu_type of this ImageInfo.
|
693
824
|
|
694
825
|
表示该镜像是支持KVM虚拟化平台下的GPU类型,如果不支持KVM虚拟机下GPU类型,无需添加该属性。该属性与“__support_xen”和“__support_kvm”属性不共存。
|
695
826
|
|
696
827
|
:param support_kvm_gpu_type: The support_kvm_gpu_type of this ImageInfo.
|
697
|
-
:type: str
|
828
|
+
:type support_kvm_gpu_type: str
|
698
829
|
"""
|
699
830
|
self._support_kvm_gpu_type = support_kvm_gpu_type
|
700
831
|
|
701
832
|
@property
|
702
833
|
def support_kvm_infiniband(self):
|
703
|
-
"""Gets the support_kvm_infiniband of this ImageInfo.
|
834
|
+
r"""Gets the support_kvm_infiniband of this ImageInfo.
|
704
835
|
|
705
836
|
如果镜像支持KVM虚拟化下Infiniband网卡类型,取值为true。否则,无需添加该属性。该属性与“__support_xen”属性不共存。
|
706
837
|
|
@@ -711,18 +842,18 @@ class ImageInfo:
|
|
711
842
|
|
712
843
|
@support_kvm_infiniband.setter
|
713
844
|
def support_kvm_infiniband(self, support_kvm_infiniband):
|
714
|
-
"""Sets the support_kvm_infiniband of this ImageInfo.
|
845
|
+
r"""Sets the support_kvm_infiniband of this ImageInfo.
|
715
846
|
|
716
847
|
如果镜像支持KVM虚拟化下Infiniband网卡类型,取值为true。否则,无需添加该属性。该属性与“__support_xen”属性不共存。
|
717
848
|
|
718
849
|
:param support_kvm_infiniband: The support_kvm_infiniband of this ImageInfo.
|
719
|
-
:type: str
|
850
|
+
:type support_kvm_infiniband: str
|
720
851
|
"""
|
721
852
|
self._support_kvm_infiniband = support_kvm_infiniband
|
722
853
|
|
723
854
|
@property
|
724
855
|
def support_largememory(self):
|
725
|
-
"""Gets the support_largememory of this ImageInfo.
|
856
|
+
r"""Gets the support_largememory of this ImageInfo.
|
726
857
|
|
727
858
|
表示该镜像支持超大内存。如果镜像支持超大内存,取值为true,否则无需增加该属性。
|
728
859
|
|
@@ -733,18 +864,18 @@ class ImageInfo:
|
|
733
864
|
|
734
865
|
@support_largememory.setter
|
735
866
|
def support_largememory(self, support_largememory):
|
736
|
-
"""Sets the support_largememory of this ImageInfo.
|
867
|
+
r"""Sets the support_largememory of this ImageInfo.
|
737
868
|
|
738
869
|
表示该镜像支持超大内存。如果镜像支持超大内存,取值为true,否则无需增加该属性。
|
739
870
|
|
740
871
|
:param support_largememory: The support_largememory of this ImageInfo.
|
741
|
-
:type: str
|
872
|
+
:type support_largememory: str
|
742
873
|
"""
|
743
874
|
self._support_largememory = support_largememory
|
744
875
|
|
745
876
|
@property
|
746
877
|
def support_xen(self):
|
747
|
-
"""Gets the support_xen of this ImageInfo.
|
878
|
+
r"""Gets the support_xen of this ImageInfo.
|
748
879
|
|
749
880
|
如果镜像支持XEN,取值为true,否则无需增加该属性。
|
750
881
|
|
@@ -755,18 +886,18 @@ class ImageInfo:
|
|
755
886
|
|
756
887
|
@support_xen.setter
|
757
888
|
def support_xen(self, support_xen):
|
758
|
-
"""Sets the support_xen of this ImageInfo.
|
889
|
+
r"""Sets the support_xen of this ImageInfo.
|
759
890
|
|
760
891
|
如果镜像支持XEN,取值为true,否则无需增加该属性。
|
761
892
|
|
762
893
|
:param support_xen: The support_xen of this ImageInfo.
|
763
|
-
:type: str
|
894
|
+
:type support_xen: str
|
764
895
|
"""
|
765
896
|
self._support_xen = support_xen
|
766
897
|
|
767
898
|
@property
|
768
899
|
def support_xen_gpu_type(self):
|
769
|
-
"""Gets the support_xen_gpu_type of this ImageInfo.
|
900
|
+
r"""Gets the support_xen_gpu_type of this ImageInfo.
|
770
901
|
|
771
902
|
表示该镜像是支持XEN虚拟化平台下的GPU优化类型,如果不支持XEN虚拟化下GPU类型,无需添加该属性 。该属性与“__support_xen”和“__support_kvm”属性不共存。
|
772
903
|
|
@@ -777,18 +908,18 @@ class ImageInfo:
|
|
777
908
|
|
778
909
|
@support_xen_gpu_type.setter
|
779
910
|
def support_xen_gpu_type(self, support_xen_gpu_type):
|
780
|
-
"""Sets the support_xen_gpu_type of this ImageInfo.
|
911
|
+
r"""Sets the support_xen_gpu_type of this ImageInfo.
|
781
912
|
|
782
913
|
表示该镜像是支持XEN虚拟化平台下的GPU优化类型,如果不支持XEN虚拟化下GPU类型,无需添加该属性 。该属性与“__support_xen”和“__support_kvm”属性不共存。
|
783
914
|
|
784
915
|
:param support_xen_gpu_type: The support_xen_gpu_type of this ImageInfo.
|
785
|
-
:type: str
|
916
|
+
:type support_xen_gpu_type: str
|
786
917
|
"""
|
787
918
|
self._support_xen_gpu_type = support_xen_gpu_type
|
788
919
|
|
789
920
|
@property
|
790
921
|
def support_xen_hana(self):
|
791
|
-
"""Gets the support_xen_hana of this ImageInfo.
|
922
|
+
r"""Gets the support_xen_hana of this ImageInfo.
|
792
923
|
|
793
924
|
如果镜像支持XEN虚拟化下HANA类型,取值为true。否则,无需添加该属性。该属性与“__support_xen” 和“__support_kvm”属性不共存。
|
794
925
|
|
@@ -799,18 +930,18 @@ class ImageInfo:
|
|
799
930
|
|
800
931
|
@support_xen_hana.setter
|
801
932
|
def support_xen_hana(self, support_xen_hana):
|
802
|
-
"""Sets the support_xen_hana of this ImageInfo.
|
933
|
+
r"""Sets the support_xen_hana of this ImageInfo.
|
803
934
|
|
804
935
|
如果镜像支持XEN虚拟化下HANA类型,取值为true。否则,无需添加该属性。该属性与“__support_xen” 和“__support_kvm”属性不共存。
|
805
936
|
|
806
937
|
:param support_xen_hana: The support_xen_hana of this ImageInfo.
|
807
|
-
:type: str
|
938
|
+
:type support_xen_hana: str
|
808
939
|
"""
|
809
940
|
self._support_xen_hana = support_xen_hana
|
810
941
|
|
811
942
|
@property
|
812
943
|
def system_support_market(self):
|
813
|
-
"""Gets the system_support_market of this ImageInfo.
|
944
|
+
r"""Gets the system_support_market of this ImageInfo.
|
814
945
|
|
815
946
|
表示当前镜像是否支持发布为市场镜像,true表示支持,false 表示不支持
|
816
947
|
|
@@ -821,18 +952,18 @@ class ImageInfo:
|
|
821
952
|
|
822
953
|
@system_support_market.setter
|
823
954
|
def system_support_market(self, system_support_market):
|
824
|
-
"""Sets the system_support_market of this ImageInfo.
|
955
|
+
r"""Sets the system_support_market of this ImageInfo.
|
825
956
|
|
826
957
|
表示当前镜像是否支持发布为市场镜像,true表示支持,false 表示不支持
|
827
958
|
|
828
959
|
:param system_support_market: The system_support_market of this ImageInfo.
|
829
|
-
:type: bool
|
960
|
+
:type system_support_market: bool
|
830
961
|
"""
|
831
962
|
self._system_support_market = system_support_market
|
832
963
|
|
833
964
|
@property
|
834
965
|
def checksum(self):
|
835
|
-
"""Gets the checksum of this ImageInfo.
|
966
|
+
r"""Gets the checksum of this ImageInfo.
|
836
967
|
|
837
968
|
目前暂时不使用
|
838
969
|
|
@@ -843,18 +974,18 @@ class ImageInfo:
|
|
843
974
|
|
844
975
|
@checksum.setter
|
845
976
|
def checksum(self, checksum):
|
846
|
-
"""Sets the checksum of this ImageInfo.
|
977
|
+
r"""Sets the checksum of this ImageInfo.
|
847
978
|
|
848
979
|
目前暂时不使用
|
849
980
|
|
850
981
|
:param checksum: The checksum of this ImageInfo.
|
851
|
-
:type: str
|
982
|
+
:type checksum: str
|
852
983
|
"""
|
853
984
|
self._checksum = checksum
|
854
985
|
|
855
986
|
@property
|
856
987
|
def container_format(self):
|
857
|
-
"""Gets the container_format of this ImageInfo.
|
988
|
+
r"""Gets the container_format of this ImageInfo.
|
858
989
|
|
859
990
|
容器类型
|
860
991
|
|
@@ -865,18 +996,18 @@ class ImageInfo:
|
|
865
996
|
|
866
997
|
@container_format.setter
|
867
998
|
def container_format(self, container_format):
|
868
|
-
"""Sets the container_format of this ImageInfo.
|
999
|
+
r"""Sets the container_format of this ImageInfo.
|
869
1000
|
|
870
1001
|
容器类型
|
871
1002
|
|
872
1003
|
:param container_format: The container_format of this ImageInfo.
|
873
|
-
:type: str
|
1004
|
+
:type container_format: str
|
874
1005
|
"""
|
875
1006
|
self._container_format = container_format
|
876
1007
|
|
877
1008
|
@property
|
878
1009
|
def created_at(self):
|
879
|
-
"""Gets the created_at of this ImageInfo.
|
1010
|
+
r"""Gets the created_at of this ImageInfo.
|
880
1011
|
|
881
1012
|
创建时间。格式为UTC时间
|
882
1013
|
|
@@ -887,18 +1018,18 @@ class ImageInfo:
|
|
887
1018
|
|
888
1019
|
@created_at.setter
|
889
1020
|
def created_at(self, created_at):
|
890
|
-
"""Sets the created_at of this ImageInfo.
|
1021
|
+
r"""Sets the created_at of this ImageInfo.
|
891
1022
|
|
892
1023
|
创建时间。格式为UTC时间
|
893
1024
|
|
894
1025
|
:param created_at: The created_at of this ImageInfo.
|
895
|
-
:type: str
|
1026
|
+
:type created_at: str
|
896
1027
|
"""
|
897
1028
|
self._created_at = created_at
|
898
1029
|
|
899
1030
|
@property
|
900
1031
|
def disk_format(self):
|
901
|
-
"""Gets the disk_format of this ImageInfo.
|
1032
|
+
r"""Gets the disk_format of this ImageInfo.
|
902
1033
|
|
903
1034
|
镜像的格式,目前支持vhd,zvhd、raw,qcow2。默认值是vhd
|
904
1035
|
|
@@ -909,18 +1040,18 @@ class ImageInfo:
|
|
909
1040
|
|
910
1041
|
@disk_format.setter
|
911
1042
|
def disk_format(self, disk_format):
|
912
|
-
"""Sets the disk_format of this ImageInfo.
|
1043
|
+
r"""Sets the disk_format of this ImageInfo.
|
913
1044
|
|
914
1045
|
镜像的格式,目前支持vhd,zvhd、raw,qcow2。默认值是vhd
|
915
1046
|
|
916
1047
|
:param disk_format: The disk_format of this ImageInfo.
|
917
|
-
:type: str
|
1048
|
+
:type disk_format: str
|
918
1049
|
"""
|
919
1050
|
self._disk_format = disk_format
|
920
1051
|
|
921
1052
|
@property
|
922
1053
|
def enterprise_project_id(self):
|
923
|
-
"""Gets the enterprise_project_id of this ImageInfo.
|
1054
|
+
r"""Gets the enterprise_project_id of this ImageInfo.
|
924
1055
|
|
925
1056
|
表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目,取值为UUID,表示属于该UUID对应的企业项目。
|
926
1057
|
|
@@ -931,18 +1062,18 @@ class ImageInfo:
|
|
931
1062
|
|
932
1063
|
@enterprise_project_id.setter
|
933
1064
|
def enterprise_project_id(self, enterprise_project_id):
|
934
|
-
"""Sets the enterprise_project_id of this ImageInfo.
|
1065
|
+
r"""Sets the enterprise_project_id of this ImageInfo.
|
935
1066
|
|
936
1067
|
表示当前镜像所属的企业项目。取值为0或无该值,表示属于default企业项目,取值为UUID,表示属于该UUID对应的企业项目。
|
937
1068
|
|
938
1069
|
:param enterprise_project_id: The enterprise_project_id of this ImageInfo.
|
939
|
-
:type: str
|
1070
|
+
:type enterprise_project_id: str
|
940
1071
|
"""
|
941
1072
|
self._enterprise_project_id = enterprise_project_id
|
942
1073
|
|
943
1074
|
@property
|
944
1075
|
def file(self):
|
945
|
-
"""Gets the file of this ImageInfo.
|
1076
|
+
r"""Gets the file of this ImageInfo.
|
946
1077
|
|
947
1078
|
镜像文件下载和上传链接
|
948
1079
|
|
@@ -953,18 +1084,18 @@ class ImageInfo:
|
|
953
1084
|
|
954
1085
|
@file.setter
|
955
1086
|
def file(self, file):
|
956
|
-
"""Sets the file of this ImageInfo.
|
1087
|
+
r"""Sets the file of this ImageInfo.
|
957
1088
|
|
958
1089
|
镜像文件下载和上传链接
|
959
1090
|
|
960
1091
|
:param file: The file of this ImageInfo.
|
961
|
-
:type: str
|
1092
|
+
:type file: str
|
962
1093
|
"""
|
963
1094
|
self._file = file
|
964
1095
|
|
965
1096
|
@property
|
966
1097
|
def id(self):
|
967
|
-
"""Gets the id of this ImageInfo.
|
1098
|
+
r"""Gets the id of this ImageInfo.
|
968
1099
|
|
969
1100
|
镜像ID
|
970
1101
|
|
@@ -975,18 +1106,18 @@ class ImageInfo:
|
|
975
1106
|
|
976
1107
|
@id.setter
|
977
1108
|
def id(self, id):
|
978
|
-
"""Sets the id of this ImageInfo.
|
1109
|
+
r"""Sets the id of this ImageInfo.
|
979
1110
|
|
980
1111
|
镜像ID
|
981
1112
|
|
982
1113
|
:param id: The id of this ImageInfo.
|
983
|
-
:type: str
|
1114
|
+
:type id: str
|
984
1115
|
"""
|
985
1116
|
self._id = id
|
986
1117
|
|
987
1118
|
@property
|
988
1119
|
def min_disk(self):
|
989
|
-
"""Gets the min_disk of this ImageInfo.
|
1120
|
+
r"""Gets the min_disk of this ImageInfo.
|
990
1121
|
|
991
1122
|
镜像运行需要的最小磁盘容量,单位为GB。取值为40~1024GB。
|
992
1123
|
|
@@ -997,18 +1128,18 @@ class ImageInfo:
|
|
997
1128
|
|
998
1129
|
@min_disk.setter
|
999
1130
|
def min_disk(self, min_disk):
|
1000
|
-
"""Sets the min_disk of this ImageInfo.
|
1131
|
+
r"""Sets the min_disk of this ImageInfo.
|
1001
1132
|
|
1002
1133
|
镜像运行需要的最小磁盘容量,单位为GB。取值为40~1024GB。
|
1003
1134
|
|
1004
1135
|
:param min_disk: The min_disk of this ImageInfo.
|
1005
|
-
:type: int
|
1136
|
+
:type min_disk: int
|
1006
1137
|
"""
|
1007
1138
|
self._min_disk = min_disk
|
1008
1139
|
|
1009
1140
|
@property
|
1010
1141
|
def min_ram(self):
|
1011
|
-
"""Gets the min_ram of this ImageInfo.
|
1142
|
+
r"""Gets the min_ram of this ImageInfo.
|
1012
1143
|
|
1013
1144
|
镜像运行需要的最小内存,单位为MB。参数取值依据弹性云服务器的规格限制,默认设置为0
|
1014
1145
|
|
@@ -1019,18 +1150,18 @@ class ImageInfo:
|
|
1019
1150
|
|
1020
1151
|
@min_ram.setter
|
1021
1152
|
def min_ram(self, min_ram):
|
1022
|
-
"""Sets the min_ram of this ImageInfo.
|
1153
|
+
r"""Sets the min_ram of this ImageInfo.
|
1023
1154
|
|
1024
1155
|
镜像运行需要的最小内存,单位为MB。参数取值依据弹性云服务器的规格限制,默认设置为0
|
1025
1156
|
|
1026
1157
|
:param min_ram: The min_ram of this ImageInfo.
|
1027
|
-
:type: int
|
1158
|
+
:type min_ram: int
|
1028
1159
|
"""
|
1029
1160
|
self._min_ram = min_ram
|
1030
1161
|
|
1031
1162
|
@property
|
1032
1163
|
def name(self):
|
1033
|
-
"""Gets the name of this ImageInfo.
|
1164
|
+
r"""Gets the name of this ImageInfo.
|
1034
1165
|
|
1035
1166
|
镜像名称。 名称的首尾字母不能为空格。 名称的长度至为1~128位。 名称包含以下4种字符: 大写字母 小写字母 数字 特殊字符包含-、.、_、空格和中文。
|
1036
1167
|
|
@@ -1041,18 +1172,18 @@ class ImageInfo:
|
|
1041
1172
|
|
1042
1173
|
@name.setter
|
1043
1174
|
def name(self, name):
|
1044
|
-
"""Sets the name of this ImageInfo.
|
1175
|
+
r"""Sets the name of this ImageInfo.
|
1045
1176
|
|
1046
1177
|
镜像名称。 名称的首尾字母不能为空格。 名称的长度至为1~128位。 名称包含以下4种字符: 大写字母 小写字母 数字 特殊字符包含-、.、_、空格和中文。
|
1047
1178
|
|
1048
1179
|
:param name: The name of this ImageInfo.
|
1049
|
-
:type: str
|
1180
|
+
:type name: str
|
1050
1181
|
"""
|
1051
1182
|
self._name = name
|
1052
1183
|
|
1053
1184
|
@property
|
1054
1185
|
def owner(self):
|
1055
|
-
"""Gets the owner of this ImageInfo.
|
1186
|
+
r"""Gets the owner of this ImageInfo.
|
1056
1187
|
|
1057
1188
|
镜像属于哪个租户
|
1058
1189
|
|
@@ -1063,18 +1194,18 @@ class ImageInfo:
|
|
1063
1194
|
|
1064
1195
|
@owner.setter
|
1065
1196
|
def owner(self, owner):
|
1066
|
-
"""Sets the owner of this ImageInfo.
|
1197
|
+
r"""Sets the owner of this ImageInfo.
|
1067
1198
|
|
1068
1199
|
镜像属于哪个租户
|
1069
1200
|
|
1070
1201
|
:param owner: The owner of this ImageInfo.
|
1071
|
-
:type: str
|
1202
|
+
:type owner: str
|
1072
1203
|
"""
|
1073
1204
|
self._owner = owner
|
1074
1205
|
|
1075
1206
|
@property
|
1076
1207
|
def protected(self):
|
1077
|
-
"""Gets the protected of this ImageInfo.
|
1208
|
+
r"""Gets the protected of this ImageInfo.
|
1078
1209
|
|
1079
1210
|
是否是受保护的,受保护的镜像不允许删除。取值为true或false
|
1080
1211
|
|
@@ -1085,18 +1216,18 @@ class ImageInfo:
|
|
1085
1216
|
|
1086
1217
|
@protected.setter
|
1087
1218
|
def protected(self, protected):
|
1088
|
-
"""Sets the protected of this ImageInfo.
|
1219
|
+
r"""Sets the protected of this ImageInfo.
|
1089
1220
|
|
1090
1221
|
是否是受保护的,受保护的镜像不允许删除。取值为true或false
|
1091
1222
|
|
1092
1223
|
:param protected: The protected of this ImageInfo.
|
1093
|
-
:type: bool
|
1224
|
+
:type protected: bool
|
1094
1225
|
"""
|
1095
1226
|
self._protected = protected
|
1096
1227
|
|
1097
1228
|
@property
|
1098
1229
|
def schema(self):
|
1099
|
-
"""Gets the schema of this ImageInfo.
|
1230
|
+
r"""Gets the schema of this ImageInfo.
|
1100
1231
|
|
1101
1232
|
镜像视图
|
1102
1233
|
|
@@ -1107,18 +1238,18 @@ class ImageInfo:
|
|
1107
1238
|
|
1108
1239
|
@schema.setter
|
1109
1240
|
def schema(self, schema):
|
1110
|
-
"""Sets the schema of this ImageInfo.
|
1241
|
+
r"""Sets the schema of this ImageInfo.
|
1111
1242
|
|
1112
1243
|
镜像视图
|
1113
1244
|
|
1114
1245
|
:param schema: The schema of this ImageInfo.
|
1115
|
-
:type: str
|
1246
|
+
:type schema: str
|
1116
1247
|
"""
|
1117
1248
|
self._schema = schema
|
1118
1249
|
|
1119
1250
|
@property
|
1120
1251
|
def _self(self):
|
1121
|
-
"""Gets the _self of this ImageInfo.
|
1252
|
+
r"""Gets the _self of this ImageInfo.
|
1122
1253
|
|
1123
1254
|
镜像链接信息
|
1124
1255
|
|
@@ -1129,18 +1260,18 @@ class ImageInfo:
|
|
1129
1260
|
|
1130
1261
|
@_self.setter
|
1131
1262
|
def _self(self, _self):
|
1132
|
-
"""Sets the _self of this ImageInfo.
|
1263
|
+
r"""Sets the _self of this ImageInfo.
|
1133
1264
|
|
1134
1265
|
镜像链接信息
|
1135
1266
|
|
1136
1267
|
:param _self: The _self of this ImageInfo.
|
1137
|
-
:type: str
|
1268
|
+
:type _self: str
|
1138
1269
|
"""
|
1139
1270
|
self.__self = _self
|
1140
1271
|
|
1141
1272
|
@property
|
1142
1273
|
def size(self):
|
1143
|
-
"""Gets the size of this ImageInfo.
|
1274
|
+
r"""Gets the size of this ImageInfo.
|
1144
1275
|
|
1145
1276
|
目前暂时不使用
|
1146
1277
|
|
@@ -1151,18 +1282,18 @@ class ImageInfo:
|
|
1151
1282
|
|
1152
1283
|
@size.setter
|
1153
1284
|
def size(self, size):
|
1154
|
-
"""Sets the size of this ImageInfo.
|
1285
|
+
r"""Sets the size of this ImageInfo.
|
1155
1286
|
|
1156
1287
|
目前暂时不使用
|
1157
1288
|
|
1158
1289
|
:param size: The size of this ImageInfo.
|
1159
|
-
:type: int
|
1290
|
+
:type size: int
|
1160
1291
|
"""
|
1161
1292
|
self._size = size
|
1162
1293
|
|
1163
1294
|
@property
|
1164
1295
|
def status(self):
|
1165
|
-
"""Gets the status of this ImageInfo.
|
1296
|
+
r"""Gets the status of this ImageInfo.
|
1166
1297
|
|
1167
1298
|
镜像状态。取值如下:queued:表示镜像元数据已经创建成功,等待 上传镜像文件。saving:表示镜像 正在上传文件到后端存储。deleted:表示镜像已经删除。killed:表示镜像上传错误。active:表示镜像可以正常使用
|
1168
1299
|
|
@@ -1173,18 +1304,18 @@ class ImageInfo:
|
|
1173
1304
|
|
1174
1305
|
@status.setter
|
1175
1306
|
def status(self, status):
|
1176
|
-
"""Sets the status of this ImageInfo.
|
1307
|
+
r"""Sets the status of this ImageInfo.
|
1177
1308
|
|
1178
1309
|
镜像状态。取值如下:queued:表示镜像元数据已经创建成功,等待 上传镜像文件。saving:表示镜像 正在上传文件到后端存储。deleted:表示镜像已经删除。killed:表示镜像上传错误。active:表示镜像可以正常使用
|
1179
1310
|
|
1180
1311
|
:param status: The status of this ImageInfo.
|
1181
|
-
:type: str
|
1312
|
+
:type status: str
|
1182
1313
|
"""
|
1183
1314
|
self._status = status
|
1184
1315
|
|
1185
1316
|
@property
|
1186
1317
|
def tags(self):
|
1187
|
-
"""Gets the tags of this ImageInfo.
|
1318
|
+
r"""Gets the tags of this ImageInfo.
|
1188
1319
|
|
1189
1320
|
镜像标签列表
|
1190
1321
|
|
@@ -1195,18 +1326,18 @@ class ImageInfo:
|
|
1195
1326
|
|
1196
1327
|
@tags.setter
|
1197
1328
|
def tags(self, tags):
|
1198
|
-
"""Sets the tags of this ImageInfo.
|
1329
|
+
r"""Sets the tags of this ImageInfo.
|
1199
1330
|
|
1200
1331
|
镜像标签列表
|
1201
1332
|
|
1202
1333
|
:param tags: The tags of this ImageInfo.
|
1203
|
-
:type: list[str]
|
1334
|
+
:type tags: list[str]
|
1204
1335
|
"""
|
1205
1336
|
self._tags = tags
|
1206
1337
|
|
1207
1338
|
@property
|
1208
1339
|
def updated_at(self):
|
1209
|
-
"""Gets the updated_at of this ImageInfo.
|
1340
|
+
r"""Gets the updated_at of this ImageInfo.
|
1210
1341
|
|
1211
1342
|
更新时间。格式为UTC时间
|
1212
1343
|
|
@@ -1217,18 +1348,18 @@ class ImageInfo:
|
|
1217
1348
|
|
1218
1349
|
@updated_at.setter
|
1219
1350
|
def updated_at(self, updated_at):
|
1220
|
-
"""Sets the updated_at of this ImageInfo.
|
1351
|
+
r"""Sets the updated_at of this ImageInfo.
|
1221
1352
|
|
1222
1353
|
更新时间。格式为UTC时间
|
1223
1354
|
|
1224
1355
|
:param updated_at: The updated_at of this ImageInfo.
|
1225
|
-
:type: str
|
1356
|
+
:type updated_at: str
|
1226
1357
|
"""
|
1227
1358
|
self._updated_at = updated_at
|
1228
1359
|
|
1229
1360
|
@property
|
1230
1361
|
def virtual_env_type(self):
|
1231
|
-
"""Gets the virtual_env_type of this ImageInfo.
|
1362
|
+
r"""Gets the virtual_env_type of this ImageInfo.
|
1232
1363
|
|
1233
1364
|
镜像使用环境类型:FusionCompute,Ironic,DataImage。如果弹性云服务器镜像,则取值为FusionCompute,如果是数据卷镜像则取Dat aImage,如果是裸金属服务器镜像,则取值是Ironic
|
1234
1365
|
|
@@ -1239,18 +1370,18 @@ class ImageInfo:
|
|
1239
1370
|
|
1240
1371
|
@virtual_env_type.setter
|
1241
1372
|
def virtual_env_type(self, virtual_env_type):
|
1242
|
-
"""Sets the virtual_env_type of this ImageInfo.
|
1373
|
+
r"""Sets the virtual_env_type of this ImageInfo.
|
1243
1374
|
|
1244
1375
|
镜像使用环境类型:FusionCompute,Ironic,DataImage。如果弹性云服务器镜像,则取值为FusionCompute,如果是数据卷镜像则取Dat aImage,如果是裸金属服务器镜像,则取值是Ironic
|
1245
1376
|
|
1246
1377
|
:param virtual_env_type: The virtual_env_type of this ImageInfo.
|
1247
|
-
:type: str
|
1378
|
+
:type virtual_env_type: str
|
1248
1379
|
"""
|
1249
1380
|
self._virtual_env_type = virtual_env_type
|
1250
1381
|
|
1251
1382
|
@property
|
1252
1383
|
def virtual_size(self):
|
1253
|
-
"""Gets the virtual_size of this ImageInfo.
|
1384
|
+
r"""Gets the virtual_size of this ImageInfo.
|
1254
1385
|
|
1255
1386
|
目前暂时不使用
|
1256
1387
|
|
@@ -1261,20 +1392,20 @@ class ImageInfo:
|
|
1261
1392
|
|
1262
1393
|
@virtual_size.setter
|
1263
1394
|
def virtual_size(self, virtual_size):
|
1264
|
-
"""Sets the virtual_size of this ImageInfo.
|
1395
|
+
r"""Sets the virtual_size of this ImageInfo.
|
1265
1396
|
|
1266
1397
|
目前暂时不使用
|
1267
1398
|
|
1268
1399
|
:param virtual_size: The virtual_size of this ImageInfo.
|
1269
|
-
:type: int
|
1400
|
+
:type virtual_size: int
|
1270
1401
|
"""
|
1271
1402
|
self._virtual_size = virtual_size
|
1272
1403
|
|
1273
1404
|
@property
|
1274
1405
|
def visibility(self):
|
1275
|
-
"""Gets the visibility of this ImageInfo.
|
1406
|
+
r"""Gets the visibility of this ImageInfo.
|
1276
1407
|
|
1277
|
-
是否被其他租户可见,取值为private或
|
1408
|
+
是否被其他租户可见,取值为private、public或shared
|
1278
1409
|
|
1279
1410
|
:return: The visibility of this ImageInfo.
|
1280
1411
|
:rtype: str
|
@@ -1283,40 +1414,18 @@ class ImageInfo:
|
|
1283
1414
|
|
1284
1415
|
@visibility.setter
|
1285
1416
|
def visibility(self, visibility):
|
1286
|
-
"""Sets the visibility of this ImageInfo.
|
1417
|
+
r"""Sets the visibility of this ImageInfo.
|
1287
1418
|
|
1288
|
-
是否被其他租户可见,取值为private或
|
1419
|
+
是否被其他租户可见,取值为private、public或shared
|
1289
1420
|
|
1290
1421
|
:param visibility: The visibility of this ImageInfo.
|
1291
|
-
:type: str
|
1422
|
+
:type visibility: str
|
1292
1423
|
"""
|
1293
1424
|
self._visibility = visibility
|
1294
1425
|
|
1295
|
-
@property
|
1296
|
-
def architecture(self):
|
1297
|
-
"""Gets the architecture of this ImageInfo.
|
1298
|
-
|
1299
|
-
镜像架构类型。取值包括: x86 arm
|
1300
|
-
|
1301
|
-
:return: The architecture of this ImageInfo.
|
1302
|
-
:rtype: str
|
1303
|
-
"""
|
1304
|
-
return self._architecture
|
1305
|
-
|
1306
|
-
@architecture.setter
|
1307
|
-
def architecture(self, architecture):
|
1308
|
-
"""Sets the architecture of this ImageInfo.
|
1309
|
-
|
1310
|
-
镜像架构类型。取值包括: x86 arm
|
1311
|
-
|
1312
|
-
:param architecture: The architecture of this ImageInfo.
|
1313
|
-
:type: str
|
1314
|
-
"""
|
1315
|
-
self._architecture = architecture
|
1316
|
-
|
1317
1426
|
@property
|
1318
1427
|
def support_fc_inject(self):
|
1319
|
-
"""Gets the support_fc_inject of this ImageInfo.
|
1428
|
+
r"""Gets the support_fc_inject of this ImageInfo.
|
1320
1429
|
|
1321
1430
|
表示当前镜像支持CloudInit密码/密钥注入方式,建议设置为\"true\"或者\"false\"。 如果取值为\"true\",表示该镜像不支持CloudInit注入密码/密钥,其他取值时表示支持CloudInit注入密钥/密码。
|
1322
1431
|
|
@@ -1327,18 +1436,18 @@ class ImageInfo:
|
|
1327
1436
|
|
1328
1437
|
@support_fc_inject.setter
|
1329
1438
|
def support_fc_inject(self, support_fc_inject):
|
1330
|
-
"""Sets the support_fc_inject of this ImageInfo.
|
1439
|
+
r"""Sets the support_fc_inject of this ImageInfo.
|
1331
1440
|
|
1332
1441
|
表示当前镜像支持CloudInit密码/密钥注入方式,建议设置为\"true\"或者\"false\"。 如果取值为\"true\",表示该镜像不支持CloudInit注入密码/密钥,其他取值时表示支持CloudInit注入密钥/密码。
|
1333
1442
|
|
1334
1443
|
:param support_fc_inject: The support_fc_inject of this ImageInfo.
|
1335
|
-
:type: str
|
1444
|
+
:type support_fc_inject: str
|
1336
1445
|
"""
|
1337
1446
|
self._support_fc_inject = support_fc_inject
|
1338
1447
|
|
1339
1448
|
@property
|
1340
1449
|
def hw_firmware_type(self):
|
1341
|
-
"""Gets the hw_firmware_type of this ImageInfo.
|
1450
|
+
r"""Gets the hw_firmware_type of this ImageInfo.
|
1342
1451
|
|
1343
1452
|
云服务器的启动方式。目前支持: bios:表示bios引导启动。 uefi:表示uefi引导启动。
|
1344
1453
|
|
@@ -1349,18 +1458,18 @@ class ImageInfo:
|
|
1349
1458
|
|
1350
1459
|
@hw_firmware_type.setter
|
1351
1460
|
def hw_firmware_type(self, hw_firmware_type):
|
1352
|
-
"""Sets the hw_firmware_type of this ImageInfo.
|
1461
|
+
r"""Sets the hw_firmware_type of this ImageInfo.
|
1353
1462
|
|
1354
1463
|
云服务器的启动方式。目前支持: bios:表示bios引导启动。 uefi:表示uefi引导启动。
|
1355
1464
|
|
1356
1465
|
:param hw_firmware_type: The hw_firmware_type of this ImageInfo.
|
1357
|
-
:type: str
|
1466
|
+
:type hw_firmware_type: str
|
1358
1467
|
"""
|
1359
1468
|
self._hw_firmware_type = hw_firmware_type
|
1360
1469
|
|
1361
1470
|
@property
|
1362
1471
|
def support_arm(self):
|
1363
|
-
"""Gets the support_arm of this ImageInfo.
|
1472
|
+
r"""Gets the support_arm of this ImageInfo.
|
1364
1473
|
|
1365
1474
|
是否是ARM架构类型的镜像,取值为“true”或者“false”。
|
1366
1475
|
|
@@ -1371,18 +1480,18 @@ class ImageInfo:
|
|
1371
1480
|
|
1372
1481
|
@support_arm.setter
|
1373
1482
|
def support_arm(self, support_arm):
|
1374
|
-
"""Sets the support_arm of this ImageInfo.
|
1483
|
+
r"""Sets the support_arm of this ImageInfo.
|
1375
1484
|
|
1376
1485
|
是否是ARM架构类型的镜像,取值为“true”或者“false”。
|
1377
1486
|
|
1378
1487
|
:param support_arm: The support_arm of this ImageInfo.
|
1379
|
-
:type: str
|
1488
|
+
:type support_arm: str
|
1380
1489
|
"""
|
1381
1490
|
self._support_arm = support_arm
|
1382
1491
|
|
1383
1492
|
@property
|
1384
1493
|
def max_ram(self):
|
1385
|
-
"""Gets the max_ram of this ImageInfo.
|
1494
|
+
r"""Gets the max_ram of this ImageInfo.
|
1386
1495
|
|
1387
1496
|
镜像支持的最大内存,单位为MB。取值可以参考云服务器规格限制,一般不设置。
|
1388
1497
|
|
@@ -1393,18 +1502,18 @@ class ImageInfo:
|
|
1393
1502
|
|
1394
1503
|
@max_ram.setter
|
1395
1504
|
def max_ram(self, max_ram):
|
1396
|
-
"""Sets the max_ram of this ImageInfo.
|
1505
|
+
r"""Sets the max_ram of this ImageInfo.
|
1397
1506
|
|
1398
1507
|
镜像支持的最大内存,单位为MB。取值可以参考云服务器规格限制,一般不设置。
|
1399
1508
|
|
1400
1509
|
:param max_ram: The max_ram of this ImageInfo.
|
1401
|
-
:type: str
|
1510
|
+
:type max_ram: str
|
1402
1511
|
"""
|
1403
1512
|
self._max_ram = max_ram
|
1404
1513
|
|
1405
1514
|
@property
|
1406
1515
|
def system__cmkid(self):
|
1407
|
-
"""Gets the system__cmkid of this ImageInfo.
|
1516
|
+
r"""Gets the system__cmkid of this ImageInfo.
|
1408
1517
|
|
1409
1518
|
加密镜像所使用的密钥ID。
|
1410
1519
|
|
@@ -1415,18 +1524,18 @@ class ImageInfo:
|
|
1415
1524
|
|
1416
1525
|
@system__cmkid.setter
|
1417
1526
|
def system__cmkid(self, system__cmkid):
|
1418
|
-
"""Sets the system__cmkid of this ImageInfo.
|
1527
|
+
r"""Sets the system__cmkid of this ImageInfo.
|
1419
1528
|
|
1420
1529
|
加密镜像所使用的密钥ID。
|
1421
1530
|
|
1422
1531
|
:param system__cmkid: The system__cmkid of this ImageInfo.
|
1423
|
-
:type: str
|
1532
|
+
:type system__cmkid: str
|
1424
1533
|
"""
|
1425
1534
|
self._system__cmkid = system__cmkid
|
1426
1535
|
|
1427
1536
|
@property
|
1428
1537
|
def os_feature_list(self):
|
1429
|
-
"""Gets the os_feature_list of this ImageInfo.
|
1538
|
+
r"""Gets the os_feature_list of this ImageInfo.
|
1430
1539
|
|
1431
1540
|
镜像附加属性。该属性采用JSON格式来标识镜像支持的高级特性清单。
|
1432
1541
|
|
@@ -1437,18 +1546,18 @@ class ImageInfo:
|
|
1437
1546
|
|
1438
1547
|
@os_feature_list.setter
|
1439
1548
|
def os_feature_list(self, os_feature_list):
|
1440
|
-
"""Sets the os_feature_list of this ImageInfo.
|
1549
|
+
r"""Sets the os_feature_list of this ImageInfo.
|
1441
1550
|
|
1442
1551
|
镜像附加属性。该属性采用JSON格式来标识镜像支持的高级特性清单。
|
1443
1552
|
|
1444
1553
|
:param os_feature_list: The os_feature_list of this ImageInfo.
|
1445
|
-
:type: str
|
1554
|
+
:type os_feature_list: str
|
1446
1555
|
"""
|
1447
1556
|
self._os_feature_list = os_feature_list
|
1448
1557
|
|
1449
1558
|
@property
|
1450
1559
|
def account_code(self):
|
1451
|
-
"""Gets the account_code of this ImageInfo.
|
1560
|
+
r"""Gets the account_code of this ImageInfo.
|
1452
1561
|
|
1453
1562
|
收费镜像标识。
|
1454
1563
|
|
@@ -1459,18 +1568,18 @@ class ImageInfo:
|
|
1459
1568
|
|
1460
1569
|
@account_code.setter
|
1461
1570
|
def account_code(self, account_code):
|
1462
|
-
"""Sets the account_code of this ImageInfo.
|
1571
|
+
r"""Sets the account_code of this ImageInfo.
|
1463
1572
|
|
1464
1573
|
收费镜像标识。
|
1465
1574
|
|
1466
1575
|
:param account_code: The account_code of this ImageInfo.
|
1467
|
-
:type: str
|
1576
|
+
:type account_code: str
|
1468
1577
|
"""
|
1469
1578
|
self._account_code = account_code
|
1470
1579
|
|
1471
1580
|
@property
|
1472
1581
|
def hw_vif_multiqueue_enabled(self):
|
1473
|
-
"""Gets the hw_vif_multiqueue_enabled of this ImageInfo.
|
1582
|
+
r"""Gets the hw_vif_multiqueue_enabled of this ImageInfo.
|
1474
1583
|
|
1475
1584
|
镜像是否支持网卡多队列。取值为“true”或者“false”。
|
1476
1585
|
|
@@ -1481,15 +1590,257 @@ class ImageInfo:
|
|
1481
1590
|
|
1482
1591
|
@hw_vif_multiqueue_enabled.setter
|
1483
1592
|
def hw_vif_multiqueue_enabled(self, hw_vif_multiqueue_enabled):
|
1484
|
-
"""Sets the hw_vif_multiqueue_enabled of this ImageInfo.
|
1593
|
+
r"""Sets the hw_vif_multiqueue_enabled of this ImageInfo.
|
1485
1594
|
|
1486
1595
|
镜像是否支持网卡多队列。取值为“true”或者“false”。
|
1487
1596
|
|
1488
1597
|
:param hw_vif_multiqueue_enabled: The hw_vif_multiqueue_enabled of this ImageInfo.
|
1489
|
-
:type: str
|
1598
|
+
:type hw_vif_multiqueue_enabled: str
|
1490
1599
|
"""
|
1491
1600
|
self._hw_vif_multiqueue_enabled = hw_vif_multiqueue_enabled
|
1492
1601
|
|
1602
|
+
@property
|
1603
|
+
def is_offshelved(self):
|
1604
|
+
r"""Gets the is_offshelved of this ImageInfo.
|
1605
|
+
|
1606
|
+
表示当前市场镜像是否下架。true:已下架 false:未下架
|
1607
|
+
|
1608
|
+
:return: The is_offshelved of this ImageInfo.
|
1609
|
+
:rtype: str
|
1610
|
+
"""
|
1611
|
+
return self._is_offshelved
|
1612
|
+
|
1613
|
+
@is_offshelved.setter
|
1614
|
+
def is_offshelved(self, is_offshelved):
|
1615
|
+
r"""Sets the is_offshelved of this ImageInfo.
|
1616
|
+
|
1617
|
+
表示当前市场镜像是否下架。true:已下架 false:未下架
|
1618
|
+
|
1619
|
+
:param is_offshelved: The is_offshelved of this ImageInfo.
|
1620
|
+
:type is_offshelved: str
|
1621
|
+
"""
|
1622
|
+
self._is_offshelved = is_offshelved
|
1623
|
+
|
1624
|
+
@property
|
1625
|
+
def lazyloading(self):
|
1626
|
+
r"""Gets the lazyloading of this ImageInfo.
|
1627
|
+
|
1628
|
+
镜像是否支持延迟加载。取值为“True”或“False”。
|
1629
|
+
|
1630
|
+
:return: The lazyloading of this ImageInfo.
|
1631
|
+
:rtype: str
|
1632
|
+
"""
|
1633
|
+
return self._lazyloading
|
1634
|
+
|
1635
|
+
@lazyloading.setter
|
1636
|
+
def lazyloading(self, lazyloading):
|
1637
|
+
r"""Sets the lazyloading of this ImageInfo.
|
1638
|
+
|
1639
|
+
镜像是否支持延迟加载。取值为“True”或“False”。
|
1640
|
+
|
1641
|
+
:param lazyloading: The lazyloading of this ImageInfo.
|
1642
|
+
:type lazyloading: str
|
1643
|
+
"""
|
1644
|
+
self._lazyloading = lazyloading
|
1645
|
+
|
1646
|
+
@property
|
1647
|
+
def root_origin(self):
|
1648
|
+
r"""Gets the root_origin of this ImageInfo.
|
1649
|
+
|
1650
|
+
表示当前镜像来源是从外部导入。取值:file。
|
1651
|
+
|
1652
|
+
:return: The root_origin of this ImageInfo.
|
1653
|
+
:rtype: str
|
1654
|
+
"""
|
1655
|
+
return self._root_origin
|
1656
|
+
|
1657
|
+
@root_origin.setter
|
1658
|
+
def root_origin(self, root_origin):
|
1659
|
+
r"""Sets the root_origin of this ImageInfo.
|
1660
|
+
|
1661
|
+
表示当前镜像来源是从外部导入。取值:file。
|
1662
|
+
|
1663
|
+
:param root_origin: The root_origin of this ImageInfo.
|
1664
|
+
:type root_origin: str
|
1665
|
+
"""
|
1666
|
+
self._root_origin = root_origin
|
1667
|
+
|
1668
|
+
@property
|
1669
|
+
def sequence_num(self):
|
1670
|
+
r"""Gets the sequence_num of this ImageInfo.
|
1671
|
+
|
1672
|
+
表示当前镜像对应云服务器的系统盘插槽位置。目前暂时不用
|
1673
|
+
|
1674
|
+
:return: The sequence_num of this ImageInfo.
|
1675
|
+
:rtype: str
|
1676
|
+
"""
|
1677
|
+
return self._sequence_num
|
1678
|
+
|
1679
|
+
@sequence_num.setter
|
1680
|
+
def sequence_num(self, sequence_num):
|
1681
|
+
r"""Sets the sequence_num of this ImageInfo.
|
1682
|
+
|
1683
|
+
表示当前镜像对应云服务器的系统盘插槽位置。目前暂时不用
|
1684
|
+
|
1685
|
+
:param sequence_num: The sequence_num of this ImageInfo.
|
1686
|
+
:type sequence_num: str
|
1687
|
+
"""
|
1688
|
+
self._sequence_num = sequence_num
|
1689
|
+
|
1690
|
+
@property
|
1691
|
+
def active_at(self):
|
1692
|
+
r"""Gets the active_at of this ImageInfo.
|
1693
|
+
|
1694
|
+
镜像状态变为正常的时间。
|
1695
|
+
|
1696
|
+
:return: The active_at of this ImageInfo.
|
1697
|
+
:rtype: str
|
1698
|
+
"""
|
1699
|
+
return self._active_at
|
1700
|
+
|
1701
|
+
@active_at.setter
|
1702
|
+
def active_at(self, active_at):
|
1703
|
+
r"""Sets the active_at of this ImageInfo.
|
1704
|
+
|
1705
|
+
镜像状态变为正常的时间。
|
1706
|
+
|
1707
|
+
:param active_at: The active_at of this ImageInfo.
|
1708
|
+
:type active_at: str
|
1709
|
+
"""
|
1710
|
+
self._active_at = active_at
|
1711
|
+
|
1712
|
+
@property
|
1713
|
+
def support_agent_list(self):
|
1714
|
+
r"""Gets the support_agent_list of this ImageInfo.
|
1715
|
+
|
1716
|
+
镜像是否支持企业主机安全或主机监控。 hss:企业主机安全 ces:主机监控
|
1717
|
+
|
1718
|
+
:return: The support_agent_list of this ImageInfo.
|
1719
|
+
:rtype: str
|
1720
|
+
"""
|
1721
|
+
return self._support_agent_list
|
1722
|
+
|
1723
|
+
@support_agent_list.setter
|
1724
|
+
def support_agent_list(self, support_agent_list):
|
1725
|
+
r"""Sets the support_agent_list of this ImageInfo.
|
1726
|
+
|
1727
|
+
镜像是否支持企业主机安全或主机监控。 hss:企业主机安全 ces:主机监控
|
1728
|
+
|
1729
|
+
:param support_agent_list: The support_agent_list of this ImageInfo.
|
1730
|
+
:type support_agent_list: str
|
1731
|
+
"""
|
1732
|
+
self._support_agent_list = support_agent_list
|
1733
|
+
|
1734
|
+
@property
|
1735
|
+
def image_displayname(self):
|
1736
|
+
r"""Gets the image_displayname of this ImageInfo.
|
1737
|
+
|
1738
|
+
对外展示名称。
|
1739
|
+
|
1740
|
+
:return: The image_displayname of this ImageInfo.
|
1741
|
+
:rtype: str
|
1742
|
+
"""
|
1743
|
+
return self._image_displayname
|
1744
|
+
|
1745
|
+
@image_displayname.setter
|
1746
|
+
def image_displayname(self, image_displayname):
|
1747
|
+
r"""Sets the image_displayname of this ImageInfo.
|
1748
|
+
|
1749
|
+
对外展示名称。
|
1750
|
+
|
1751
|
+
:param image_displayname: The image_displayname of this ImageInfo.
|
1752
|
+
:type image_displayname: str
|
1753
|
+
"""
|
1754
|
+
self._image_displayname = image_displayname
|
1755
|
+
|
1756
|
+
@property
|
1757
|
+
def support_amd(self):
|
1758
|
+
r"""Gets the support_amd of this ImageInfo.
|
1759
|
+
|
1760
|
+
是否是AMD架构类型的镜像。取值为“true”或者“false”。
|
1761
|
+
|
1762
|
+
:return: The support_amd of this ImageInfo.
|
1763
|
+
:rtype: str
|
1764
|
+
"""
|
1765
|
+
return self._support_amd
|
1766
|
+
|
1767
|
+
@support_amd.setter
|
1768
|
+
def support_amd(self, support_amd):
|
1769
|
+
r"""Sets the support_amd of this ImageInfo.
|
1770
|
+
|
1771
|
+
是否是AMD架构类型的镜像。取值为“true”或者“false”。
|
1772
|
+
|
1773
|
+
:param support_amd: The support_amd of this ImageInfo.
|
1774
|
+
:type support_amd: str
|
1775
|
+
"""
|
1776
|
+
self._support_amd = support_amd
|
1777
|
+
|
1778
|
+
@property
|
1779
|
+
def support_kvm_hi1822_hisriov(self):
|
1780
|
+
r"""Gets the support_kvm_hi1822_hisriov of this ImageInfo.
|
1781
|
+
|
1782
|
+
如果镜像支持sriov直通,取值为true,否则无需增加该属性。
|
1783
|
+
|
1784
|
+
:return: The support_kvm_hi1822_hisriov of this ImageInfo.
|
1785
|
+
:rtype: str
|
1786
|
+
"""
|
1787
|
+
return self._support_kvm_hi1822_hisriov
|
1788
|
+
|
1789
|
+
@support_kvm_hi1822_hisriov.setter
|
1790
|
+
def support_kvm_hi1822_hisriov(self, support_kvm_hi1822_hisriov):
|
1791
|
+
r"""Sets the support_kvm_hi1822_hisriov of this ImageInfo.
|
1792
|
+
|
1793
|
+
如果镜像支持sriov直通,取值为true,否则无需增加该属性。
|
1794
|
+
|
1795
|
+
:param support_kvm_hi1822_hisriov: The support_kvm_hi1822_hisriov of this ImageInfo.
|
1796
|
+
:type support_kvm_hi1822_hisriov: str
|
1797
|
+
"""
|
1798
|
+
self._support_kvm_hi1822_hisriov = support_kvm_hi1822_hisriov
|
1799
|
+
|
1800
|
+
@property
|
1801
|
+
def support_kvm_hi1822_hivirtionet(self):
|
1802
|
+
r"""Gets the support_kvm_hi1822_hivirtionet of this ImageInfo.
|
1803
|
+
|
1804
|
+
如果镜像支持Virtio-net直通规格,取值为true,否则无需增加该属性。
|
1805
|
+
|
1806
|
+
:return: The support_kvm_hi1822_hivirtionet of this ImageInfo.
|
1807
|
+
:rtype: str
|
1808
|
+
"""
|
1809
|
+
return self._support_kvm_hi1822_hivirtionet
|
1810
|
+
|
1811
|
+
@support_kvm_hi1822_hivirtionet.setter
|
1812
|
+
def support_kvm_hi1822_hivirtionet(self, support_kvm_hi1822_hivirtionet):
|
1813
|
+
r"""Sets the support_kvm_hi1822_hivirtionet of this ImageInfo.
|
1814
|
+
|
1815
|
+
如果镜像支持Virtio-net直通规格,取值为true,否则无需增加该属性。
|
1816
|
+
|
1817
|
+
:param support_kvm_hi1822_hivirtionet: The support_kvm_hi1822_hivirtionet of this ImageInfo.
|
1818
|
+
:type support_kvm_hi1822_hivirtionet: str
|
1819
|
+
"""
|
1820
|
+
self._support_kvm_hi1822_hivirtionet = support_kvm_hi1822_hivirtionet
|
1821
|
+
|
1822
|
+
@property
|
1823
|
+
def os_shutdown_timeout(self):
|
1824
|
+
r"""Gets the os_shutdown_timeout of this ImageInfo.
|
1825
|
+
|
1826
|
+
设置虚拟机的优雅关机超时时间,设置范围为60-300,默认为60(取值为整数,单位为秒)。 云服务器在优雅关机超时后会触发强制关机,避免实例长时间处于关机状态中。 当您的云服务器关机过程中由于特定软件的状态、保存等原因导致优雅关机时间过长,会触发超时强制关机。 您可以通过设置镜像该字段,使得发放的云服务器优雅关机超时时间变长。 该字段当前只影响弹性云服务器,不影响裸金属服务器。
|
1827
|
+
|
1828
|
+
:return: The os_shutdown_timeout of this ImageInfo.
|
1829
|
+
:rtype: str
|
1830
|
+
"""
|
1831
|
+
return self._os_shutdown_timeout
|
1832
|
+
|
1833
|
+
@os_shutdown_timeout.setter
|
1834
|
+
def os_shutdown_timeout(self, os_shutdown_timeout):
|
1835
|
+
r"""Sets the os_shutdown_timeout of this ImageInfo.
|
1836
|
+
|
1837
|
+
设置虚拟机的优雅关机超时时间,设置范围为60-300,默认为60(取值为整数,单位为秒)。 云服务器在优雅关机超时后会触发强制关机,避免实例长时间处于关机状态中。 当您的云服务器关机过程中由于特定软件的状态、保存等原因导致优雅关机时间过长,会触发超时强制关机。 您可以通过设置镜像该字段,使得发放的云服务器优雅关机超时时间变长。 该字段当前只影响弹性云服务器,不影响裸金属服务器。
|
1838
|
+
|
1839
|
+
:param os_shutdown_timeout: The os_shutdown_timeout of this ImageInfo.
|
1840
|
+
:type os_shutdown_timeout: str
|
1841
|
+
"""
|
1842
|
+
self._os_shutdown_timeout = os_shutdown_timeout
|
1843
|
+
|
1493
1844
|
def to_dict(self):
|
1494
1845
|
"""Returns the model properties as a dict"""
|
1495
1846
|
result = {}
|
@@ -1519,10 +1870,15 @@ class ImageInfo:
|
|
1519
1870
|
|
1520
1871
|
def to_str(self):
|
1521
1872
|
"""Returns the string representation of the model"""
|
1522
|
-
|
1873
|
+
import simplejson as json
|
1874
|
+
if six.PY2:
|
1875
|
+
import sys
|
1876
|
+
reload(sys)
|
1877
|
+
sys.setdefaultencoding("utf-8")
|
1878
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
1523
1879
|
|
1524
1880
|
def __repr__(self):
|
1525
|
-
"""For `print`
|
1881
|
+
"""For `print`"""
|
1526
1882
|
return self.to_str()
|
1527
1883
|
|
1528
1884
|
def __eq__(self, other):
|