- 1.53.0 (latest)
- 1.52.0
- 1.51.0
- 1.49.1
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.1
- 1.44.0
- 1.43.0
- 1.41.0
- 1.40.1
- 1.39.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.1
- 1.33.0
- 1.32.1
- 1.31.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.1
- 1.19.0
- 1.18.1
- 1.17.1
- 1.16.1
- 1.10.0
- 1.9.3
- 1.8.0
- 1.7.0
- 1.6.23
- 1.5.1
- 1.4.1
- 1.3.4
- 1.2.12
public static interface PoliciesGrpc.AsyncService
An interface for managing Identity and Access Management (IAM) policies.
Methods
createPolicy(CreatePolicyRequest request, StreamObserver<Operation> responseObserver)
public default void createPolicy(CreatePolicyRequest request, StreamObserver<Operation> responseObserver)
Creates a policy.
Parameters | |
---|---|
Name | Description |
request |
CreatePolicyRequest |
responseObserver |
io.grpc.stub.StreamObserver<Operation> |
deletePolicy(DeletePolicyRequest request, StreamObserver<Operation> responseObserver)
public default void deletePolicy(DeletePolicyRequest request, StreamObserver<Operation> responseObserver)
Deletes a policy. This action is permanent.
Parameters | |
---|---|
Name | Description |
request |
DeletePolicyRequest |
responseObserver |
io.grpc.stub.StreamObserver<Operation> |
getPolicy(GetPolicyRequest request, StreamObserver<Policy> responseObserver)
public default void getPolicy(GetPolicyRequest request, StreamObserver<Policy> responseObserver)
Gets a policy.
Parameters | |
---|---|
Name | Description |
request |
GetPolicyRequest |
responseObserver |
io.grpc.stub.StreamObserver<Policy> |
listPolicies(ListPoliciesRequest request, StreamObserver<ListPoliciesResponse> responseObserver)
public default void listPolicies(ListPoliciesRequest request, StreamObserver<ListPoliciesResponse> responseObserver)
Retrieves the policies of the specified kind that are attached to a resource. The response lists only policy metadata. In particular, policy rules are omitted.
Parameters | |
---|---|
Name | Description |
request |
ListPoliciesRequest |
responseObserver |
io.grpc.stub.StreamObserver<ListPoliciesResponse> |
updatePolicy(UpdatePolicyRequest request, StreamObserver<Operation> responseObserver)
public default void updatePolicy(UpdatePolicyRequest request, StreamObserver<Operation> responseObserver)
Updates the specified policy. You can update only the rules and the display name for the policy. To update a policy, you should use a read-modify-write loop:
- Use GetPolicy to read the current version of the policy.
- Modify the policy as needed.
- Use
UpdatePolicy
to write the updated policy. This pattern helps prevent conflicts between concurrent updates.
Parameters | |
---|---|
Name | Description |
request |
UpdatePolicyRequest |
responseObserver |
io.grpc.stub.StreamObserver<Operation> |