Class protos.google.cloud.compute.v1.SecurityPolicies

Represents a SecurityPolicies

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new SecurityPolicies service.

Parameters
NameDescription
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
NameDescription
request 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
TypeDescription
void

addRule(request)

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

Calls AddRule.

Parameter
NameDescription
request IAddRuleSecurityPolicyRequest

AddRuleSecurityPolicyRequest 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): SecurityPolicies;

Creates new SecurityPolicies 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
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
NameDescription
request 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
TypeDescription
void

delete(request)

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

Calls Delete.

Parameter
NameDescription
request IDeleteSecurityPolicyRequest

DeleteSecurityPolicyRequest message or plain object

Returns
TypeDescription
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
NameDescription
request 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
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetSecurityPolicyRequest): Promise<google.cloud.compute.v1.SecurityPolicy>;

Calls Get.

Parameter
NameDescription
request IGetSecurityPolicyRequest

GetSecurityPolicyRequest message or plain object

Returns
TypeDescription
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
NameDescription
request 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
TypeDescription
void

getRule(request)

public getRule(request: google.cloud.compute.v1.IGetRuleSecurityPolicyRequest): Promise<google.cloud.compute.v1.SecurityPolicyRule>;

Calls GetRule.

Parameter
NameDescription
request IGetRuleSecurityPolicyRequest

GetRuleSecurityPolicyRequest message or plain object

Returns
TypeDescription
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
NameDescription
request 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
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request IInsertSecurityPolicyRequest

InsertSecurityPolicyRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListSecurityPoliciesRequest): Promise<google.cloud.compute.v1.SecurityPolicyList>;

Calls List.

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

ListSecurityPoliciesRequest message or plain object

Returns
TypeDescription
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
NameDescription
request 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
TypeDescription
void

listPreconfiguredExpressionSets(request)

public listPreconfiguredExpressionSets(request: google.cloud.compute.v1.IListPreconfiguredExpressionSetsSecurityPoliciesRequest): Promise<google.cloud.compute.v1.SecurityPoliciesListPreconfiguredExpressionSetsResponse>;

Calls ListPreconfiguredExpressionSets.

Parameter
NameDescription
request IListPreconfiguredExpressionSetsSecurityPoliciesRequest

ListPreconfiguredExpressionSetsSecurityPoliciesRequest message or plain object

Returns
TypeDescription
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
NameDescription
request 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
TypeDescription
void

patch(request)

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

Calls Patch.

Parameter
NameDescription
request IPatchSecurityPolicyRequest

PatchSecurityPolicyRequest message or plain object

Returns
TypeDescription
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
NameDescription
request 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
TypeDescription
void

patchRule(request)

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

Calls PatchRule.

Parameter
NameDescription
request IPatchRuleSecurityPolicyRequest

PatchRuleSecurityPolicyRequest message or plain object

Returns
TypeDescription
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
NameDescription
request 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
TypeDescription
void

removeRule(request)

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

Calls RemoveRule.

Parameter
NameDescription
request IRemoveRuleSecurityPolicyRequest

RemoveRuleSecurityPolicyRequest message or plain object

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

Promise