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.
-
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) getIamPolicy(GetIamPolicyRequest request) Gets the access control policy for an organization resource.getOrganization(GetOrganizationRequest request) Fetches an organization resource identified by the specified resource name.Searches organization resources that are visible to the user and satisfy the specified filter.setIamPolicy(SetIamPolicyRequest request) Sets the access control policy on an organization resource.Returns the permissions that a caller has on the specified organization.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 OrganizationsGrpc.OrganizationsBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<OrganizationsGrpc.OrganizationsBlockingV2Stub>
-
getOrganization
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
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
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
-