Represents a SecurityPolicies
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.SecurityPoliciesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new SecurityPolicies service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
addRule(request, callback)
public addRule(request: google.cloud.compute.v1.IAddRuleSecurityPolicyRequest, callback: google.cloud.compute.v1.SecurityPolicies.AddRuleCallback): void;
Calls AddRule.
Parameters | |
---|---|
Name | Description |
request |
IAddRuleSecurityPolicyRequest
AddRuleSecurityPolicyRequest message or plain object |
callback |
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.IAddRuleSecurityPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls AddRule.
Parameter | |
---|---|
Name | Description |
request |
IAddRuleSecurityPolicyRequest
AddRuleSecurityPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
aggregatedList(request, callback)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest, callback: google.cloud.compute.v1.SecurityPolicies.AggregatedListCallback): void;
Calls AggregatedList.
Parameters | |
---|---|
Name | Description |
request |
IAggregatedListSecurityPoliciesRequest
AggregatedListSecurityPoliciesRequest message or plain object |
callback |
AggregatedListCallback
Node-style callback called with the error, if any, and SecurityPoliciesAggregatedList |
Returns | |
---|---|
Type | Description |
void |
aggregatedList(request)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest): Promise<google.cloud.compute.v1.SecurityPoliciesAggregatedList>;
Calls AggregatedList.
Parameter | |
---|---|
Name | Description |
request |
IAggregatedListSecurityPoliciesRequest
AggregatedListSecurityPoliciesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.SecurityPoliciesAggregatedList> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SecurityPolicies;
Creates new SecurityPolicies 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 |
SecurityPolicies |
RPC service. Useful where requests and/or responses are streamed. |
delete(request, callback)
public delete(request: google.cloud.compute.v1.IDeleteSecurityPolicyRequest, callback: google.cloud.compute.v1.SecurityPolicies.DeleteCallback): void;
Calls Delete.
Parameters | |
---|---|
Name | Description |
request |
IDeleteSecurityPolicyRequest
DeleteSecurityPolicyRequest message or plain object |
callback |
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.IDeleteSecurityPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
IDeleteSecurityPolicyRequest
DeleteSecurityPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetSecurityPolicyRequest, callback: google.cloud.compute.v1.SecurityPolicies.GetCallback): void;
Calls Get.
Parameters | |
---|---|
Name | Description |
request |
IGetSecurityPolicyRequest
GetSecurityPolicyRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and SecurityPolicy |
Returns | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetSecurityPolicyRequest): Promise<google.cloud.compute.v1.SecurityPolicy>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetSecurityPolicyRequest
GetSecurityPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.SecurityPolicy> |
Promise |
getRule(request, callback)
public getRule(request: google.cloud.compute.v1.IGetRuleSecurityPolicyRequest, callback: google.cloud.compute.v1.SecurityPolicies.GetRuleCallback): void;
Calls GetRule.
Parameters | |
---|---|
Name | Description |
request |
IGetRuleSecurityPolicyRequest
GetRuleSecurityPolicyRequest message or plain object |
callback |
GetRuleCallback
Node-style callback called with the error, if any, and SecurityPolicyRule |
Returns | |
---|---|
Type | Description |
void |
getRule(request)
public getRule(request: google.cloud.compute.v1.IGetRuleSecurityPolicyRequest): Promise<google.cloud.compute.v1.SecurityPolicyRule>;
Calls GetRule.
Parameter | |
---|---|
Name | Description |
request |
IGetRuleSecurityPolicyRequest
GetRuleSecurityPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.SecurityPolicyRule> |
Promise |
insert(request, callback)
public insert(request: google.cloud.compute.v1.IInsertSecurityPolicyRequest, callback: google.cloud.compute.v1.SecurityPolicies.InsertCallback): void;
Calls Insert.
Parameters | |
---|---|
Name | Description |
request |
IInsertSecurityPolicyRequest
InsertSecurityPolicyRequest message or plain object |
callback |
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.IInsertSecurityPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
IInsertSecurityPolicyRequest
InsertSecurityPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListSecurityPoliciesRequest, callback: google.cloud.compute.v1.SecurityPolicies.ListCallback): void;
Calls List.
Parameters | |
---|---|
Name | Description |
request |
IListSecurityPoliciesRequest
ListSecurityPoliciesRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and SecurityPolicyList |
Returns | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListSecurityPoliciesRequest): Promise<google.cloud.compute.v1.SecurityPolicyList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListSecurityPoliciesRequest
ListSecurityPoliciesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.SecurityPolicyList> |
Promise |
listPreconfiguredExpressionSets(request, callback)
public listPreconfiguredExpressionSets(request: google.cloud.compute.v1.IListPreconfiguredExpressionSetsSecurityPoliciesRequest, callback: google.cloud.compute.v1.SecurityPolicies.ListPreconfiguredExpressionSetsCallback): void;
Calls ListPreconfiguredExpressionSets.
Parameters | |
---|---|
Name | Description |
request |
IListPreconfiguredExpressionSetsSecurityPoliciesRequest
ListPreconfiguredExpressionSetsSecurityPoliciesRequest message or plain object |
callback |
ListPreconfiguredExpressionSetsCallback
Node-style callback called with the error, if any, and SecurityPoliciesListPreconfiguredExpressionSetsResponse |
Returns | |
---|---|
Type | Description |
void |
listPreconfiguredExpressionSets(request)
public listPreconfiguredExpressionSets(request: google.cloud.compute.v1.IListPreconfiguredExpressionSetsSecurityPoliciesRequest): Promise<google.cloud.compute.v1.SecurityPoliciesListPreconfiguredExpressionSetsResponse>;
Calls ListPreconfiguredExpressionSets.
Parameter | |
---|---|
Name | Description |
request |
IListPreconfiguredExpressionSetsSecurityPoliciesRequest
ListPreconfiguredExpressionSetsSecurityPoliciesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.SecurityPoliciesListPreconfiguredExpressionSetsResponse> |
Promise |
patch(request, callback)
public patch(request: google.cloud.compute.v1.IPatchSecurityPolicyRequest, callback: google.cloud.compute.v1.SecurityPolicies.PatchCallback): void;
Calls Patch.
Parameters | |
---|---|
Name | Description |
request |
IPatchSecurityPolicyRequest
PatchSecurityPolicyRequest message or plain object |
callback |
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.IPatchSecurityPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Patch.
Parameter | |
---|---|
Name | Description |
request |
IPatchSecurityPolicyRequest
PatchSecurityPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
patchRule(request, callback)
public patchRule(request: google.cloud.compute.v1.IPatchRuleSecurityPolicyRequest, callback: google.cloud.compute.v1.SecurityPolicies.PatchRuleCallback): void;
Calls PatchRule.
Parameters | |
---|---|
Name | Description |
request |
IPatchRuleSecurityPolicyRequest
PatchRuleSecurityPolicyRequest message or plain object |
callback |
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.IPatchRuleSecurityPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls PatchRule.
Parameter | |
---|---|
Name | Description |
request |
IPatchRuleSecurityPolicyRequest
PatchRuleSecurityPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
removeRule(request, callback)
public removeRule(request: google.cloud.compute.v1.IRemoveRuleSecurityPolicyRequest, callback: google.cloud.compute.v1.SecurityPolicies.RemoveRuleCallback): void;
Calls RemoveRule.
Parameters | |
---|---|
Name | Description |
request |
IRemoveRuleSecurityPolicyRequest
RemoveRuleSecurityPolicyRequest message or plain object |
callback |
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.IRemoveRuleSecurityPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls RemoveRule.
Parameter | |
---|---|
Name | Description |
request |
IRemoveRuleSecurityPolicyRequest
RemoveRuleSecurityPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
setLabels(request, callback)
public setLabels(request: google.cloud.compute.v1.ISetLabelsSecurityPolicyRequest, callback: google.cloud.compute.v1.SecurityPolicies.SetLabelsCallback): void;
Calls SetLabels.
Parameters | |
---|---|
Name | Description |
request |
ISetLabelsSecurityPolicyRequest
SetLabelsSecurityPolicyRequest message or plain object |
callback |
SetLabelsCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
setLabels(request)
public setLabels(request: google.cloud.compute.v1.ISetLabelsSecurityPolicyRequest): Promise<google.cloud.compute.v1.Operation>;
Calls SetLabels.
Parameter | |
---|---|
Name | Description |
request |
ISetLabelsSecurityPolicyRequest
SetLabelsSecurityPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |