Class: Google::Apis::ContaineranalysisV1beta1::CloudRepoSourceContext

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/containeranalysis_v1beta1/classes.rb,
generated/google/apis/containeranalysis_v1beta1/representations.rb,
generated/google/apis/containeranalysis_v1beta1/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.



661
662
663
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 661

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

Instance Attribute Details

#alias_contextGoogle::Apis::ContaineranalysisV1beta1::AliasContext

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



649
650
651
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 649

def alias_context
  @alias_context
end

#repo_idGoogle::Apis::ContaineranalysisV1beta1::RepoId

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



654
655
656
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 654

def repo_id
  @repo_id
end

#revision_idString

A revision ID. Corresponds to the JSON property revisionId

Returns:

  • (String)


659
660
661
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 659

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



666
667
668
669
670
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 666

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