# Cloud Controls Partner v1beta API - Class CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringBase (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.CloudControlsPartnerMonitoringBase)
- [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.CloudControlsPartnerMonitoringBase)

    [BindServiceMethod(typeof(CloudControlsPartnerMonitoring), "BindService")]
    public abstract class CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringBase

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

Base class for server-side implementations of CloudControlsPartnerMonitoring

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CloudControlsPartnerMonitoring.CloudControlsPartnerMonitoringBase

## Inherited Members

[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

## Methods

### GetViolation(GetViolationRequest, ServerCallContext)

    public virtual Task<Violation> GetViolation(GetViolationRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.Violation` | The response to send back to the client (wrapped by a task). |

### ListViolations(ListViolationsRequest, ServerCallContext)

    public virtual Task<ListViolationsResponse> ListViolations(ListViolationsRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ListViolationsResponse` | The response to send back to the client (wrapped by a task). |