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
Policies
RPC service. Useful where requests and/or responses are streamed.
createPolicy(request, callback)
public
createPolicy
(
request
:
google
.
iam
.
v2
.
ICreatePolicyRequest
,
callback
:
google
.
iam
.
v2
.
Policies
.
CreatePolicyCallback
)
:
void
;
Calls CreatePolicy.
request
ICreatePolicyRequest
CreatePolicyRequest message or plain object
callback
google.iam.v2.Policies.CreatePolicyCallback
Node-style callback called with the error, if any, and Operation
void
createPolicy(request)
public
createPolicy
(
request
:
google
.
iam
.
v2
.
ICreatePolicyRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls CreatePolicy.
request
ICreatePolicyRequest
CreatePolicyRequest message or plain object
Promise
< google.longrunning.Operation
>
Promise
deletePolicy(request, callback)
public
deletePolicy
(
request
:
google
.
iam
.
v2
.
IDeletePolicyRequest
,
callback
:
google
.
iam
.
v2
.
Policies
.
DeletePolicyCallback
)
:
void
;
Calls DeletePolicy.
request
IDeletePolicyRequest
DeletePolicyRequest message or plain object
callback
google.iam.v2.Policies.DeletePolicyCallback
Node-style callback called with the error, if any, and Operation
void
deletePolicy(request)
public
deletePolicy
(
request
:
google
.
iam
.
v2
.
IDeletePolicyRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls DeletePolicy.
request
IDeletePolicyRequest
DeletePolicyRequest message or plain object
Promise
< google.longrunning.Operation
>
Promise
getPolicy(request, callback)
public
getPolicy
(
request
:
google
.
iam
.
v2
.
IGetPolicyRequest
,
callback
:
google
.
iam
.
v2
.
Policies
.
GetPolicyCallback
)
:
void
;
Calls GetPolicy.
request
google.iam.v2.IGetPolicyRequest
GetPolicyRequest message or plain object
callback
google.iam.v2.Policies.GetPolicyCallback
Node-style callback called with the error, if any, and Policy
void
getPolicy(request)
public
getPolicy
(
request
:
google
.
iam
.
v2
.
IGetPolicyRequest
)
:
Promise<google
.
iam
.
v2
.
Policy
> ;
Calls GetPolicy.
request
google.iam.v2.IGetPolicyRequest
GetPolicyRequest message or plain object
Promise
< google.iam.v2.Policy
>
Promise
listPolicies(request, callback)
public
listPolicies
(
request
:
google
.
iam
.
v2
.
IListPoliciesRequest
,
callback
:
google
.
iam
.
v2
.
Policies
.
ListPoliciesCallback
)
:
void
;
Calls ListPolicies.
request
google.iam.v2.IListPoliciesRequest
ListPoliciesRequest message or plain object
callback
google.iam.v2.Policies.ListPoliciesCallback
Node-style callback called with the error, if any, and ListPoliciesResponse
void
listPolicies(request)
public
listPolicies
(
request
:
google
.
iam
.
v2
.
IListPoliciesRequest
)
:
Promise<google
.
iam
.
v2
.
ListPoliciesResponse
> ;
Calls ListPolicies.
request
google.iam.v2.IListPoliciesRequest
ListPoliciesRequest message or plain object
Promise
< google.iam.v2.ListPoliciesResponse
>
Promise
updatePolicy(request, callback)
public
updatePolicy
(
request
:
google
.
iam
.
v2
.
IUpdatePolicyRequest
,
callback
:
google
.
iam
.
v2
.
Policies
.
UpdatePolicyCallback
)
:
void
;
Calls UpdatePolicy.
request
google.iam.v2.IUpdatePolicyRequest
UpdatePolicyRequest message or plain object
callback
google.iam.v2.Policies.UpdatePolicyCallback
Node-style callback called with the error, if any, and Operation
void
updatePolicy(request)
public
updatePolicy
(
request
:
google
.
iam
.
v2
.
IUpdatePolicyRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls UpdatePolicy.
request
google.iam.v2.IUpdatePolicyRequest
UpdatePolicyRequest message or plain object
Promise
< google.longrunning.Operation
>
Promise

