huaweicloud-sdk-python-v3/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/image_info.py

1661 lines
51 KiB
Python
Raw Normal View History

2020-05-18 07:34:40 +00:00
# coding: utf-8
import re
import six
2021-07-26 11:24:08 +00:00
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ImageInfo:
2020-05-18 07:34:40 +00:00
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
sensitive_list = []
2020-05-18 07:34:40 +00:00
openapi_types = {
'backup_id': 'str',
'data_origin': 'str',
'description': 'str',
'image_size': 'str',
2020-05-18 07:34:40 +00:00
'image_source_type': 'str',
'imagetype': 'str',
'isregistered': 'str',
'originalimagename': 'str',
'os_bit': 'str',
'os_type': 'str',
'os_version': 'str',
'platform': 'str',
'productcode': 'str',
'support_diskintensive': 'str',
'support_highperformance': 'str',
'support_kvm': 'str',
'support_kvm_gpu_type': 'str',
'support_kvm_infiniband': 'str',
'support_largememory': 'str',
'support_xen': 'str',
'support_xen_gpu_type': 'str',
'support_xen_hana': 'str',
'system_support_market': 'bool',
'checksum': 'str',
'container_format': 'str',
'created_at': 'str',
'disk_format': 'str',
'enterprise_project_id': 'str',
'file': 'str',
'id': 'str',
'min_disk': 'int',
'min_ram': 'int',
'name': 'str',
'owner': 'str',
'protected': 'bool',
'schema': 'str',
'_self': 'str',
'size': 'int',
'status': 'str',
'tags': 'list[str]',
'updated_at': 'str',
'virtual_env_type': 'str',
'virtual_size': 'int',
'visibility': 'str',
'support_fc_inject': 'str',
'hw_firmware_type': 'str',
'support_arm': 'str',
'max_ram': 'str',
'system__cmkid': 'str',
'os_feature_list': 'str',
'account_code': 'str',
2021-07-09 10:57:08 +00:00
'hw_vif_multiqueue_enabled': 'str',
'is_offshelved': 'str',
2021-07-16 07:57:47 +00:00
'lazyloading': 'str',
2021-07-09 10:57:08 +00:00
'root_origin': 'str',
'sequence_num': 'str',
'active_at': 'str',
2021-09-16 14:24:59 +00:00
'support_agent_list': 'str',
'support_amd': 'str'
2020-05-18 07:34:40 +00:00
}
attribute_map = {
'backup_id': '__backup_id',
'data_origin': '__data_origin',
'description': '__description',
'image_size': '__image_size',
'image_source_type': '__image_source_type',
'imagetype': '__imagetype',
'isregistered': '__isregistered',
'originalimagename': '__originalimagename',
'os_bit': '__os_bit',
'os_type': '__os_type',
'os_version': '__os_version',
'platform': '__platform',
'productcode': '__productcode',
'support_diskintensive': '__support_diskintensive',
'support_highperformance': '__support_highperformance',
'support_kvm': '__support_kvm',
'support_kvm_gpu_type': '__support_kvm_gpu_type',
'support_kvm_infiniband': '__support_kvm_infiniband',
'support_largememory': '__support_largememory',
'support_xen': '__support_xen',
'support_xen_gpu_type': '__support_xen_gpu_type',
'support_xen_hana': '__support_xen_hana',
'system_support_market': '__system_support_market',
'checksum': 'checksum',
'container_format': 'container_format',
'created_at': 'created_at',
'disk_format': 'disk_format',
'enterprise_project_id': 'enterprise_project_id',
'file': 'file',
'id': 'id',
'min_disk': 'min_disk',
'min_ram': 'min_ram',
'name': 'name',
'owner': 'owner',
'protected': 'protected',
'schema': 'schema',
'_self': 'self',
'size': 'size',
'status': 'status',
'tags': 'tags',
'updated_at': 'updated_at',
'virtual_env_type': 'virtual_env_type',
'virtual_size': 'virtual_size',
'visibility': 'visibility',
'support_fc_inject': '__support_fc_inject',
'hw_firmware_type': 'hw_firmware_type',
'support_arm': '__support_arm',
'max_ram': 'max_ram',
'system__cmkid': '__system__cmkid',
'os_feature_list': '__os_feature_list',
'account_code': '__account_code',
2021-07-09 10:57:08 +00:00
'hw_vif_multiqueue_enabled': 'hw_vif_multiqueue_enabled',
'is_offshelved': '__is_offshelved',
'lazyloading': '__lazyloading',
'root_origin': '__root_origin',
'sequence_num': '__sequence_num',
'active_at': 'active_at',
2021-09-16 14:24:59 +00:00
'support_agent_list': '__support_agent_list',
'support_amd': '__support_amd'
2020-05-18 07:34:40 +00:00
}
2021-09-16 14:24:59 +00:00
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, support_amd=None):
2020-05-18 07:34:40 +00:00
"""ImageInfo - a model defined in huaweicloud sdk"""
2020-05-18 07:34:40 +00:00
self._backup_id = None
self._data_origin = None
self._description = None
self._image_size = None
self._image_source_type = None
self._imagetype = None
self._isregistered = None
self._originalimagename = None
self._os_bit = None
self._os_type = None
self._os_version = None
self._platform = None
self._productcode = None
self._support_diskintensive = None
self._support_highperformance = None
self._support_kvm = None
self._support_kvm_gpu_type = None
self._support_kvm_infiniband = None
self._support_largememory = None
self._support_xen = None
self._support_xen_gpu_type = None
self._support_xen_hana = None
self._system_support_market = None
self._checksum = None
self._container_format = None
self._created_at = None
self._disk_format = None
self._enterprise_project_id = None
self._file = None
self._id = None
self._min_disk = None
self._min_ram = None
self._name = None
self._owner = None
self._protected = None
self._schema = None
self.__self = None
self._size = None
self._status = None
self._tags = None
self._updated_at = None
self._virtual_env_type = None
self._virtual_size = None
self._visibility = None
self._support_fc_inject = None
self._hw_firmware_type = None
self._support_arm = None
self._max_ram = None
self._system__cmkid = None
self._os_feature_list = None
self._account_code = None
self._hw_vif_multiqueue_enabled = None
2021-07-09 10:57:08 +00:00
self._is_offshelved = None
self._lazyloading = None
self._root_origin = None
self._sequence_num = None
self._active_at = None
self._support_agent_list = None
2021-09-16 14:24:59 +00:00
self._support_amd = None
2020-05-18 07:34:40 +00:00
self.discriminator = None
2021-10-25 10:02:15 +00:00
if backup_id is not None:
self.backup_id = backup_id
if data_origin is not None:
self.data_origin = data_origin
if description is not None:
self.description = description
2020-05-18 07:34:40 +00:00
self.image_size = image_size
self.image_source_type = image_source_type
self.imagetype = imagetype
self.isregistered = isregistered
2021-10-25 10:02:15 +00:00
if originalimagename is not None:
self.originalimagename = originalimagename
if os_bit is not None:
self.os_bit = os_bit
2020-05-18 07:34:40 +00:00
self.os_type = os_type
2021-10-25 10:02:15 +00:00
if os_version is not None:
self.os_version = os_version
if platform is not None:
self.platform = platform
2020-05-18 07:34:40 +00:00
if productcode is not None:
self.productcode = productcode
if support_diskintensive is not None:
self.support_diskintensive = support_diskintensive
if support_highperformance is not None:
self.support_highperformance = support_highperformance
if support_kvm is not None:
self.support_kvm = support_kvm
if support_kvm_gpu_type is not None:
self.support_kvm_gpu_type = support_kvm_gpu_type
if support_kvm_infiniband is not None:
self.support_kvm_infiniband = support_kvm_infiniband
if support_largememory is not None:
self.support_largememory = support_largememory
if support_xen is not None:
self.support_xen = support_xen
if support_xen_gpu_type is not None:
self.support_xen_gpu_type = support_xen_gpu_type
if support_xen_hana is not None:
self.support_xen_hana = support_xen_hana
if system_support_market is not None:
self.system_support_market = system_support_market
if checksum is not None:
self.checksum = checksum
self.container_format = container_format
self.created_at = created_at
if disk_format is not None:
self.disk_format = disk_format
2021-10-25 10:02:15 +00:00
if enterprise_project_id is not None:
self.enterprise_project_id = enterprise_project_id
2020-05-18 07:34:40 +00:00
if file is not None:
self.file = file
self.id = id
self.min_disk = min_disk
self.min_ram = min_ram
self.name = name
self.owner = owner
self.protected = protected
if schema is not None:
self.schema = schema
self._self = _self
if size is not None:
self.size = size
self.status = status
self.tags = tags
self.updated_at = updated_at
self.virtual_env_type = virtual_env_type
2021-10-25 10:02:15 +00:00
if virtual_size is not None:
self.virtual_size = virtual_size
2020-05-18 07:34:40 +00:00
self.visibility = visibility
if support_fc_inject is not None:
self.support_fc_inject = support_fc_inject
if hw_firmware_type is not None:
self.hw_firmware_type = hw_firmware_type
if support_arm is not None:
self.support_arm = support_arm
if max_ram is not None:
self.max_ram = max_ram
if system__cmkid is not None:
self.system__cmkid = system__cmkid
if os_feature_list is not None:
self.os_feature_list = os_feature_list
if account_code is not None:
self.account_code = account_code
if hw_vif_multiqueue_enabled is not None:
self.hw_vif_multiqueue_enabled = hw_vif_multiqueue_enabled
2021-10-25 10:02:15 +00:00
if is_offshelved is not None:
self.is_offshelved = is_offshelved
if lazyloading is not None:
self.lazyloading = lazyloading
if root_origin is not None:
self.root_origin = root_origin
if sequence_num is not None:
self.sequence_num = sequence_num
2021-07-09 10:57:08 +00:00
self.active_at = active_at
2021-10-25 10:02:15 +00:00
if support_agent_list is not None:
self.support_agent_list = support_agent_list
2021-09-16 14:24:59 +00:00
if support_amd is not None:
self.support_amd = support_amd
2020-05-18 07:34:40 +00:00
@property
def backup_id(self):
"""Gets the backup_id of this ImageInfo.
备份ID如果是备份创建的镜像则填写为备份的ID否则为空
:return: The backup_id of this ImageInfo.
:rtype: str
"""
return self._backup_id
@backup_id.setter
def backup_id(self, backup_id):
"""Sets the backup_id of this ImageInfo.
备份ID如果是备份创建的镜像则填写为备份的ID否则为空
:param backup_id: The backup_id of this ImageInfo.
:type: str
"""
self._backup_id = backup_id
@property
def data_origin(self):
"""Gets the data_origin of this ImageInfo.
镜像来源公共镜像为空
:return: The data_origin of this ImageInfo.
:rtype: str
"""
return self._data_origin
@data_origin.setter
def data_origin(self, data_origin):
"""Sets the data_origin of this ImageInfo.
镜像来源公共镜像为空
:param data_origin: The data_origin of this ImageInfo.
:type: str
"""
self._data_origin = data_origin
@property
def description(self):
"""Gets the description of this ImageInfo.
镜像描述信息 支持字母数字中文等不支持回车< >长度不能超过1024个字符
:return: The description of this ImageInfo.
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this ImageInfo.
镜像描述信息 支持字母数字中文等不支持回车< >长度不能超过1024个字符
:param description: The description of this ImageInfo.
:type: str
"""
self._description = description
@property
def image_size(self):
"""Gets the image_size of this ImageInfo.
镜像文件的大小单位为字节
:return: The image_size of this ImageInfo.
:rtype: str
2020-05-18 07:34:40 +00:00
"""
return self._image_size
@image_size.setter
def image_size(self, image_size):
"""Sets the image_size of this ImageInfo.
镜像文件的大小单位为字节
:param image_size: The image_size of this ImageInfo.
:type: str
2020-05-18 07:34:40 +00:00
"""
self._image_size = image_size
@property
def image_source_type(self):
"""Gets the image_source_type of this ImageInfo.
镜像后端存储类型目前只支持uds
:return: The image_source_type of this ImageInfo.
:rtype: str
"""
return self._image_source_type
@image_source_type.setter
def image_source_type(self, image_source_type):
"""Sets the image_source_type of this ImageInfo.
镜像后端存储类型目前只支持uds
:param image_source_type: The image_source_type of this ImageInfo.
:type: str
"""
self._image_source_type = image_source_type
@property
def imagetype(self):
"""Gets the imagetype of this ImageInfo.
镜像类型目前支持以下类型 公共镜像gold 私有镜像private 共享镜像shared
:return: The imagetype of this ImageInfo.
:rtype: str
"""
return self._imagetype
@imagetype.setter
def imagetype(self, imagetype):
"""Sets the imagetype of this ImageInfo.
镜像类型目前支持以下类型 公共镜像gold 私有镜像private 共享镜像shared
:param imagetype: The imagetype of this ImageInfo.
:type: str
"""
self._imagetype = imagetype
@property
def isregistered(self):
"""Gets the isregistered of this ImageInfo.
是否是注册过的镜像取值为true或者false
:return: The isregistered of this ImageInfo.
:rtype: str
"""
return self._isregistered
@isregistered.setter
def isregistered(self, isregistered):
"""Sets the isregistered of this ImageInfo.
是否是注册过的镜像取值为true或者false
:param isregistered: The isregistered of this ImageInfo.
:type: str
"""
self._isregistered = isregistered
@property
def originalimagename(self):
"""Gets the originalimagename of this ImageInfo.
父镜像ID公共镜像或通过文件创建的私有镜像取值为空
:return: The originalimagename of this ImageInfo.
:rtype: str
"""
return self._originalimagename
@originalimagename.setter
def originalimagename(self, originalimagename):
"""Sets the originalimagename of this ImageInfo.
父镜像ID公共镜像或通过文件创建的私有镜像取值为空
:param originalimagename: The originalimagename of this ImageInfo.
:type: str
"""
self._originalimagename = originalimagename
@property
def os_bit(self):
"""Gets the os_bit of this ImageInfo.
操作系统位数一般取值为32或者64
:return: The os_bit of this ImageInfo.
:rtype: str
"""
return self._os_bit
@os_bit.setter
def os_bit(self, os_bit):
"""Sets the os_bit of this ImageInfo.
操作系统位数一般取值为32或者64
:param os_bit: The os_bit of this ImageInfo.
:type: str
"""
self._os_bit = os_bit
@property
def os_type(self):
"""Gets the os_type of this ImageInfo.
操作系统类型目前取值Linux WindowsOther
:return: The os_type of this ImageInfo.
:rtype: str
"""
return self._os_type
@os_type.setter
def os_type(self, os_type):
"""Sets the os_type of this ImageInfo.
操作系统类型目前取值Linux WindowsOther
:param os_type: The os_type of this ImageInfo.
:type: str
"""
self._os_type = os_type
@property
def os_version(self):
"""Gets the os_version of this ImageInfo.
操作系统具体版本
:return: The os_version of this ImageInfo.
:rtype: str
"""
return self._os_version
@os_version.setter
def os_version(self, os_version):
"""Sets the os_version of this ImageInfo.
操作系统具体版本
:param os_version: The os_version of this ImageInfo.
:type: str
"""
self._os_version = os_version
@property
def platform(self):
"""Gets the platform of this ImageInfo.
镜像平台分类
:return: The platform of this ImageInfo.
:rtype: str
"""
return self._platform
@platform.setter
def platform(self, platform):
"""Sets the platform of this ImageInfo.
镜像平台分类
:param platform: The platform of this ImageInfo.
:type: str
"""
self._platform = platform
@property
def productcode(self):
"""Gets the productcode of this ImageInfo.
市场镜像的产品ID
:return: The productcode of this ImageInfo.
:rtype: str
"""
return self._productcode
@productcode.setter
def productcode(self, productcode):
"""Sets the productcode of this ImageInfo.
市场镜像的产品ID
:param productcode: The productcode of this ImageInfo.
:type: str
"""
self._productcode = productcode
@property
def support_diskintensive(self):
"""Gets the support_diskintensive of this ImageInfo.
镜像来源表示该镜像支持密集存储如果镜像支持密集存储性能则值为true否则无需增加该属性
:return: The support_diskintensive of this ImageInfo.
:rtype: str
"""
return self._support_diskintensive
@support_diskintensive.setter
def support_diskintensive(self, support_diskintensive):
"""Sets the support_diskintensive of this ImageInfo.
镜像来源表示该镜像支持密集存储如果镜像支持密集存储性能则值为true否则无需增加该属性
:param support_diskintensive: The support_diskintensive of this ImageInfo.
:type: str
"""
self._support_diskintensive = support_diskintensive
@property
def support_highperformance(self):
"""Gets the support_highperformance of this ImageInfo.
表示该镜像支持高计算性能如果镜像支持高计算性能则值为true否则无需增加该属性
:return: The support_highperformance of this ImageInfo.
:rtype: str
"""
return self._support_highperformance
@support_highperformance.setter
def support_highperformance(self, support_highperformance):
"""Sets the support_highperformance of this ImageInfo.
表示该镜像支持高计算性能如果镜像支持高计算性能则值为true否则无需增加该属性
:param support_highperformance: The support_highperformance of this ImageInfo.
:type: str
"""
self._support_highperformance = support_highperformance
@property
def support_kvm(self):
"""Gets the support_kvm of this ImageInfo.
如果镜像支持KVM取值为true否则无需增加该属性
:return: The support_kvm of this ImageInfo.
:rtype: str
"""
return self._support_kvm
@support_kvm.setter
def support_kvm(self, support_kvm):
"""Sets the support_kvm of this ImageInfo.
如果镜像支持KVM取值为true否则无需增加该属性
:param support_kvm: The support_kvm of this ImageInfo.
:type: str
"""
self._support_kvm = support_kvm
@property
def support_kvm_gpu_type(self):
"""Gets the support_kvm_gpu_type of this ImageInfo.
表示该镜像是支持KVM虚拟化平台下的GPU类型如果不支持KVM虚拟机下GPU类型无需添加该属性该属性与__support_xen__support_kvm属性不共存
:return: The support_kvm_gpu_type of this ImageInfo.
:rtype: str
"""
return self._support_kvm_gpu_type
@support_kvm_gpu_type.setter
def support_kvm_gpu_type(self, support_kvm_gpu_type):
"""Sets the support_kvm_gpu_type of this ImageInfo.
表示该镜像是支持KVM虚拟化平台下的GPU类型如果不支持KVM虚拟机下GPU类型无需添加该属性该属性与__support_xen__support_kvm属性不共存
:param support_kvm_gpu_type: The support_kvm_gpu_type of this ImageInfo.
:type: str
"""
self._support_kvm_gpu_type = support_kvm_gpu_type
@property
def support_kvm_infiniband(self):
"""Gets the support_kvm_infiniband of this ImageInfo.
如果镜像支持KVM虚拟化下Infiniband网卡类型取值为true否则无需添加该属性该属性与__support_xen属性不共存
:return: The support_kvm_infiniband of this ImageInfo.
:rtype: str
"""
return self._support_kvm_infiniband
@support_kvm_infiniband.setter
def support_kvm_infiniband(self, support_kvm_infiniband):
"""Sets the support_kvm_infiniband of this ImageInfo.
如果镜像支持KVM虚拟化下Infiniband网卡类型取值为true否则无需添加该属性该属性与__support_xen属性不共存
:param support_kvm_infiniband: The support_kvm_infiniband of this ImageInfo.
:type: str
"""
self._support_kvm_infiniband = support_kvm_infiniband
@property
def support_largememory(self):
"""Gets the support_largememory of this ImageInfo.
表示该镜像支持超大内存如果镜像支持超大内存取值为true否则无需增加该属性
:return: The support_largememory of this ImageInfo.
:rtype: str
"""
return self._support_largememory
@support_largememory.setter
def support_largememory(self, support_largememory):
"""Sets the support_largememory of this ImageInfo.
表示该镜像支持超大内存如果镜像支持超大内存取值为true否则无需增加该属性
:param support_largememory: The support_largememory of this ImageInfo.
:type: str
"""
self._support_largememory = support_largememory
@property
def support_xen(self):
"""Gets the support_xen of this ImageInfo.
如果镜像支持XEN取值为true否则无需增加该属性
:return: The support_xen of this ImageInfo.
:rtype: str
"""
return self._support_xen
@support_xen.setter
def support_xen(self, support_xen):
"""Sets the support_xen of this ImageInfo.
如果镜像支持XEN取值为true否则无需增加该属性
:param support_xen: The support_xen of this ImageInfo.
:type: str
"""
self._support_xen = support_xen
@property
def support_xen_gpu_type(self):
"""Gets the support_xen_gpu_type of this ImageInfo.
表示该镜像是支持XEN虚拟化平台下的GPU优化类型如果不支持XEN虚拟化下GPU类型无需添加该属性 该属性与__support_xen__support_kvm属性不共存
:return: The support_xen_gpu_type of this ImageInfo.
:rtype: str
"""
return self._support_xen_gpu_type
@support_xen_gpu_type.setter
def support_xen_gpu_type(self, support_xen_gpu_type):
"""Sets the support_xen_gpu_type of this ImageInfo.
表示该镜像是支持XEN虚拟化平台下的GPU优化类型如果不支持XEN虚拟化下GPU类型无需添加该属性 该属性与__support_xen__support_kvm属性不共存
:param support_xen_gpu_type: The support_xen_gpu_type of this ImageInfo.
:type: str
"""
self._support_xen_gpu_type = support_xen_gpu_type
@property
def support_xen_hana(self):
"""Gets the support_xen_hana of this ImageInfo.
如果镜像支持XEN虚拟化下HANA类型取值为true否则无需添加该属性该属性与__support_xen __support_kvm属性不共存
:return: The support_xen_hana of this ImageInfo.
:rtype: str
"""
return self._support_xen_hana
@support_xen_hana.setter
def support_xen_hana(self, support_xen_hana):
"""Sets the support_xen_hana of this ImageInfo.
如果镜像支持XEN虚拟化下HANA类型取值为true否则无需添加该属性该属性与__support_xen __support_kvm属性不共存
:param support_xen_hana: The support_xen_hana of this ImageInfo.
:type: str
"""
self._support_xen_hana = support_xen_hana
@property
def system_support_market(self):
"""Gets the system_support_market of this ImageInfo.
表示当前镜像是否支持发布为市场镜像,true表示支持,false 表示不支持
:return: The system_support_market of this ImageInfo.
:rtype: bool
"""
return self._system_support_market
@system_support_market.setter
def system_support_market(self, system_support_market):
"""Sets the system_support_market of this ImageInfo.
表示当前镜像是否支持发布为市场镜像,true表示支持,false 表示不支持
:param system_support_market: The system_support_market of this ImageInfo.
:type: bool
"""
self._system_support_market = system_support_market
@property
def checksum(self):
"""Gets the checksum of this ImageInfo.
目前暂时不使用
:return: The checksum of this ImageInfo.
:rtype: str
"""
return self._checksum
@checksum.setter
def checksum(self, checksum):
"""Sets the checksum of this ImageInfo.
目前暂时不使用
:param checksum: The checksum of this ImageInfo.
:type: str
"""
self._checksum = checksum
@property
def container_format(self):
"""Gets the container_format of this ImageInfo.
容器类型
:return: The container_format of this ImageInfo.
:rtype: str
"""
return self._container_format
@container_format.setter
def container_format(self, container_format):
"""Sets the container_format of this ImageInfo.
容器类型
:param container_format: The container_format of this ImageInfo.
:type: str
"""
self._container_format = container_format
@property
def created_at(self):
"""Gets the created_at of this ImageInfo.
创建时间格式为UTC时间
:return: The created_at of this ImageInfo.
:rtype: str
"""
return self._created_at
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this ImageInfo.
创建时间格式为UTC时间
:param created_at: The created_at of this ImageInfo.
:type: str
"""
self._created_at = created_at
@property
def disk_format(self):
"""Gets the disk_format of this ImageInfo.
镜像的格式目前支持vhdzvhdrawqcow2默认值是vhd
:return: The disk_format of this ImageInfo.
:rtype: str
"""
return self._disk_format
@disk_format.setter
def disk_format(self, disk_format):
"""Sets the disk_format of this ImageInfo.
镜像的格式目前支持vhdzvhdrawqcow2默认值是vhd
:param disk_format: The disk_format of this ImageInfo.
:type: str
"""
self._disk_format = disk_format
@property
def enterprise_project_id(self):
"""Gets the enterprise_project_id of this ImageInfo.
表示当前镜像所属的企业项目取值为0或无该值表示属于default企业项目取值为UUID表示属于该UUID对应的企业项目
2020-05-18 07:34:40 +00:00
:return: The enterprise_project_id of this ImageInfo.
:rtype: str
"""
return self._enterprise_project_id
@enterprise_project_id.setter
def enterprise_project_id(self, enterprise_project_id):
"""Sets the enterprise_project_id of this ImageInfo.
表示当前镜像所属的企业项目取值为0或无该值表示属于default企业项目取值为UUID表示属于该UUID对应的企业项目
2020-05-18 07:34:40 +00:00
:param enterprise_project_id: The enterprise_project_id of this ImageInfo.
:type: str
"""
self._enterprise_project_id = enterprise_project_id
@property
def file(self):
"""Gets the file of this ImageInfo.
镜像文件下载和上传链接
:return: The file of this ImageInfo.
:rtype: str
"""
return self._file
@file.setter
def file(self, file):
"""Sets the file of this ImageInfo.
镜像文件下载和上传链接
:param file: The file of this ImageInfo.
:type: str
"""
self._file = file
@property
def id(self):
"""Gets the id of this ImageInfo.
镜像ID
:return: The id of this ImageInfo.
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this ImageInfo.
镜像ID
:param id: The id of this ImageInfo.
:type: str
"""
self._id = id
@property
def min_disk(self):
"""Gets the min_disk of this ImageInfo.
镜像运行需要的最小磁盘容量单位为GB取值为401024GB
:return: The min_disk of this ImageInfo.
:rtype: int
"""
return self._min_disk
@min_disk.setter
def min_disk(self, min_disk):
"""Sets the min_disk of this ImageInfo.
镜像运行需要的最小磁盘容量单位为GB取值为401024GB
:param min_disk: The min_disk of this ImageInfo.
:type: int
"""
self._min_disk = min_disk
@property
def min_ram(self):
"""Gets the min_ram of this ImageInfo.
镜像运行需要的最小内存单位为MB参数取值依据弹性云服务器的规格限制默认设置为0
:return: The min_ram of this ImageInfo.
:rtype: int
"""
return self._min_ram
@min_ram.setter
def min_ram(self, min_ram):
"""Sets the min_ram of this ImageInfo.
镜像运行需要的最小内存单位为MB参数取值依据弹性云服务器的规格限制默认设置为0
:param min_ram: The min_ram of this ImageInfo.
:type: int
"""
self._min_ram = min_ram
@property
def name(self):
"""Gets the name of this ImageInfo.
镜像名称 名称的首尾字母不能为空格 名称的长度至为1128 名称包含以下4种字符 大写字母 小写字母 数字 特殊字符包含-._空格和中文
:return: The name of this ImageInfo.
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this ImageInfo.
镜像名称 名称的首尾字母不能为空格 名称的长度至为1128 名称包含以下4种字符 大写字母 小写字母 数字 特殊字符包含-._空格和中文
:param name: The name of this ImageInfo.
:type: str
"""
self._name = name
@property
def owner(self):
"""Gets the owner of this ImageInfo.
镜像属于哪个租户
:return: The owner of this ImageInfo.
:rtype: str
"""
return self._owner
@owner.setter
def owner(self, owner):
"""Sets the owner of this ImageInfo.
镜像属于哪个租户
:param owner: The owner of this ImageInfo.
:type: str
"""
self._owner = owner
@property
def protected(self):
"""Gets the protected of this ImageInfo.
是否是受保护的受保护的镜像不允许删除取值为true或false
:return: The protected of this ImageInfo.
:rtype: bool
"""
return self._protected
@protected.setter
def protected(self, protected):
"""Sets the protected of this ImageInfo.
是否是受保护的受保护的镜像不允许删除取值为true或false
:param protected: The protected of this ImageInfo.
:type: bool
"""
self._protected = protected
@property
def schema(self):
"""Gets the schema of this ImageInfo.
镜像视图
:return: The schema of this ImageInfo.
:rtype: str
"""
return self._schema
@schema.setter
def schema(self, schema):
"""Sets the schema of this ImageInfo.
镜像视图
:param schema: The schema of this ImageInfo.
:type: str
"""
self._schema = schema
@property
def _self(self):
"""Gets the _self of this ImageInfo.
镜像链接信息
:return: The _self of this ImageInfo.
:rtype: str
"""
return self.__self
@_self.setter
def _self(self, _self):
"""Sets the _self of this ImageInfo.
镜像链接信息
:param _self: The _self of this ImageInfo.
:type: str
"""
self.__self = _self
@property
def size(self):
"""Gets the size of this ImageInfo.
目前暂时不使用
:return: The size of this ImageInfo.
:rtype: int
"""
return self._size
@size.setter
def size(self, size):
"""Sets the size of this ImageInfo.
目前暂时不使用
:param size: The size of this ImageInfo.
:type: int
"""
self._size = size
@property
def status(self):
"""Gets the status of this ImageInfo.
镜像状态取值如下queued表示镜像元数据已经创建成功等待 上传镜像文件saving表示镜像 正在上传文件到后端存储deleted表示镜像已经删除killed表示镜像上传错误active表示镜像可以正常使用
:return: The status of this ImageInfo.
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this ImageInfo.
镜像状态取值如下queued表示镜像元数据已经创建成功等待 上传镜像文件saving表示镜像 正在上传文件到后端存储deleted表示镜像已经删除killed表示镜像上传错误active表示镜像可以正常使用
:param status: The status of this ImageInfo.
:type: str
"""
self._status = status
@property
def tags(self):
"""Gets the tags of this ImageInfo.
镜像标签列表
:return: The tags of this ImageInfo.
:rtype: list[str]
"""
return self._tags
@tags.setter
def tags(self, tags):
"""Sets the tags of this ImageInfo.
镜像标签列表
:param tags: The tags of this ImageInfo.
:type: list[str]
"""
self._tags = tags
@property
def updated_at(self):
"""Gets the updated_at of this ImageInfo.
更新时间格式为UTC时间
:return: The updated_at of this ImageInfo.
:rtype: str
"""
return self._updated_at
@updated_at.setter
def updated_at(self, updated_at):
"""Sets the updated_at of this ImageInfo.
更新时间格式为UTC时间
:param updated_at: The updated_at of this ImageInfo.
:type: str
"""
self._updated_at = updated_at
@property
def virtual_env_type(self):
"""Gets the virtual_env_type of this ImageInfo.
镜像使用环境类型FusionComputeIronicDataImage如果弹性云服务器镜像则取值为FusionCompute如果是数据卷镜像则取Dat aImage如果是裸金属服务器镜像则取值是Ironic
:return: The virtual_env_type of this ImageInfo.
:rtype: str
"""
return self._virtual_env_type
@virtual_env_type.setter
def virtual_env_type(self, virtual_env_type):
"""Sets the virtual_env_type of this ImageInfo.
镜像使用环境类型FusionComputeIronicDataImage如果弹性云服务器镜像则取值为FusionCompute如果是数据卷镜像则取Dat aImage如果是裸金属服务器镜像则取值是Ironic
:param virtual_env_type: The virtual_env_type of this ImageInfo.
:type: str
"""
self._virtual_env_type = virtual_env_type
@property
def virtual_size(self):
"""Gets the virtual_size of this ImageInfo.
目前暂时不使用
:return: The virtual_size of this ImageInfo.
:rtype: int
"""
return self._virtual_size
@virtual_size.setter
def virtual_size(self, virtual_size):
"""Sets the virtual_size of this ImageInfo.
目前暂时不使用
:param virtual_size: The virtual_size of this ImageInfo.
:type: int
"""
self._virtual_size = virtual_size
@property
def visibility(self):
"""Gets the visibility of this ImageInfo.
是否被其他租户可见取值为private或public
:return: The visibility of this ImageInfo.
:rtype: str
"""
return self._visibility
@visibility.setter
def visibility(self, visibility):
"""Sets the visibility of this ImageInfo.
是否被其他租户可见取值为private或public
:param visibility: The visibility of this ImageInfo.
:type: str
"""
self._visibility = visibility
@property
def support_fc_inject(self):
"""Gets the support_fc_inject of this ImageInfo.
表示当前镜像支持CloudInit密码/密钥注入方式建议设置为\"true\"或者\"false\"。 如果取值为\"true\"表示该镜像不支持CloudInit注入密码/密钥其他取值时表示支持CloudInit注入密钥/密码。
:return: The support_fc_inject of this ImageInfo.
:rtype: str
"""
return self._support_fc_inject
@support_fc_inject.setter
def support_fc_inject(self, support_fc_inject):
"""Sets the support_fc_inject of this ImageInfo.
表示当前镜像支持CloudInit密码/密钥注入方式建议设置为\"true\"或者\"false\"。 如果取值为\"true\"表示该镜像不支持CloudInit注入密码/密钥其他取值时表示支持CloudInit注入密钥/密码。
:param support_fc_inject: The support_fc_inject of this ImageInfo.
:type: str
"""
self._support_fc_inject = support_fc_inject
@property
def hw_firmware_type(self):
"""Gets the hw_firmware_type of this ImageInfo.
云服务器的启动方式目前支持 bios表示bios引导启动 uefi表示uefi引导启动
:return: The hw_firmware_type of this ImageInfo.
:rtype: str
"""
return self._hw_firmware_type
@hw_firmware_type.setter
def hw_firmware_type(self, hw_firmware_type):
"""Sets the hw_firmware_type of this ImageInfo.
云服务器的启动方式目前支持 bios表示bios引导启动 uefi表示uefi引导启动
:param hw_firmware_type: The hw_firmware_type of this ImageInfo.
:type: str
"""
self._hw_firmware_type = hw_firmware_type
@property
def support_arm(self):
"""Gets the support_arm of this ImageInfo.
是否是ARM架构类型的镜像取值为true或者false
:return: The support_arm of this ImageInfo.
:rtype: str
"""
return self._support_arm
@support_arm.setter
def support_arm(self, support_arm):
"""Sets the support_arm of this ImageInfo.
是否是ARM架构类型的镜像取值为true或者false
:param support_arm: The support_arm of this ImageInfo.
:type: str
"""
self._support_arm = support_arm
@property
def max_ram(self):
"""Gets the max_ram of this ImageInfo.
镜像支持的最大内存单位为MB取值可以参考云服务器规格限制一般不设置
:return: The max_ram of this ImageInfo.
:rtype: str
"""
return self._max_ram
@max_ram.setter
def max_ram(self, max_ram):
"""Sets the max_ram of this ImageInfo.
镜像支持的最大内存单位为MB取值可以参考云服务器规格限制一般不设置
:param max_ram: The max_ram of this ImageInfo.
:type: str
"""
self._max_ram = max_ram
@property
def system__cmkid(self):
"""Gets the system__cmkid of this ImageInfo.
加密镜像所使用的密钥ID
:return: The system__cmkid of this ImageInfo.
:rtype: str
"""
return self._system__cmkid
@system__cmkid.setter
def system__cmkid(self, system__cmkid):
"""Sets the system__cmkid of this ImageInfo.
加密镜像所使用的密钥ID
:param system__cmkid: The system__cmkid of this ImageInfo.
:type: str
"""
self._system__cmkid = system__cmkid
@property
def os_feature_list(self):
"""Gets the os_feature_list of this ImageInfo.
镜像附加属性该属性采用JSON格式来标识镜像支持的高级特性清单
:return: The os_feature_list of this ImageInfo.
:rtype: str
"""
return self._os_feature_list
@os_feature_list.setter
def os_feature_list(self, os_feature_list):
"""Sets the os_feature_list of this ImageInfo.
镜像附加属性该属性采用JSON格式来标识镜像支持的高级特性清单
:param os_feature_list: The os_feature_list of this ImageInfo.
:type: str
"""
self._os_feature_list = os_feature_list
@property
def account_code(self):
"""Gets the account_code of this ImageInfo.
收费镜像标识
:return: The account_code of this ImageInfo.
:rtype: str
"""
return self._account_code
@account_code.setter
def account_code(self, account_code):
"""Sets the account_code of this ImageInfo.
收费镜像标识
:param account_code: The account_code of this ImageInfo.
:type: str
"""
self._account_code = account_code
@property
def hw_vif_multiqueue_enabled(self):
"""Gets the hw_vif_multiqueue_enabled of this ImageInfo.
镜像是否支持网卡多队列取值为true或者false
:return: The hw_vif_multiqueue_enabled of this ImageInfo.
:rtype: str
"""
return self._hw_vif_multiqueue_enabled
@hw_vif_multiqueue_enabled.setter
def hw_vif_multiqueue_enabled(self, hw_vif_multiqueue_enabled):
"""Sets the hw_vif_multiqueue_enabled of this ImageInfo.
镜像是否支持网卡多队列取值为true或者false
:param hw_vif_multiqueue_enabled: The hw_vif_multiqueue_enabled of this ImageInfo.
:type: str
"""
self._hw_vif_multiqueue_enabled = hw_vif_multiqueue_enabled
2021-07-09 10:57:08 +00:00
@property
def is_offshelved(self):
"""Gets the is_offshelved of this ImageInfo.
表示当前市场镜像是否下架true已下架 false未下架
:return: The is_offshelved of this ImageInfo.
:rtype: str
"""
return self._is_offshelved
@is_offshelved.setter
def is_offshelved(self, is_offshelved):
"""Sets the is_offshelved of this ImageInfo.
表示当前市场镜像是否下架true已下架 false未下架
:param is_offshelved: The is_offshelved of this ImageInfo.
:type: str
"""
self._is_offshelved = is_offshelved
@property
def lazyloading(self):
"""Gets the lazyloading of this ImageInfo.
镜像是否支持延迟加载取值为TrueFalse
:return: The lazyloading of this ImageInfo.
2021-07-16 07:57:47 +00:00
:rtype: str
2021-07-09 10:57:08 +00:00
"""
return self._lazyloading
@lazyloading.setter
def lazyloading(self, lazyloading):
"""Sets the lazyloading of this ImageInfo.
镜像是否支持延迟加载取值为TrueFalse
:param lazyloading: The lazyloading of this ImageInfo.
2021-07-16 07:57:47 +00:00
:type: str
2021-07-09 10:57:08 +00:00
"""
self._lazyloading = lazyloading
@property
def root_origin(self):
"""Gets the root_origin of this ImageInfo.
表示当前镜像来源是从外部导入取值file
:return: The root_origin of this ImageInfo.
:rtype: str
"""
return self._root_origin
@root_origin.setter
def root_origin(self, root_origin):
"""Sets the root_origin of this ImageInfo.
表示当前镜像来源是从外部导入取值file
:param root_origin: The root_origin of this ImageInfo.
:type: str
"""
self._root_origin = root_origin
@property
def sequence_num(self):
"""Gets the sequence_num of this ImageInfo.
表示当前镜像对应云服务器的系统盘插槽位置目前暂时不用
:return: The sequence_num of this ImageInfo.
:rtype: str
"""
return self._sequence_num
@sequence_num.setter
def sequence_num(self, sequence_num):
"""Sets the sequence_num of this ImageInfo.
表示当前镜像对应云服务器的系统盘插槽位置目前暂时不用
:param sequence_num: The sequence_num of this ImageInfo.
:type: str
"""
self._sequence_num = sequence_num
@property
def active_at(self):
"""Gets the active_at of this ImageInfo.
镜像状态变为正常的时间
:return: The active_at of this ImageInfo.
:rtype: str
"""
return self._active_at
@active_at.setter
def active_at(self, active_at):
"""Sets the active_at of this ImageInfo.
镜像状态变为正常的时间
:param active_at: The active_at of this ImageInfo.
:type: str
"""
self._active_at = active_at
@property
def support_agent_list(self):
"""Gets the support_agent_list of this ImageInfo.
镜像是否支持企业主机安全或主机监控 hss企业主机安全 ces主机监控
:return: The support_agent_list of this ImageInfo.
:rtype: str
"""
return self._support_agent_list
@support_agent_list.setter
def support_agent_list(self, support_agent_list):
"""Sets the support_agent_list of this ImageInfo.
镜像是否支持企业主机安全或主机监控 hss企业主机安全 ces主机监控
:param support_agent_list: The support_agent_list of this ImageInfo.
:type: str
"""
self._support_agent_list = support_agent_list
2021-09-16 14:24:59 +00:00
@property
def support_amd(self):
"""Gets the support_amd of this ImageInfo.
是否是AMD架构类型的镜像取值为true或者false
:return: The support_amd of this ImageInfo.
:rtype: str
"""
return self._support_amd
@support_amd.setter
def support_amd(self, support_amd):
"""Sets the support_amd of this ImageInfo.
是否是AMD架构类型的镜像取值为true或者false
:param support_amd: The support_amd of this ImageInfo.
:type: str
"""
self._support_amd = support_amd
2020-05-18 07:34:40 +00:00
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
if attr in self.sensitive_list:
result[attr] = "****"
else:
result[attr] = value
2020-05-18 07:34:40 +00:00
return result
def to_str(self):
2021-08-10 12:26:18 +00:00
"""Returns the string representation of the model"""
2021-07-09 10:57:08 +00:00
import simplejson as json
2021-08-10 12:26:18 +00:00
if six.PY2:
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
2020-05-18 07:34:40 +00:00
def __repr__(self):
2021-08-10 12:26:18 +00:00
"""For `print`"""
2020-05-18 07:34:40 +00:00
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, ImageInfo):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other