Google Cloud Workload Manager V1 Client - Class ExecutionResult (0.1.0)

Reference documentation and code samples for the Google Cloud Workload Manager V1 Client class ExecutionResult.

The result of an execution.

Generated from protobuf message google.cloud.workloadmanager.v1.ExecutionResult

Namespace

Google \ Cloud \ WorkloadManager \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ violation_message
string

The violation message of an execution.

↳ severity
string

The severity of violation.

↳ rule
string

The rule that is violated in an evaluation.

↳ documentation_url
string

The URL for the documentation of the rule.

↳ resource
Resource

The resource that violates the rule.

↳ violation_details
ViolationDetails

The details of violation in an evaluation result.

↳ commands
array< Command >

The commands to remediate the violation.

↳ type
int

Execution result type of the scanned resource.

getViolationMessage

The violation message of an execution.

Returns
Type
Description
string

setViolationMessage

The violation message of an execution.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getSeverity

The severity of violation.

Returns
Type
Description
string

setSeverity

The severity of violation.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getRule

The rule that is violated in an evaluation.

Returns
Type
Description
string

setRule

The rule that is violated in an evaluation.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDocumentationUrl

The URL for the documentation of the rule.

Returns
Type
Description
string

setDocumentationUrl

The URL for the documentation of the rule.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getResource

The resource that violates the rule.

Returns
Type
Description
Resource |null

hasResource

clearResource

setResource

The resource that violates the rule.

Parameter
Name
Description
var
Returns
Type
Description
$this

getViolationDetails

The details of violation in an evaluation result.

Returns
Type
Description

hasViolationDetails

clearViolationDetails

setViolationDetails

The details of violation in an evaluation result.

Parameter
Name
Description
Returns
Type
Description
$this

getCommands

The commands to remediate the violation.

Returns
Type
Description

setCommands

The commands to remediate the violation.

Parameter
Name
Description
var
array< Command >
Returns
Type
Description
$this

getType

Execution result type of the scanned resource.

Returns
Type
Description
int
Enum of type Type .

setType

Execution result type of the scanned resource.

Parameter
Name
Description
var
int

Enum of type Type .

Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: