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.



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

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



1306
1307
1308
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1306

def boot_disk
  @boot_disk
end

#data_diskGoogle::Apis::NotebooksV2::DataDisk

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



1311
1312
1313
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1311

def data_disk
  @data_disk
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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