huaweicloud-sdk-python-v3/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/model/volume_detail.py

946 lines
29 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 VolumeDetail:
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 = {
'id': 'str',
'links': 'list[Link]',
'name': 'str',
'status': 'str',
'attachments': 'list[Attachment]',
2020-05-18 07:34:40 +00:00
'availability_zone': 'str',
'os_vol_host_attrhost': 'str',
'source_volid': 'str',
2020-05-18 07:34:40 +00:00
'snapshot_id': 'str',
'description': 'str',
'created_at': 'str',
'os_vol_tenant_attrtenant_id': 'str',
'volume_image_metadata': 'dict(str, object)',
2020-05-18 07:34:40 +00:00
'volume_type': 'str',
'size': 'int',
'consistencygroup_id': 'str',
'bootable': 'str',
'metadata': 'VolumeMetadata',
'updated_at': 'str',
'encrypted': 'bool',
'replication_status': 'str',
'os_volume_replicationextended_status': 'str',
'os_vol_mig_status_attrmigstat': 'str',
'os_vol_mig_status_attrname_id': 'str',
'shareable': 'str',
'user_id': 'str',
'service_type': 'str',
'multiattach': 'bool',
'dedicated_storage_id': 'str',
'dedicated_storage_name': 'str',
'tags': 'dict(str, str)',
'wwn': 'str',
'enterprise_project_id': 'str'
2020-05-18 07:34:40 +00:00
}
attribute_map = {
'id': 'id',
'links': 'links',
'name': 'name',
'status': 'status',
'attachments': 'attachments',
'availability_zone': 'availability_zone',
'os_vol_host_attrhost': 'os-vol-host-attr:host',
'source_volid': 'source_volid',
2020-05-18 07:34:40 +00:00
'snapshot_id': 'snapshot_id',
'description': 'description',
'created_at': 'created_at',
'os_vol_tenant_attrtenant_id': 'os-vol-tenant-attr:tenant_id',
'volume_image_metadata': 'volume_image_metadata',
2020-05-18 07:34:40 +00:00
'volume_type': 'volume_type',
'size': 'size',
'consistencygroup_id': 'consistencygroup_id',
'bootable': 'bootable',
2020-05-18 07:34:40 +00:00
'metadata': 'metadata',
'updated_at': 'updated_at',
'encrypted': 'encrypted',
'replication_status': 'replication_status',
'os_volume_replicationextended_status': 'os-volume-replication:extended_status',
'os_vol_mig_status_attrmigstat': 'os-vol-mig-status-attr:migstat',
'os_vol_mig_status_attrname_id': 'os-vol-mig-status-attr:name_id',
'shareable': 'shareable',
'user_id': 'user_id',
'service_type': 'service_type',
'multiattach': 'multiattach',
'dedicated_storage_id': 'dedicated_storage_id',
'dedicated_storage_name': 'dedicated_storage_name',
'tags': 'tags',
'wwn': 'wwn',
'enterprise_project_id': 'enterprise_project_id'
2020-05-18 07:34:40 +00:00
}
def __init__(self, id=None, links=None, name=None, status=None, attachments=None, availability_zone=None, os_vol_host_attrhost=None, source_volid=None, snapshot_id=None, description=None, created_at=None, os_vol_tenant_attrtenant_id=None, volume_image_metadata=None, volume_type=None, size=None, consistencygroup_id=None, bootable=None, metadata=None, updated_at=None, encrypted=None, replication_status=None, os_volume_replicationextended_status=None, os_vol_mig_status_attrmigstat=None, os_vol_mig_status_attrname_id=None, shareable=None, user_id=None, service_type=None, multiattach=None, dedicated_storage_id=None, dedicated_storage_name=None, tags=None, wwn=None, enterprise_project_id=None):
2020-05-18 07:34:40 +00:00
"""VolumeDetail - a model defined in huaweicloud sdk"""
2020-05-18 07:34:40 +00:00
self._id = None
self._links = None
self._name = None
self._status = None
self._attachments = None
self._availability_zone = None
self._os_vol_host_attrhost = None
self._source_volid = None
2020-05-18 07:34:40 +00:00
self._snapshot_id = None
self._description = None
self._created_at = None
self._os_vol_tenant_attrtenant_id = None
self._volume_image_metadata = None
2020-05-18 07:34:40 +00:00
self._volume_type = None
self._size = None
self._consistencygroup_id = None
self._bootable = None
2020-05-18 07:34:40 +00:00
self._metadata = None
self._updated_at = None
self._encrypted = None
self._replication_status = None
2020-05-18 07:34:40 +00:00
self._os_volume_replicationextended_status = None
self._os_vol_mig_status_attrmigstat = None
self._os_vol_mig_status_attrname_id = None
self._shareable = None
self._user_id = None
self._service_type = None
self._multiattach = None
self._dedicated_storage_id = None
self._dedicated_storage_name = None
self._tags = None
self._wwn = None
self._enterprise_project_id = None
2020-05-18 07:34:40 +00:00
self.discriminator = None
self.id = id
self.links = links
self.name = name
2020-05-18 07:34:40 +00:00
self.status = status
self.attachments = attachments
2020-05-18 07:34:40 +00:00
self.availability_zone = availability_zone
self.os_vol_host_attrhost = os_vol_host_attrhost
if source_volid is not None:
self.source_volid = source_volid
self.snapshot_id = snapshot_id
self.description = description
2020-05-18 07:34:40 +00:00
self.created_at = created_at
self.os_vol_tenant_attrtenant_id = os_vol_tenant_attrtenant_id
self.volume_image_metadata = volume_image_metadata
2020-05-18 07:34:40 +00:00
self.volume_type = volume_type
self.size = size
if consistencygroup_id is not None:
self.consistencygroup_id = consistencygroup_id
self.bootable = bootable
self.metadata = metadata
self.updated_at = updated_at
if encrypted is not None:
self.encrypted = encrypted
self.replication_status = replication_status
self.os_volume_replicationextended_status = os_volume_replicationextended_status
self.os_vol_mig_status_attrmigstat = os_vol_mig_status_attrmigstat
self.os_vol_mig_status_attrname_id = os_vol_mig_status_attrname_id
self.shareable = shareable
self.user_id = user_id
self.service_type = service_type
2020-05-18 07:34:40 +00:00
self.multiattach = multiattach
if dedicated_storage_id is not None:
self.dedicated_storage_id = dedicated_storage_id
if dedicated_storage_name is not None:
self.dedicated_storage_name = dedicated_storage_name
self.tags = tags
if wwn is not None:
self.wwn = wwn
if enterprise_project_id is not None:
self.enterprise_project_id = enterprise_project_id
2020-05-18 07:34:40 +00:00
@property
def id(self):
"""Gets the id of this VolumeDetail.
云硬盘的ID
2020-05-18 07:34:40 +00:00
:return: The id of this VolumeDetail.
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this VolumeDetail.
云硬盘的ID
2020-05-18 07:34:40 +00:00
:param id: The id of this VolumeDetail.
:type: str
"""
self._id = id
@property
def links(self):
"""Gets the links of this VolumeDetail.
云硬盘URI自描述信息请参见 [links参数说明](https://support.huaweicloud.com/api-evs/evs_04_2006.html#evs_04_2006__evs_04_2010_li1077125119136)。
2020-05-18 07:34:40 +00:00
:return: The links of this VolumeDetail.
:rtype: list[Link]
"""
return self._links
@links.setter
def links(self, links):
"""Sets the links of this VolumeDetail.
云硬盘URI自描述信息请参见 [links参数说明](https://support.huaweicloud.com/api-evs/evs_04_2006.html#evs_04_2006__evs_04_2010_li1077125119136)。
2020-05-18 07:34:40 +00:00
:param links: The links of this VolumeDetail.
:type: list[Link]
"""
self._links = links
@property
def name(self):
"""Gets the name of this VolumeDetail.
云硬盘名称
:return: The name of this VolumeDetail.
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this VolumeDetail.
云硬盘名称
:param name: The name of this VolumeDetail.
:type: str
"""
self._name = name
@property
def status(self):
"""Gets the status of this VolumeDetail.
云硬盘状态请参见[云硬盘状态](https://support.huaweicloud.com/api-evs/evs_04_0040.html)
2020-05-18 07:34:40 +00:00
:return: The status of this VolumeDetail.
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this VolumeDetail.
云硬盘状态请参见[云硬盘状态](https://support.huaweicloud.com/api-evs/evs_04_0040.html)
2020-05-18 07:34:40 +00:00
:param status: The status of this VolumeDetail.
:type: str
"""
self._status = status
@property
def attachments(self):
"""Gets the attachments of this VolumeDetail.
云硬盘的挂载信息请参见[attachments参数说明](https://support.huaweicloud.com/api-evs/evs_04_2006.html#evs_04_2006__evs_04_2010_li12430153610291)。
2020-05-18 07:34:40 +00:00
:return: The attachments of this VolumeDetail.
:rtype: list[Attachment]
2020-05-18 07:34:40 +00:00
"""
return self._attachments
@attachments.setter
def attachments(self, attachments):
"""Sets the attachments of this VolumeDetail.
云硬盘的挂载信息请参见[attachments参数说明](https://support.huaweicloud.com/api-evs/evs_04_2006.html#evs_04_2006__evs_04_2010_li12430153610291)。
2020-05-18 07:34:40 +00:00
:param attachments: The attachments of this VolumeDetail.
:type: list[Attachment]
2020-05-18 07:34:40 +00:00
"""
self._attachments = attachments
@property
def availability_zone(self):
"""Gets the availability_zone of this VolumeDetail.
云硬盘所属的AZ信息
2020-05-18 07:34:40 +00:00
:return: The availability_zone of this VolumeDetail.
:rtype: str
"""
return self._availability_zone
@availability_zone.setter
def availability_zone(self, availability_zone):
"""Sets the availability_zone of this VolumeDetail.
云硬盘所属的AZ信息
2020-05-18 07:34:40 +00:00
:param availability_zone: The availability_zone of this VolumeDetail.
:type: str
"""
self._availability_zone = availability_zone
@property
def os_vol_host_attrhost(self):
"""Gets the os_vol_host_attrhost of this VolumeDetail.
预留属性
:return: The os_vol_host_attrhost of this VolumeDetail.
:rtype: str
"""
return self._os_vol_host_attrhost
@os_vol_host_attrhost.setter
def os_vol_host_attrhost(self, os_vol_host_attrhost):
"""Sets the os_vol_host_attrhost of this VolumeDetail.
预留属性
:param os_vol_host_attrhost: The os_vol_host_attrhost of this VolumeDetail.
:type: str
"""
self._os_vol_host_attrhost = os_vol_host_attrhost
@property
def source_volid(self):
"""Gets the source_volid of this VolumeDetail.
源云硬盘ID如果是从源云硬盘创建则有值 当前云硬盘服务不支持该字段
:return: The source_volid of this VolumeDetail.
:rtype: str
"""
return self._source_volid
@source_volid.setter
def source_volid(self, source_volid):
"""Sets the source_volid of this VolumeDetail.
源云硬盘ID如果是从源云硬盘创建则有值 当前云硬盘服务不支持该字段
:param source_volid: The source_volid of this VolumeDetail.
:type: str
"""
self._source_volid = source_volid
2020-05-18 07:34:40 +00:00
@property
def snapshot_id(self):
"""Gets the snapshot_id of this VolumeDetail.
快照ID如果是从快照创建则有值
:return: The snapshot_id of this VolumeDetail.
:rtype: str
"""
return self._snapshot_id
@snapshot_id.setter
def snapshot_id(self, snapshot_id):
"""Sets the snapshot_id of this VolumeDetail.
快照ID如果是从快照创建则有值
:param snapshot_id: The snapshot_id of this VolumeDetail.
:type: str
"""
self._snapshot_id = snapshot_id
@property
def description(self):
"""Gets the description of this VolumeDetail.
云硬盘描述
:return: The description of this VolumeDetail.
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this VolumeDetail.
云硬盘描述
:param description: The description of this VolumeDetail.
:type: str
"""
self._description = description
@property
def created_at(self):
"""Gets the created_at of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘创建时间 时间格式UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
2020-05-18 07:34:40 +00:00
:return: The created_at of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:rtype: str
"""
return self._created_at
2020-05-18 07:34:40 +00:00
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘创建时间 时间格式UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
2020-05-18 07:34:40 +00:00
:param created_at: The created_at of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:type: str
"""
self._created_at = created_at
2020-05-18 07:34:40 +00:00
@property
def os_vol_tenant_attrtenant_id(self):
"""Gets the os_vol_tenant_attrtenant_id of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘所属的租户ID租户ID就是项目ID
2020-05-18 07:34:40 +00:00
:return: The os_vol_tenant_attrtenant_id of this VolumeDetail.
:rtype: str
2020-05-18 07:34:40 +00:00
"""
return self._os_vol_tenant_attrtenant_id
2020-05-18 07:34:40 +00:00
@os_vol_tenant_attrtenant_id.setter
def os_vol_tenant_attrtenant_id(self, os_vol_tenant_attrtenant_id):
"""Sets the os_vol_tenant_attrtenant_id of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘所属的租户ID租户ID就是项目ID
2020-05-18 07:34:40 +00:00
:param os_vol_tenant_attrtenant_id: The os_vol_tenant_attrtenant_id of this VolumeDetail.
:type: str
2020-05-18 07:34:40 +00:00
"""
self._os_vol_tenant_attrtenant_id = os_vol_tenant_attrtenant_id
2020-05-18 07:34:40 +00:00
@property
def volume_image_metadata(self):
"""Gets the volume_image_metadata of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘镜像的元数据 > 说明 > > 关于volume_image_metadata字段的详细说明具体请参见\"[查询镜像详情](https://support.huaweicloud.com/api-ims/ims_03_0703.html)\"
2020-05-18 07:34:40 +00:00
:return: The volume_image_metadata of this VolumeDetail.
:rtype: dict(str, object)
2020-05-18 07:34:40 +00:00
"""
return self._volume_image_metadata
2020-05-18 07:34:40 +00:00
@volume_image_metadata.setter
def volume_image_metadata(self, volume_image_metadata):
"""Sets the volume_image_metadata of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘镜像的元数据 > 说明 > > 关于volume_image_metadata字段的详细说明具体请参见\"[查询镜像详情](https://support.huaweicloud.com/api-ims/ims_03_0703.html)\"
2020-05-18 07:34:40 +00:00
:param volume_image_metadata: The volume_image_metadata of this VolumeDetail.
:type: dict(str, object)
2020-05-18 07:34:40 +00:00
"""
self._volume_image_metadata = volume_image_metadata
2020-05-18 07:34:40 +00:00
@property
def volume_type(self):
"""Gets the volume_type of this VolumeDetail.
云硬盘类型 目前支持SSDGPSSDSASSATA四种 SSD为超高IO云硬盘 GPSSD为通用型云硬盘 SAS为高IO云硬盘 SATA为普通IO云硬盘
2020-05-18 07:34:40 +00:00
:return: The volume_type of this VolumeDetail.
:rtype: str
"""
return self._volume_type
@volume_type.setter
def volume_type(self, volume_type):
"""Sets the volume_type of this VolumeDetail.
云硬盘类型 目前支持SSDGPSSDSASSATA四种 SSD为超高IO云硬盘 GPSSD为通用型云硬盘 SAS为高IO云硬盘 SATA为普通IO云硬盘
2020-05-18 07:34:40 +00:00
:param volume_type: The volume_type of this VolumeDetail.
:type: str
"""
self._volume_type = volume_type
@property
def size(self):
"""Gets the size of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘大小单位为GB
2020-05-18 07:34:40 +00:00
:return: The size of this VolumeDetail.
:rtype: int
2020-05-18 07:34:40 +00:00
"""
return self._size
2020-05-18 07:34:40 +00:00
@size.setter
def size(self, size):
"""Sets the size of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘大小单位为GB
2020-05-18 07:34:40 +00:00
:param size: The size of this VolumeDetail.
:type: int
2020-05-18 07:34:40 +00:00
"""
self._size = size
2020-05-18 07:34:40 +00:00
@property
def consistencygroup_id(self):
"""Gets the consistencygroup_id of this VolumeDetail.
2020-05-18 07:34:40 +00:00
预留属性
2020-05-18 07:34:40 +00:00
:return: The consistencygroup_id of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:rtype: str
"""
return self._consistencygroup_id
2020-05-18 07:34:40 +00:00
@consistencygroup_id.setter
def consistencygroup_id(self, consistencygroup_id):
"""Sets the consistencygroup_id of this VolumeDetail.
2020-05-18 07:34:40 +00:00
预留属性
2020-05-18 07:34:40 +00:00
:param consistencygroup_id: The consistencygroup_id of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:type: str
"""
self._consistencygroup_id = consistencygroup_id
2020-05-18 07:34:40 +00:00
@property
def bootable(self):
"""Gets the bootable of this VolumeDetail.
是否为启动云硬盘 true表示为启动云硬盘 false表示为非启动云硬盘
:return: The bootable of this VolumeDetail.
:rtype: str
"""
return self._bootable
@bootable.setter
def bootable(self, bootable):
"""Sets the bootable of this VolumeDetail.
是否为启动云硬盘 true表示为启动云硬盘 false表示为非启动云硬盘
:param bootable: The bootable of this VolumeDetail.
:type: str
"""
self._bootable = bootable
2020-05-18 07:34:40 +00:00
@property
def metadata(self):
"""Gets the metadata of this VolumeDetail.
:return: The metadata of this VolumeDetail.
:rtype: VolumeMetadata
2020-05-18 07:34:40 +00:00
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
"""Sets the metadata of this VolumeDetail.
:param metadata: The metadata of this VolumeDetail.
:type: VolumeMetadata
2020-05-18 07:34:40 +00:00
"""
self._metadata = metadata
@property
def updated_at(self):
"""Gets the updated_at of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘更新时间 时间格式UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
2020-05-18 07:34:40 +00:00
:return: The updated_at of this VolumeDetail.
:rtype: str
2020-05-18 07:34:40 +00:00
"""
return self._updated_at
2020-05-18 07:34:40 +00:00
@updated_at.setter
def updated_at(self, updated_at):
"""Sets the updated_at of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘更新时间 时间格式UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
2020-05-18 07:34:40 +00:00
:param updated_at: The updated_at of this VolumeDetail.
:type: str
2020-05-18 07:34:40 +00:00
"""
self._updated_at = updated_at
2020-05-18 07:34:40 +00:00
@property
def encrypted(self):
"""Gets the encrypted of this VolumeDetail.
当前云硬盘服务不支持该字段
:return: The encrypted of this VolumeDetail.
:rtype: bool
"""
return self._encrypted
@encrypted.setter
def encrypted(self, encrypted):
"""Sets the encrypted of this VolumeDetail.
当前云硬盘服务不支持该字段
:param encrypted: The encrypted of this VolumeDetail.
:type: bool
"""
self._encrypted = encrypted
@property
def replication_status(self):
"""Gets the replication_status of this VolumeDetail.
2020-05-18 07:34:40 +00:00
预留属性
:return: The replication_status of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:rtype: str
"""
return self._replication_status
2020-05-18 07:34:40 +00:00
@replication_status.setter
def replication_status(self, replication_status):
"""Sets the replication_status of this VolumeDetail.
2020-05-18 07:34:40 +00:00
预留属性
:param replication_status: The replication_status of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:type: str
"""
self._replication_status = replication_status
2020-05-18 07:34:40 +00:00
@property
def os_volume_replicationextended_status(self):
"""Gets the os_volume_replicationextended_status of this VolumeDetail.
2020-05-18 07:34:40 +00:00
预留属性
2020-05-18 07:34:40 +00:00
:return: The os_volume_replicationextended_status of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:rtype: str
"""
return self._os_volume_replicationextended_status
2020-05-18 07:34:40 +00:00
@os_volume_replicationextended_status.setter
def os_volume_replicationextended_status(self, os_volume_replicationextended_status):
"""Sets the os_volume_replicationextended_status of this VolumeDetail.
2020-05-18 07:34:40 +00:00
预留属性
2020-05-18 07:34:40 +00:00
:param os_volume_replicationextended_status: The os_volume_replicationextended_status of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:type: str
"""
self._os_volume_replicationextended_status = os_volume_replicationextended_status
@property
def os_vol_mig_status_attrmigstat(self):
"""Gets the os_vol_mig_status_attrmigstat of this VolumeDetail.
预留属性
:return: The os_vol_mig_status_attrmigstat of this VolumeDetail.
:rtype: str
"""
return self._os_vol_mig_status_attrmigstat
@os_vol_mig_status_attrmigstat.setter
def os_vol_mig_status_attrmigstat(self, os_vol_mig_status_attrmigstat):
"""Sets the os_vol_mig_status_attrmigstat of this VolumeDetail.
预留属性
:param os_vol_mig_status_attrmigstat: The os_vol_mig_status_attrmigstat of this VolumeDetail.
:type: str
"""
self._os_vol_mig_status_attrmigstat = os_vol_mig_status_attrmigstat
@property
def os_vol_mig_status_attrname_id(self):
"""Gets the os_vol_mig_status_attrname_id of this VolumeDetail.
预留属性
:return: The os_vol_mig_status_attrname_id of this VolumeDetail.
:rtype: str
"""
return self._os_vol_mig_status_attrname_id
@os_vol_mig_status_attrname_id.setter
def os_vol_mig_status_attrname_id(self, os_vol_mig_status_attrname_id):
"""Sets the os_vol_mig_status_attrname_id of this VolumeDetail.
预留属性
:param os_vol_mig_status_attrname_id: The os_vol_mig_status_attrname_id of this VolumeDetail.
:type: str
"""
self._os_vol_mig_status_attrname_id = os_vol_mig_status_attrname_id
2020-05-18 07:34:40 +00:00
@property
def shareable(self):
"""Gets the shareable of this VolumeDetail.
是否为共享云硬盘true为共享盘false为普通云硬盘 该字段已经废弃请使用multiattach
2020-05-18 07:34:40 +00:00
:return: The shareable of this VolumeDetail.
:rtype: str
2020-05-18 07:34:40 +00:00
"""
return self._shareable
@shareable.setter
def shareable(self, shareable):
"""Sets the shareable of this VolumeDetail.
是否为共享云硬盘true为共享盘false为普通云硬盘 该字段已经废弃请使用multiattach
2020-05-18 07:34:40 +00:00
:param shareable: The shareable of this VolumeDetail.
:type: str
2020-05-18 07:34:40 +00:00
"""
self._shareable = shareable
@property
def user_id(self):
"""Gets the user_id of this VolumeDetail.
2020-05-18 07:34:40 +00:00
预留属性
2020-05-18 07:34:40 +00:00
:return: The user_id of this VolumeDetail.
:rtype: str
2020-05-18 07:34:40 +00:00
"""
return self._user_id
2020-05-18 07:34:40 +00:00
@user_id.setter
def user_id(self, user_id):
"""Sets the user_id of this VolumeDetail.
2020-05-18 07:34:40 +00:00
预留属性
2020-05-18 07:34:40 +00:00
:param user_id: The user_id of this VolumeDetail.
:type: str
2020-05-18 07:34:40 +00:00
"""
self._user_id = user_id
2020-05-18 07:34:40 +00:00
@property
def service_type(self):
"""Gets the service_type of this VolumeDetail.
2020-05-18 07:34:40 +00:00
服务类型结果为EVSDSSDESS
2020-05-18 07:34:40 +00:00
:return: The service_type of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:rtype: str
"""
return self._service_type
2020-05-18 07:34:40 +00:00
@service_type.setter
def service_type(self, service_type):
"""Sets the service_type of this VolumeDetail.
2020-05-18 07:34:40 +00:00
服务类型结果为EVSDSSDESS
2020-05-18 07:34:40 +00:00
:param service_type: The service_type of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:type: str
"""
self._service_type = service_type
2020-05-18 07:34:40 +00:00
@property
def multiattach(self):
"""Gets the multiattach of this VolumeDetail.
2020-05-18 07:34:40 +00:00
是否为共享云硬盘
2020-05-18 07:34:40 +00:00
:return: The multiattach of this VolumeDetail.
:rtype: bool
2020-05-18 07:34:40 +00:00
"""
return self._multiattach
2020-05-18 07:34:40 +00:00
@multiattach.setter
def multiattach(self, multiattach):
"""Sets the multiattach of this VolumeDetail.
2020-05-18 07:34:40 +00:00
是否为共享云硬盘
2020-05-18 07:34:40 +00:00
:param multiattach: The multiattach of this VolumeDetail.
:type: bool
2020-05-18 07:34:40 +00:00
"""
self._multiattach = multiattach
2020-05-18 07:34:40 +00:00
@property
def dedicated_storage_id(self):
"""Gets the dedicated_storage_id of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘所属的专属存储池ID
2020-05-18 07:34:40 +00:00
:return: The dedicated_storage_id of this VolumeDetail.
:rtype: str
2020-05-18 07:34:40 +00:00
"""
return self._dedicated_storage_id
2020-05-18 07:34:40 +00:00
@dedicated_storage_id.setter
def dedicated_storage_id(self, dedicated_storage_id):
"""Sets the dedicated_storage_id of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘所属的专属存储池ID
2020-05-18 07:34:40 +00:00
:param dedicated_storage_id: The dedicated_storage_id of this VolumeDetail.
:type: str
2020-05-18 07:34:40 +00:00
"""
self._dedicated_storage_id = dedicated_storage_id
2020-05-18 07:34:40 +00:00
@property
def dedicated_storage_name(self):
"""Gets the dedicated_storage_name of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘所属的专属存储池的名称
2020-05-18 07:34:40 +00:00
:return: The dedicated_storage_name of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:rtype: str
"""
return self._dedicated_storage_name
2020-05-18 07:34:40 +00:00
@dedicated_storage_name.setter
def dedicated_storage_name(self, dedicated_storage_name):
"""Sets the dedicated_storage_name of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘所属的专属存储池的名称
2020-05-18 07:34:40 +00:00
:param dedicated_storage_name: The dedicated_storage_name of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:type: str
"""
self._dedicated_storage_name = dedicated_storage_name
2020-05-18 07:34:40 +00:00
@property
def tags(self):
"""Gets the tags of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘的标签 如果云硬盘有标签则会有该字段否则该字段为空
2020-05-18 07:34:40 +00:00
:return: The tags of this VolumeDetail.
:rtype: dict(str, str)
"""
return self._tags
@tags.setter
def tags(self, tags):
"""Sets the tags of this VolumeDetail.
云硬盘的标签 如果云硬盘有标签则会有该字段否则该字段为空
:param tags: The tags of this VolumeDetail.
:type: dict(str, str)
"""
self._tags = tags
@property
def wwn(self):
"""Gets the wwn of this VolumeDetail.
云硬盘挂载时的唯一标识
:return: The wwn of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:rtype: str
"""
return self._wwn
2020-05-18 07:34:40 +00:00
@wwn.setter
def wwn(self, wwn):
"""Sets the wwn of this VolumeDetail.
2020-05-18 07:34:40 +00:00
云硬盘挂载时的唯一标识
2020-05-18 07:34:40 +00:00
:param wwn: The wwn of this VolumeDetail.
2020-05-18 07:34:40 +00:00
:type: str
"""
self._wwn = wwn
@property
def enterprise_project_id(self):
"""Gets the enterprise_project_id of this VolumeDetail.
云硬盘上绑定的企业项目ID > 说明 > > 关于企业项目ID的获取及企业项目特性的详细信息请参见\"[企业管理用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0123692049.html)\"
:return: The enterprise_project_id of this VolumeDetail.
: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 VolumeDetail.
云硬盘上绑定的企业项目ID > 说明 > > 关于企业项目ID的获取及企业项目特性的详细信息请参见\"[企业管理用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0123692049.html)\"
:param enterprise_project_id: The enterprise_project_id of this VolumeDetail.
:type: str
"""
self._enterprise_project_id = enterprise_project_id
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-07-09 10:57:08 +00:00
import simplejson as json
2021-07-26 11:24:08 +00:00
return json.dumps(sanitize_for_serialization(self))
2020-05-18 07:34:40 +00:00
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, VolumeDetail):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other