Class protos.google.cloud.compute.v1.Firewalls (3.9.1)

Represents a Firewalls

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

delete(request, callback)

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

Calls Delete.

Parameters
NameDescription
request IDeleteFirewallRequest

DeleteFirewallRequest message or plain object

callback google.cloud.compute.v1.Firewalls.DeleteCallback

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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

Parameter
NameDescription
request IDeleteFirewallRequest

DeleteFirewallRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request IGetFirewallRequest

GetFirewallRequest message or plain object

callback google.cloud.compute.v1.Firewalls.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetFirewallRequest): Promise<google.cloud.compute.v1.Firewall>;

Calls Get.

Parameter
NameDescription
request IGetFirewallRequest

GetFirewallRequest message or plain object

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

Promise

insert(request, callback)

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

Calls Insert.

Parameters
NameDescription
request IInsertFirewallRequest

InsertFirewallRequest message or plain object

callback google.cloud.compute.v1.Firewalls.InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request IInsertFirewallRequest

InsertFirewallRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListFirewallsRequest

ListFirewallsRequest message or plain object

callback google.cloud.compute.v1.Firewalls.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListFirewallsRequest): Promise<google.cloud.compute.v1.FirewallList>;

Calls List.

Parameter
NameDescription
request IListFirewallsRequest

ListFirewallsRequest message or plain object

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

Promise

patch(request, callback)

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

Calls Patch.

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

PatchFirewallRequest message or plain object

callback google.cloud.compute.v1.Firewalls.PatchCallback

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

Returns
TypeDescription
void

patch(request)

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

Calls Patch.

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

PatchFirewallRequest message or plain object

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

Promise

update(request, callback)

public update(request: google.cloud.compute.v1.IUpdateFirewallRequest, callback: google.cloud.compute.v1.Firewalls.UpdateCallback): void;

Calls Update.

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

UpdateFirewallRequest message or plain object

callback google.cloud.compute.v1.Firewalls.UpdateCallback

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

Returns
TypeDescription
void

update(request)

public update(request: google.cloud.compute.v1.IUpdateFirewallRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Update.

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

UpdateFirewallRequest message or plain object

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

Promise