# Binary Authorization v1 API - Class SystemPolicyV1ClientImpl (2.6.0)

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

- [2.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1ClientImpl)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/2.5.0/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1ClientImpl)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/2.4.0/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1ClientImpl)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/2.3.0/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1ClientImpl)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/2.2.0/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1ClientImpl)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/2.1.0/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1ClientImpl)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/2.0.0/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1ClientImpl)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/1.0.0/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1ClientImpl)

    public sealed class SystemPolicyV1ClientImpl : SystemPolicyV1Client

Reference documentation and code samples for the Binary Authorization v1 API class SystemPolicyV1ClientImpl.

SystemPolicyV1 client wrapper implementation, for convenient use.

## Inheritance

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

## Inherited Members

[SystemPolicyV1Client.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_DefaultEndpoint) [SystemPolicyV1Client.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_DefaultScopes) [SystemPolicyV1Client.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_ServiceMetadata) [SystemPolicyV1Client.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_CreateAsync_System_Threading_CancellationToken_) [SystemPolicyV1Client.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_Create) [SystemPolicyV1Client.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_ShutdownDefaultChannelsAsync) [SystemPolicyV1Client.GetSystemPolicyAsync(GetSystemPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_GetSystemPolicyAsync_Google_Cloud_BinaryAuthorization_V1_GetSystemPolicyRequest_System_Threading_CancellationToken_) [SystemPolicyV1Client.GetSystemPolicy(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_GetSystemPolicy_System_String_Google_Api_Gax_Grpc_CallSettings_) [SystemPolicyV1Client.GetSystemPolicyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_GetSystemPolicyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SystemPolicyV1Client.GetSystemPolicyAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_GetSystemPolicyAsync_System_String_System_Threading_CancellationToken_) [SystemPolicyV1Client.GetSystemPolicy(PolicyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_GetSystemPolicy_Google_Cloud_BinaryAuthorization_V1_PolicyName_Google_Api_Gax_Grpc_CallSettings_) [SystemPolicyV1Client.GetSystemPolicyAsync(PolicyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_GetSystemPolicyAsync_Google_Cloud_BinaryAuthorization_V1_PolicyName_Google_Api_Gax_Grpc_CallSettings_) [SystemPolicyV1Client.GetSystemPolicyAsync(PolicyName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_GetSystemPolicyAsync_Google_Cloud_BinaryAuthorization_V1_PolicyName_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.BinaryAuthorization.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1)

## Assembly

Google.Cloud.BinaryAuthorization.V1.dll

## Remarks

API for working with the system policy.

## Constructors

### SystemPolicyV1ClientImpl(SystemPolicyV1Client, SystemPolicyV1Settings, ILogger)

    public SystemPolicyV1ClientImpl(SystemPolicyV1.SystemPolicyV1Client grpcClient, SystemPolicyV1Settings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1.SystemPolicyV1Client` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Settings` The base [SystemPolicyV1Settings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Settings) 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 SystemPolicyV1.SystemPolicyV1Client GrpcClient { get; }

The underlying gRPC SystemPolicyV1 client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1.SystemPolicyV1Client` |   |

**Overrides** [SystemPolicyV1Client.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_GrpcClient)

## Methods

### GetSystemPolicy(GetSystemPolicyRequest, CallSettings)

    public override Policy GetSystemPolicy(GetSystemPolicyRequest request, CallSettings callSettings = null)

Gets the current system policy in the specified location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.GetSystemPolicyRequest` 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.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.Policy` | The RPC response. |

**Overrides** [SystemPolicyV1Client.GetSystemPolicy(GetSystemPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_GetSystemPolicy_Google_Cloud_BinaryAuthorization_V1_GetSystemPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetSystemPolicyAsync(GetSystemPolicyRequest, CallSettings)

    public override Task<Policy> GetSystemPolicyAsync(GetSystemPolicyRequest request, CallSettings callSettings = null)

Gets the current system policy in the specified location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.GetSystemPolicyRequest` 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.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.Policy` | A Task containing the RPC response. |

**Overrides** [SystemPolicyV1Client.GetSystemPolicyAsync(GetSystemPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1/latest/Google.Cloud.BinaryAuthorization.V1.SystemPolicyV1Client#Google_Cloud_BinaryAuthorization_V1_SystemPolicyV1Client_GetSystemPolicyAsync_Google_Cloud_BinaryAuthorization_V1_GetSystemPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)