DEPRECATED: Please use compute#savedDisk instead. 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) — 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) — 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) — 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) — 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) — Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
Returns
- (::Boolean) — 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) — Specifies the name of the disk attached to the source instance.
#device_name=
def device_name=(value) -> ::String
Parameter
- value (::String) — Specifies the name of the disk attached to the source instance.
Returns
- (::String) — Specifies the name of the disk attached to the source instance.
#disk_encryption_key
def disk_encryption_key() -> ::Google::Cloud::Compute::V1::CustomerEncryptionKey
Returns
- (::Google::Cloud::Compute::V1::CustomerEncryptionKey) — The encryption key for the disk.
#disk_encryption_key=
def disk_encryption_key=(value) -> ::Google::Cloud::Compute::V1::CustomerEncryptionKey
Parameter
- value (::Google::Cloud::Compute::V1::CustomerEncryptionKey) — The encryption key for the disk.
Returns
- (::Google::Cloud::Compute::V1::CustomerEncryptionKey) — The encryption key for the disk.
#disk_size_gb
def disk_size_gb() -> ::Integer
Returns
- (::Integer) — The size of the disk in base-2 GB.
#disk_size_gb=
def disk_size_gb=(value) -> ::Integer
Parameter
- value (::Integer) — The size of the disk in base-2 GB.
Returns
- (::Integer) — The size of the disk in base-2 GB.
#disk_type
def disk_type() -> ::String
Returns
- (::String) — [Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
#disk_type=
def disk_type=(value) -> ::String
Parameter
- value (::String) — [Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
Returns
- (::String) — [Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
#guest_os_features
def guest_os_features() -> ::Array<::Google::Cloud::Compute::V1::GuestOsFeature>
Returns
- (::Array<::Google::Cloud::Compute::V1::GuestOsFeature>) — A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
#guest_os_features=
def guest_os_features=(value) -> ::Array<::Google::Cloud::Compute::V1::GuestOsFeature>
Parameter
- value (::Array<::Google::Cloud::Compute::V1::GuestOsFeature>) — A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
Returns
- (::Array<::Google::Cloud::Compute::V1::GuestOsFeature>) — A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
#index
def index() -> ::Integer
Returns
- (::Integer) — Specifies zero-based index of the disk that is attached to the source instance.
#index=
def index=(value) -> ::Integer
Parameter
- value (::Integer) — Specifies zero-based index of the disk that is attached to the source instance.
Returns
- (::Integer) — Specifies zero-based index of the disk that is attached to the source instance.
#interface
def interface() -> ::String
Returns
- (::String) — Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.
#interface=
def interface=(value) -> ::String
Parameter
- value (::String) — Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.
Returns
- (::String) — Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.
#kind
def kind() -> ::String
Returns
- (::String) — [Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
#kind=
def kind=(value) -> ::String
Parameter
- value (::String) — [Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
Returns
- (::String) — [Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
#licenses
def licenses() -> ::Array<::String>
Returns
- (::Array<::String>) — [Output Only] Any valid publicly visible licenses.
#licenses=
def licenses=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — [Output Only] Any valid publicly visible licenses.
Returns
- (::Array<::String>) — [Output Only] Any valid publicly visible licenses.
#mode
def mode() -> ::String
Returns
- (::String) — The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
#mode=
def mode=(value) -> ::String
Parameter
- value (::String) — The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
Returns
- (::String) — The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
#source
def source() -> ::String
Returns
- (::String) — Specifies a URL of the disk attached to the source instance.
#source=
def source=(value) -> ::String
Parameter
- value (::String) — Specifies a URL of the disk attached to the source instance.
Returns
- (::String) — Specifies a URL of the disk attached to the source instance.
#storage_bytes
def storage_bytes() -> ::Integer
Returns
- (::Integer) — [Output Only] A size of the storage used by the disk's snapshot by this machine image.
#storage_bytes=
def storage_bytes=(value) -> ::Integer
Parameter
- value (::Integer) — [Output Only] A size of the storage used by the disk's snapshot by this machine image.
Returns
- (::Integer) — [Output Only] A size of the storage used by the disk's snapshot by this machine image.
#storage_bytes_status
def storage_bytes_status() -> ::String
Returns
- (::String) — [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
#storage_bytes_status=
def storage_bytes_status=(value) -> ::String
Parameter
- value (::String) — [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
Returns
- (::String) — [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
#type
def type() -> ::String
Returns
- (::String) — Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.
#type=
def type=(value) -> ::String
Parameter
- value (::String) — Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.
Returns
- (::String) — Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.