Network Connectivity v1 API - Class PolicyBasedRoutingService.PolicyBasedRoutingServiceClient (2.1.0)

public class PolicyBasedRoutingServiceClient : ClientBase<PolicyBasedRoutingService.PolicyBasedRoutingServiceClient>

Reference documentation and code samples for the Network Connectivity v1 API class PolicyBasedRoutingService.PolicyBasedRoutingServiceClient.

Client for PolicyBasedRoutingService

Inheritance

Object > ClientBase > ClientBase<PolicyBasedRoutingService.PolicyBasedRoutingServiceClient> > PolicyBasedRoutingService.PolicyBasedRoutingServiceClient

Namespace

Google.Cloud.NetworkConnectivity.V1

Assembly

Google.Cloud.NetworkConnectivity.V1.dll

Constructors

PolicyBasedRoutingServiceClient()

protected PolicyBasedRoutingServiceClient()

Protected parameterless constructor to allow creation of test doubles.

PolicyBasedRoutingServiceClient(CallInvoker)

public PolicyBasedRoutingServiceClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

PolicyBasedRoutingServiceClient(ChannelBase)

public PolicyBasedRoutingServiceClient(ChannelBase channel)

Creates a new client for PolicyBasedRoutingService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

PolicyBasedRoutingServiceClient(ClientBase.ClientBaseConfiguration)

protected PolicyBasedRoutingServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateIAMPolicyClient()

public virtual IAMPolicy.IAMPolicyClient CreateIAMPolicyClient()

Creates a new instance of IAMPolicy.IAMPolicyClient using the same call invoker as this client.

Returns
TypeDescription
IAMPolicy.IAMPolicyClient

A new IAMPolicy.IAMPolicyClient for the same target as this client.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
TypeDescription
Locations.LocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
TypeDescription
Operations.OperationsClient

A new Operations client for the same target as this client.

CreatePolicyBasedRoute(CreatePolicyBasedRouteRequest, CallOptions)

public virtual Operation CreatePolicyBasedRoute(CreatePolicyBasedRouteRequest request, CallOptions options)

Creates a new PolicyBasedRoute in a given project and location.

Parameters
NameDescription
requestCreatePolicyBasedRouteRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

