Class protos.google.cloud.compute.v1.Interconnects (3.0.0)

Represents an Interconnects

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

Creates new Interconnects 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
Interconnects

RPC service. Useful where requests and/or responses are streamed.

delete(request, callback)

public delete(request: google.cloud.compute.v1.IDeleteInterconnectRequest, callback: google.cloud.compute.v1.Interconnects.DeleteCallback): void;

Calls Delete.

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

DeleteInterconnectRequest message or plain object

callback google.cloud.compute.v1.Interconnects.DeleteCallback

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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

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

DeleteInterconnectRequest message or plain object

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

Promise

get(request, callback)

public get(request: google.cloud.compute.v1.IGetInterconnectRequest, callback: google.cloud.compute.v1.Interconnects.GetCallback): void;

Calls Get.

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

GetInterconnectRequest message or plain object

callback google.cloud.compute.v1.Interconnects.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetInterconnectRequest): Promise<google.cloud.compute.v1.Interconnect>;

Calls Get.

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

GetInterconnectRequest message or plain object

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

Promise

getDiagnostics(request, callback)

public getDiagnostics(request: google.cloud.compute.v1.IGetDiagnosticsInterconnectRequest, callback: google.cloud.compute.v1.Interconnects.GetDiagnosticsCallback): void;

Calls GetDiagnostics.

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

GetDiagnosticsInterconnectRequest message or plain object

callback google.cloud.compute.v1.Interconnects.GetDiagnosticsCallback

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

Returns
TypeDescription
void

getDiagnostics(request)

public getDiagnostics(request: google.cloud.compute.v1.IGetDiagnosticsInterconnectRequest): Promise<google.cloud.compute.v1.InterconnectsGetDiagnosticsResponse>;

Calls GetDiagnostics.

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

GetDiagnosticsInterconnectRequest message or plain object

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

Promise

insert(request, callback)

public insert(request: google.cloud.compute.v1.IInsertInterconnectRequest, callback: google.cloud.compute.v1.Interconnects.InsertCallback): void;

Calls Insert.

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

InsertInterconnectRequest message or plain object

callback google.cloud.compute.v1.Interconnects.InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

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

InsertInterconnectRequest message or plain object

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

Promise

list(request, callback)

public list(request: google.cloud.compute.v1.IListInterconnectsRequest, callback: google.cloud.compute.v1.Interconnects.ListCallback): void;

Calls List.

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

ListInterconnectsRequest message or plain object

callback google.cloud.compute.v1.Interconnects.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListInterconnectsRequest): Promise<google.cloud.compute.v1.InterconnectList>;

Calls List.

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

ListInterconnectsRequest message or plain object

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

Promise

patch(request, callback)

public patch(request: google.cloud.compute.v1.IPatchInterconnectRequest, callback: google.cloud.compute.v1.Interconnects.PatchCallback): void;

Calls Patch.

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

PatchInterconnectRequest message or plain object

callback google.cloud.compute.v1.Interconnects.PatchCallback

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

Returns
TypeDescription
void

patch(request)

public patch(request: google.cloud.compute.v1.IPatchInterconnectRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Patch.

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

PatchInterconnectRequest message or plain object

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

Promise