# Cloud Controls Partner v1 API - Class CloudControlsPartnerMonitoringClientImpl (1.3.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.3.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClientImpl)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/1.2.0/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClientImpl)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/1.1.0/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClientImpl)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/1.0.0-beta02/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClientImpl)

    public sealed class CloudControlsPartnerMonitoringClientImpl : CloudControlsPartnerMonitoringClient

Reference documentation and code samples for the Cloud Controls Partner v1 API class CloudControlsPartnerMonitoringClientImpl.

CloudControlsPartnerMonitoring client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [CloudControlsPartnerMonitoringClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient) \> CloudControlsPartnerMonitoringClientImpl

## Inherited Members

[CloudControlsPartnerMonitoringClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_DefaultEndpoint) [CloudControlsPartnerMonitoringClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_DefaultScopes) [CloudControlsPartnerMonitoringClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_ServiceMetadata) [CloudControlsPartnerMonitoringClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_CreateAsync_System_Threading_CancellationToken_) [CloudControlsPartnerMonitoringClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_Create) [CloudControlsPartnerMonitoringClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_ShutdownDefaultChannelsAsync) [CloudControlsPartnerMonitoringClient.ListViolations(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_ListViolations_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CloudControlsPartnerMonitoringClient.ListViolationsAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_ListViolationsAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CloudControlsPartnerMonitoringClient.ListViolations(WorkloadName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_ListViolations_Google_Cloud_CloudControlsPartner_V1_WorkloadName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CloudControlsPartnerMonitoringClient.ListViolationsAsync(WorkloadName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_ListViolationsAsync_Google_Cloud_CloudControlsPartner_V1_WorkloadName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [CloudControlsPartnerMonitoringClient.GetViolationAsync(GetViolationRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_GetViolationAsync_Google_Cloud_CloudControlsPartner_V1_GetViolationRequest_System_Threading_CancellationToken_) [CloudControlsPartnerMonitoringClient.GetViolation(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_GetViolation_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudControlsPartnerMonitoringClient.GetViolationAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_GetViolationAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [CloudControlsPartnerMonitoringClient.GetViolationAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_GetViolationAsync_System_String_System_Threading_CancellationToken_) [CloudControlsPartnerMonitoringClient.GetViolation(ViolationName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_GetViolation_Google_Cloud_CloudControlsPartner_V1_ViolationName_Google_Api_Gax_Grpc_CallSettings_) [CloudControlsPartnerMonitoringClient.GetViolationAsync(ViolationName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_GetViolationAsync_Google_Cloud_CloudControlsPartner_V1_ViolationName_Google_Api_Gax_Grpc_CallSettings_) [CloudControlsPartnerMonitoringClient.GetViolationAsync(ViolationName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_GetViolationAsync_Google_Cloud_CloudControlsPartner_V1_ViolationName_System_Threading_CancellationToken_) [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.CloudControlsPartner.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1)

## Assembly

Google.Cloud.CloudControlsPartner.V1.dll

## Remarks

Service describing handlers for resources

## Constructors

### CloudControlsPartnerMonitoringClientImpl(CloudControlsPartnerMonitoringClient, CloudControlsPartnerMonitoringSettings, ILogger)

    public CloudControlsPartnerMonitoringClientImpl(CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient grpcClient, CloudControlsPartnerMonitoringSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringSettings` The base [CloudControlsPartnerMonitoringSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient GrpcClient { get; }

The underlying gRPC CloudControlsPartnerMonitoring client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient` |   |

**Overrides** [CloudControlsPartnerMonitoringClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_GrpcClient)

## Methods

### GetViolation(GetViolationRequest, CallSettings)

    public override Violation GetViolation(GetViolationRequest request, CallSettings callSettings = null)

Gets details of a single Violation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.GetViolationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.Violation` | The RPC response. |

**Overrides** [CloudControlsPartnerMonitoringClient.GetViolation(GetViolationRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_GetViolation_Google_Cloud_CloudControlsPartner_V1_GetViolationRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetViolationAsync(GetViolationRequest, CallSettings)

    public override Task<Violation> GetViolationAsync(GetViolationRequest request, CallSettings callSettings = null)

Gets details of a single Violation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.GetViolationRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.Violation` | A Task containing the RPC response. |

**Overrides** [CloudControlsPartnerMonitoringClient.GetViolationAsync(GetViolationRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_GetViolationAsync_Google_Cloud_CloudControlsPartner_V1_GetViolationRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListViolations(ListViolationsRequest, CallSettings)

    public override PagedEnumerable<ListViolationsResponse, Violation> ListViolations(ListViolationsRequest request, CallSettings callSettings = null)

Lists Violations for a workload
Callers may also choose to read across multiple Customers or for a single
customer as per
[AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash
character) as a wildcard character instead of {customer} \& {workload}.
Format:
`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.ListViolationsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.ListViolationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.Violation` | A pageable sequence of [Violation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.Violation) resources. |

**Overrides** [CloudControlsPartnerMonitoringClient.ListViolations(ListViolationsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_ListViolations_Google_Cloud_CloudControlsPartner_V1_ListViolationsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListViolationsAsync(ListViolationsRequest, CallSettings)

    public override PagedAsyncEnumerable<ListViolationsResponse, Violation> ListViolationsAsync(ListViolationsRequest request, CallSettings callSettings = null)

Lists Violations for a workload
Callers may also choose to read across multiple Customers or for a single
customer as per
[AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash
character) as a wildcard character instead of {customer} \& {workload}.
Format:
`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.ListViolationsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.ListViolationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.Violation` | A pageable asynchronous sequence of [Violation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.Violation) resources. |

**Overrides** [CloudControlsPartnerMonitoringClient.ListViolationsAsync(ListViolationsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1/latest/Google.Cloud.CloudControlsPartner.V1.CloudControlsPartnerMonitoringClient#Google_Cloud_CloudControlsPartner_V1_CloudControlsPartnerMonitoringClient_ListViolationsAsync_Google_Cloud_CloudControlsPartner_V1_ListViolationsRequest_Google_Api_Gax_Grpc_CallSettings_)