public abstract static class PoliciesGrpc.PoliciesImplBase implements BindableService
An interface for managing Identity and Access Management (IAM) policies.
Implements
io.grpc.BindableServiceConstructors
PoliciesImplBase()
public PoliciesImplBase()
Methods
bindService()
public final ServerServiceDefinition bindService()
Type | Description |
io.grpc.ServerServiceDefinition |
createPolicy(CreatePolicyRequest request, StreamObserver<Operation> responseObserver)
public void createPolicy(CreatePolicyRequest request, StreamObserver<Operation> responseObserver)
Creates a policy.
Name | Description |
request | CreatePolicyRequest |
responseObserver | io.grpc.stub.StreamObserver<Operation> |
deletePolicy(DeletePolicyRequest request, StreamObserver<Operation> responseObserver)
public void deletePolicy(DeletePolicyRequest request, StreamObserver<Operation> responseObserver)
Deletes a policy. This action is permanent.
Name | Description |
request | DeletePolicyRequest |
responseObserver | io.grpc.stub.StreamObserver<Operation> |
getPolicy(GetPolicyRequest request, StreamObserver<Policy> responseObserver)
public void getPolicy(GetPolicyRequest request, StreamObserver<Policy> responseObserver)
Gets a policy.
Name | Description |
request | GetPolicyRequest |
responseObserver | io.grpc.stub.StreamObserver<Policy> |
listPolicies(ListPoliciesRequest request, StreamObserver<ListPoliciesResponse> responseObserver)
public 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.
Name | Description |
request | ListPoliciesRequest |
responseObserver | io.grpc.stub.StreamObserver<ListPoliciesResponse> |
updatePolicy(UpdatePolicyRequest request, StreamObserver<Operation> responseObserver)
public 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.
Name | Description |
request | UpdatePolicyRequest |
responseObserver | io.grpc.stub.StreamObserver<Operation> |