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

public class PolicyBasedRoutingService.PolicyBasedRoutingServiceClient : ClientBase<PolicyBasedRoutingService.PolicyBasedRoutingServiceClient>

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

Client for PolicyBasedRoutingService

Inheritance

object > ClientBase > ClientBasePolicyBasedRoutingServicePolicyBasedRoutingServiceClient > 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
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

PolicyBasedRoutingServiceClient(ChannelBase)

public PolicyBasedRoutingServiceClient(ChannelBase channel)

Creates a new client for PolicyBasedRoutingService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

PolicyBasedRoutingServiceClient(ClientBaseConfiguration)

protected PolicyBasedRoutingServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

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
Type Description
IAMPolicyIAMPolicyClient

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
Type Description
LocationsLocationsClient

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
Type Description
OperationsOperationsClient

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
Name Description
request CreatePolicyBasedRouteRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

CreatePolicyBasedRoute(CreatePolicyBasedRouteRequest, Metadata, DateTime?, CancellationToken)

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

Creates a new PolicyBasedRoute in a given project and location.

Parameters
Name Description
request CreatePolicyBasedRouteRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
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
Name Description
request CreatePolicyBasedRouteRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreatePolicyBasedRouteAsync(CreatePolicyBasedRouteRequest, Metadata, DateTime?, CancellationToken)

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

Creates a new PolicyBasedRoute in a given project and location.

Parameters
Name Description
request CreatePolicyBasedRouteRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeletePolicyBasedRoute(DeletePolicyBasedRouteRequest, CallOptions)

public virtual Operation DeletePolicyBasedRoute(DeletePolicyBasedRouteRequest request, CallOptions options)

Deletes a single PolicyBasedRoute.

Parameters
Name Description
request DeletePolicyBasedRouteRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

DeletePolicyBasedRoute(DeletePolicyBasedRouteRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a single PolicyBasedRoute.

Parameters
Name Description
request DeletePolicyBasedRouteRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

DeletePolicyBasedRouteAsync(DeletePolicyBasedRouteRequest, CallOptions)

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

Deletes a single PolicyBasedRoute.

Parameters
Name Description
request DeletePolicyBasedRouteRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeletePolicyBasedRouteAsync(DeletePolicyBasedRouteRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a single PolicyBasedRoute.

Parameters
Name Description
request DeletePolicyBasedRouteRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

GetPolicyBasedRoute(GetPolicyBasedRouteRequest, CallOptions)

public virtual PolicyBasedRoute GetPolicyBasedRoute(GetPolicyBasedRouteRequest request, CallOptions options)

Gets details of a single PolicyBasedRoute.

Parameters
Name Description
request GetPolicyBasedRouteRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
PolicyBasedRoute

The response received from the server.

GetPolicyBasedRoute(GetPolicyBasedRouteRequest, Metadata, DateTime?, CancellationToken)

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

Gets details of a single PolicyBasedRoute.

Parameters
Name Description
request GetPolicyBasedRouteRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
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
Name Description
request GetPolicyBasedRouteRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallPolicyBasedRoute

The call object.

GetPolicyBasedRouteAsync(GetPolicyBasedRouteRequest, Metadata, DateTime?, CancellationToken)

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

Gets details of a single PolicyBasedRoute.

Parameters
Name Description
request GetPolicyBasedRouteRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallPolicyBasedRoute

The call object.

ListPolicyBasedRoutes(ListPolicyBasedRoutesRequest, CallOptions)

public virtual ListPolicyBasedRoutesResponse ListPolicyBasedRoutes(ListPolicyBasedRoutesRequest request, CallOptions options)

Lists PolicyBasedRoutes in a given project and location.

Parameters
Name Description
request ListPolicyBasedRoutesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListPolicyBasedRoutesResponse

The response received from the server.

ListPolicyBasedRoutes(ListPolicyBasedRoutesRequest, Metadata, DateTime?, CancellationToken)

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

Lists PolicyBasedRoutes in a given project and location.

Parameters
Name Description
request ListPolicyBasedRoutesRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
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
Name Description
request ListPolicyBasedRoutesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListPolicyBasedRoutesResponse

The call object.

ListPolicyBasedRoutesAsync(ListPolicyBasedRoutesRequest, Metadata, DateTime?, CancellationToken)

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

Lists PolicyBasedRoutes in a given project and location.

Parameters
Name Description
request ListPolicyBasedRoutesRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListPolicyBasedRoutesResponse

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
PolicyBasedRoutingServicePolicyBasedRoutingServiceClient
Overrides