public sealed class CmEnrollmentServiceClientImpl : CmEnrollmentServiceClientReference documentation and code samples for the Cloud Security Compliance v1 API class CmEnrollmentServiceClientImpl.
CmEnrollmentService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.CloudSecurityCompliance.V1Assembly
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 |
CmEnrollmentServiceCmEnrollmentServiceClientThe underlying gRPC client. |
settings |
CmEnrollmentServiceSettingsThe base CmEnrollmentServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override CmEnrollmentService.CmEnrollmentServiceClient GrpcClient { get; }The underlying gRPC CmEnrollmentService client
| Property Value | |
|---|---|
| Type | Description |
CmEnrollmentServiceCmEnrollmentServiceClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
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 |
CalculateEffectiveCmEnrollmentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CalculateEffectiveCmEnrollmentResponse |
The RPC response. |
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 |
CalculateEffectiveCmEnrollmentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCalculateEffectiveCmEnrollmentResponse |
A Task containing the RPC response. |
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 |
UpdateCmEnrollmentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CmEnrollment |
The RPC response. |
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 |
UpdateCmEnrollmentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCmEnrollment |
A Task containing the RPC response. |