Class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/clouddebugger_v2/classes.rb,
generated/google/apis/clouddebugger_v2/representations.rb,
generated/google/apis/clouddebugger_v2/representations.rb

Overview

A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CloudWorkspaceSourceContext

Returns a new instance of CloudWorkspaceSourceContext.



279
280
281
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 279

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

Instance Attribute Details

#snapshot_idString

The ID of the snapshot. An empty snapshot_id refers to the most recent snapshot. Corresponds to the JSON property snapshotId

Returns:

  • (String)


270
271
272
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 270

def snapshot_id
  @snapshot_id
end

#workspace_idGoogle::Apis::ClouddebuggerV2::CloudWorkspaceId

A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud workspace is a place associated with a repo where modified files can be stored before they are committed. Corresponds to the JSON property workspaceId



277
278
279
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 277

def workspace_id
  @workspace_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



284
285
286
287
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 284

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