Class: Google::Apis::NotebooksV2::Snapshot
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV2::Snapshot
- 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
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
Instance Attribute Summary collapse
-
#project_id ⇒ String
Required.
-
#snapshot_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Snapshot
constructor
A new instance of Snapshot.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Snapshot
Returns a new instance of Snapshot.
1510 1511 1512 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1510 def initialize(**args) update!(**args) end |
Instance Attribute Details
#project_id ⇒ String
Required. The project ID of the snapshot.
Corresponds to the JSON property projectId
1503 1504 1505 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1503 def project_id @project_id end |
#snapshot_id ⇒ String
Required. The ID of the snapshot.
Corresponds to the JSON property snapshotId
1508 1509 1510 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1508 def snapshot_id @snapshot_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1515 1516 1517 1518 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1515 def update!(**args) @project_id = args[:project_id] if args.key?(:project_id) @snapshot_id = args[:snapshot_id] if args.key?(:snapshot_id) end |