Class protos.google.cloud.compute.v1.NetworkFirewallPolicies (3.8.1)

Represents a NetworkFirewallPolicies

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new NetworkFirewallPolicies service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

addAssociation(request, callback)

public addAssociation(request: google.cloud.compute.v1.IAddAssociationNetworkFirewallPolicyRequest, callback: google.cloud.compute.v1.NetworkFirewallPolicies.AddAssociationCallback): void;

Calls AddAssociation.

Parameters
NameDescription
request IAddAssociationNetworkFirewallPolicyRequest

AddAssociationNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.AddAssociationCallback

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

Returns
TypeDescription
void

addAssociation(request)

public addAssociation(request: google.cloud.compute.v1.IAddAssociationNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;

Calls AddAssociation.

Parameter
NameDescription
request IAddAssociationNetworkFirewallPolicyRequest

AddAssociationNetworkFirewallPolicyRequest message or plain object

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

Promise

addRule(request, callback)

public addRule(request: google.cloud.compute.v1.IAddRuleNetworkFirewallPolicyRequest, callback: google.cloud.compute.v1.NetworkFirewallPolicies.AddRuleCallback): void;

Calls AddRule.

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

AddRuleNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.AddRuleCallback

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

Returns
TypeDescription
void

addRule(request)

public addRule(request: google.cloud.compute.v1.IAddRuleNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;

Calls AddRule.

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

AddRuleNetworkFirewallPolicyRequest message or plain object

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

Promise

cloneRules(request, callback)

public cloneRules(request: google.cloud.compute.v1.ICloneRulesNetworkFirewallPolicyRequest, callback: google.cloud.compute.v1.NetworkFirewallPolicies.CloneRulesCallback): void;

Calls CloneRules.

Parameters
NameDescription
request ICloneRulesNetworkFirewallPolicyRequest

CloneRulesNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.CloneRulesCallback

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

Returns
TypeDescription
void

cloneRules(request)

public cloneRules(request: google.cloud.compute.v1.ICloneRulesNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;

Calls CloneRules.

Parameter
NameDescription
request ICloneRulesNetworkFirewallPolicyRequest

CloneRulesNetworkFirewallPolicyRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

delete(request, callback)

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

Calls Delete.

Parameters
NameDescription
request IDeleteNetworkFirewallPolicyRequest

DeleteNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.DeleteCallback

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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

Parameter
NameDescription
request IDeleteNetworkFirewallPolicyRequest

DeleteNetworkFirewallPolicyRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request IGetNetworkFirewallPolicyRequest

GetNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.FirewallPolicy>;

Calls Get.

Parameter
NameDescription
request IGetNetworkFirewallPolicyRequest

GetNetworkFirewallPolicyRequest message or plain object

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

Promise

getAssociation(request, callback)

public getAssociation(request: google.cloud.compute.v1.IGetAssociationNetworkFirewallPolicyRequest, callback: google.cloud.compute.v1.NetworkFirewallPolicies.GetAssociationCallback): void;

Calls GetAssociation.

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

GetAssociationNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.GetAssociationCallback

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

Returns
TypeDescription
void

getAssociation(request)

public getAssociation(request: google.cloud.compute.v1.IGetAssociationNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.FirewallPolicyAssociation>;

Calls GetAssociation.

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

GetAssociationNetworkFirewallPolicyRequest message or plain object

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

Promise

getIamPolicy(request, callback)

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

Calls GetIamPolicy.

Parameters
NameDescription
request IGetIamPolicyNetworkFirewallPolicyRequest

GetIamPolicyNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.GetIamPolicyCallback

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

Returns
TypeDescription
void

getIamPolicy(request)

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

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyNetworkFirewallPolicyRequest

GetIamPolicyNetworkFirewallPolicyRequest message or plain object

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

Promise

getRule(request, callback)

public getRule(request: google.cloud.compute.v1.IGetRuleNetworkFirewallPolicyRequest, callback: google.cloud.compute.v1.NetworkFirewallPolicies.GetRuleCallback): void;

Calls GetRule.

Parameters
NameDescription
request IGetRuleNetworkFirewallPolicyRequest

GetRuleNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.GetRuleCallback

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

Returns
TypeDescription
void

getRule(request)

public getRule(request: google.cloud.compute.v1.IGetRuleNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.FirewallPolicyRule>;

Calls GetRule.

Parameter
NameDescription
request IGetRuleNetworkFirewallPolicyRequest

GetRuleNetworkFirewallPolicyRequest message or plain object

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

Promise

insert(request, callback)

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

Calls Insert.

Parameters
NameDescription
request IInsertNetworkFirewallPolicyRequest

InsertNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request IInsertNetworkFirewallPolicyRequest

InsertNetworkFirewallPolicyRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListNetworkFirewallPoliciesRequest

ListNetworkFirewallPoliciesRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListNetworkFirewallPoliciesRequest): Promise<google.cloud.compute.v1.FirewallPolicyList>;

Calls List.

Parameter
NameDescription
request IListNetworkFirewallPoliciesRequest

ListNetworkFirewallPoliciesRequest message or plain object

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

Promise

patch(request, callback)

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

Calls Patch.

Parameters
NameDescription
request IPatchNetworkFirewallPolicyRequest

PatchNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.PatchCallback

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

Returns
TypeDescription
void

patch(request)

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

Calls Patch.

Parameter
NameDescription
request IPatchNetworkFirewallPolicyRequest

PatchNetworkFirewallPolicyRequest message or plain object

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

Promise

patchRule(request, callback)

public patchRule(request: google.cloud.compute.v1.IPatchRuleNetworkFirewallPolicyRequest, callback: google.cloud.compute.v1.NetworkFirewallPolicies.PatchRuleCallback): void;

Calls PatchRule.

Parameters
NameDescription
request IPatchRuleNetworkFirewallPolicyRequest

PatchRuleNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.PatchRuleCallback

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

Returns
TypeDescription
void

patchRule(request)

public patchRule(request: google.cloud.compute.v1.IPatchRuleNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;

Calls PatchRule.

Parameter
NameDescription
request IPatchRuleNetworkFirewallPolicyRequest

PatchRuleNetworkFirewallPolicyRequest message or plain object

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

Promise

removeAssociation(request, callback)

public removeAssociation(request: google.cloud.compute.v1.IRemoveAssociationNetworkFirewallPolicyRequest, callback: google.cloud.compute.v1.NetworkFirewallPolicies.RemoveAssociationCallback): void;

Calls RemoveAssociation.

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

RemoveAssociationNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.RemoveAssociationCallback

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

Returns
TypeDescription
void

removeAssociation(request)

public removeAssociation(request: google.cloud.compute.v1.IRemoveAssociationNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;

Calls RemoveAssociation.

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

RemoveAssociationNetworkFirewallPolicyRequest message or plain object

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

Promise

removeRule(request, callback)

public removeRule(request: google.cloud.compute.v1.IRemoveRuleNetworkFirewallPolicyRequest, callback: google.cloud.compute.v1.NetworkFirewallPolicies.RemoveRuleCallback): void;

Calls RemoveRule.

Parameters
NameDescription
request IRemoveRuleNetworkFirewallPolicyRequest

RemoveRuleNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.RemoveRuleCallback

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

Returns
TypeDescription
void

removeRule(request)

public removeRule(request: google.cloud.compute.v1.IRemoveRuleNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;

Calls RemoveRule.

Parameter
NameDescription
request IRemoveRuleNetworkFirewallPolicyRequest

RemoveRuleNetworkFirewallPolicyRequest message or plain object

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

Promise

setIamPolicy(request, callback)

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

Calls SetIamPolicy.

Parameters
NameDescription
request ISetIamPolicyNetworkFirewallPolicyRequest

SetIamPolicyNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.SetIamPolicyCallback

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

Returns
TypeDescription
void

setIamPolicy(request)

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

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyNetworkFirewallPolicyRequest

SetIamPolicyNetworkFirewallPolicyRequest message or plain object

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

Promise

testIamPermissions(request, callback)

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

Calls TestIamPermissions.

Parameters
NameDescription
request ITestIamPermissionsNetworkFirewallPolicyRequest

TestIamPermissionsNetworkFirewallPolicyRequest message or plain object

callback google.cloud.compute.v1.NetworkFirewallPolicies.TestIamPermissionsCallback

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

Returns
TypeDescription
void

testIamPermissions(request)

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

Calls TestIamPermissions.

Parameter
NameDescription
request ITestIamPermissionsNetworkFirewallPolicyRequest

TestIamPermissionsNetworkFirewallPolicyRequest message or plain object

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

Promise