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.
| Name | Description |
| 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.
| Name | Description |
| rpcImpl | $protobuf. RPCImpl
RPC implementation |
| requestDelimited | boolean
Whether requests are length-delimited |
| responseDelimited | boolean
Whether responses are length-delimited |
| Type | Description |
| 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.
| Name | Description |
| request | ICreatePolicyRequest
CreatePolicyRequest message or plain object |
| callback | google.iam.v2.Policies.CreatePolicyCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
|---|---|
| void |
createPolicy(request)
public
createPolicy
(
request
:
google
.
iam
.
v2
.
ICreatePolicyRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls CreatePolicy.
| Name | Description |
| request | ICreatePolicyRequest
CreatePolicyRequest message or plain object |
| Type | Description |
|---|---|
| Promise < google.longrunning.Operation > | Promise |
deletePolicy(request, callback)
public
deletePolicy
(
request
:
google
.
iam
.
v2
.
IDeletePolicyRequest
,
callback
:
google
.
iam
.
v2
.
Policies
.
DeletePolicyCallback
)
:
void
;
Calls DeletePolicy.
| Name | Description |
| request | IDeletePolicyRequest
DeletePolicyRequest message or plain object |
| callback | google.iam.v2.Policies.DeletePolicyCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
|---|---|
| void |
deletePolicy(request)
public
deletePolicy
(
request
:
google
.
iam
.
v2
.
IDeletePolicyRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls DeletePolicy.
| Name | Description |
| request | IDeletePolicyRequest
DeletePolicyRequest message or plain object |
| Type | Description |
|---|---|
| Promise < google.longrunning.Operation > | Promise |
getPolicy(request, callback)
public
getPolicy
(
request
:
google
.
iam
.
v2
.
IGetPolicyRequest
,
callback
:
google
.
iam
.
v2
.
Policies
.
GetPolicyCallback
)
:
void
;
Calls GetPolicy.
| Name | Description |
| 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 |
| Type | Description |
|---|---|
| void |
getPolicy(request)
public
getPolicy
(
request
:
google
.
iam
.
v2
.
IGetPolicyRequest
)
:
Promise<google
.
iam
.
v2
.
Policy
> ;
Calls GetPolicy.
| Name | Description |
| request | google.iam.v2.IGetPolicyRequest
GetPolicyRequest message or plain object |
| Type | Description |
|---|---|
| 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.
| Name | Description |
| request | IListPoliciesRequest
ListPoliciesRequest message or plain object |
| callback | google.iam.v2.Policies.ListPoliciesCallback
Node-style callback called with the error, if any, and ListPoliciesResponse |
| Type | Description |
|---|---|
| void |
listPolicies(request)
public
listPolicies
(
request
:
google
.
iam
.
v2
.
IListPoliciesRequest
)
:
Promise<google
.
iam
.
v2
.
ListPoliciesResponse
> ;
Calls ListPolicies.
| Name | Description |
| request | IListPoliciesRequest
ListPoliciesRequest message or plain object |
| Type | Description |
|---|---|
| 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.
| Name | Description |
| request | IUpdatePolicyRequest
UpdatePolicyRequest message or plain object |
| callback | google.iam.v2.Policies.UpdatePolicyCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
|---|---|
| void |
updatePolicy(request)
public
updatePolicy
(
request
:
google
.
iam
.
v2
.
IUpdatePolicyRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls UpdatePolicy.
| Name | Description |
| request | IUpdatePolicyRequest
UpdatePolicyRequest message or plain object |
| Type | Description |
|---|---|
| Promise < google.longrunning.Operation > | Promise |

