Class: Google::Apis::OndemandscanningV1::CloudRepoSourceContext

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/ondemandscanning_v1/classes.rb,
lib/google/apis/ondemandscanning_v1/representations.rb,
lib/google/apis/ondemandscanning_v1/representations.rb

Overview

A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudRepoSourceContext

Returns a new instance of CloudRepoSourceContext.



684
685
686
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 684

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

Instance Attribute Details

#alias_contextGoogle::Apis::OndemandscanningV1::AliasContext

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



672
673
674
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 672

def alias_context
  @alias_context
end

#repo_idGoogle::Apis::OndemandscanningV1::RepoId

A unique identifier for a Cloud Repo. Corresponds to the JSON property repoId



677
678
679
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 677

def repo_id
  @repo_id
end

#revision_idString

A revision ID. Corresponds to the JSON property revisionId

Returns:

  • (String)


682
683
684
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 682

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



689
690
691
692
693
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 689

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