class Google::Apis::ContaineranalysisV1beta1::GerritSourceContext

A SourceContext referring to a Gerrit project.

Attributes

alias_context[RW]

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

gerrit_project[RW]

The full project name within the host. Projects may be nested, so “project/ subproject” is a valid project name. The “repo name” is the hostURI/project. Corresponds to the JSON property `gerritProject` @return [String]

host_uri[RW]

The URI of a running Gerrit instance. Corresponds to the JSON property `hostUri` @return [String]

revision_id[RW]

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

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/containeranalysis_v1beta1/classes.rb, line 1591
def update!(**args)
  @alias_context = args[:alias_context] if args.key?(:alias_context)
  @gerrit_project = args[:gerrit_project] if args.key?(:gerrit_project)
  @host_uri = args[:host_uri] if args.key?(:host_uri)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
end