Class: Google::Apis::OndemandscanningV1::GerritSourceContext

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 SourceContext referring to a Gerrit project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GerritSourceContext

Returns a new instance of GerritSourceContext.



1187
1188
1189
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1187

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



1169
1170
1171
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1169

def alias_context
  @alias_context
end

#gerrit_projectString

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

Returns:

  • (String)


1175
1176
1177
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1175

def gerrit_project
  @gerrit_project
end

#host_uriString

The URI of a running Gerrit instance. Corresponds to the JSON property hostUri

Returns:

  • (String)


1180
1181
1182
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1180

def host_uri
  @host_uri
end

#revision_idString

A revision (commit) ID. Corresponds to the JSON property revisionId

Returns:

  • (String)


1185
1186
1187
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1185

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1192
1193
1194
1195
1196
1197
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1192

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