Google Cloud Assured Workloads V1 Client - Class Remediation (0.10.2)

Reference documentation and code samples for the Google Cloud Assured Workloads V1 Client class Remediation.

Represents remediation guidance to resolve compliance violation for AssuredWorkload

Generated from protobuf message google.cloud.assuredworkloads.v1.Violation.Remediation

Namespace

Google \ Cloud \ AssuredWorkloads \ V1 \ Violation

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ instructions Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions

Required. Remediation instructions to resolve violations

↳ compliant_values array

Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values

↳ remediation_type int

Output only. Reemediation type based on the type of org policy values violated

getInstructions

Required. Remediation instructions to resolve violations

Returns
TypeDescription
Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions|null

hasInstructions

clearInstructions

setInstructions

Required. Remediation instructions to resolve violations

Parameter
NameDescription
var Google\Cloud\AssuredWorkloads\V1\Violation\Remediation\Instructions
Returns
TypeDescription
$this

getCompliantValues

Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCompliantValues

Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getRemediationType

Output only. Reemediation type based on the type of org policy values violated

Returns
TypeDescription
int

setRemediationType

Output only. Reemediation type based on the type of org policy values violated

Parameter
NameDescription
var int
Returns
TypeDescription
$this