Grafeas V1 Client - Class Command (0.9.0)

Reference documentation and code samples for the Grafeas V1 Client class Command.

Command describes a step performed as part of the build pipeline.

Generated from protobuf message grafeas.v1.Command

Namespace

Grafeas \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to docker pull.

↳ env array

Environment variables set before running this command.

↳ args array

Command-line arguments used when executing this command.

↳ dir string

Working directory (relative to project source root) used when running this command.

↳ id string

Optional unique identifier for this command, used in wait_for to reference this command as a dependency.

↳ wait_for array

The ID(s) of the command(s) that this command depends on.

getName

Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to docker pull.

Returns
TypeDescription
string

setName

Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to docker pull.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEnv

Environment variables set before running this command.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setEnv

Environment variables set before running this command.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getArgs

Command-line arguments used when executing this command.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setArgs

Command-line arguments used when executing this command.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getDir

Working directory (relative to project source root) used when running this command.

Returns
TypeDescription
string

setDir

Working directory (relative to project source root) used when running this command.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getId

Optional unique identifier for this command, used in wait_for to reference this command as a dependency.

Returns
TypeDescription
string

setId

Optional unique identifier for this command, used in wait_for to reference this command as a dependency.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getWaitFor

The ID(s) of the command(s) that this command depends on.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setWaitFor

The ID(s) of the command(s) that this command depends on.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this