Cloud Security Compliance v1 API - Class CmEnrollmentServiceClientImpl (1.0.0-beta04)

public sealed class CmEnrollmentServiceClientImpl : CmEnrollmentServiceClient

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

CmEnrollmentService client wrapper implementation, for convenient use.

Inheritance

object > CmEnrollmentServiceClient > CmEnrollmentServiceClientImpl

Namespace

Google.Cloud.CloudSecurityCompliance.V1

Assembly

Google.Cloud.CloudSecurityCompliance.V1.dll

Remarks

Service describing CmEnrollment related RPCs for complianceManager.

Constructors

CmEnrollmentServiceClientImpl(CmEnrollmentServiceClient, CmEnrollmentServiceSettings, ILogger)

public CmEnrollmentServiceClientImpl(CmEnrollmentService.CmEnrollmentServiceClient grpcClient, CmEnrollmentServiceSettings settings, ILogger logger)

Constructs a client wrapper for the CmEnrollmentService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient CmEnrollmentServiceCmEnrollmentServiceClient

The underlying gRPC client.

settings CmEnrollmentServiceSettings

The base CmEnrollmentServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override CmEnrollmentService.CmEnrollmentServiceClient GrpcClient { get; }

The underlying gRPC CmEnrollmentService client

Property Value
Type Description
CmEnrollmentServiceCmEnrollmentServiceClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

CalculateEffectiveCmEnrollment(CalculateEffectiveCmEnrollmentRequest, CallSettings)

public override CalculateEffectiveCmEnrollmentResponse CalculateEffectiveCmEnrollment(CalculateEffectiveCmEnrollmentRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CalculateEffectiveCmEnrollmentResponse

The RPC response.

Overrides

CalculateEffectiveCmEnrollmentAsync(CalculateEffectiveCmEnrollmentRequest, CallSettings)

public override Task<CalculateEffectiveCmEnrollmentResponse> CalculateEffectiveCmEnrollmentAsync(CalculateEffectiveCmEnrollmentRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCalculateEffectiveCmEnrollmentResponse

A Task containing the RPC response.

Overrides

UpdateCmEnrollment(UpdateCmEnrollmentRequest, CallSettings)

public override CmEnrollment UpdateCmEnrollment(UpdateCmEnrollmentRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CmEnrollment

The RPC response.

Overrides

UpdateCmEnrollmentAsync(UpdateCmEnrollmentRequest, CallSettings)

public override Task<CmEnrollment> UpdateCmEnrollmentAsync(UpdateCmEnrollmentRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCmEnrollment

A Task containing the RPC response.

Overrides