Class: Google::Apis::NotebooksV2::RestoreInstanceRequest

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 restoring the notebook instance from a BackupSource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RestoreInstanceRequest

Returns a new instance of RestoreInstanceRequest.



1343
1344
1345
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1343

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

Instance Attribute Details

#snapshotGoogle::Apis::NotebooksV2::Snapshot

Snapshot represents the snapshot of the data disk used to restore the Workbench Instance from. Refers to: compute/v1/projects/project_id/global/ snapshots/snapshot_id Corresponds to the JSON property snapshot



1341
1342
1343
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1341

def snapshot
  @snapshot
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1348
1349
1350
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1348

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