Class SystemPolicyV1Beta1.SystemPolicyV1Beta1Client (1.0.0-beta05)

public class SystemPolicyV1Beta1Client : ClientBase<SystemPolicyV1Beta1.SystemPolicyV1Beta1Client>

Client for SystemPolicyV1Beta1

Inheritance

Object > ClientBase > ClientBase<SystemPolicyV1Beta1.SystemPolicyV1Beta1Client> > SystemPolicyV1Beta1.SystemPolicyV1Beta1Client

Namespace

Google.Cloud.BinaryAuthorization.V1Beta1

Assembly

Google.Cloud.BinaryAuthorization.V1Beta1.dll

Constructors

SystemPolicyV1Beta1Client()

protected SystemPolicyV1Beta1Client()

Protected parameterless constructor to allow creation of test doubles.

SystemPolicyV1Beta1Client(CallInvoker)

public SystemPolicyV1Beta1Client(CallInvoker callInvoker)

Creates a new client for SystemPolicyV1Beta1 that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

SystemPolicyV1Beta1Client(ChannelBase)

public SystemPolicyV1Beta1Client(ChannelBase channel)

Creates a new client for SystemPolicyV1Beta1

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

SystemPolicyV1Beta1Client(ClientBase.ClientBaseConfiguration)

protected SystemPolicyV1Beta1Client(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

GetSystemPolicy(GetSystemPolicyRequest, CallOptions)

public virtual Policy GetSystemPolicy(GetSystemPolicyRequest request, CallOptions options)

Gets the current system policy in the specified location.

Parameters
NameDescription
requestGetSystemPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Policy

The response received from the server.

GetSystemPolicy(GetSystemPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Policy GetSystemPolicy(GetSystemPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Gets the current system policy in the specified location.

Parameters
NameDescription
requestGetSystemPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetSystemPolicyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Policy>

The call object.

GetSystemPolicyAsync(GetSystemPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Policy> GetSystemPolicyAsync(GetSystemPolicyRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Gets the current system policy in the specified location.

Parameters
NameDescription
requestGetSystemPolicyRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Policy>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override SystemPolicyV1Beta1.SystemPolicyV1Beta1Client NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
SystemPolicyV1Beta1.SystemPolicyV1Beta1Client
Overrides
Grpc.Core.ClientBase<Google.Cloud.BinaryAuthorization.V1Beta1.SystemPolicyV1Beta1.SystemPolicyV1Beta1Client>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)