Reference documentation and code samples for the Stackdriver Debugger Client class CloudRepoSourceContext.
A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).
Example:
use Google\Cloud\Debugger\AliasContext; use Google\Cloud\Debugger\CloudRepoSourceContext; use Google\Cloud\Debugger\ProjectRepoId; use Google\Cloud\Debugger\RepoId; $sourceContext = new CloudRepoSourceContext( new RepoId( new ProjectRepoId('project-id', 'repo-name'), 'some-uid' ), 'some-sha-value', new AliasContext(AliasContext::KIND_FIXED, 'branch-alias') );
Namespace
Google \ Cloud \ DebuggerMethods
__construct
Instantiate a new CloudRepoSourceContext.
Parameters | |
---|---|
Name | Description |
repoId | Google\Cloud\Debugger\RepoId The ID of the repo. |
revisionId | string A revision 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 |