Network Connectivity v1 API - Class PolicyBasedRoutingService.PolicyBasedRoutingServiceClient (2.6.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
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(ClientBaseConfiguration)

protected PolicyBasedRoutingServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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
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
TypeDescription
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
TypeDescription
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
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, 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
NameDescription
requestCreatePolicyBasedRouteRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
NameDescription
requestCreatePolicyBasedRouteRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
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
NameDescription
requestDeletePolicyBasedRouteRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallOperation

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, DateTime?, CancellationToken)

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

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.

deadlineDateTime

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
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
NameDescription
requestGetPolicyBasedRouteRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallPolicyBasedRoute

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, 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
NameDescription
requestListPolicyBasedRoutesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
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
NameDescription
requestListPolicyBasedRoutesRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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
AsyncUnaryCallListPolicyBasedRoutesResponse

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
PolicyBasedRoutingServicePolicyBasedRoutingServiceClient
Overrides