Reference documentation and code samples for the Stackdriver Debugger Client class GerritSourceContext.
A SourceContext referring to a Gerrit project.
Example:
use Google\Cloud\Debugger\AliasContext;
use Google\Cloud\Debugger\GerritSourceContext;
$sourceContext = new GerritSourceContext(
'host-uri',
'gerrit-project',
'revision-id',
new AliasContext(AliasContext::KIND_FIXED, 'branch-alias')
);
Namespace
Google \ Cloud \ DebuggerMethods
__construct
Instantiate a new GerritSourceContext.
Parameters | |
---|---|
Name | Description |
hostUri |
string
The URI of a running Gerrit instance. |
gerritProject |
string
The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is hostURI/project. |
revisionId |
string
A revision (commit) ID. |
aliasContext |
Google\Cloud\Debugger\AliasContext
An alias, which may be a branch or tag. |
info
Return a serializable version of this object
Returns | |
---|---|
Type | Description |
array |