Stackdriver Debugger Client - Class CloudRepoSourceContext (1.9.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
Name Description
repoId RepoId

The ID of the repo.

revisionId string

A revision ID.

aliasContext AliasContext

An alias, which may be a branch or tag.

info

Return a serializable version of this object

Returns
Type Description
array