Class protos.google.iam.v1.IAMPolicy

Represents a IAMPolicy

Inheritance

$protobuf.rpc.Service > protos.google.iam.v1.IAMPolicy

Package

@google-cloud/spanner!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new IAMPolicy service.

Parameters
TypeNameDescription
$protobuf.RPCImplrpcImpl

RPC implementation

booleanrequestDelimited

Whether requests are length-delimited

booleanresponseDelimited

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new IAMPolicy service using the specified rpc implementation.

Parameters
TypeNameDescription
$protobuf.RPCImplrpcImpl

RPC implementation

booleanrequestDelimited

Whether requests are length-delimited

booleanresponseDelimited

Whether responses are length-delimited

Returns
TypeDescription
IAMPolicy

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

getIamPolicy(request, callback)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.iam.v1.IAMPolicy.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
TypeNameDescription
google.iam.v1.IGetIamPolicyRequestrequest

GetIamPolicyRequest message or plain object

google.iam.v1.IAMPolicy.GetIamPolicyCallbackcallback

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

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls GetIamPolicy.

Parameter
TypeNameDescription
google.iam.v1.IGetIamPolicyRequestrequest

GetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.iam.v1.IAMPolicy.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
TypeNameDescription
google.iam.v1.ISetIamPolicyRequestrequest

SetIamPolicyRequest message or plain object

google.iam.v1.IAMPolicy.SetIamPolicyCallbackcallback

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

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls SetIamPolicy.

Parameter
TypeNameDescription
google.iam.v1.ISetIamPolicyRequestrequest

SetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.iam.v1.IAMPolicy.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
TypeNameDescription
google.iam.v1.ITestIamPermissionsRequestrequest

TestIamPermissionsRequest message or plain object

google.iam.v1.IAMPolicy.TestIamPermissionsCallbackcallback

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

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;

Calls TestIamPermissions.

Parameter
TypeNameDescription
google.iam.v1.ITestIamPermissionsRequestrequest

TestIamPermissionsRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.TestIamPermissionsResponse>

Promise