# Cloud Security Compliance v1 API - Class CELExpression (1.0.0-beta05)

1.0.0-beta05 (latest) 1.0.0-beta04

    public sealed class CELExpression : IMessage<CELExpression>, IEquatable<CELExpression>, IDeepCloneable<CELExpression>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Security Compliance v1 API class CELExpression.

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CELExpression

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CELExpression](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CELExpression), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CELExpression](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CELExpression), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CELExpression](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CELExpression), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.CloudSecurityCompliance.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1)

## Assembly

Google.Cloud.CloudSecurityCompliance.V1.dll

## Constructors

### CELExpression()

    public CELExpression()

### CELExpression(CELExpression)

    public CELExpression(CELExpression other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CELExpression` |

## Properties

### CriteriaCase

    public CELExpression.CriteriaOneofCase CriteriaCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CELExpressionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CELExpression.CriteriaOneofCase` |   |

### Expression

    public string Expression { get; set; }

Required. The logical expression in CEL. The maximum length of the
condition is 1000 characters. For more information, see [CEL
expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ResourceTypesValues

    public StringList ResourceTypesValues { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.StringList` |   |