Class: Google::Apis::NotebooksV2::RestoreInstanceRequest
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV2::RestoreInstanceRequest
- 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
-
#snapshot ⇒ Google::Apis::NotebooksV2::Snapshot
Snapshot represents the snapshot of the data disk used to restore the Workbench Instance from.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RestoreInstanceRequest
constructor
A new instance of RestoreInstanceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RestoreInstanceRequest
Returns a new instance of RestoreInstanceRequest.
1352 1353 1354 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1352 def initialize(**args) update!(**args) end |
Instance Attribute Details
#snapshot ⇒ Google::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
1350 1351 1352 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1350 def snapshot @snapshot end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1357 1358 1359 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1357 def update!(**args) @snapshot = args[:snapshot] if args.key?(:snapshot) end |