Class protos.google.cloud.compute.v1.Routes (3.6.0)

Represents a Routes

Inheritance

$protobuf.rpc.Service > protos.google.cloud.compute.v1.Routes

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new Routes 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): Routes;

Creates new Routes 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
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

delete(request)

public delete(request: google.cloud.compute.v1.IDeleteRouteRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Delete.

Parameter
NameDescription
request google.cloud.compute.v1.IDeleteRouteRequest

DeleteRouteRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
request google.cloud.compute.v1.IGetRouteRequest

GetRouteRequest message or plain object

callback google.cloud.compute.v1.Routes.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetRouteRequest): Promise<google.cloud.compute.v1.Route>;

Calls Get.

Parameter
NameDescription
request google.cloud.compute.v1.IGetRouteRequest

GetRouteRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

insert(request)

public insert(request: google.cloud.compute.v1.IInsertRouteRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Insert.

Parameter
NameDescription
request google.cloud.compute.v1.IInsertRouteRequest

InsertRouteRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
request google.cloud.compute.v1.IListRoutesRequest

ListRoutesRequest message or plain object

callback google.cloud.compute.v1.Routes.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListRoutesRequest): Promise<google.cloud.compute.v1.RouteList>;

Calls List.

Parameter
NameDescription
request google.cloud.compute.v1.IListRoutesRequest

ListRoutesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.RouteList>

Promise