Stackdriver Debugger Client - Class CloudRepoSourceContext (1.5.1)

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 \ Debugger

Methods

__construct

Instantiate a new CloudRepoSourceContext.

Parameters
NameDescription
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
TypeDescription
array