Reference documentation and code samples for the Bare Metal Solution V2 API class Google::Cloud::BareMetalSolution::V2::VolumeConfig.
Configuration parameters for a new volume.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#gcp_service
def gcp_service() -> ::String
Returns
- (::String) — The GCP service of the storage volume. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning.
#gcp_service=
def gcp_service=(value) -> ::String
Parameter
- value (::String) — The GCP service of the storage volume. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning.
Returns
- (::String) — The GCP service of the storage volume. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning.
#id
def id() -> ::String
Returns
- (::String) — A transient unique identifier to identify a volume within an ProvisioningConfig request.
#id=
def id=(value) -> ::String
Parameter
- value (::String) — A transient unique identifier to identify a volume within an ProvisioningConfig request.
Returns
- (::String) — A transient unique identifier to identify a volume within an ProvisioningConfig request.
#lun_ranges
def lun_ranges() -> ::Array<::Google::Cloud::BareMetalSolution::V2::VolumeConfig::LunRange>
Returns
- (::Array<::Google::Cloud::BareMetalSolution::V2::VolumeConfig::LunRange>) — LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
#lun_ranges=
def lun_ranges=(value) -> ::Array<::Google::Cloud::BareMetalSolution::V2::VolumeConfig::LunRange>
Parameter
- value (::Array<::Google::Cloud::BareMetalSolution::V2::VolumeConfig::LunRange>) — LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
Returns
- (::Array<::Google::Cloud::BareMetalSolution::V2::VolumeConfig::LunRange>) — LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
#machine_ids
def machine_ids() -> ::Array<::String>
Returns
- (::Array<::String>) — Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.
#machine_ids=
def machine_ids=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.
Returns
- (::Array<::String>) — Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.
#name
def name() -> ::String
Returns
- (::String) — Output only. The name of the volume config.
#nfs_exports
def nfs_exports() -> ::Array<::Google::Cloud::BareMetalSolution::V2::VolumeConfig::NfsExport>
Returns
- (::Array<::Google::Cloud::BareMetalSolution::V2::VolumeConfig::NfsExport>) — NFS exports. Set only when protocol is PROTOCOL_NFS.
#nfs_exports=
def nfs_exports=(value) -> ::Array<::Google::Cloud::BareMetalSolution::V2::VolumeConfig::NfsExport>
Parameter
- value (::Array<::Google::Cloud::BareMetalSolution::V2::VolumeConfig::NfsExport>) — NFS exports. Set only when protocol is PROTOCOL_NFS.
Returns
- (::Array<::Google::Cloud::BareMetalSolution::V2::VolumeConfig::NfsExport>) — NFS exports. Set only when protocol is PROTOCOL_NFS.
#performance_tier
def performance_tier() -> ::Google::Cloud::BareMetalSolution::V2::VolumePerformanceTier
Returns
- (::Google::Cloud::BareMetalSolution::V2::VolumePerformanceTier) — Performance tier of the Volume. Default is SHARED.
#performance_tier=
def performance_tier=(value) -> ::Google::Cloud::BareMetalSolution::V2::VolumePerformanceTier
Parameter
- value (::Google::Cloud::BareMetalSolution::V2::VolumePerformanceTier) — Performance tier of the Volume. Default is SHARED.
Returns
- (::Google::Cloud::BareMetalSolution::V2::VolumePerformanceTier) — Performance tier of the Volume. Default is SHARED.
#protocol
def protocol() -> ::Google::Cloud::BareMetalSolution::V2::VolumeConfig::Protocol
Returns
- (::Google::Cloud::BareMetalSolution::V2::VolumeConfig::Protocol) — Volume protocol.
#protocol=
def protocol=(value) -> ::Google::Cloud::BareMetalSolution::V2::VolumeConfig::Protocol
Parameter
- value (::Google::Cloud::BareMetalSolution::V2::VolumeConfig::Protocol) — Volume protocol.
Returns
- (::Google::Cloud::BareMetalSolution::V2::VolumeConfig::Protocol) — Volume protocol.
#size_gb
def size_gb() -> ::Integer
Returns
- (::Integer) — The requested size of this volume, in GB.
#size_gb=
def size_gb=(value) -> ::Integer
Parameter
- value (::Integer) — The requested size of this volume, in GB.
Returns
- (::Integer) — The requested size of this volume, in GB.
#snapshots_enabled
def snapshots_enabled() -> ::Boolean
Returns
- (::Boolean) — Whether snapshots should be enabled.
#snapshots_enabled=
def snapshots_enabled=(value) -> ::Boolean
Parameter
- value (::Boolean) — Whether snapshots should be enabled.
Returns
- (::Boolean) — Whether snapshots should be enabled.
#type
def type() -> ::Google::Cloud::BareMetalSolution::V2::VolumeConfig::Type
Returns
- (::Google::Cloud::BareMetalSolution::V2::VolumeConfig::Type) — The type of this Volume.
#type=
def type=(value) -> ::Google::Cloud::BareMetalSolution::V2::VolumeConfig::Type
Parameter
- value (::Google::Cloud::BareMetalSolution::V2::VolumeConfig::Type) — The type of this Volume.
Returns
- (::Google::Cloud::BareMetalSolution::V2::VolumeConfig::Type) — The type of this Volume.
#user_note
def user_note() -> ::String
Returns
- (::String) — User note field, it can be used by customers to add additional information for the BMS Ops team .
#user_note=
def user_note=(value) -> ::String
Parameter
- value (::String) — User note field, it can be used by customers to add additional information for the BMS Ops team .
Returns
- (::String) — User note field, it can be used by customers to add additional information for the BMS Ops team .