Network Connectivity v1 API - Class PolicyBasedRoutingServiceClientImpl (2.5.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
NameDescription
grpcClientPolicyBasedRoutingServicePolicyBasedRoutingServiceClient

The underlying gRPC client.

settingsPolicyBasedRoutingServiceSettings

The base PolicyBasedRoutingServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

CreatePolicyBasedRouteOperationsClient

public override OperationsClient CreatePolicyBasedRouteOperationsClient { get; }

The long-running operations client for CreatePolicyBasedRoute.

Property Value
TypeDescription
OperationsClient
Overrides

DeletePolicyBasedRouteOperationsClient

public override OperationsClient DeletePolicyBasedRouteOperationsClient { get; }

The long-running operations client for DeletePolicyBasedRoute.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override PolicyBasedRoutingService.PolicyBasedRoutingServiceClient GrpcClient { get; }

The underlying gRPC PolicyBasedRoutingService client

Property Value
TypeDescription
PolicyBasedRoutingServicePolicyBasedRoutingServiceClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
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
NameDescription
requestCreatePolicyBasedRouteRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListPolicyBasedRoutesResponsePolicyBasedRoute

A pageable asynchronous sequence of PolicyBasedRoute resources.

Overrides