Class: Google::Apis::NotebooksV2::Snapshot

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

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

Instance Method Summary collapse

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_idString

Required. The project ID of the snapshot. Corresponds to the JSON property projectId

Returns:

  • (String)


1503
1504
1505
# File 'lib/google/apis/notebooks_v2/classes.rb', line 1503

def project_id
  @project_id
end

#snapshot_idString

Required. The ID of the snapshot. Corresponds to the JSON property snapshotId

Returns:

  • (String)


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