Represents a PolicyBasedRoutingService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServicePackage
@google-cloud/network-connectivityConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new PolicyBasedRoutingService service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PolicyBasedRoutingService;
Creates new PolicyBasedRoutingService service using the specified rpc implementation.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
PolicyBasedRoutingService |
RPC service. Useful where requests and/or responses are streamed. |
createPolicyBasedRoute(request, callback)
public createPolicyBasedRoute(request: google.cloud.networkconnectivity.v1.ICreatePolicyBasedRouteRequest, callback: google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.CreatePolicyBasedRouteCallback): void;
Calls CreatePolicyBasedRoute.
Parameters | |
---|---|
Name | Description |
request |
ICreatePolicyBasedRouteRequest
CreatePolicyBasedRouteRequest message or plain object |
callback |
CreatePolicyBasedRouteCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
createPolicyBasedRoute(request)
public createPolicyBasedRoute(request: google.cloud.networkconnectivity.v1.ICreatePolicyBasedRouteRequest): Promise<google.longrunning.Operation>;
Calls CreatePolicyBasedRoute.
Parameter | |
---|---|
Name | Description |
request |
ICreatePolicyBasedRouteRequest
CreatePolicyBasedRouteRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
deletePolicyBasedRoute(request, callback)
public deletePolicyBasedRoute(request: google.cloud.networkconnectivity.v1.IDeletePolicyBasedRouteRequest, callback: google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.DeletePolicyBasedRouteCallback): void;
Calls DeletePolicyBasedRoute.
Parameters | |
---|---|
Name | Description |
request |
IDeletePolicyBasedRouteRequest
DeletePolicyBasedRouteRequest message or plain object |
callback |
DeletePolicyBasedRouteCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
deletePolicyBasedRoute(request)
public deletePolicyBasedRoute(request: google.cloud.networkconnectivity.v1.IDeletePolicyBasedRouteRequest): Promise<google.longrunning.Operation>;
Calls DeletePolicyBasedRoute.
Parameter | |
---|---|
Name | Description |
request |
IDeletePolicyBasedRouteRequest
DeletePolicyBasedRouteRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
getPolicyBasedRoute(request, callback)
public getPolicyBasedRoute(request: google.cloud.networkconnectivity.v1.IGetPolicyBasedRouteRequest, callback: google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetPolicyBasedRouteCallback): void;
Calls GetPolicyBasedRoute.
Parameters | |
---|---|
Name | Description |
request |
IGetPolicyBasedRouteRequest
GetPolicyBasedRouteRequest message or plain object |
callback |
GetPolicyBasedRouteCallback
Node-style callback called with the error, if any, and PolicyBasedRoute |
Returns | |
---|---|
Type | Description |
void |
getPolicyBasedRoute(request)
public getPolicyBasedRoute(request: google.cloud.networkconnectivity.v1.IGetPolicyBasedRouteRequest): Promise<google.cloud.networkconnectivity.v1.PolicyBasedRoute>;
Calls GetPolicyBasedRoute.
Parameter | |
---|---|
Name | Description |
request |
IGetPolicyBasedRouteRequest
GetPolicyBasedRouteRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.networkconnectivity.v1.PolicyBasedRoute> |
Promise |
listPolicyBasedRoutes(request, callback)
public listPolicyBasedRoutes(request: google.cloud.networkconnectivity.v1.IListPolicyBasedRoutesRequest, callback: google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.ListPolicyBasedRoutesCallback): void;
Calls ListPolicyBasedRoutes.
Parameters | |
---|---|
Name | Description |
request |
IListPolicyBasedRoutesRequest
ListPolicyBasedRoutesRequest message or plain object |
callback |
ListPolicyBasedRoutesCallback
Node-style callback called with the error, if any, and ListPolicyBasedRoutesResponse |
Returns | |
---|---|
Type | Description |
void |
listPolicyBasedRoutes(request)
public listPolicyBasedRoutes(request: google.cloud.networkconnectivity.v1.IListPolicyBasedRoutesRequest): Promise<google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse>;
Calls ListPolicyBasedRoutes.
Parameter | |
---|---|
Name | Description |
request |
IListPolicyBasedRoutesRequest
ListPolicyBasedRoutesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> |
Promise |