Class OrganizationsGrpc.OrganizationsStub

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

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

    • build

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

      public void getOrganization(GetOrganizationRequest request, io.grpc.stub.StreamObserver<Organization> responseObserver)
       Fetches an organization resource identified by the specified resource name.
       
    • searchOrganizations

      public void searchOrganizations(SearchOrganizationsRequest request, io.grpc.stub.StreamObserver<SearchOrganizationsResponse> responseObserver)
       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`
       
    • getIamPolicy

      public void getIamPolicy(GetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver)
       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.
       
    • setIamPolicy

      public void setIamPolicy(SetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver)
       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.
       
    • testIamPermissions

      public void testIamPermissions(TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<TestIamPermissionsResponse> responseObserver)
       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.