# Cloud Security Compliance v1 API - Class CmEnrollmentService.CmEnrollmentServiceBase (1.0.0-beta05)

1.0.0-beta05 (latest) 1.0.0-beta04

    [BindServiceMethod(typeof(CmEnrollmentService), "BindService")]
    public abstract class CmEnrollmentService.CmEnrollmentServiceBase

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

Base class for server-side implementations of CmEnrollmentService

## Inheritance

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

## 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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [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

## Methods

### CalculateEffectiveCmEnrollment(CalculateEffectiveCmEnrollmentRequest, ServerCallContext)

    public virtual Task<CalculateEffectiveCmEnrollmentResponse> CalculateEffectiveCmEnrollment(CalculateEffectiveCmEnrollmentRequest request, ServerCallContext context)

Calculates the effective Compliance Manager enrollment for a resource.
An effective enrollment is either a direct enrollment of a
resource (if it exists), or an enrollment of the closest parent of a
resource that's enrolled in Compliance Manager.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CalculateEffectiveCmEnrollmentRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CalculateEffectiveCmEnrollmentResponse` | The response to send back to the client (wrapped by a task). |

### UpdateCmEnrollment(UpdateCmEnrollmentRequest, ServerCallContext)

    public virtual Task<CmEnrollment> UpdateCmEnrollment(UpdateCmEnrollmentRequest request, ServerCallContext context)

Updates the Compliance Manager enrollment for a resource to facilitate
an audit.
Use this method to enroll a resource in Compliance Manager or to
create or update feature-specific configurations.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.UpdateCmEnrollmentRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudSecurityCompliance.V1/latest/Google.Cloud.CloudSecurityCompliance.V1.CmEnrollment` | The response to send back to the client (wrapped by a task). |