Google Cloud Security Compliance V1 Client - Class Rule (0.1.0)

Reference documentation and code samples for the Google Cloud Security Compliance V1 Client class Rule.

A rule of the cloud control.

Generated from protobuf message google.cloud.cloudsecuritycompliance.v1.Rule

Namespace

Google \ Cloud \ CloudSecurityCompliance \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ cel_expression CELExpression

Logic expression in CEL language.

↳ description string

Optional. Description of the Rule. The maximum length is 2000 characters.

↳ rule_action_types array

Required. The functionality enabled by the Rule.

getCelExpression

Logic expression in CEL language.

Returns
Type Description
CELExpression|null

hasCelExpression

setCelExpression

Logic expression in CEL language.

Parameter
Name Description
var CELExpression
Returns
Type Description
$this

getDescription

Optional. Description of the Rule. The maximum length is 2000 characters.

Returns
Type Description
string

setDescription

Optional. Description of the Rule. The maximum length is 2000 characters.

Parameter
Name Description
var string
Returns
Type Description
$this

getRuleActionTypes

Required. The functionality enabled by the Rule.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRuleActionTypes

Required. The functionality enabled by the Rule.

Parameter
Name Description
var int[]
Returns
Type Description
$this

getImplementation

Returns
Type Description
string