Service Client: Google::Cloud::Resourcemanager::V3::Folders::FoldersClient
Client stub representing the remote Folders 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::Folders - Compiled Protocol Buffers messages for google/cloud/resourcemanager/v3/folders.proto
SYNOPSIS
use Google::Cloud::Resourcemanager::V3::Folders;
my $msg = Google::Cloud::Resourcemanager::V3::Folders::Folder->new({
name => $name,
parent => $parent,
display_name => $display_name,
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::Folders::Folder->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/resourcemanager/v3/folders.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::Folders::Folder
A folder in an organization's resource hierarchy, used to organize that organization's resources.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The resource name of the folder. Its format is `folders/{folder_id}`, for example: "folders/1234".
$msg->parent()/$msg->parent($value)Type:
StringRequired. The folder's parent's resource name. Updates to the folder's parent must be performed using [MoveFolder][google.cloud.resourcemanager.v3.Folders.MoveFolder].
$msg->display_name()/$msg->display_name($value)Type:
StringThe folder's display name. A folder's display name must be unique amongst its siblings. For example, no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: `[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?`.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Resourcemanager::V3::Folder::State)Output only. The lifecycle state of the folder. Updates to the state must be performed using [DeleteFolder][google.cloud.resourcemanager.v3.Folders.DeleteFolder] and [UndeleteFolder][google.cloud.resourcemanager.v3.Folders.UndeleteFolder].
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp when the folder was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp when the folder was last modified.
$msg->delete_time()/$msg->delete_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp when the folder was requested to be deleted.
$msg->etag()/$msg->etag($value)Type:
StringOutput only. A checksum computed by the server based on the current value of the folder resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
Enum: Folder::State
STATE_UNSPECIFIED=>0ACTIVE=>1DELETE_REQUESTED=>2
Google::Cloud::Resourcemanager::V3::Folders::GetFolderRequest
The GetFolder request message.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the folder to retrieve. Must be of the form `folders/{folder_id}`.
Google::Cloud::Resourcemanager::V3::Folders::ListFoldersRequest
The ListFolders request message.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the parent resource whose folders are being listed. Only children of this parent resource are listed; descendants are not listed.
If the parent is a folder, use the value `folders/{folder_id}`. If the parent is an organization, use the value `organizations/{org_id}`.
Access to this method is controlled by checking the `resourcemanager.folders.list` permission on the `parent`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of folders to return in the response. The server can return fewer folders 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 `ListFolders` that indicates where this listing should continue from.
$msg->show_deleted()/$msg->show_deleted($value)Type:
BoolOptional. Controls whether folders in the [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED] state should be returned. Defaults to false.
Google::Cloud::Resourcemanager::V3::Folders::ListFoldersResponse
The ListFolders response message.
Inherits from Protobuf::Message.
Accessors
$msg->folders()/$msg->folders($value)Type:
Message(Google::Cloud::Resourcemanager::V3::Folders::Folder)A possibly paginated list of folders that are direct descendants of the specified parent resource.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA pagination token returned from a previous call to `ListFolders` that indicates from where listing should continue.
Google::Cloud::Resourcemanager::V3::Folders::SearchFoldersRequest
The request message for searching folders.
Inherits from Protobuf::Message.
Accessors
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of folders to return in the response. The server can return fewer folders 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 `SearchFolders` that indicates from where search should continue.
$msg->query()/$msg->query($value)Type:
StringOptional. Search criteria used to select the folders to return. If no search criteria is specified then all accessible folders will be returned.
Query expressions can be used to restrict results based upon displayName, state and parent, where the operators `=` (`:`) `NOT`, `AND` and `OR` can be used along with the suffix wildcard symbol `*`.
The `displayName` field in a query expression should use escaped quotes for values that include whitespace to prevent unexpected behavior.
``` | Field | Description | |-------------------------|----------------------------------------| | displayName | Filters by displayName. | | parent | Filters by parent (for example: folders/123). | | state, lifecycleState | Filters by state. | ```
Some example queries are:
* Query `displayName=Test*` returns Folder resources whose display name starts with "Test". * Query `state=ACTIVE` returns Folder resources with `state` set to `ACTIVE`. * Query `parent=folders/123` returns Folder resources that have `folders/123` as a parent resource. * Query `parent=folders/123 AND state=ACTIVE` returns active Folder resources that have `folders/123` as a parent resource. * Query `displayName=\\"Test String\\"` returns Folder resources with display names that include both "Test" and "String".
Google::Cloud::Resourcemanager::V3::Folders::SearchFoldersResponse
The response message for searching folders.
Inherits from Protobuf::Message.
Accessors
$msg->folders()/$msg->folders($value)Type:
Message(Google::Cloud::Resourcemanager::V3::Folders::Folder)A possibly paginated folder search results. the specified parent resource.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA pagination token returned from a previous call to `SearchFolders` that indicates from where searching should continue.
Google::Cloud::Resourcemanager::V3::Folders::CreateFolderRequest
The CreateFolder request message.
Inherits from Protobuf::Message.
Accessors
$msg->folder()/$msg->folder($value)Type:
Message(Google::Cloud::Resourcemanager::V3::Folders::Folder)Required. The folder being created, only the display name and parent will be consulted. All other fields will be ignored.
Google::Cloud::Resourcemanager::V3::Folders::CreateFolderMetadata
Metadata pertaining to the Folder creation process.
Inherits from Protobuf::Message.
Accessors
$msg->display_name()/$msg->display_name($value)Type:
StringThe display name of the folder.
$msg->parent()/$msg->parent($value)Type:
StringThe resource name of the folder or organization we are creating the folder under.
Google::Cloud::Resourcemanager::V3::Folders::UpdateFolderRequest
The request sent to the [UpdateFolder][google.cloud.resourcemanager.v3.Folder.UpdateFolder] method.
Only the `display_name` field can be changed. All other fields will be ignored. Use the [MoveFolder][google.cloud.resourcemanager.v3.Folders.MoveFolder] method to change the `parent` field.
Inherits from Protobuf::Message.
Accessors
$msg->folder()/$msg->folder($value)Type:
Message(Google::Cloud::Resourcemanager::V3::Folders::Folder)Required. The new definition of the Folder. It must include the `name` field, which cannot be changed.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. Fields to be updated. Only the `display_name` can be updated.
Google::Cloud::Resourcemanager::V3::Folders::UpdateFolderMetadata
A status object which is used as the `metadata` field for the Operation returned by UpdateFolder.
Inherits from Protobuf::Message.
Google::Cloud::Resourcemanager::V3::Folders::MoveFolderRequest
The MoveFolder request message.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the Folder to move. Must be of the form folders/{folder_id}
$msg->destination_parent()/$msg->destination_parent($value)Type:
StringRequired. The resource name of the folder or organization which should be the folder's new parent. Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
Google::Cloud::Resourcemanager::V3::Folders::MoveFolderMetadata
Metadata pertaining to the folder move process.
Inherits from Protobuf::Message.
Accessors
$msg->display_name()/$msg->display_name($value)Type:
StringThe display name of the folder.
$msg->source_parent()/$msg->source_parent($value)Type:
StringThe resource name of the folder's parent.
$msg->destination_parent()/$msg->destination_parent($value)Type:
StringThe resource name of the folder or organization to move the folder to.
Google::Cloud::Resourcemanager::V3::Folders::DeleteFolderRequest
The DeleteFolder request message.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the folder to be deleted. Must be of the form `folders/{folder_id}`.
Google::Cloud::Resourcemanager::V3::Folders::DeleteFolderMetadata
A status object which is used as the `metadata` field for the `Operation` returned by `DeleteFolder`.
Inherits from Protobuf::Message.
Google::Cloud::Resourcemanager::V3::Folders::UndeleteFolderRequest
The UndeleteFolder request message.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the folder to undelete. Must be of the form `folders/{folder_id}`.
Google::Cloud::Resourcemanager::V3::Folders::UndeleteFolderMetadata
A status object which is used as the `metadata` field for the `Operation` returned by `UndeleteFolder`.
Inherits from Protobuf::Message.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Resourcemanager::V3::Folders::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.