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.
Namespace
Google.Cloud.NetworkConnectivity.V1Assembly
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(PolicyBasedRoutingService.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 | PolicyBasedRoutingService.PolicyBasedRoutingServiceClient 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 |
DeletePolicyBasedRouteOperationsClient
public override OperationsClient DeletePolicyBasedRouteOperationsClient { get; }
The long-running operations client for DeletePolicyBasedRoute
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override PolicyBasedRoutingService.PolicyBasedRoutingServiceClient GrpcClient { get; }
The underlying gRPC PolicyBasedRoutingService client
Property Value | |
---|---|
Type | Description |
PolicyBasedRoutingService.PolicyBasedRoutingServiceClient |
IAMPolicyClient
public override IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
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 |
Operation<PolicyBasedRoute, OperationMetadata> | The RPC response. |
CreatePolicyBasedRouteAsync(CreatePolicyBasedRouteRequest, CallSettings)
public override async 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 |
Task<Operation<PolicyBasedRoute, OperationMetadata>> | A Task containing the RPC response. |
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 |
Operation<Empty, OperationMetadata> | The RPC response. |
DeletePolicyBasedRouteAsync(DeletePolicyBasedRouteRequest, CallSettings)
public override async 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 |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
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. |
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 |
Task<PolicyBasedRoute> | A Task containing the RPC response. |
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 |
PagedEnumerable<ListPolicyBasedRoutesResponse, PolicyBasedRoute> | A pageable sequence of PolicyBasedRoute resources. |
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 |
PagedAsyncEnumerable<ListPolicyBasedRoutesResponse, PolicyBasedRoute> | A pageable asynchronous sequence of PolicyBasedRoute resources. |