Class protos.google.cloud.compute.v1.NetworkAttachments (4.3.0)

Represents a NetworkAttachments

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new NetworkAttachments service.

Parameters
NameDescription
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.IAggregatedListNetworkAttachmentsRequest, callback: google.cloud.compute.v1.NetworkAttachments.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
NameDescription
request IAggregatedListNetworkAttachmentsRequest

AggregatedListNetworkAttachmentsRequest message or plain object

callback AggregatedListCallback

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

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest): Promise<google.cloud.compute.v1.NetworkAttachmentAggregatedList>;

Calls AggregatedList.

Parameter
NameDescription
request IAggregatedListNetworkAttachmentsRequest

AggregatedListNetworkAttachmentsRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

delete(request, callback)

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

Calls Delete.

Parameters
NameDescription
request IDeleteNetworkAttachmentRequest

DeleteNetworkAttachmentRequest message or plain object

callback DeleteCallback

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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

Parameter
NameDescription
request IDeleteNetworkAttachmentRequest

DeleteNetworkAttachmentRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request IGetNetworkAttachmentRequest

GetNetworkAttachmentRequest message or plain object

callback GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetNetworkAttachmentRequest): Promise<google.cloud.compute.v1.NetworkAttachment>;

Calls Get.

Parameter
NameDescription
request IGetNetworkAttachmentRequest

GetNetworkAttachmentRequest message or plain object

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

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest, callback: google.cloud.compute.v1.NetworkAttachments.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request IGetIamPolicyNetworkAttachmentRequest

GetIamPolicyNetworkAttachmentRequest message or plain object

callback GetIamPolicyCallback

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

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest): Promise<google.cloud.compute.v1.Policy>;

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyNetworkAttachmentRequest

GetIamPolicyNetworkAttachmentRequest message or plain object

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

Promise

insert(request, callback)

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

Calls Insert.

Parameters
NameDescription
request IInsertNetworkAttachmentRequest

InsertNetworkAttachmentRequest message or plain object

callback InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request IInsertNetworkAttachmentRequest

InsertNetworkAttachmentRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListNetworkAttachmentsRequest

ListNetworkAttachmentsRequest message or plain object

callback ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListNetworkAttachmentsRequest): Promise<google.cloud.compute.v1.NetworkAttachmentList>;

Calls List.

Parameter
NameDescription
request IListNetworkAttachmentsRequest

ListNetworkAttachmentsRequest message or plain object

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

Promise

patch(request, callback)

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

Calls Patch.

Parameters
NameDescription
request IPatchNetworkAttachmentRequest

PatchNetworkAttachmentRequest message or plain object

callback PatchCallback

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

Returns
TypeDescription
void

patch(request)

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

Calls Patch.

Parameter
NameDescription
request IPatchNetworkAttachmentRequest

PatchNetworkAttachmentRequest message or plain object

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

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest, callback: google.cloud.compute.v1.NetworkAttachments.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request ISetIamPolicyNetworkAttachmentRequest

SetIamPolicyNetworkAttachmentRequest message or plain object

callback SetIamPolicyCallback

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

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest): Promise<google.cloud.compute.v1.Policy>;

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyNetworkAttachmentRequest

SetIamPolicyNetworkAttachmentRequest message or plain object

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

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest, callback: google.cloud.compute.v1.NetworkAttachments.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request ITestIamPermissionsNetworkAttachmentRequest

TestIamPermissionsNetworkAttachmentRequest message or plain object

callback TestIamPermissionsCallback

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

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request ITestIamPermissionsNetworkAttachmentRequest

TestIamPermissionsNetworkAttachmentRequest message or plain object

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

Promise