class Google::Apis::ComputeV1::SavedAttachedDisk

DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk resource.

Attributes

auto_delete[RW]

Specifies whether the disk will be auto-deleted when the instance is deleted ( but not when the disk is detached from the instance). Corresponds to the JSON property `autoDelete` @return [Boolean]

auto_delete?[RW]

Specifies whether the disk will be auto-deleted when the instance is deleted ( but not when the disk is detached from the instance). Corresponds to the JSON property `autoDelete` @return [Boolean]

boot[RW]

Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. Corresponds to the JSON property `boot` @return [Boolean]

boot?[RW]

Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. Corresponds to the JSON property `boot` @return [Boolean]

device_name[RW]

Specifies the name of the disk attached to the source instance. Corresponds to the JSON property `deviceName` @return [String]

disk_encryption_key[RW]

The encryption key for the disk. Corresponds to the JSON property `diskEncryptionKey` @return [Google::Apis::ComputeV1::CustomerEncryptionKey]

disk_size_gb[RW]

The size of the disk in base-2 GB. Corresponds to the JSON property `diskSizeGb` @return [Fixnum]

disk_type[RW]
Output Only

URL of the disk type resource. For example: projects/project /

zones/zone/diskTypes/pd-standard or pd-ssd Corresponds to the JSON property `diskType` @return [String]

guest_os_features[RW]

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. Corresponds to the JSON property `guestOsFeatures` @return [Array<Google::Apis::ComputeV1::GuestOsFeature>]

index[RW]

Specifies zero-based index of the disk that is attached to the source instance. Corresponds to the JSON property `index` @return [Fixnum]

interface[RW]

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Corresponds to the JSON property `interface` @return [String]

kind[RW]
Output Only

Type of the resource. Always compute#attachedDisk for attached

disks. Corresponds to the JSON property `kind` @return [String]

licenses[RW]
Output Only

Any valid publicly visible licenses.

Corresponds to the JSON property `licenses` @return [Array<String>]

mode[RW]

The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Corresponds to the JSON property `mode` @return [String]

source[RW]

Specifies a URL of the disk attached to the source instance. Corresponds to the JSON property `source` @return [String]

storage_bytes[RW]
Output Only

A size of the storage used by the disk's snapshot by this

machine image. Corresponds to the JSON property `storageBytes` @return [Fixnum]

storage_bytes_status[RW]
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. Corresponds to the JSON property `storageBytesStatus` @return [String]

type[RW]

Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 31624
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 31629
def update!(**args)
  @auto_delete = args[:auto_delete] if args.key?(:auto_delete)
  @boot = args[:boot] if args.key?(:boot)
  @device_name = args[:device_name] if args.key?(:device_name)
  @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
  @disk_type = args[:disk_type] if args.key?(:disk_type)
  @guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
  @index = args[:index] if args.key?(:index)
  @interface = args[:interface] if args.key?(:interface)
  @kind = args[:kind] if args.key?(:kind)
  @licenses = args[:licenses] if args.key?(:licenses)
  @mode = args[:mode] if args.key?(:mode)
  @source = args[:source] if args.key?(:source)
  @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes)
  @storage_bytes_status = args[:storage_bytes_status] if args.key?(:storage_bytes_status)
  @type = args[:type] if args.key?(:type)
end