Google Cloud Security Compliance V1 Client - Class CELExpression (0.2.0)

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

A Common Expression Language (CEL) expression that's used to create a rule.

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

Namespace

Google \ Cloud \ CloudSecurityCompliance \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ resource_types_values StringList

The resource instance types on which this expression is defined. The format is <SERVICE_NAME>/<type>. For example: compute.googleapis.com/Instance

↳ expression string

Required. The logical expression in CEL. The maximum length of the condition is 1000 characters. For more information, see CEL expression.

getResourceTypesValues

The resource instance types on which this expression is defined.

The format is <SERVICE_NAME>/<type>. For example: compute.googleapis.com/Instance

Returns
Type Description
StringList|null

hasResourceTypesValues

setResourceTypesValues

The resource instance types on which this expression is defined.

The format is <SERVICE_NAME>/<type>. For example: compute.googleapis.com/Instance

Parameter
Name Description
var StringList
Returns
Type Description
$this

getExpression

Required. The logical expression in CEL. The maximum length of the condition is 1000 characters. For more information, see CEL expression.

Returns
Type Description
string

setExpression

Required. The logical expression in CEL. The maximum length of the condition is 1000 characters. For more information, see CEL expression.

Parameter
Name Description
var string
Returns
Type Description
$this

getCriteria

Returns
Type Description
string