public class SystemPolicyV1Client : ClientBase<SystemPolicyV1.SystemPolicyV1Client>Reference documentation and code samples for the Binary Authorization v1 API class SystemPolicyV1.SystemPolicyV1Client.
Client for SystemPolicyV1
Inheritance
Object > ClientBase > ClientBase<SystemPolicyV1.SystemPolicyV1Client> > SystemPolicyV1.SystemPolicyV1ClientNamespace
Google.Cloud.BinaryAuthorization.V1Assembly
Google.Cloud.BinaryAuthorization.V1.dll
Constructors
SystemPolicyV1Client()
protected SystemPolicyV1Client()Protected parameterless constructor to allow creation of test doubles.
SystemPolicyV1Client(CallInvoker)
public SystemPolicyV1Client(CallInvoker callInvoker)Creates a new client for SystemPolicyV1 that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description | 
| callInvoker | CallInvokerThe callInvoker to use to make remote calls. | 
SystemPolicyV1Client(ChannelBase)
public SystemPolicyV1Client(ChannelBase channel)Creates a new client for SystemPolicyV1
| Parameter | |
|---|---|
| Name | Description | 
| channel | ChannelBaseThe channel to use to make remote calls. | 
SystemPolicyV1Client(ClientBase.ClientBaseConfiguration)
protected SystemPolicyV1Client(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description | 
| configuration | ClientBase.ClientBaseConfigurationThe client configuration. | 
Methods
GetSystemPolicy(GetSystemPolicyRequest, CallOptions)
public virtual Policy GetSystemPolicy(GetSystemPolicyRequest request, CallOptions options)Gets the current system policy in the specified location.
| Parameters | |
|---|---|
| Name | Description | 
| request | GetSystemPolicyRequestThe request to send to the server. | 
| options | CallOptionsThe options for the call. | 
| Returns | |
|---|---|
| Type | Description | 
| Policy | The response received from the server. | 
GetSystemPolicy(GetSystemPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Policy GetSystemPolicy(GetSystemPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Gets the current system policy in the specified location.
| Parameters | |
|---|---|
| Name | Description | 
| request | GetSystemPolicyRequestThe request to send to the server. | 
| headers | MetadataThe initial metadata to send with the call. This parameter is optional. | 
| deadline | Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. | 
| cancellationToken | CancellationTokenAn optional token for canceling the call. | 
| Returns | |
|---|---|
| Type | Description | 
| Policy | The response received from the server. | 
GetSystemPolicyAsync(GetSystemPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<Policy> GetSystemPolicyAsync(GetSystemPolicyRequest request, CallOptions options)Gets the current system policy in the specified location.
| Parameters | |
|---|---|
| Name | Description | 
| request | GetSystemPolicyRequestThe request to send to the server. | 
| options | CallOptionsThe options for the call. | 
| Returns | |
|---|---|
| Type | Description | 
| AsyncUnaryCall<Policy> | The call object. | 
GetSystemPolicyAsync(GetSystemPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Policy> GetSystemPolicyAsync(GetSystemPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Gets the current system policy in the specified location.
| Parameters | |
|---|---|
| Name | Description | 
| request | GetSystemPolicyRequestThe request to send to the server. | 
| headers | MetadataThe initial metadata to send with the call. This parameter is optional. | 
| deadline | Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. | 
| cancellationToken | CancellationTokenAn optional token for canceling the call. | 
| Returns | |
|---|---|
| Type | Description | 
| AsyncUnaryCall<Policy> | The call object. | 
NewInstance(ClientBase.ClientBaseConfiguration)
protected override SystemPolicyV1.SystemPolicyV1Client NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description | 
| configuration | ClientBase.ClientBaseConfiguration | 
| Returns | |
|---|---|
| Type | Description | 
| SystemPolicyV1.SystemPolicyV1Client | |