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
- (::Google::Cloud::BackupDR::V1::CustomerEncryptionKey) — Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
#disk_encryption_key=
def disk_encryption_key=(value) -> ::Google::Cloud::BackupDR::V1::CustomerEncryptionKey
Parameter
- value (::Google::Cloud::BackupDR::V1::CustomerEncryptionKey) — Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
Returns
- (::Google::Cloud::BackupDR::V1::CustomerEncryptionKey) — Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
#disk_interface
def disk_interface() -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskInterface
Returns
- (::Google::Cloud::BackupDR::V1::AttachedDisk::DiskInterface) — Optional. Specifies the disk interface to use for attaching this disk.
#disk_interface=
def disk_interface=(value) -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskInterface
Parameter
- value (::Google::Cloud::BackupDR::V1::AttachedDisk::DiskInterface) — Optional. Specifies the disk interface to use for attaching this disk.
Returns
- (::Google::Cloud::BackupDR::V1::AttachedDisk::DiskInterface) — Optional. Specifies the disk interface to use for attaching this disk.
#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
- (::Google::Cloud::BackupDR::V1::AttachedDisk::DiskType) — Specifies the type of the disk.
#disk_type_deprecated=
def disk_type_deprecated=(value) -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskType
Parameter
- value (::Google::Cloud::BackupDR::V1::AttachedDisk::DiskType) — Specifies the type of the disk.
Returns
- (::Google::Cloud::BackupDR::V1::AttachedDisk::DiskType) — Specifies the type of the disk.
#guest_os_feature
def guest_os_feature() -> ::Array<::Google::Cloud::BackupDR::V1::GuestOsFeature>
Returns
- (::Array<::Google::Cloud::BackupDR::V1::GuestOsFeature>) — Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
#guest_os_feature=
def guest_os_feature=(value) -> ::Array<::Google::Cloud::BackupDR::V1::GuestOsFeature>
Parameter
- value (::Array<::Google::Cloud::BackupDR::V1::GuestOsFeature>) — Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
Returns
- (::Array<::Google::Cloud::BackupDR::V1::GuestOsFeature>) — Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
#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
- (::Google::Cloud::BackupDR::V1::AttachedDisk::InitializeParams) — Optional. Specifies the parameters to initialize this disk.
#initialize_params=
def initialize_params=(value) -> ::Google::Cloud::BackupDR::V1::AttachedDisk::InitializeParams
Parameter
- value (::Google::Cloud::BackupDR::V1::AttachedDisk::InitializeParams) — Optional. Specifies the parameters to initialize this disk.
Returns
- (::Google::Cloud::BackupDR::V1::AttachedDisk::InitializeParams) — Optional. Specifies the parameters to initialize this disk.
#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
- (::Google::Cloud::BackupDR::V1::AttachedDisk::DiskMode) — Optional. The mode in which to attach this disk.
#mode=
def mode=(value) -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskMode
Parameter
- value (::Google::Cloud::BackupDR::V1::AttachedDisk::DiskMode) — Optional. The mode in which to attach this disk.
Returns
- (::Google::Cloud::BackupDR::V1::AttachedDisk::DiskMode) — Optional. The mode in which to attach this disk.
#saved_state
def saved_state() -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskSavedState
Returns
- (::Google::Cloud::BackupDR::V1::AttachedDisk::DiskSavedState) — Optional. Output only. The state of the disk.
#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
- (::Google::Cloud::BackupDR::V1::AttachedDisk::DiskType) — Optional. Specifies the type of the disk.
#type=
def type=(value) -> ::Google::Cloud::BackupDR::V1::AttachedDisk::DiskType
Parameter
- value (::Google::Cloud::BackupDR::V1::AttachedDisk::DiskType) — Optional. Specifies the type of the disk.
Returns
- (::Google::Cloud::BackupDR::V1::AttachedDisk::DiskType) — Optional. Specifies the type of the disk.