Class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext

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 CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).

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

Returns a new instance of CloudRepoSourceContext



417
418
419
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 417

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

Instance Attribute Details

#alias_contextGoogle::Apis::ClouddebuggerV2::AliasContext

An alias to a repo revision. Corresponds to the JSON property aliasContext



400
401
402
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 400

def alias_context
  @alias_context
end

#alias_nameString

The name of an alias (branch, tag, etc.). Corresponds to the JSON property aliasName

Returns:

  • (String)


410
411
412
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 410

def alias_name
  @alias_name
end

#repo_idGoogle::Apis::ClouddebuggerV2::RepoId

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



415
416
417
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 415

def repo_id
  @repo_id
end

#revision_idString

A revision ID. Corresponds to the JSON property revisionId

Returns:

  • (String)


405
406
407
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 405

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



422
423
424
425
426
427
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 422

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