Class protos.google.cloud.compute.v1.ResourcePolicies (4.1.0)

Represents a ResourcePolicies

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ResourcePolicies service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

aggregatedList(request, callback)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest, callback: google.cloud.compute.v1.ResourcePolicies.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
NameDescription
request IAggregatedListResourcePoliciesRequest

AggregatedListResourcePoliciesRequest message or plain object

callback AggregatedListCallback

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

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest): Promise<google.cloud.compute.v1.ResourcePolicyAggregatedList>;

Calls AggregatedList.

Parameter
NameDescription
request IAggregatedListResourcePoliciesRequest

AggregatedListResourcePoliciesRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

delete(request, callback)

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

Calls Delete.

Parameters
NameDescription
request IDeleteResourcePolicyRequest

DeleteResourcePolicyRequest message or plain object

callback DeleteCallback

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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

Parameter
NameDescription
request IDeleteResourcePolicyRequest

DeleteResourcePolicyRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request IGetResourcePolicyRequest

GetResourcePolicyRequest message or plain object

callback GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetResourcePolicyRequest): Promise<google.cloud.compute.v1.ResourcePolicy>;

Calls Get.

Parameter
NameDescription
request IGetResourcePolicyRequest

GetResourcePolicyRequest message or plain object

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

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyResourcePolicyRequest, callback: google.cloud.compute.v1.ResourcePolicies.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request IGetIamPolicyResourcePolicyRequest

GetIamPolicyResourcePolicyRequest message or plain object

callback GetIamPolicyCallback

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

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyResourcePolicyRequest): Promise<google.cloud.compute.v1.Policy>;

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyResourcePolicyRequest

GetIamPolicyResourcePolicyRequest message or plain object

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

Promise

insert(request, callback)

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

Calls Insert.

Parameters
NameDescription
request IInsertResourcePolicyRequest

InsertResourcePolicyRequest message or plain object

callback InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request IInsertResourcePolicyRequest

InsertResourcePolicyRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListResourcePoliciesRequest

ListResourcePoliciesRequest message or plain object

callback ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListResourcePoliciesRequest): Promise<google.cloud.compute.v1.ResourcePolicyList>;

Calls List.

Parameter
NameDescription
request IListResourcePoliciesRequest

ListResourcePoliciesRequest message or plain object

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

Promise

patch(request, callback)

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

Calls Patch.

Parameters
NameDescription
request IPatchResourcePolicyRequest

PatchResourcePolicyRequest message or plain object

callback PatchCallback

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

Returns
TypeDescription
void

patch(request)

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

Calls Patch.

Parameter
NameDescription
request IPatchResourcePolicyRequest

PatchResourcePolicyRequest message or plain object

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

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyResourcePolicyRequest, callback: google.cloud.compute.v1.ResourcePolicies.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request ISetIamPolicyResourcePolicyRequest

SetIamPolicyResourcePolicyRequest message or plain object

callback SetIamPolicyCallback

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

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyResourcePolicyRequest): Promise<google.cloud.compute.v1.Policy>;

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyResourcePolicyRequest

SetIamPolicyResourcePolicyRequest message or plain object

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

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsResourcePolicyRequest, callback: google.cloud.compute.v1.ResourcePolicies.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request ITestIamPermissionsResourcePolicyRequest

TestIamPermissionsResourcePolicyRequest message or plain object

callback TestIamPermissionsCallback

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

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsResourcePolicyRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request ITestIamPermissionsResourcePolicyRequest

TestIamPermissionsResourcePolicyRequest message or plain object

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

Promise