Constructor
new PolicyBasedRoutingService(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new PolicyBasedRoutingService service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
createPolicyBasedRoute(request, callback) → {undefined}
Calls CreatePolicyBasedRoute.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.networkconnectivity.v1.ICreatePolicyBasedRouteRequest |
CreatePolicyBasedRouteRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.CreatePolicyBasedRouteCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
createPolicyBasedRoute(request) → {Promise.<google.longrunning.Operation>}
Calls CreatePolicyBasedRoute.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.networkconnectivity.v1.ICreatePolicyBasedRouteRequest |
CreatePolicyBasedRouteRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
deletePolicyBasedRoute(request, callback) → {undefined}
Calls DeletePolicyBasedRoute.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.networkconnectivity.v1.IDeletePolicyBasedRouteRequest |
DeletePolicyBasedRouteRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.DeletePolicyBasedRouteCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
deletePolicyBasedRoute(request) → {Promise.<google.longrunning.Operation>}
Calls DeletePolicyBasedRoute.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.networkconnectivity.v1.IDeletePolicyBasedRouteRequest |
DeletePolicyBasedRouteRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
getPolicyBasedRoute(request, callback) → {undefined}
Calls GetPolicyBasedRoute.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.networkconnectivity.v1.IGetPolicyBasedRouteRequest |
GetPolicyBasedRouteRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetPolicyBasedRouteCallback |
Node-style callback called with the error, if any, and PolicyBasedRoute |
Returns:
Type | Description |
---|---|
undefined |
getPolicyBasedRoute(request) → {Promise.<google.cloud.networkconnectivity.v1.PolicyBasedRoute>}
Calls GetPolicyBasedRoute.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.networkconnectivity.v1.IGetPolicyBasedRouteRequest |
GetPolicyBasedRouteRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.networkconnectivity.v1.PolicyBasedRoute> |
Promise |
listPolicyBasedRoutes(request, callback) → {undefined}
Calls ListPolicyBasedRoutes.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.networkconnectivity.v1.IListPolicyBasedRoutesRequest |
ListPolicyBasedRoutesRequest message or plain object |
callback |
google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.ListPolicyBasedRoutesCallback |
Node-style callback called with the error, if any, and ListPolicyBasedRoutesResponse |
Returns:
Type | Description |
---|---|
undefined |
listPolicyBasedRoutes(request) → {Promise.<google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse>}
Calls ListPolicyBasedRoutes.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.networkconnectivity.v1.IListPolicyBasedRoutesRequest |
ListPolicyBasedRoutesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {PolicyBasedRoutingService}
Creates new PolicyBasedRoutingService service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
PolicyBasedRoutingService |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
CreatePolicyBasedRouteCallback(error, responseopt)
Callback as used by createPolicyBasedRoute.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
DeletePolicyBasedRouteCallback(error, responseopt)
Callback as used by deletePolicyBasedRoute.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
GetPolicyBasedRouteCallback(error, responseopt)
Callback as used by getPolicyBasedRoute.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.networkconnectivity.v1.PolicyBasedRoute |
<optional> |
PolicyBasedRoute |
ListPolicyBasedRoutesCallback(error, responseopt)
Callback as used by listPolicyBasedRoutes.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse |
<optional> |
ListPolicyBasedRoutesResponse |