CreatePolicyBasedRoute(CreatePolicyBasedRouteRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation CreatePolicyBasedRoute(CreatePolicyBasedRouteRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Creates a new PolicyBasedRoute in a given project and location.

Parameters
NameDescription
requestCreatePolicyBasedRouteRequest

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
Operation

The response received from the server.

CreatePolicyBasedRouteAsync(CreatePolicyBasedRouteRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CreatePolicyBasedRouteAsync(CreatePolicyBasedRouteRequest request, CallOptions options)

Creates a new PolicyBasedRoute in a given project and location.

Parameters
NameDescription
requestCreatePolicyBasedRouteRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

CreatePolicyBasedRouteAsync(CreatePolicyBasedRouteRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> CreatePolicyBasedRouteAsync(CreatePolicyBasedRouteRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Creates a new PolicyBasedRoute in a given project and location.

Parameters
NameDescription
requestCreatePolicyBasedRouteRequest

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<Operation>

The call object.

DeletePolicyBasedRoute(DeletePolicyBasedRouteRequest, CallOptions)

public virtual Operation DeletePolicyBasedRoute(DeletePolicyBasedRouteRequest request, CallOptions options)

Deletes a single PolicyBasedRoute.

Parameters
NameDescription
requestDeletePolicyBasedRouteRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

DeletePolicyBasedRoute(DeletePolicyBasedRouteRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation DeletePolicyBasedRoute(DeletePolicyBasedRouteRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Deletes a single PolicyBasedRoute.

Parameters
NameDescription
requestDeletePolicyBasedRouteRequest

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
Operation

The response received from the server.

DeletePolicyBasedRouteAsync(DeletePolicyBasedRouteRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeletePolicyBasedRouteAsync(DeletePolicyBasedRouteRequest request, CallOptions options)

Deletes a single PolicyBasedRoute.

Parameters
NameDescription
requestDeletePolicyBasedRouteRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

DeletePolicyBasedRouteAsync(DeletePolicyBasedRouteRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeletePolicyBasedRouteAsync(DeletePolicyBasedRouteRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Deletes a single PolicyBasedRoute.

Parameters
NameDescription
requestDeletePolicyBasedRouteRequest

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<Operation>

The call object.

GetPolicyBasedRoute(GetPolicyBasedRouteRequest, CallOptions)

public virtual PolicyBasedRoute GetPolicyBasedRoute(GetPolicyBasedRouteRequest request, CallOptions options)

Gets details of a single PolicyBasedRoute.

Parameters
NameDescription
requestGetPolicyBasedRouteRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
PolicyBasedRoute

The response received from the server.

GetPolicyBasedRoute(GetPolicyBasedRouteRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual PolicyBasedRoute GetPolicyBasedRoute(GetPolicyBasedRouteRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets details of a single PolicyBasedRoute.

Parameters
NameDescription
requestGetPolicyBasedRouteRequest

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
PolicyBasedRoute

The response received from the server.

GetPolicyBasedRouteAsync(GetPolicyBasedRouteRequest, CallOptions)

public virtual AsyncUnaryCall<PolicyBasedRoute> GetPolicyBasedRouteAsync(GetPolicyBasedRouteRequest request, CallOptions options)

Gets details of a single PolicyBasedRoute.

Parameters
NameDescription
requestGetPolicyBasedRouteRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<PolicyBasedRoute>

The call object.

GetPolicyBasedRouteAsync(GetPolicyBasedRouteRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<PolicyBasedRoute> GetPolicyBasedRouteAsync(GetPolicyBasedRouteRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets details of a single PolicyBasedRoute.

Parameters
NameDescription
requestGetPolicyBasedRouteRequest

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<PolicyBasedRoute>

The call object.

ListPolicyBasedRoutes(ListPolicyBasedRoutesRequest, CallOptions)

public virtual ListPolicyBasedRoutesResponse ListPolicyBasedRoutes(ListPolicyBasedRoutesRequest request, CallOptions options)

Lists PolicyBasedRoutes in a given project and location.

Parameters
NameDescription
requestListPolicyBasedRoutesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListPolicyBasedRoutesResponse

The response received from the server.

ListPolicyBasedRoutes(ListPolicyBasedRoutesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListPolicyBasedRoutesResponse ListPolicyBasedRoutes(ListPolicyBasedRoutesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists PolicyBasedRoutes in a given project and location.

Parameters
NameDescription
requestListPolicyBasedRoutesRequest

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
ListPolicyBasedRoutesResponse

The response received from the server.

ListPolicyBasedRoutesAsync(ListPolicyBasedRoutesRequest, CallOptions)

public virtual AsyncUnaryCall<ListPolicyBasedRoutesResponse> ListPolicyBasedRoutesAsync(ListPolicyBasedRoutesRequest request, CallOptions options)

Lists PolicyBasedRoutes in a given project and location.

Parameters
NameDescription
requestListPolicyBasedRoutesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListPolicyBasedRoutesResponse>

The call object.

ListPolicyBasedRoutesAsync(ListPolicyBasedRoutesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListPolicyBasedRoutesResponse> ListPolicyBasedRoutesAsync(ListPolicyBasedRoutesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists PolicyBasedRoutes in a given project and location.

Parameters
NameDescription
requestListPolicyBasedRoutesRequest

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<ListPolicyBasedRoutesResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override PolicyBasedRoutingService.PolicyBasedRoutingServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
PolicyBasedRoutingService.PolicyBasedRoutingServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.NetworkConnectivity.V1.PolicyBasedRoutingService.PolicyBasedRoutingServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)