Class protos.google.cloud.compute.v1.RegionSecurityPolicies (3.5.1)

Represents a RegionSecurityPolicies

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new RegionSecurityPolicies service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

delete(request, callback)

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

Calls Delete.

Parameters
NameDescription
request IDeleteRegionSecurityPolicyRequest

DeleteRegionSecurityPolicyRequest message or plain object

callback google.cloud.compute.v1.RegionSecurityPolicies.DeleteCallback

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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

Parameter
NameDescription
request IDeleteRegionSecurityPolicyRequest

DeleteRegionSecurityPolicyRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

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

GetRegionSecurityPolicyRequest message or plain object

callback google.cloud.compute.v1.RegionSecurityPolicies.GetCallback

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

Returns
TypeDescription
void

get(request)

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

Calls Get.

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

GetRegionSecurityPolicyRequest message or plain object

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

Promise

insert(request, callback)

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

Calls Insert.

Parameters
NameDescription
request IInsertRegionSecurityPolicyRequest

InsertRegionSecurityPolicyRequest message or plain object

callback google.cloud.compute.v1.RegionSecurityPolicies.InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request IInsertRegionSecurityPolicyRequest

InsertRegionSecurityPolicyRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListRegionSecurityPoliciesRequest

ListRegionSecurityPoliciesRequest message or plain object

callback google.cloud.compute.v1.RegionSecurityPolicies.ListCallback

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

Returns
TypeDescription
void

list(request)

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

Calls List.

Parameter
NameDescription
request IListRegionSecurityPoliciesRequest

ListRegionSecurityPoliciesRequest message or plain object

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

Promise

patch(request, callback)

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

Calls Patch.

Parameters
NameDescription
request IPatchRegionSecurityPolicyRequest

PatchRegionSecurityPolicyRequest message or plain object

callback google.cloud.compute.v1.RegionSecurityPolicies.PatchCallback

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

Returns
TypeDescription
void

patch(request)

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

Calls Patch.

Parameter
NameDescription
request IPatchRegionSecurityPolicyRequest

PatchRegionSecurityPolicyRequest message or plain object

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

Promise