Class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext
- Inherits:
-
Object
- Object
- Google::Apis::ClouddebuggerV2::CloudRepoSourceContext
- 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
-
#alias_context ⇒ Google::Apis::ClouddebuggerV2::AliasContext
An alias to a repo revision.
-
#alias_name ⇒ String
The name of an alias (branch, tag, etc.).
-
#repo_id ⇒ Google::Apis::ClouddebuggerV2::RepoId
A unique identifier for a cloud repo.
-
#revision_id ⇒ String
A revision ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudRepoSourceContext
constructor
A new instance of CloudRepoSourceContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ CloudRepoSourceContext
Returns a new instance of CloudRepoSourceContext
1002 1003 1004 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 1002 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alias_context ⇒ Google::Apis::ClouddebuggerV2::AliasContext
An alias to a repo revision.
Corresponds to the JSON property aliasContext
1000 1001 1002 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 1000 def alias_context @alias_context end |
#alias_name ⇒ String
The name of an alias (branch, tag, etc.).
Corresponds to the JSON property aliasName
990 991 992 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 990 def alias_name @alias_name end |
#repo_id ⇒ Google::Apis::ClouddebuggerV2::RepoId
A unique identifier for a cloud repo.
Corresponds to the JSON property repoId
995 996 997 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 995 def repo_id @repo_id end |
#revision_id ⇒ String
A revision ID.
Corresponds to the JSON property revisionId
985 986 987 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 985 def revision_id @revision_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1007 1008 1009 1010 1011 1012 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 1007 def update!(**args) @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) @alias_context = args[:alias_context] if args.key?(:alias_context) end |