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

1.0.0-beta05 (latest) 1.0.0-beta04

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

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

The settings for Compliance Manager at a specific resource scope.=

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CmEnrollment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CmEnrollment), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CmEnrollment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CmEnrollment), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CmEnrollment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CmEnrollment), [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

### CmEnrollment()

    public CmEnrollment()

### CmEnrollment(CmEnrollment)

    public CmEnrollment(CmEnrollment other)

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

## Properties

### AuditConfig

    public AuditConfig AuditConfig { get; set; }

Optional. The audit configuration for Compliance Manager.
If set at a scope, this configuration overrides any inherited audit
configuration.

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

### CmEnrollmentName

    public CmEnrollmentName CmEnrollmentName { get; set; }

[CmEnrollmentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CmEnrollmentName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CmEnrollment#Google_Cloud_CloudSecurityCompliance_V1_CmEnrollment_Name) resource name property.

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

### Enrolled

    public bool Enrolled { get; set; }

Optional. Whether the resource is enrolled in Compliance Manager.
This setting is inherited by all descendants.

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

### Name

    public string Name { get; set; }

Identifier. The name of the Compliance Manager enrollment.

Supported formats are the following:

- `organizations/{organization_id}/locations/{location}/cmEnrollment`
- `folders/{folder_id}/locations/{location}/cmEnrollment`
- `projects/{project_id}/locations/{location}/cmEnrollment`

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