Represents a IAMPolicy
Inheritance
$protobuf. rpc.Service > protos.google.iam.v1.IAMPolicyPackage
@google-cloud/runConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor
(
rpcImpl
:
$protobuf
.
RPCImpl
,
requestDelimited
?:
boolean
,
responseDelimited
?:
boolean
);
Constructs a new IAMPolicy service.
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
)
:
IAMPolicy
;
Creates new IAMPolicy service using the specified rpc implementation.
rpcImpl
$protobuf. RPCImpl
RPC implementation
requestDelimited
boolean
Whether requests are length-delimited
responseDelimited
boolean
Whether responses are length-delimited
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.
request
google.iam.v1.IGetIamPolicyRequest
GetIamPolicyRequest message or plain object
callback
google.iam.v1.IAMPolicy.GetIamPolicyCallback
Node-style callback called with the error, if any, and Policy
void
getIamPolicy(request)
public
getIamPolicy
(
request
:
google
.
iam
.
v1
.
IGetIamPolicyRequest
)
:
Promise<google
.
iam
.
v1
.
Policy
> ;
Calls GetIamPolicy.
request
google.iam.v1.IGetIamPolicyRequest
GetIamPolicyRequest message or plain object
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.
request
google.iam.v1.ISetIamPolicyRequest
SetIamPolicyRequest message or plain object
callback
google.iam.v1.IAMPolicy.SetIamPolicyCallback
Node-style callback called with the error, if any, and Policy
void
setIamPolicy(request)
public
setIamPolicy
(
request
:
google
.
iam
.
v1
.
ISetIamPolicyRequest
)
:
Promise<google
.
iam
.
v1
.
Policy
> ;
Calls SetIamPolicy.
request
google.iam.v1.ISetIamPolicyRequest
SetIamPolicyRequest message or plain object
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.
request
google.iam.v1.ITestIamPermissionsRequest
TestIamPermissionsRequest message or plain object
callback
google.iam.v1.IAMPolicy.TestIamPermissionsCallback
Node-style callback called with the error, if any, and TestIamPermissionsResponse
void
testIamPermissions(request)
public
testIamPermissions
(
request
:
google
.
iam
.
v1
.
ITestIamPermissionsRequest
)
:
Promise<google
.
iam
.
v1
.
TestIamPermissionsResponse
> ;
Calls TestIamPermissions.
request
google.iam.v1.ITestIamPermissionsRequest
TestIamPermissionsRequest message or plain object
Promise
< google.iam.v1.TestIamPermissionsResponse
>
Promise