Class protos.google.cloud.compute.v1.InterconnectAttachments (4.5.0)

Represents an InterconnectAttachments

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new InterconnectAttachments service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

aggregatedList(request, callback)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest, callback: google.cloud.compute.v1.InterconnectAttachments.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
Name Description
request IAggregatedListInterconnectAttachmentsRequest

AggregatedListInterconnectAttachmentsRequest message or plain object

callback AggregatedListCallback

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

Returns
Type Description
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListInterconnectAttachmentsRequest): Promise<google.cloud.compute.v1.InterconnectAttachmentAggregatedList>;

Calls AggregatedList.

Parameter
Name Description
request IAggregatedListInterconnectAttachmentsRequest

AggregatedListInterconnectAttachmentsRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.InterconnectAttachmentAggregatedList>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): InterconnectAttachments;

Creates new InterconnectAttachments service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
InterconnectAttachments

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

delete(request, callback)

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

Calls Delete.

Parameters
Name Description
request IDeleteInterconnectAttachmentRequest

DeleteInterconnectAttachmentRequest message or plain object

callback DeleteCallback

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

Returns
Type Description
void

delete(request)

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

Calls Delete.

Parameter
Name Description
request IDeleteInterconnectAttachmentRequest

DeleteInterconnectAttachmentRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

get(request, callback)

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

Calls Get.

Parameters
Name Description
request IGetInterconnectAttachmentRequest

GetInterconnectAttachmentRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

public get(request: google.cloud.compute.v1.IGetInterconnectAttachmentRequest): Promise<google.cloud.compute.v1.InterconnectAttachment>;

Calls Get.

Parameter
Name Description
request IGetInterconnectAttachmentRequest

GetInterconnectAttachmentRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.InterconnectAttachment>

Promise

insert(request, callback)

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

Calls Insert.

Parameters
Name Description
request IInsertInterconnectAttachmentRequest

InsertInterconnectAttachmentRequest message or plain object

callback InsertCallback

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

Returns
Type Description
void

insert(request)

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

Calls Insert.

Parameter
Name Description
request IInsertInterconnectAttachmentRequest

InsertInterconnectAttachmentRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

list(request, callback)

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

Calls List.

Parameters
Name Description
request IListInterconnectAttachmentsRequest

ListInterconnectAttachmentsRequest message or plain object

callback ListCallback

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

Returns
Type Description
void

list(request)

public list(request: google.cloud.compute.v1.IListInterconnectAttachmentsRequest): Promise<google.cloud.compute.v1.InterconnectAttachmentList>;

Calls List.

Parameter
Name Description
request IListInterconnectAttachmentsRequest

ListInterconnectAttachmentsRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.InterconnectAttachmentList>

Promise

patch(request, callback)

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

Calls Patch.

Parameters
Name Description
request IPatchInterconnectAttachmentRequest

PatchInterconnectAttachmentRequest message or plain object

callback PatchCallback

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

Returns
Type Description
void

patch(request)

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

Calls Patch.

Parameter
Name Description
request IPatchInterconnectAttachmentRequest

PatchInterconnectAttachmentRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

setLabels(request, callback)

public setLabels(request: google.cloud.compute.v1.ISetLabelsInterconnectAttachmentRequest, callback: google.cloud.compute.v1.InterconnectAttachments.SetLabelsCallback): void;

Calls SetLabels.

Parameters
Name Description
request ISetLabelsInterconnectAttachmentRequest

SetLabelsInterconnectAttachmentRequest message or plain object

callback SetLabelsCallback

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

Returns
Type Description
void

setLabels(request)

public setLabels(request: google.cloud.compute.v1.ISetLabelsInterconnectAttachmentRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetLabels.

Parameter
Name Description
request ISetLabelsInterconnectAttachmentRequest

SetLabelsInterconnectAttachmentRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise