class Google::Apis::ClouddebuggerV2::CloudRepoSourceContext

A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).

Attributes

alias_context[RW]

An alias to a repo revision. Corresponds to the JSON property `aliasContext` @return [Google::Apis::ClouddebuggerV2::AliasContext]

alias_name[RW]

The name of an alias (branch, tag, etc.). Corresponds to the JSON property `aliasName` @return [String]

repo_id[RW]

A unique identifier for a cloud repo. Corresponds to the JSON property `repoId` @return [Google::Apis::ClouddebuggerV2::RepoId]

revision_id[RW]

A revision ID. Corresponds to the JSON property `revisionId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/clouddebugger_v2/classes.rb, line 279
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/clouddebugger_v2/classes.rb, line 284
def update!(**args)
  @repo_id = args[:repo_id] if args.key?(:repo_id)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
  @alias_name = args[:alias_name] if args.key?(:alias_name)
  @alias_context = args[:alias_context] if args.key?(:alias_context)
end