Class protos.google.cloud.networkconnectivity.v1.PolicyBasedRoutingService (3.2.0)

Represents a PolicyBasedRoutingService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.networkconnectivity.v1.PolicyBasedRoutingService

Package

@google-cloud/network-connectivity

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new PolicyBasedRoutingService service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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
NameDescription
request ICreatePolicyBasedRouteRequest

CreatePolicyBasedRouteRequest message or plain object

callback CreatePolicyBasedRouteCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

createPolicyBasedRoute(request)

public createPolicyBasedRoute(request: google.cloud.networkconnectivity.v1.ICreatePolicyBasedRouteRequest): Promise<google.longrunning.Operation>;

Calls CreatePolicyBasedRoute.

Parameter
NameDescription
request ICreatePolicyBasedRouteRequest

CreatePolicyBasedRouteRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IDeletePolicyBasedRouteRequest

DeletePolicyBasedRouteRequest message or plain object

callback DeletePolicyBasedRouteCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

deletePolicyBasedRoute(request)

public deletePolicyBasedRoute(request: google.cloud.networkconnectivity.v1.IDeletePolicyBasedRouteRequest): Promise<google.longrunning.Operation>;

Calls DeletePolicyBasedRoute.

Parameter
NameDescription
request IDeletePolicyBasedRouteRequest

DeletePolicyBasedRouteRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IGetPolicyBasedRouteRequest

GetPolicyBasedRouteRequest message or plain object

callback GetPolicyBasedRouteCallback

Node-style callback called with the error, if any, and PolicyBasedRoute

Returns
TypeDescription
void

getPolicyBasedRoute(request)

public getPolicyBasedRoute(request: google.cloud.networkconnectivity.v1.IGetPolicyBasedRouteRequest): Promise<google.cloud.networkconnectivity.v1.PolicyBasedRoute>;

Calls GetPolicyBasedRoute.

Parameter
NameDescription
request IGetPolicyBasedRouteRequest

GetPolicyBasedRouteRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IListPolicyBasedRoutesRequest

ListPolicyBasedRoutesRequest message or plain object

callback ListPolicyBasedRoutesCallback

Node-style callback called with the error, if any, and ListPolicyBasedRoutesResponse

Returns
TypeDescription
void

listPolicyBasedRoutes(request)

public listPolicyBasedRoutes(request: google.cloud.networkconnectivity.v1.IListPolicyBasedRoutesRequest): Promise<google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse>;

Calls ListPolicyBasedRoutes.

Parameter
NameDescription
request IListPolicyBasedRoutesRequest

ListPolicyBasedRoutesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse>

Promise