Package com.google.iam.v2beta
Interface PoliciesGrpc.AsyncService
- All Known Implementing Classes:
PoliciesGrpc.PoliciesImplBase
- Enclosing class:
- PoliciesGrpc
public static interface PoliciesGrpc.AsyncService
An interface for managing Identity and Access Management (IAM) policies.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcreatePolicy(CreatePolicyRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Creates a policy.default voiddeletePolicy(DeletePolicyRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Deletes a policy.default voidgetPolicy(GetPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver) Gets a policy.default voidlistPolicies(ListPoliciesRequest request, io.grpc.stub.StreamObserver<ListPoliciesResponse> responseObserver) Retrieves the policies of the specified kind that are attached to a resource.default voidupdatePolicy(UpdatePolicyRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Updates the specified policy.
-
Method Details
-
listPolicies
default void listPolicies(ListPoliciesRequest request, io.grpc.stub.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.
-
getPolicy
default void getPolicy(GetPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver) Gets a policy.
-
createPolicy
default void createPolicy(CreatePolicyRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Creates a policy.
-
updatePolicy
default void updatePolicy(UpdatePolicyRequest request, io.grpc.stub.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: 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy. 2. Modify the policy as needed. 3. Use `UpdatePolicy` to write the updated policy. This pattern helps prevent conflicts between concurrent updates.
-
deletePolicy
default void deletePolicy(DeletePolicyRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Deletes a policy. This action is permanent.
-