Class OrganizationsGrpc.OrganizationsBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<OrganizationsGrpc.OrganizationsBlockingV2Stub>
com.google.cloud.resourcemanager.v3.OrganizationsGrpc.OrganizationsBlockingV2Stub
Enclosing class:
OrganizationsGrpc

public static final class OrganizationsGrpc.OrganizationsBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<OrganizationsGrpc.OrganizationsBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service Organizations.
 Allows users to manage their organization resources.
 
  • Method Details

    • build

      protected OrganizationsGrpc.OrganizationsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<OrganizationsGrpc.OrganizationsBlockingV2Stub>
    • getOrganization

      public Organization getOrganization(GetOrganizationRequest request) throws io.grpc.StatusException
       Fetches an organization resource identified by the specified resource name.
       
      Throws:
      io.grpc.StatusException
    • searchOrganizations

      public SearchOrganizationsResponse searchOrganizations(SearchOrganizationsRequest request) throws io.grpc.StatusException
       Searches organization resources that are visible to the user and satisfy
       the specified filter. This method returns organizations in an unspecified
       order. New organizations do not necessarily appear at the end of the
       results, and may take a small amount of time to appear.
       Search will only return organizations on which the user has the permission
       `resourcemanager.organizations.get`
       
      Throws:
      io.grpc.StatusException
    • getIamPolicy

      public Policy getIamPolicy(GetIamPolicyRequest request) throws io.grpc.StatusException
       Gets the access control policy for an organization resource. The policy may
       be empty if no such policy or resource exists. The `resource` field should
       be the organization's resource name, for example: "organizations/123".
       Authorization requires the IAM permission
       `resourcemanager.organizations.getIamPolicy` on the specified organization.
       
      Throws:
      io.grpc.StatusException
    • setIamPolicy

      public Policy setIamPolicy(SetIamPolicyRequest request) throws io.grpc.StatusException
       Sets the access control policy on an organization resource. Replaces any
       existing policy. The `resource` field should be the organization's resource
       name, for example: "organizations/123".
       Authorization requires the IAM permission
       `resourcemanager.organizations.setIamPolicy` on the specified organization.
       
      Throws:
      io.grpc.StatusException
    • testIamPermissions

      public TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) throws io.grpc.StatusException
       Returns the permissions that a caller has on the specified organization.
       The `resource` field should be the organization's resource name,
       for example: "organizations/123".
       There are no permissions required for making this API call.
       
      Throws:
      io.grpc.StatusException