Cloud Security Compliance v1 API - Class CmEnrollmentService.CmEnrollmentServiceBase (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 > CmEnrollmentService.CmEnrollmentServiceBase

Namespace

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 CalculateEffectiveCmEnrollmentRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskCalculateEffectiveCmEnrollmentResponse

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 UpdateCmEnrollmentRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskCmEnrollment

The response to send back to the client (wrapped by a task).