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.



1321
1322
1323
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1321

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



1314
1315
1316
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1314

def boot_disk
  @boot_disk
end

#data_diskGoogle::Apis::NotebooksV2::DataDisk

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



1319
1320
1321
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1319

def data_disk
  @data_disk
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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