Class: Google::Apis::NotebooksV2::ResizeDiskRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/notebooks_v2/classes.rb,
lib/google/apis/notebooks_v2/representations.rb,
lib/google/apis/notebooks_v2/representations.rb

Overview

Request for resizing the notebook instance disks

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResizeDiskRequest

Returns a new instance of ResizeDiskRequest.



1267
1268
1269
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1267

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#boot_diskGoogle::Apis::NotebooksV2::BootDisk

The definition of a boot disk. Corresponds to the JSON property bootDisk



1260
1261
1262
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1260

def boot_disk
  @boot_disk
end

#data_diskGoogle::Apis::NotebooksV2::DataDisk

An instance-attached disk resource. Corresponds to the JSON property dataDisk



1265
1266
1267
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1265

def data_disk
  @data_disk
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1272
1273
1274
1275
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1272

def update!(**args)
  @boot_disk = args[:boot_disk] if args.key?(:boot_disk)
  @data_disk = args[:data_disk] if args.key?(:data_disk)
end