Network Connectivity v1 API - Class PolicyBasedRoutingServiceClientImpl (2.7.0)

public sealed class PolicyBasedRoutingServiceClientImpl : PolicyBasedRoutingServiceClient

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

PolicyBasedRoutingService client wrapper implementation, for convenient use.

Inheritance

object > PolicyBasedRoutingServiceClient > PolicyBasedRoutingServiceClientImpl

Namespace

Google.Cloud.NetworkConnectivity.V1

Assembly

Google.Cloud.NetworkConnectivity.V1.dll

Remarks

Policy-Based Routing allows GCP customers to specify flexibile routing policies for Layer 4 traffic traversing through the connected service.

Constructors

PolicyBasedRoutingServiceClientImpl(PolicyBasedRoutingServiceClient, PolicyBasedRoutingServiceSettings, ILogger)

public PolicyBasedRoutingServiceClientImpl(PolicyBasedRoutingService.PolicyBasedRoutingServiceClient grpcClient, PolicyBasedRoutingServiceSettings settings, ILogger logger)

Constructs a client wrapper for the PolicyBasedRoutingService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient PolicyBasedRoutingServicePolicyBasedRoutingServiceClient

The underlying gRPC client.

settings PolicyBasedRoutingServiceSettings

The base PolicyBasedRoutingServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

CreatePolicyBasedRouteOperationsClient

public override OperationsClient CreatePolicyBasedRouteOperationsClient { get; }

The long-running operations client for CreatePolicyBasedRoute.

Property Value
Type Description
OperationsClient
Overrides

DeletePolicyBasedRouteOperationsClient

public override OperationsClient DeletePolicyBasedRouteOperationsClient { get; }

The long-running operations client for DeletePolicyBasedRoute.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override PolicyBasedRoutingService.PolicyBasedRoutingServiceClient GrpcClient { get; }

The underlying gRPC PolicyBasedRoutingService client

Property Value
Type Description
PolicyBasedRoutingServicePolicyBasedRoutingServiceClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

CreatePolicyBasedRoute(CreatePolicyBasedRouteRequest, CallSettings)

public override Operation<PolicyBasedRoute, OperationMetadata> CreatePolicyBasedRoute(CreatePolicyBasedRouteRequest request, CallSettings callSettings = null)

Creates a new PolicyBasedRoute in a given project and location.

Parameters
Name Description
request CreatePolicyBasedRouteRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationPolicyBasedRouteOperationMetadata

The RPC response.

Overrides

CreatePolicyBasedRouteAsync(CreatePolicyBasedRouteRequest, CallSettings)

public override Task<Operation<PolicyBasedRoute, OperationMetadata>> CreatePolicyBasedRouteAsync(CreatePolicyBasedRouteRequest request, CallSettings callSettings = null)

Creates a new PolicyBasedRoute in a given project and location.

Parameters
Name Description
request CreatePolicyBasedRouteRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationPolicyBasedRouteOperationMetadata

A Task containing the RPC response.

Overrides

DeletePolicyBasedRoute(DeletePolicyBasedRouteRequest, CallSettings)

public override Operation<Empty, OperationMetadata> DeletePolicyBasedRoute(DeletePolicyBasedRouteRequest request, CallSettings callSettings = null)

Deletes a single PolicyBasedRoute.

Parameters
Name Description
request DeletePolicyBasedRouteRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Overrides

DeletePolicyBasedRouteAsync(DeletePolicyBasedRouteRequest, CallSettings)

public override Task<Operation<Empty, OperationMetadata>> DeletePolicyBasedRouteAsync(DeletePolicyBasedRouteRequest request, CallSettings callSettings = null)

Deletes a single PolicyBasedRoute.

Parameters
Name Description
request DeletePolicyBasedRouteRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Overrides

GetPolicyBasedRoute(GetPolicyBasedRouteRequest, CallSettings)

public override PolicyBasedRoute GetPolicyBasedRoute(GetPolicyBasedRouteRequest request, CallSettings callSettings = null)

Gets details of a single PolicyBasedRoute.

Parameters
Name Description
request GetPolicyBasedRouteRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PolicyBasedRoute

The RPC response.

Overrides

GetPolicyBasedRouteAsync(GetPolicyBasedRouteRequest, CallSettings)

public override Task<PolicyBasedRoute> GetPolicyBasedRouteAsync(GetPolicyBasedRouteRequest request, CallSettings callSettings = null)

Gets details of a single PolicyBasedRoute.

Parameters
Name Description
request GetPolicyBasedRouteRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicyBasedRoute

A Task containing the RPC response.

Overrides

ListPolicyBasedRoutes(ListPolicyBasedRoutesRequest, CallSettings)

public override PagedEnumerable<ListPolicyBasedRoutesResponse, PolicyBasedRoute> ListPolicyBasedRoutes(ListPolicyBasedRoutesRequest request, CallSettings callSettings = null)

Lists PolicyBasedRoutes in a given project and location.

Parameters
Name Description
request ListPolicyBasedRoutesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListPolicyBasedRoutesResponsePolicyBasedRoute

A pageable sequence of PolicyBasedRoute resources.

Overrides

ListPolicyBasedRoutesAsync(ListPolicyBasedRoutesRequest, CallSettings)

public override PagedAsyncEnumerable<ListPolicyBasedRoutesResponse, PolicyBasedRoute> ListPolicyBasedRoutesAsync(ListPolicyBasedRoutesRequest request, CallSettings callSettings = null)

Lists PolicyBasedRoutes in a given project and location.

Parameters
Name Description
request ListPolicyBasedRoutesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListPolicyBasedRoutesResponsePolicyBasedRoute

A pageable asynchronous sequence of PolicyBasedRoute resources.

Overrides