Represents a Firewalls
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.FirewallsPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Firewalls service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteFirewallRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
IDeleteFirewallRequest
DeleteFirewallRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetFirewallRequest): Promise<google.cloud.compute.v1.Firewall>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetFirewallRequest
GetFirewallRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
insert(request)
public insert(request: google.cloud.compute.v1.IInsertFirewallRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
IInsertFirewallRequest
InsertFirewallRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListFirewallsRequest): Promise<google.cloud.compute.v1.FirewallList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListFirewallsRequest
ListFirewallsRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
patch(request)
public patch(request: google.cloud.compute.v1.IPatchFirewallRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Patch.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IPatchFirewallRequest
PatchFirewallRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
update(request)
public update(request: google.cloud.compute.v1.IUpdateFirewallRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Update.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IUpdateFirewallRequest
UpdateFirewallRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |