Backup and DR Service V1 API - Class Google::Cloud::BackupDR::V1::AttachedDisk (v0.3.0)

Reference documentation and code samples for the Backup and DR Service V1 API class Google::Cloud::BackupDR::V1::AttachedDisk.

An instance-attached disk resource.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#auto_delete

def auto_delete() -> ::Boolean
Returns
  • (::Boolean) — Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).

#auto_delete=

def auto_delete=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
Returns
  • (::Boolean) — Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).

#boot

def boot() -> ::Boolean
Returns
  • (::Boolean) — Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.

#boot=

def boot=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
Returns
  • (::Boolean) — Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.

#device_name

def device_name() -> ::String
Returns
  • (::String) — Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)

#device_name=

def device_name=(value) -> ::String
Parameter
  • value (::String) — Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
Returns
  • (::String) — Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)

#disk_encryption_key

def disk_encryption_key() -> ::Google::Cloud::BackupDR::V1::CustomerEncryptionKey
Returns

#disk_encryption_key=

def disk_encryption_key=(value) -> ::Google::Cloud::BackupDR::V1::CustomerEncryptionKey
Parameter
Returns

#disk_interface

def disk_interface() -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskInterface
Returns

#disk_interface=

def disk_interface=(value) -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskInterface
Parameter
Returns

#disk_size_gb

def disk_size_gb() -> ::Integer
Returns
  • (::Integer) — Optional. The size of the disk in GB.

#disk_size_gb=

def disk_size_gb=(value) -> ::Integer
Parameter
  • value (::Integer) — Optional. The size of the disk in GB.
Returns
  • (::Integer) — Optional. The size of the disk in GB.

#disk_type

def disk_type() -> ::String
Returns
  • (::String) — Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd

#disk_type_deprecated

def disk_type_deprecated() -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskType
Returns

#disk_type_deprecated=

def disk_type_deprecated=(value) -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskType
Parameter
Returns

#guest_os_feature

def guest_os_feature() -> ::Array<::Google::Cloud::BackupDR::V1::GuestOsFeature>
Returns

#guest_os_feature=

def guest_os_feature=(value) -> ::Array<::Google::Cloud::BackupDR::V1::GuestOsFeature>
Parameter
Returns

#index

def index() -> ::Integer
Returns
  • (::Integer) — Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.

#index=

def index=(value) -> ::Integer
Parameter
  • value (::Integer) — Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
Returns
  • (::Integer) — Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.

#initialize_params

def initialize_params() -> ::Google::Cloud::BackupDR::V1::AttachedDisk::InitializeParams
Returns

#initialize_params=

def initialize_params=(value) -> ::Google::Cloud::BackupDR::V1::AttachedDisk::InitializeParams
Parameter
Returns

#kind

def kind() -> ::String
Returns
  • (::String) — Optional. Type of the resource.

#kind=

def kind=(value) -> ::String
Parameter
  • value (::String) — Optional. Type of the resource.
Returns
  • (::String) — Optional. Type of the resource.

#license

def license() -> ::Array<::String>
Returns
  • (::Array<::String>) — Optional. Any valid publicly visible licenses.

#license=

def license=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Optional. Any valid publicly visible licenses.
Returns
  • (::Array<::String>) — Optional. Any valid publicly visible licenses.

#mode

def mode() -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskMode
Returns

#mode=

def mode=(value) -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskMode
Parameter
Returns

#saved_state

def saved_state() -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskSavedState
Returns

#source

def source() -> ::String
Returns
  • (::String) — Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.

#source=

def source=(value) -> ::String
Parameter
  • value (::String) — Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
Returns
  • (::String) — Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.

#type

def type() -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskType
Returns

#type=

def type=(value) -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskType
Parameter
Returns