Class OrganizationsGrpc.OrganizationsStub (1.45.0)

public static final class OrganizationsGrpc.OrganizationsStub extends AbstractAsyncStub<OrganizationsGrpc.OrganizationsStub>

A stub to allow clients to do asynchronous rpc calls to service Organizations.

Allows users to manage their organization resources.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > OrganizationsGrpc.OrganizationsStub

Methods

build(Channel channel, CallOptions callOptions)

protected OrganizationsGrpc.OrganizationsStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
OrganizationsGrpc.OrganizationsStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public void getIamPolicy(GetIamPolicyRequest request, 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.

Parameters
Name Description
request com.google.iam.v1.GetIamPolicyRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

getOrganization(GetOrganizationRequest request, StreamObserver<Organization> responseObserver)

public void getOrganization(GetOrganizationRequest request, StreamObserver<Organization> responseObserver)

Fetches an organization resource identified by the specified resource name.

Parameters
Name Description
request GetOrganizationRequest
responseObserver io.grpc.stub.StreamObserver<Organization>

searchOrganizations(SearchOrganizationsRequest request, StreamObserver<SearchOrganizationsResponse> responseObserver)

public void searchOrganizations(SearchOrganizationsRequest request, 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

Parameters
Name Description
request SearchOrganizationsRequest
responseObserver io.grpc.stub.StreamObserver<SearchOrganizationsResponse>

setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public void setIamPolicy(SetIamPolicyRequest request, 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.

Parameters
Name Description
request com.google.iam.v1.SetIamPolicyRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

public void testIamPermissions(TestIamPermissionsRequest request, 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.

Parameters
Name Description
request com.google.iam.v1.TestIamPermissionsRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>