Stackdriver Debugger Client - Class CloudWorkspaceSourceContext (1.7.0)

Reference documentation and code samples for the Stackdriver Debugger Client class CloudWorkspaceSourceContext.

A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.

Example:

use Google\Cloud\Debugger\CloudWorkspaceId;
use Google\Cloud\Debugger\CloudWorkspaceSourceContext;
use Google\Cloud\Debugger\ProjectRepoId;
use Google\Cloud\Debugger\RepoId;

$workspace = new CloudWorkspaceId(
    new RepoId(
        new ProjectRepoId('project-id', 'repo-name'),
        'some-uid'
    ),
    'workspace-name'
);
$sourceContext = new CloudWorkspaceSourceContext($workspace, 'snapshot-id');

Namespace

Google \ Cloud \ Debugger

Methods

__construct

Instantiate a new CloudWorkspaceSourceContext.

Parameters
NameDescription
workspaceId Google\Cloud\Debugger\CloudWorkspaceId

The ID of the workspace.

snapshotId string

The ID of the snapshot. An empty snapshotId refers to the most recent snapshot.

info

Return a serializable version of this object

Returns
TypeDescription
array