class Google::Apis::TpuV2alpha1::AttachedDisk

A node-attached disk resource. Next ID: 8;

Attributes

mode[RW]

The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks. Corresponds to the JSON property ‘mode` @return [String]

source_disk[RW]

Specifies the full path to an existing disk. For example: “projects/my-project/ zones/us-central1-c/disks/my-disk”. Corresponds to the JSON property ‘sourceDisk` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/tpu_v2alpha1/classes.rb, line 90
def update!(**args)
  @mode = args[:mode] if args.key?(:mode)
  @source_disk = args[:source_disk] if args.key?(:source_disk)
end