Class OrganizationsGrpc.OrganizationsBlockingStub (1.34.0)

public static final class OrganizationsGrpc.OrganizationsBlockingStub extends AbstractBlockingStub<OrganizationsGrpc.OrganizationsBlockingStub>

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

Allows users to manage their organization resources.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > OrganizationsGrpc.OrganizationsBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected OrganizationsGrpc.OrganizationsBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
OrganizationsGrpc.OrganizationsBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

getIamPolicy(GetIamPolicyRequest request)

public Policy getIamPolicy(GetIamPolicyRequest request)

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.

Parameter
NameDescription
requestcom.google.iam.v1.GetIamPolicyRequest
Returns
TypeDescription
com.google.iam.v1.Policy

getOrganization(GetOrganizationRequest request)

public Organization getOrganization(GetOrganizationRequest request)

Fetches an organization resource identified by the specified resource name.

Parameter
NameDescription
requestGetOrganizationRequest
Returns
TypeDescription
Organization

searchOrganizations(SearchOrganizationsRequest request)

public SearchOrganizationsResponse searchOrganizations(SearchOrganizationsRequest request)

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

Parameter
NameDescription
requestSearchOrganizationsRequest
Returns
TypeDescription
SearchOrganizationsResponse

setIamPolicy(SetIamPolicyRequest request)

public Policy setIamPolicy(SetIamPolicyRequest request)

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.

Parameter
NameDescription
requestcom.google.iam.v1.SetIamPolicyRequest
Returns
TypeDescription
com.google.iam.v1.Policy

testIamPermissions(TestIamPermissionsRequest request)

public TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request)

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.

Parameter
NameDescription
requestcom.google.iam.v1.TestIamPermissionsRequest
Returns
TypeDescription
com.google.iam.v1.TestIamPermissionsResponse