Google Cloud Security Command Center V1 Client - Class Process (1.19.1)

Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Process.

Represents an operating system process.

Generated from protobuf message google.cloud.securitycenter.v1.Process

Namespace

Google \ Cloud \ SecurityCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The process name, as displayed in utilities like top and ps. This name can be accessed through /proc/[pid]/comm and changed with prctl(PR_SET_NAME).

↳ binary Google\Cloud\SecurityCenter\V1\File

File information for the process executable.

↳ libraries array<Google\Cloud\SecurityCenter\V1\File>

File information for libraries loaded by the process.

↳ script Google\Cloud\SecurityCenter\V1\File

When the process represents the invocation of a script, binary provides information about the interpreter, while script provides information about the script file provided to the interpreter.

↳ args array

Process arguments as JSON encoded strings.

↳ arguments_truncated bool

True if args is incomplete.

↳ env_variables array<Google\Cloud\SecurityCenter\V1\EnvironmentVariable>

Process environment variables.

↳ env_variables_truncated bool

True if env_variables is incomplete.

↳ pid int|string

The process ID.

↳ parent_pid int|string

The parent process ID.

getName

The process name, as displayed in utilities like top and ps. This name can be accessed through /proc/[pid]/comm and changed with prctl(PR_SET_NAME).

Returns
TypeDescription
string

setName

The process name, as displayed in utilities like top and ps. This name can be accessed through /proc/[pid]/comm and changed with prctl(PR_SET_NAME).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBinary

File information for the process executable.

Returns
TypeDescription
Google\Cloud\SecurityCenter\V1\File|null

hasBinary

clearBinary

setBinary

File information for the process executable.

Parameter
NameDescription
var Google\Cloud\SecurityCenter\V1\File
Returns
TypeDescription
$this

getLibraries

File information for libraries loaded by the process.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLibraries

File information for libraries loaded by the process.

Parameter
NameDescription
var array<Google\Cloud\SecurityCenter\V1\File>
Returns
TypeDescription
$this

getScript

When the process represents the invocation of a script, binary provides information about the interpreter, while script provides information about the script file provided to the interpreter.

Returns
TypeDescription
Google\Cloud\SecurityCenter\V1\File|null

hasScript

clearScript

setScript

When the process represents the invocation of a script, binary provides information about the interpreter, while script provides information about the script file provided to the interpreter.

Parameter
NameDescription
var Google\Cloud\SecurityCenter\V1\File
Returns
TypeDescription
$this

getArgs

Process arguments as JSON encoded strings.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setArgs

Process arguments as JSON encoded strings.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getArgumentsTruncated

True if args is incomplete.

Returns
TypeDescription
bool

setArgumentsTruncated

True if args is incomplete.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getEnvVariables

Process environment variables.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setEnvVariables

Process environment variables.

Parameter
NameDescription
var array<Google\Cloud\SecurityCenter\V1\EnvironmentVariable>
Returns
TypeDescription
$this

getEnvVariablesTruncated

True if env_variables is incomplete.

Returns
TypeDescription
bool

setEnvVariablesTruncated

True if env_variables is incomplete.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getPid

The process ID.

Returns
TypeDescription
int|string

setPid

The process ID.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getParentPid

The parent process ID.

Returns
TypeDescription
int|string

setParentPid

The parent process ID.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this