# Cloud Controls Partner v1beta API - Class CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient (1.0.0-beta05)

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

- [1.0.0-beta05 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient)
- [1.0.0-beta04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/1.0.0-beta04/Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient)

    public class CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient : ClientBase<CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient>

Reference documentation and code samples for the Cloud Controls Partner v1beta API class CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient.

Client for CloudControlsPartnerMonitoring

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html) \> [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html)[CloudControlsPartnerMonitoring](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerMonitoring)[CloudControlsPartnerMonitoringClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient) \> CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient

## Inherited Members

[ClientBase\<CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient\>.WithHost(string)](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html#Grpc_Core_ClientBase_CallInvoker) [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.CloudControlsPartner.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta)

## Assembly

Google.Cloud.CloudControlsPartner.V1Beta.dll

## Constructors

### CloudControlsPartnerMonitoringClient()

    protected CloudControlsPartnerMonitoringClient()

Protected parameterless constructor to allow creation of test doubles.

### CloudControlsPartnerMonitoringClient(CallInvoker)

    public CloudControlsPartnerMonitoringClient(CallInvoker callInvoker)

Creates a new client for CloudControlsPartnerMonitoring that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallInvoker.html` The callInvoker to use to make remote calls. |

### CloudControlsPartnerMonitoringClient(ChannelBase)

    public CloudControlsPartnerMonitoringClient(ChannelBase channel)

Creates a new client for CloudControlsPartnerMonitoring

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ChannelBase.html` The channel to use to make remote calls. |

### CloudControlsPartnerMonitoringClient(ClientBaseConfiguration)

    protected CloudControlsPartnerMonitoringClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.htmlhttps://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.ClientBaseConfiguration.html` The client configuration. |

## Methods

### GetViolation(GetViolationRequest, CallOptions)

    public virtual Violation GetViolation(GetViolationRequest request, CallOptions options)

Gets details of a single Violation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.GetViolationRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.Violation` | The response received from the server. |

### GetViolation(GetViolationRequest, Metadata, DateTime?, CancellationToken)

    public virtual Violation GetViolation(GetViolationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets details of a single Violation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.GetViolationRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.Violation` | The response received from the server. |

### GetViolationAsync(GetViolationRequest, CallOptions)

    public virtual AsyncUnaryCall<Violation> GetViolationAsync(GetViolationRequest request, CallOptions options)

Gets details of a single Violation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.GetViolationRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.Violation` | The call object. |

### GetViolationAsync(GetViolationRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Violation> GetViolationAsync(GetViolationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets details of a single Violation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.GetViolationRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.Violation` | The call object. |

### ListViolations(ListViolationsRequest, CallOptions)

    public virtual ListViolationsResponse ListViolations(ListViolationsRequest request, CallOptions options)

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.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ListViolationsRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ListViolationsResponse` | The response received from the server. |

### ListViolations(ListViolationsRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListViolationsResponse ListViolations(ListViolationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ListViolationsRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ListViolationsResponse` | The response received from the server. |

### ListViolationsAsync(ListViolationsRequest, CallOptions)

    public virtual AsyncUnaryCall<ListViolationsResponse> ListViolationsAsync(ListViolationsRequest request, CallOptions options)

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.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ListViolationsRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ListViolationsResponse` | The call object. |

### ListViolationsAsync(ListViolationsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListViolationsResponse> ListViolationsAsync(ListViolationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ListViolationsRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ListViolationsResponse` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.htmlhttps://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.ClientBaseConfiguration.html` |

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

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)