Represents a Routes
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.RoutesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Routes service.
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): Routes;
Creates new Routes service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
Routes | RPC service. Useful where requests and/or responses are streamed. |
delete(request, callback)
public delete(request: google.cloud.compute.v1.IDeleteRouteRequest, callback: google.cloud.compute.v1.Routes.DeleteCallback): void;
Calls Delete.
Name | Description |
request |
google.cloud.compute.v1.IDeleteRouteRequest
DeleteRouteRequest message or plain object |
callback |
google.cloud.compute.v1.Routes.DeleteCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteRouteRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Name | Description |
request |
google.cloud.compute.v1.IDeleteRouteRequest
DeleteRouteRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetRouteRequest, callback: google.cloud.compute.v1.Routes.GetCallback): void;
Calls Get.
Name | Description |
request |
IGetRouteRequest
GetRouteRequest message or plain object |
callback |
google.cloud.compute.v1.Routes.GetCallback
Node-style callback called with the error, if any, and Route |
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetRouteRequest): Promise<google.cloud.compute.v1.Route>;
Calls Get.
Name | Description |
request |
IGetRouteRequest
GetRouteRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.Route> | Promise |
insert(request, callback)
public insert(request: google.cloud.compute.v1.IInsertRouteRequest, callback: google.cloud.compute.v1.Routes.InsertCallback): void;
Calls Insert.
Name | Description |
request |
google.cloud.compute.v1.IInsertRouteRequest
InsertRouteRequest message or plain object |
callback |
google.cloud.compute.v1.Routes.InsertCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
insert(request)
public insert(request: google.cloud.compute.v1.IInsertRouteRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Name | Description |
request |
google.cloud.compute.v1.IInsertRouteRequest
InsertRouteRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListRoutesRequest, callback: google.cloud.compute.v1.Routes.ListCallback): void;
Calls List.
Name | Description |
request |
IListRoutesRequest
ListRoutesRequest message or plain object |
callback |
google.cloud.compute.v1.Routes.ListCallback
Node-style callback called with the error, if any, and RouteList |
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListRoutesRequest): Promise<google.cloud.compute.v1.RouteList>;
Calls List.
Name | Description |
request |
IListRoutesRequest
ListRoutesRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.RouteList> | Promise |