Represents a NetworkFirewallPolicies
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.NetworkFirewallPoliciesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new NetworkFirewallPolicies service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
addAssociation(request)
public addAssociation(request: google.cloud.compute.v1.IAddAssociationNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls AddAssociation.
Parameter | |
---|---|
Name | Description |
request |
IAddAssociationNetworkFirewallPolicyRequest
AddAssociationNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
addRule(request)
public addRule(request: google.cloud.compute.v1.IAddRuleNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls AddRule.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IAddRuleNetworkFirewallPolicyRequest
AddRuleNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
cloneRules(request)
public cloneRules(request: google.cloud.compute.v1.ICloneRulesNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls CloneRules.
Parameter | |
---|---|
Name | Description |
request |
ICloneRulesNetworkFirewallPolicyRequest
CloneRulesNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
IDeleteNetworkFirewallPolicyRequest
DeleteNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.FirewallPolicy>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetNetworkFirewallPolicyRequest
GetNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
getAssociation(request)
public getAssociation(request: google.cloud.compute.v1.IGetAssociationNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.FirewallPolicyAssociation>;
Calls GetAssociation.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IGetAssociationNetworkFirewallPolicyRequest
GetAssociationNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
getIamPolicy(request)
public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Policy>;
Calls GetIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
IGetIamPolicyNetworkFirewallPolicyRequest
GetIamPolicyNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
getRule(request)
public getRule(request: google.cloud.compute.v1.IGetRuleNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.FirewallPolicyRule>;
Calls GetRule.
Parameter | |
---|---|
Name | Description |
request |
IGetRuleNetworkFirewallPolicyRequest
GetRuleNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
insert(request)
public insert(request: google.cloud.compute.v1.IInsertNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
IInsertNetworkFirewallPolicyRequest
InsertNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListNetworkFirewallPoliciesRequest): Promise<google.cloud.compute.v1.FirewallPolicyList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListNetworkFirewallPoliciesRequest
ListNetworkFirewallPoliciesRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
patch(request)
public patch(request: google.cloud.compute.v1.IPatchNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Patch.
Parameter | |
---|---|
Name | Description |
request |
IPatchNetworkFirewallPolicyRequest
PatchNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
patchRule(request)
public patchRule(request: google.cloud.compute.v1.IPatchRuleNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls PatchRule.
Parameter | |
---|---|
Name | Description |
request |
IPatchRuleNetworkFirewallPolicyRequest
PatchRuleNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
removeAssociation(request)
public removeAssociation(request: google.cloud.compute.v1.IRemoveAssociationNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls RemoveAssociation.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IRemoveAssociationNetworkFirewallPolicyRequest
RemoveAssociationNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
removeRule(request)
public removeRule(request: google.cloud.compute.v1.IRemoveRuleNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls RemoveRule.
Parameter | |
---|---|
Name | Description |
request |
IRemoveRuleNetworkFirewallPolicyRequest
RemoveRuleNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
setIamPolicy(request)
public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.Policy>;
Calls SetIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
ISetIamPolicyNetworkFirewallPolicyRequest
SetIamPolicyNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
testIamPermissions(request)
public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsNetworkFirewallPolicyRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;
Calls TestIamPermissions.
Parameter | |
---|---|
Name | Description |
request |
ITestIamPermissionsNetworkFirewallPolicyRequest
TestIamPermissionsNetworkFirewallPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.TestPermissionsResponse> | Promise |