Service Client: Google::Cloud::Resourcemanager::V3::Organizations::OrganizationsClient
Client stub representing the remote Organizations gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to resourcemanager.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Resourcemanager::V3::Organizations - Compiled Protocol Buffers messages for google/cloud/resourcemanager/v3/organizations.proto
SYNOPSIS
use Google::Cloud::Resourcemanager::V3::Organizations;
my $msg = Google::Cloud::Resourcemanager::V3::Organizations::Organization->new({
name => $name,
display_name => $display_name,
directory_customer_id => $directory_customer_id,
state => $state,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Resourcemanager::V3::Organizations::Organization->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/resourcemanager/v3/organizations.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Resourcemanager::V3::Organizations::Organization
The root node in the resource hierarchy to which a particular entity's (a company, for example) resources belong.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example, "organizations/1234".
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. A human-readable string that refers to the organization in the Google Cloud Console. This string is set by the server and cannot be changed. The string will be set to the primary domain (for example, "google.com") of the Google Workspace customer that owns the organization.
$msg->directory_customer_id()/$msg->directory_customer_id($value)Type:
StringImmutable. The G Suite / Workspace customer id used in the Directory API.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Resourcemanager::V3::Organization::State)Output only. The organization's current lifecycle state.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp when the Organization was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp when the Organization was last modified.
$msg->delete_time()/$msg->delete_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp when the Organization was requested for deletion.
$msg->etag()/$msg->etag($value)Type:
StringOutput only. A checksum computed by the server based on the current value of the Organization resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
Enum: Organization::State
STATE_UNSPECIFIED=>0ACTIVE=>1DELETE_REQUESTED=>2
Google::Cloud::Resourcemanager::V3::Organizations::GetOrganizationRequest
The request sent to the `GetOrganization` method. The `name` field is required. `organization_id` is no longer accepted.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the Organization to fetch. This is the organization's relative path in the API, formatted as "organizations/[organizationId]". For example, "organizations/1234".
Google::Cloud::Resourcemanager::V3::Organizations::SearchOrganizationsRequest
The request sent to the `SearchOrganizations` method.
Inherits from Protobuf::Message.
Accessors
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of organizations to return in the response. The server can return fewer organizations than requested. If unspecified, server picks an appropriate default.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A pagination token returned from a previous call to `SearchOrganizations` that indicates from where listing should continue.
$msg->query()/$msg->query($value)Type:
StringOptional. An optional query string used to filter the Organizations to return in the response. Query rules are case-insensitive.
``` | Field | Description | |------------------|--------------------------------------------| | directoryCustomerId, owner.directoryCustomerId | Filters by directory customer id. | | domain | Filters by domain. | ```
Organizations may be queried by `directoryCustomerId` or by `domain`, where the domain is a G Suite domain, for example:
* Query `directorycustomerid:123456789` returns Organization resources with `owner.directory_customer_id` equal to `123456789`. * Query `domain:google.com` returns Organization resources corresponding to the domain `google.com`.
Google::Cloud::Resourcemanager::V3::Organizations::SearchOrganizationsResponse
The response returned from the `SearchOrganizations` method.
Inherits from Protobuf::Message.
Accessors
$msg->organizations()/$msg->organizations($value)Type:
Message(Google::Cloud::Resourcemanager::V3::Organizations::Organization)The list of Organizations that matched the search query, possibly paginated.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA pagination token to be used to retrieve the next page of results. If the result is too large to fit within the page size specified in the request, this field will be set with a token that can be used to fetch the next page of results. If this field is empty, it indicates that this response contains the last page of results.
Google::Cloud::Resourcemanager::V3::Organizations::DeleteOrganizationMetadata
A status object which is used as the `metadata` field for the operation returned by DeleteOrganization.
Inherits from Protobuf::Message.
Google::Cloud::Resourcemanager::V3::Organizations::UndeleteOrganizationMetadata
A status object which is used as the `metadata` field for the Operation returned by UndeleteOrganization.
Inherits from Protobuf::Message.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Resourcemanager::V3::Organizations::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.