Class TagValuesGrpc.TagValuesBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<TagValuesGrpc.TagValuesBlockingV2Stub>
com.google.cloud.resourcemanager.v3.TagValuesGrpc.TagValuesBlockingV2Stub
- Enclosing class:
- TagValuesGrpc
public static final class TagValuesGrpc.TagValuesBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<TagValuesGrpc.TagValuesBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service TagValues.
Allow users to create and manage tag values.
-
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 TypeMethodDescriptionprotected TagValuesGrpc.TagValuesBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createTagValue(CreateTagValueRequest request) Creates a TagValue as a child of the specified TagKey.deleteTagValue(DeleteTagValueRequest request) Deletes a TagValue.getIamPolicy(GetIamPolicyRequest request) Gets the access control policy for a TagValue.Retrieves a TagValue by its namespaced name.getTagValue(GetTagValueRequest request) Retrieves a TagValue.listTagValues(ListTagValuesRequest request) Lists all TagValues for a specific TagKey.setIamPolicy(SetIamPolicyRequest request) Sets the access control policy on a TagValue, replacing any existing policy.Returns permissions that a caller has on the specified TagValue.updateTagValue(UpdateTagValueRequest request) Updates the attributes of the TagValue resource.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 TagValuesGrpc.TagValuesBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<TagValuesGrpc.TagValuesBlockingV2Stub>
-
listTagValues
public ListTagValuesResponse listTagValues(ListTagValuesRequest request) throws io.grpc.StatusException Lists all TagValues for a specific TagKey.
- Throws:
io.grpc.StatusException
-
getTagValue
Retrieves a TagValue. This method will return `PERMISSION_DENIED` if the value does not exist or the user does not have permission to view it.
- Throws:
io.grpc.StatusException
-
getNamespacedTagValue
public TagValue getNamespacedTagValue(GetNamespacedTagValueRequest request) throws io.grpc.StatusException Retrieves a TagValue by its namespaced name. This method will return `PERMISSION_DENIED` if the value does not exist or the user does not have permission to view it.
- Throws:
io.grpc.StatusException
-
createTagValue
Creates a TagValue as a child of the specified TagKey. If a another request with the same parameters is sent while the original request is in process the second request will receive an error. A maximum of 1000 TagValues can exist under a TagKey at any given time.
- Throws:
io.grpc.StatusException
-
updateTagValue
Updates the attributes of the TagValue resource.
- Throws:
io.grpc.StatusException
-
deleteTagValue
Deletes a TagValue. The TagValue cannot have any bindings when it is deleted.
- Throws:
io.grpc.StatusException
-
getIamPolicy
Gets the access control policy for a TagValue. The returned policy may be empty if no such policy or resource exists. The `resource` field should be the TagValue's resource name. For example: `tagValues/1234`. The caller must have the `cloudresourcemanager.googleapis.com/tagValues.getIamPolicy` permission on the identified TagValue to get the access control policy.
- Throws:
io.grpc.StatusException
-
setIamPolicy
Sets the access control policy on a TagValue, replacing any existing policy. The `resource` field should be the TagValue's resource name. For example: `tagValues/1234`. The caller must have `resourcemanager.tagValues.setIamPolicy` permission on the identified tagValue.
- Throws:
io.grpc.StatusException
-
testIamPermissions
public TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) throws io.grpc.StatusException Returns permissions that a caller has on the specified TagValue. The `resource` field should be the TagValue's resource name. For example: `tagValues/1234`. There are no permissions required for making this API call.
- Throws:
io.grpc.StatusException
-