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

Represents a GlobalAddresses

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

delete(request, callback)

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

Calls Delete.

Parameters
NameDescription
request IDeleteGlobalAddressRequest

DeleteGlobalAddressRequest message or plain object

callback google.cloud.compute.v1.GlobalAddresses.DeleteCallback

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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

Parameter
NameDescription
request IDeleteGlobalAddressRequest

DeleteGlobalAddressRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

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

GetGlobalAddressRequest message or plain object

callback google.cloud.compute.v1.GlobalAddresses.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetGlobalAddressRequest): Promise<google.cloud.compute.v1.Address>;

Calls Get.

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

GetGlobalAddressRequest message or plain object

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

Promise

insert(request, callback)

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

Calls Insert.

Parameters
NameDescription
request IInsertGlobalAddressRequest

InsertGlobalAddressRequest message or plain object

callback google.cloud.compute.v1.GlobalAddresses.InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request IInsertGlobalAddressRequest

InsertGlobalAddressRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListGlobalAddressesRequest

ListGlobalAddressesRequest message or plain object

callback google.cloud.compute.v1.GlobalAddresses.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListGlobalAddressesRequest): Promise<google.cloud.compute.v1.AddressList>;

Calls List.

Parameter
NameDescription
request IListGlobalAddressesRequest

ListGlobalAddressesRequest message or plain object

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

Promise