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

946 lines
29 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class VolumeDetail:
"""
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 = []
openapi_types = {
'id': 'str',
'links': 'list[Link]',
'name': 'str',
'status': 'str',
'attachments': 'list[Attachment]',
'availability_zone': 'str',
'os_vol_host_attrhost': 'str',
'source_volid': 'str',
'snapshot_id': 'str',
'description': 'str',
'created_at': 'str',
'os_vol_tenant_attrtenant_id': 'str',
'volume_image_metadata': 'dict(str, object)',
'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'
}
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',
'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',
'volume_type': 'volume_type',
'size': 'size',
'consistencygroup_id': 'consistencygroup_id',
'bootable': 'bootable',
'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'
}
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):
"""VolumeDetail - a model defined in huaweicloud sdk"""
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
self._snapshot_id = None
self._description = None
self._created_at = None
self._os_vol_tenant_attrtenant_id = None
self._volume_image_metadata = None
self._volume_type = None
self._size = None
self._consistencygroup_id = None
self._bootable = None
self._metadata = None
self._updated_at = None
self._encrypted = None
self._replication_status = None
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
self.discriminator = None
self.id = id
self.links = links
self.name = name
self.status = status
self.attachments = attachments
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
self.created_at = created_at
self.os_vol_tenant_attrtenant_id = os_vol_tenant_attrtenant_id
self.volume_image_metadata = volume_image_metadata
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
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
@property
def id(self):
"""Gets the id of this VolumeDetail.
云硬盘的ID。
:return: The id of this VolumeDetail.
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this VolumeDetail.
云硬盘的ID。
: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)。
: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)。
: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)。
: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)。
: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)。
:return: The attachments of this VolumeDetail.
:rtype: list[Attachment]
"""
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)。
:param attachments: The attachments of this VolumeDetail.
:type: list[Attachment]
"""
self._attachments = attachments
@property
def availability_zone(self):
"""Gets the availability_zone of this VolumeDetail.
云硬盘所属的AZ信息。
: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信息。
: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
@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.
云硬盘创建时间。 时间格式UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
:return: The created_at of this VolumeDetail.
:rtype: str
"""
return self._created_at
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this VolumeDetail.
云硬盘创建时间。 时间格式UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
:param created_at: The created_at of this VolumeDetail.
:type: str
"""
self._created_at = created_at
@property
def os_vol_tenant_attrtenant_id(self):
"""Gets the os_vol_tenant_attrtenant_id of this VolumeDetail.
云硬盘所属的租户ID。租户ID就是项目ID。
:return: The os_vol_tenant_attrtenant_id of this VolumeDetail.
:rtype: str
"""
return self._os_vol_tenant_attrtenant_id
@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.
云硬盘所属的租户ID。租户ID就是项目ID。
:param os_vol_tenant_attrtenant_id: The os_vol_tenant_attrtenant_id of this VolumeDetail.
:type: str
"""
self._os_vol_tenant_attrtenant_id = os_vol_tenant_attrtenant_id
@property
def volume_image_metadata(self):
"""Gets the volume_image_metadata of this VolumeDetail.
云硬盘镜像的元数据。 > 说明: > > 关于“volume_image_metadata”字段的详细说明具体请参见\"[查询镜像详情](https://support.huaweicloud.com/api-ims/ims_03_0703.html)\"
:return: The volume_image_metadata of this VolumeDetail.
:rtype: dict(str, object)
"""
return self._volume_image_metadata
@volume_image_metadata.setter
def volume_image_metadata(self, volume_image_metadata):
"""Sets the volume_image_metadata of this VolumeDetail.
云硬盘镜像的元数据。 > 说明: > > 关于“volume_image_metadata”字段的详细说明具体请参见\"[查询镜像详情](https://support.huaweicloud.com/api-ims/ims_03_0703.html)\"
:param volume_image_metadata: The volume_image_metadata of this VolumeDetail.
:type: dict(str, object)
"""
self._volume_image_metadata = volume_image_metadata
@property
def volume_type(self):
"""Gets the volume_type of this VolumeDetail.
云硬盘类型。 目前支持“SSD”“GPSSD”“SAS”和“SATA”四种。 “SSD”为超高IO云硬盘 “GPSSD”为通用型云硬盘 “SAS”为高IO云硬盘 “SATA”为普通IO云硬盘
: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.
云硬盘类型。 目前支持“SSD”“GPSSD”“SAS”和“SATA”四种。 “SSD”为超高IO云硬盘 “GPSSD”为通用型云硬盘 “SAS”为高IO云硬盘 “SATA”为普通IO云硬盘
: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.
云硬盘大小单位为GB。
:return: The size of this VolumeDetail.
:rtype: int
"""
return self._size
@size.setter
def size(self, size):
"""Sets the size of this VolumeDetail.
云硬盘大小单位为GB。
:param size: The size of this VolumeDetail.
:type: int
"""
self._size = size
@property
def consistencygroup_id(self):
"""Gets the consistencygroup_id of this VolumeDetail.
预留属性。
:return: The consistencygroup_id of this VolumeDetail.
:rtype: str
"""
return self._consistencygroup_id
@consistencygroup_id.setter
def consistencygroup_id(self, consistencygroup_id):
"""Sets the consistencygroup_id of this VolumeDetail.
预留属性。
:param consistencygroup_id: The consistencygroup_id of this VolumeDetail.
:type: str
"""
self._consistencygroup_id = consistencygroup_id
@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
@property
def metadata(self):
"""Gets the metadata of this VolumeDetail.
:return: The metadata of this VolumeDetail.
:rtype: VolumeMetadata
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
"""Sets the metadata of this VolumeDetail.
:param metadata: The metadata of this VolumeDetail.
:type: VolumeMetadata
"""
self._metadata = metadata
@property
def updated_at(self):
"""Gets the updated_at of this VolumeDetail.
云硬盘更新时间。 时间格式UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
:return: The updated_at of this VolumeDetail.
:rtype: str
"""
return self._updated_at
@updated_at.setter
def updated_at(self, updated_at):
"""Sets the updated_at of this VolumeDetail.
云硬盘更新时间。 时间格式UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
:param updated_at: The updated_at of this VolumeDetail.
:type: str
"""
self._updated_at = updated_at
@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.
预留属性。
:return: The replication_status of this VolumeDetail.
:rtype: str
"""
return self._replication_status
@replication_status.setter
def replication_status(self, replication_status):
"""Sets the replication_status of this VolumeDetail.
预留属性。
:param replication_status: The replication_status of this VolumeDetail.
:type: str
"""
self._replication_status = replication_status
@property
def os_volume_replicationextended_status(self):
"""Gets the os_volume_replicationextended_status of this VolumeDetail.
预留属性。
:return: The os_volume_replicationextended_status of this VolumeDetail.
:rtype: str
"""
return self._os_volume_replicationextended_status
@os_volume_replicationextended_status.setter
def os_volume_replicationextended_status(self, os_volume_replicationextended_status):
"""Sets the os_volume_replicationextended_status of this VolumeDetail.
预留属性。
:param os_volume_replicationextended_status: The os_volume_replicationextended_status of this VolumeDetail.
: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
@property
def shareable(self):
"""Gets the shareable of this VolumeDetail.
是否为共享云硬盘。true为共享盘false为普通云硬盘。 该字段已经废弃请使用multiattach。
:return: The shareable of this VolumeDetail.
:rtype: str
"""
return self._shareable
@shareable.setter
def shareable(self, shareable):
"""Sets the shareable of this VolumeDetail.
是否为共享云硬盘。true为共享盘false为普通云硬盘。 该字段已经废弃请使用multiattach。
:param shareable: The shareable of this VolumeDetail.
:type: str
"""
self._shareable = shareable
@property
def user_id(self):
"""Gets the user_id of this VolumeDetail.
预留属性。
:return: The user_id of this VolumeDetail.
:rtype: str
"""
return self._user_id
@user_id.setter
def user_id(self, user_id):
"""Sets the user_id of this VolumeDetail.
预留属性。
:param user_id: The user_id of this VolumeDetail.
:type: str
"""
self._user_id = user_id
@property
def service_type(self):
"""Gets the service_type of this VolumeDetail.
服务类型结果为EVS、DSS、DESS。
:return: The service_type of this VolumeDetail.
:rtype: str
"""
return self._service_type
@service_type.setter
def service_type(self, service_type):
"""Sets the service_type of this VolumeDetail.
服务类型结果为EVS、DSS、DESS。
:param service_type: The service_type of this VolumeDetail.
:type: str
"""
self._service_type = service_type
@property
def multiattach(self):
"""Gets the multiattach of this VolumeDetail.
是否为共享云硬盘。
:return: The multiattach of this VolumeDetail.
:rtype: bool
"""
return self._multiattach
@multiattach.setter
def multiattach(self, multiattach):
"""Sets the multiattach of this VolumeDetail.
是否为共享云硬盘。
:param multiattach: The multiattach of this VolumeDetail.
:type: bool
"""
self._multiattach = multiattach
@property
def dedicated_storage_id(self):
"""Gets the dedicated_storage_id of this VolumeDetail.
云硬盘所属的专属存储池ID。
:return: The dedicated_storage_id of this VolumeDetail.
:rtype: str
"""
return self._dedicated_storage_id
@dedicated_storage_id.setter
def dedicated_storage_id(self, dedicated_storage_id):
"""Sets the dedicated_storage_id of this VolumeDetail.
云硬盘所属的专属存储池ID。
:param dedicated_storage_id: The dedicated_storage_id of this VolumeDetail.
:type: str
"""
self._dedicated_storage_id = dedicated_storage_id
@property
def dedicated_storage_name(self):
"""Gets the dedicated_storage_name of this VolumeDetail.
云硬盘所属的专属存储池的名称。
:return: The dedicated_storage_name of this VolumeDetail.
:rtype: str
"""
return self._dedicated_storage_name
@dedicated_storage_name.setter
def dedicated_storage_name(self, dedicated_storage_name):
"""Sets the dedicated_storage_name of this VolumeDetail.
云硬盘所属的专属存储池的名称。
:param dedicated_storage_name: The dedicated_storage_name of this VolumeDetail.
:type: str
"""
self._dedicated_storage_name = dedicated_storage_name
@property
def tags(self):
"""Gets the tags of this VolumeDetail.
云硬盘的标签。 如果云硬盘有标签,则会有该字段,否则该字段为空。
: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.
:rtype: str
"""
return self._wwn
@wwn.setter
def wwn(self, wwn):
"""Sets the wwn of this VolumeDetail.
云硬盘挂载时的唯一标识。
:param wwn: The wwn of this VolumeDetail.
: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
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
return result
def to_str(self):
import simplejson as json
return json.dumps(sanitize_for_serialization(self))
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