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.



1330
1331
1332
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1330

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



1323
1324
1325
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1323

def boot_disk
  @boot_disk
end

#data_diskGoogle::Apis::NotebooksV2::DataDisk

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



1328
1329
1330
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1328

def data_disk
  @data_disk
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1335
1336
1337
1338
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1335

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