Constructor
new SecurityPolicies(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new SecurityPolicies service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
addRule(request, callback) → {undefined}
Calls AddRule.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IAddRuleSecurityPolicyRequest |
AddRuleSecurityPolicyRequest message or plain object |
callback |
google.cloud.compute.v1.SecurityPolicies.AddRuleCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
addRule(request) → {Promise.<google.cloud.compute.v1.Operation>}
Calls AddRule.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IAddRuleSecurityPolicyRequest |
AddRuleSecurityPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.compute.v1.Operation> |
Promise |
aggregatedList(request, callback) → {undefined}
Calls AggregatedList.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest |
AggregatedListSecurityPoliciesRequest message or plain object |
callback |
google.cloud.compute.v1.SecurityPolicies.AggregatedListCallback |
Node-style callback called with the error, if any, and SecurityPoliciesAggregatedList |
Returns:
Type | Description |
---|---|
undefined |
aggregatedList(request) → {Promise.<google.cloud.compute.v1.SecurityPoliciesAggregatedList>}
Calls AggregatedList.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest |
AggregatedListSecurityPoliciesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.compute.v1.SecurityPoliciesAggregatedList> |
Promise |
delete(request, callback) → {undefined}
Calls Delete.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IDeleteSecurityPolicyRequest |
DeleteSecurityPolicyRequest message or plain object |
callback |
google.cloud.compute.v1.SecurityPolicies.DeleteCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
delete(request) → {Promise.<google.cloud.compute.v1.Operation>}
Calls Delete.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IDeleteSecurityPolicyRequest |
DeleteSecurityPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.compute.v1.Operation> |
Promise |
get(request, callback) → {undefined}
Calls Get.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IGetSecurityPolicyRequest |
GetSecurityPolicyRequest message or plain object |
callback |
google.cloud.compute.v1.SecurityPolicies.GetCallback |
Node-style callback called with the error, if any, and SecurityPolicy |
Returns:
Type | Description |
---|---|
undefined |
get(request) → {Promise.<google.cloud.compute.v1.SecurityPolicy>}
Calls Get.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IGetSecurityPolicyRequest |
GetSecurityPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.compute.v1.SecurityPolicy> |
Promise |
getRule(request, callback) → {undefined}
Calls GetRule.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IGetRuleSecurityPolicyRequest |
GetRuleSecurityPolicyRequest message or plain object |
callback |
google.cloud.compute.v1.SecurityPolicies.GetRuleCallback |
Node-style callback called with the error, if any, and SecurityPolicyRule |
Returns:
Type | Description |
---|---|
undefined |
getRule(request) → {Promise.<google.cloud.compute.v1.SecurityPolicyRule>}
Calls GetRule.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IGetRuleSecurityPolicyRequest |
GetRuleSecurityPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.compute.v1.SecurityPolicyRule> |
Promise |
insert(request, callback) → {undefined}
Calls Insert.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IInsertSecurityPolicyRequest |
InsertSecurityPolicyRequest message or plain object |
callback |
google.cloud.compute.v1.SecurityPolicies.InsertCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
insert(request) → {Promise.<google.cloud.compute.v1.Operation>}
Calls Insert.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IInsertSecurityPolicyRequest |
InsertSecurityPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.compute.v1.Operation> |
Promise |
list(request, callback) → {undefined}
Calls List.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IListSecurityPoliciesRequest |
ListSecurityPoliciesRequest message or plain object |
callback |
google.cloud.compute.v1.SecurityPolicies.ListCallback |
Node-style callback called with the error, if any, and SecurityPolicyList |
Returns:
Type | Description |
---|---|
undefined |
list(request) → {Promise.<google.cloud.compute.v1.SecurityPolicyList>}
Calls List.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IListSecurityPoliciesRequest |
ListSecurityPoliciesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.compute.v1.SecurityPolicyList> |
Promise |
listPreconfiguredExpressionSets(request, callback) → {undefined}
Calls ListPreconfiguredExpressionSets.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IListPreconfiguredExpressionSetsSecurityPoliciesRequest |
ListPreconfiguredExpressionSetsSecurityPoliciesRequest message or plain object |
callback |
google.cloud.compute.v1.SecurityPolicies.ListPreconfiguredExpressionSetsCallback |
Node-style callback called with the error, if any, and SecurityPoliciesListPreconfiguredExpressionSetsResponse |
Returns:
Type | Description |
---|---|
undefined |
listPreconfiguredExpressionSets(request) → {Promise.<google.cloud.compute.v1.SecurityPoliciesListPreconfiguredExpressionSetsResponse>}
Calls ListPreconfiguredExpressionSets.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IListPreconfiguredExpressionSetsSecurityPoliciesRequest |
ListPreconfiguredExpressionSetsSecurityPoliciesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.compute.v1.SecurityPoliciesListPreconfiguredExpressionSetsResponse> |
Promise |
patch(request, callback) → {undefined}
Calls Patch.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IPatchSecurityPolicyRequest |
PatchSecurityPolicyRequest message or plain object |
callback |
google.cloud.compute.v1.SecurityPolicies.PatchCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
patch(request) → {Promise.<google.cloud.compute.v1.Operation>}
Calls Patch.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IPatchSecurityPolicyRequest |
PatchSecurityPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.compute.v1.Operation> |
Promise |
patchRule(request, callback) → {undefined}
Calls PatchRule.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IPatchRuleSecurityPolicyRequest |
PatchRuleSecurityPolicyRequest message or plain object |
callback |
google.cloud.compute.v1.SecurityPolicies.PatchRuleCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
patchRule(request) → {Promise.<google.cloud.compute.v1.Operation>}
Calls PatchRule.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IPatchRuleSecurityPolicyRequest |
PatchRuleSecurityPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.compute.v1.Operation> |
Promise |
removeRule(request, callback) → {undefined}
Calls RemoveRule.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IRemoveRuleSecurityPolicyRequest |
RemoveRuleSecurityPolicyRequest message or plain object |
callback |
google.cloud.compute.v1.SecurityPolicies.RemoveRuleCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
removeRule(request) → {Promise.<google.cloud.compute.v1.Operation>}
Calls RemoveRule.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.IRemoveRuleSecurityPolicyRequest |
RemoveRuleSecurityPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.compute.v1.Operation> |
Promise |
setLabels(request, callback) → {undefined}
Calls SetLabels.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.ISetLabelsSecurityPolicyRequest |
SetLabelsSecurityPolicyRequest message or plain object |
callback |
google.cloud.compute.v1.SecurityPolicies.SetLabelsCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
setLabels(request) → {Promise.<google.cloud.compute.v1.Operation>}
Calls SetLabels.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.compute.v1.ISetLabelsSecurityPolicyRequest |
SetLabelsSecurityPolicyRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.compute.v1.Operation> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {SecurityPolicies}
Creates new SecurityPolicies service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
SecurityPolicies |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
AddRuleCallback(error, responseopt)
Callback as used by addRule.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.compute.v1.Operation |
<optional> |
Operation |
AggregatedListCallback(error, responseopt)
Callback as used by aggregatedList.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.compute.v1.SecurityPoliciesAggregatedList |
<optional> |
SecurityPoliciesAggregatedList |
DeleteCallback(error, responseopt)
Callback as used by delete_.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.compute.v1.Operation |
<optional> |
Operation |
GetCallback(error, responseopt)
Callback as used by get.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.compute.v1.SecurityPolicy |
<optional> |
SecurityPolicy |
GetRuleCallback(error, responseopt)
Callback as used by getRule.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.compute.v1.SecurityPolicyRule |
<optional> |
SecurityPolicyRule |
InsertCallback(error, responseopt)
Callback as used by insert.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.compute.v1.Operation |
<optional> |
Operation |
ListCallback(error, responseopt)
Callback as used by list.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.compute.v1.SecurityPolicyList |
<optional> |
SecurityPolicyList |
ListPreconfiguredExpressionSetsCallback(error, responseopt)
Callback as used by listPreconfiguredExpressionSets.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.compute.v1.SecurityPoliciesListPreconfiguredExpressionSetsResponse |
<optional> |
SecurityPoliciesListPreconfiguredExpressionSetsResponse |
PatchCallback(error, responseopt)
Callback as used by patch.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.compute.v1.Operation |
<optional> |
Operation |
PatchRuleCallback(error, responseopt)
Callback as used by patchRule.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.compute.v1.Operation |
<optional> |
Operation |
RemoveRuleCallback(error, responseopt)
Callback as used by removeRule.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.compute.v1.Operation |
<optional> |
Operation |
SetLabelsCallback(error, responseopt)
Callback as used by setLabels.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.compute.v1.Operation |
<optional> |
Operation |