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.
 
  • Method Details

    • build

      protected TagValuesGrpc.TagValuesBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.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

      public TagValue getTagValue(GetTagValueRequest request) throws io.grpc.StatusException
       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

      public Operation createTagValue(CreateTagValueRequest request) throws io.grpc.StatusException
       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

      public Operation updateTagValue(UpdateTagValueRequest request) throws io.grpc.StatusException
       Updates the attributes of the TagValue resource.
       
      Throws:
      io.grpc.StatusException
    • deleteTagValue

      public Operation deleteTagValue(DeleteTagValueRequest request) throws io.grpc.StatusException
       Deletes a TagValue. The TagValue cannot have any bindings when it is
       deleted.
       
      Throws:
      io.grpc.StatusException
    • getIamPolicy

      public Policy getIamPolicy(GetIamPolicyRequest request) throws io.grpc.StatusException
       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

      public Policy setIamPolicy(SetIamPolicyRequest request) throws io.grpc.StatusException
       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