Package com.google.iam.v3
Class PolicyBindingsGrpc.PolicyBindingsBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<PolicyBindingsGrpc.PolicyBindingsBlockingV2Stub>
com.google.iam.v3.PolicyBindingsGrpc.PolicyBindingsBlockingV2Stub
- Enclosing class:
- PolicyBindingsGrpc
public static final class PolicyBindingsGrpc.PolicyBindingsBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<PolicyBindingsGrpc.PolicyBindingsBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service PolicyBindings.
An interface for managing Identity and Access Management (IAM) policy bindings.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Creates a policy binding and returns a long-running operation.Deletes a policy binding and returns a long-running operation.getPolicyBinding(GetPolicyBindingRequest request) Gets a policy binding.Lists policy bindings.Search policy bindings by target.Updates a policy binding and returns a long-running operation.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected PolicyBindingsGrpc.PolicyBindingsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<PolicyBindingsGrpc.PolicyBindingsBlockingV2Stub>
-
createPolicyBinding
public Operation createPolicyBinding(CreatePolicyBindingRequest request) throws io.grpc.StatusException Creates a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. Once the binding is created, the policy is applied to the target.
- Throws:
io.grpc.StatusException
-
getPolicyBinding
public PolicyBinding getPolicyBinding(GetPolicyBindingRequest request) throws io.grpc.StatusException Gets a policy binding.
- Throws:
io.grpc.StatusException
-
updatePolicyBinding
public Operation updatePolicyBinding(UpdatePolicyBindingRequest request) throws io.grpc.StatusException Updates a policy binding and returns a long-running operation. Callers will need the IAM permissions on the policy and target in the binding to update, and the IAM permission to remove the existing policy from the binding. Target is immutable and cannot be updated. Once the binding is updated, the new policy is applied to the target.
- Throws:
io.grpc.StatusException
-
deletePolicyBinding
public Operation deletePolicyBinding(DeletePolicyBindingRequest request) throws io.grpc.StatusException Deletes a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. Once the binding is deleted, the policy no longer applies to the target.
- Throws:
io.grpc.StatusException
-
listPolicyBindings
public ListPolicyBindingsResponse listPolicyBindings(ListPolicyBindingsRequest request) throws io.grpc.StatusException Lists policy bindings.
- Throws:
io.grpc.StatusException
-
searchTargetPolicyBindings
public SearchTargetPolicyBindingsResponse searchTargetPolicyBindings(SearchTargetPolicyBindingsRequest request) throws io.grpc.StatusException Search policy bindings by target. Returns all policy binding objects bound directly to target.
- Throws:
io.grpc.StatusException
-