Class: Google::Apis::ClouddebuggerV2::CloudWorkspaceId

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 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.

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) ⇒ CloudWorkspaceId

Returns a new instance of CloudWorkspaceId



42
43
44
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 42

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

Instance Attribute Details

#nameString

The unique name of the workspace within the repo. This is the name chosen by the client in the Source API's CreateWorkspace method. Corresponds to the JSON property name

Returns:

  • (String)


40
41
42
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 40

def name
  @name
end

#repo_idGoogle::Apis::ClouddebuggerV2::RepoId

A unique identifier for a cloud repo. Corresponds to the JSON property repoId



34
35
36
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 34

def repo_id
  @repo_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



47
48
49
50
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 47

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