Represents a Policies
Inheritance
$protobuf.rpc.Service > protos.google.iam.v2.PoliciesPackage
@google-cloud/iamConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor
(
rpcImpl
:
$protobuf
.
RPCImpl
,
requestDelimited
?:
boolean
,
responseDelimited
?:
boolean
);
Constructs a new Policies 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
)
:
Policies
;
Creates new Policies 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
createPolicy(request, callback)
public
createPolicy
(
request
:
google
.
iam
.
v2
.
ICreatePolicyRequest
,
callback
:
google
.
iam
.
v2
.
Policies
.
CreatePolicyCallback
)
:
void
;
Calls CreatePolicy.
request
callback
void
createPolicy(request)
public
createPolicy
(
request
:
google
.
iam
.
v2
.
ICreatePolicyRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls CreatePolicy.
deletePolicy(request, callback)
public
deletePolicy
(
request
:
google
.
iam
.
v2
.
IDeletePolicyRequest
,
callback
:
google
.
iam
.
v2
.
Policies
.
DeletePolicyCallback
)
:
void
;
Calls DeletePolicy.
request
callback
void
deletePolicy(request)
public
deletePolicy
(
request
:
google
.
iam
.
v2
.
IDeletePolicyRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls DeletePolicy.
getPolicy(request, callback)
public
getPolicy
(
request
:
google
.
iam
.
v2
.
IGetPolicyRequest
,
callback
:
google
.
iam
.
v2
.
Policies
.
GetPolicyCallback
)
:
void
;
Calls GetPolicy.
request
callback
void
getPolicy(request)
public
getPolicy
(
request
:
google
.
iam
.
v2
.
IGetPolicyRequest
)
:
Promise<google
.
iam
.
v2
.
Policy
> ;
Calls GetPolicy.
listPolicies(request, callback)
public
listPolicies
(
request
:
google
.
iam
.
v2
.
IListPoliciesRequest
,
callback
:
google
.
iam
.
v2
.
Policies
.
ListPoliciesCallback
)
:
void
;
Calls ListPolicies.
request
callback
void
listPolicies(request)
public
listPolicies
(
request
:
google
.
iam
.
v2
.
IListPoliciesRequest
)
:
Promise<google
.
iam
.
v2
.
ListPoliciesResponse
> ;
Calls ListPolicies.
updatePolicy(request, callback)
public
updatePolicy
(
request
:
google
.
iam
.
v2
.
IUpdatePolicyRequest
,
callback
:
google
.
iam
.
v2
.
Policies
.
UpdatePolicyCallback
)
:
void
;
Calls UpdatePolicy.
request
callback
void
updatePolicy(request)
public
updatePolicy
(
request
:
google
.
iam
.
v2
.
IUpdatePolicyRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls UpdatePolicy.

