Reference documentation and code samples for the Google Cloud Security Compliance V1 Client class Rule.
A rule in the cloud control.
Generated from protobuf message google.cloud.cloudsecuritycompliance.v1.Rule
Namespace
Google \ Cloud \ CloudSecurityCompliance \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ cel_expression |
CELExpression
The rule's logic expression in Common Expression Language (CEL). |
↳ description |
string
Optional. The rule description. The maximum length is 2000 characters. |
↳ rule_action_types |
array
Required. The functionality that's enabled by the rule. |
getCelExpression
The rule's logic expression in Common Expression Language (CEL).
| Returns | |
|---|---|
| Type | Description |
CELExpression|null |
|
hasCelExpression
setCelExpression
The rule's logic expression in Common Expression Language (CEL).
| Parameter | |
|---|---|
| Name | Description |
var |
CELExpression
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
Optional. The rule description. The maximum length is 2000 characters.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
Optional. The rule description. The maximum length is 2000 characters.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRuleActionTypes
Required. The functionality that's enabled by the rule.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setRuleActionTypes
Required. The functionality that's enabled by the rule.
| Parameter | |
|---|---|
| Name | Description |
var |
int[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getImplementation
| Returns | |
|---|---|
| Type | Description |
string |
|