public class PolicyBasedRoutingServiceClient : ClientBase<PolicyBasedRoutingService.PolicyBasedRoutingServiceClient>
Reference documentation and code samples for the Network Connectivity v1 API class PolicyBasedRoutingService.PolicyBasedRoutingServiceClient.
Client for PolicyBasedRoutingService
Inheritance
Object > ClientBase > ClientBase<PolicyBasedRoutingService.PolicyBasedRoutingServiceClient> > PolicyBasedRoutingService.PolicyBasedRoutingServiceClientNamespace
Google.Cloud.NetworkConnectivity.V1Assembly
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(ClientBase.ClientBaseConfiguration)
protected PolicyBasedRoutingServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration 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 |
IAMPolicy.IAMPolicyClient | 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 |
Locations.LocationsClient | 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 |
Operations.OperationsClient | 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, Nullable<DateTime>, CancellationToken)
public virtual Operation CreatePolicyBasedRoute(CreatePolicyBasedRouteRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | The call object. |
CreatePolicyBasedRouteAsync(CreatePolicyBasedRouteRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> CreatePolicyBasedRouteAsync(CreatePolicyBasedRouteRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | 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, Nullable<DateTime>, CancellationToken)
public virtual Operation DeletePolicyBasedRoute(DeletePolicyBasedRouteRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | The call object. |
DeletePolicyBasedRouteAsync(DeletePolicyBasedRouteRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> DeletePolicyBasedRouteAsync(DeletePolicyBasedRouteRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | 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, Nullable<DateTime>, CancellationToken)
public virtual PolicyBasedRoute GetPolicyBasedRoute(GetPolicyBasedRouteRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<PolicyBasedRoute> | The call object. |
GetPolicyBasedRouteAsync(GetPolicyBasedRouteRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<PolicyBasedRoute> GetPolicyBasedRouteAsync(GetPolicyBasedRouteRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<PolicyBasedRoute> | 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, Nullable<DateTime>, CancellationToken)
public virtual ListPolicyBasedRoutesResponse ListPolicyBasedRoutes(ListPolicyBasedRoutesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<ListPolicyBasedRoutesResponse> | The call object. |
ListPolicyBasedRoutesAsync(ListPolicyBasedRoutesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListPolicyBasedRoutesResponse> ListPolicyBasedRoutesAsync(ListPolicyBasedRoutesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<ListPolicyBasedRoutesResponse> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override PolicyBasedRoutingService.PolicyBasedRoutingServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
PolicyBasedRoutingService.PolicyBasedRoutingServiceClient |