Service Client: Google::Cloud::Resourcemanager::V3::Projects::ProjectsClient
Client stub representing the remote Projects 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::Projects - Compiled Protocol Buffers messages for google/cloud/resourcemanager/v3/projects.proto
SYNOPSIS
use Google::Cloud::Resourcemanager::V3::Projects;
my $msg = Google::Cloud::Resourcemanager::V3::Projects::Project->new({
name => $name,
parent => $parent,
project_id => $project_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::Projects::Project->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/resourcemanager/v3/projects.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::Projects::Project
A project is a high-level Google Cloud entity. It is a container for ACLs, APIs, App Engine Apps, VMs, and other Google Cloud Platform resources.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The unique resource name of the project. It is an int64 generated number prefixed by "projects/".
Example: `projects/415104041262`
$msg->parent()/$msg->parent($value)Type:
StringOptional. A reference to a parent Resource. eg., `organizations/123` or `folders/876`.
$msg->project_id()/$msg->project_id($value)Type:
StringImmutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited.
Example: `tokyo-rain-123`
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Resourcemanager::V3::Project::State)Output only. The project lifecycle state.
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. A user-assigned display name of the project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.
Example: `My Project`
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Creation time.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The most recent time this resource was modified.
$msg->delete_time()/$msg->delete_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which this resource 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 Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Resourcemanager::V3::Projects::Project::LabelsEntry)Optional. The labels associated with this project.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
Label values must be between 0 and 63 characters long and must conform to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
No more than 64 labels can be associated with a given resource.
Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed.
Example: `"myBusinessDimension" : "businessValue"`
Enum: Project::State
STATE_UNSPECIFIED=>0ACTIVE=>1DELETE_REQUESTED=>2
Google::Cloud::Resourcemanager::V3::Projects::GetProjectRequest
The request sent to the [GetProject][google.cloud.resourcemanager.v3.Projects.GetProject] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the project (for example, `projects/415104041262`).
Google::Cloud::Resourcemanager::V3::Projects::ListProjectsRequest
The request sent to the [ListProjects][google.cloud.resourcemanager.v3.Projects.ListProjects] method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the parent resource whose projects 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}`.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A pagination token returned from a previous call to [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects] that indicates from where listing should continue.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default.
$msg->show_deleted()/$msg->show_deleted($value)Type:
BoolOptional. Indicate that projects in the `DELETE_REQUESTED` state should also be returned. Normally only `ACTIVE` projects are returned.
Google::Cloud::Resourcemanager::V3::Projects::ListProjectsResponse
A page of the response received from the [ListProjects][google.cloud.resourcemanager.v3.Projects.ListProjects] method.
A paginated response where more pages are available has `next_page_token` set. This token can be used in a subsequent request to retrieve the next request page.
NOTE: A response may contain fewer elements than the request `page_size` and still have a `next_page_token`.
Inherits from Protobuf::Message.
Accessors
$msg->projects()/$msg->projects($value)Type:
Message(Google::Cloud::Resourcemanager::V3::Projects::Project)The list of Projects under the parent. This list can be paginated.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringPagination token.
If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the `page_token` parameter gives the next page of the results.
When `next_page_token` is not filled in, there is no next page and the list returned is the last page in the result set.
Pagination tokens have a limited lifetime.
Google::Cloud::Resourcemanager::V3::Projects::SearchProjectsRequest
The request sent to the [SearchProjects][google.cloud.resourcemanager.v3.Projects.SearchProjects] method.
Inherits from Protobuf::Message.
Accessors
$msg->query()/$msg->query($value)Type:
StringOptional. A query string for searching for projects that the caller has `resourcemanager.projects.get` permission to. If multiple fields are included in the query, then it will return results that match any of the fields. Some eligible fields are:
- `displayName`, `name`: Filters by displayName. - `parent`: Project's parent (for example: `folders/123`, `organizations/*`). Prefer `parent` field over `parent.type` and `parent.id`. - `parent.type`: Parent's type: `folder` or `organization`. - `parent.id`: Parent's id number (for example: `123`). - `id`, `projectId`: Filters by projectId. - `state`, `lifecycleState`: Filters by state. - `labels`: Filters by label name or value. - `labels.<key` (where `<key>` is the name of a label)>: Filters by label name.
Search expressions are case insensitive.
Some examples queries:
- `name:how*`: The project's name starts with "how". - `name:Howl`: The project's name is `Howl` or `howl`. - `name:HOWL`: Equivalent to above. - `NAME:howl`: Equivalent to above. - `labels.color:*`: The project has the label `color`. - `labels.color:red`: The project's label `color` has the value `red`. - `labels.color:red labels.size:big`: The project's label `color` has the value `red` or its label `size` has the value `big`.
If no query is specified, the call will return projects for which the user has the `resourcemanager.projects.get` permission.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A pagination token returned from a previous call to [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects] that indicates from where listing should continue.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default.
Google::Cloud::Resourcemanager::V3::Projects::SearchProjectsResponse
A page of the response received from the [SearchProjects][google.cloud.resourcemanager.v3.Projects.SearchProjects] method.
A paginated response where more pages are available has `next_page_token` set. This token can be used in a subsequent request to retrieve the next request page.
Inherits from Protobuf::Message.
Accessors
$msg->projects()/$msg->projects($value)Type:
Message(Google::Cloud::Resourcemanager::V3::Projects::Project)The list of Projects that matched the list filter query. This list can be paginated.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringPagination token.
If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the `page_token` parameter gives the next page of the results.
When `next_page_token` is not filled in, there is no next page and the list returned is the last page in the result set.
Pagination tokens have a limited lifetime.
Google::Cloud::Resourcemanager::V3::Projects::CreateProjectRequest
The request sent to the [CreateProject][google.cloud.resourcemanager.v3.Projects.CreateProject] method.
Inherits from Protobuf::Message.
Accessors
$msg->project()/$msg->project($value)Type:
Message(Google::Cloud::Resourcemanager::V3::Projects::Project)Required. The Project to create.
Project ID is required. If the requested ID is unavailable, the request fails.
If the `parent` field is set, the `resourcemanager.projects.create` permission is checked on the parent resource. If no parent is set and the authorization credentials belong to an Organization, the parent will be set to that Organization.
Google::Cloud::Resourcemanager::V3::Projects::CreateProjectMetadata
A status object which is used as the `metadata` field for the Operation returned by CreateProject. It provides insight for when significant phases of Project creation have completed.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Creation time of the project creation workflow.
$msg->gettable()/$msg->gettable($value)Type:
BoolTrue if the project can be retrieved using `GetProject`. No other operations on the project are guaranteed to work until the project creation is complete.
$msg->ready()/$msg->ready($value)Type:
BoolTrue if the project creation process is complete.
Google::Cloud::Resourcemanager::V3::Projects::UpdateProjectRequest
The request sent to the [UpdateProject][google.cloud.resourcemanager.v3.Projects.UpdateProject] method.
Only the `display_name` and `labels` fields can be change. Use the [MoveProject][google.cloud.resourcemanager.v3.Projects.MoveProject] method to change the `parent` field.
Inherits from Protobuf::Message.
Accessors
$msg->project()/$msg->project($value)Type:
Message(Google::Cloud::Resourcemanager::V3::Projects::Project)Required. The new definition of the project.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. An update mask to selectively update fields.
Google::Cloud::Resourcemanager::V3::Projects::UpdateProjectMetadata
A status object which is used as the `metadata` field for the Operation returned by UpdateProject.
Inherits from Protobuf::Message.
Google::Cloud::Resourcemanager::V3::Projects::MoveProjectRequest
The request sent to [MoveProject][google.cloud.resourcemanager.v3.Projects.MoveProject] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the project to move.
$msg->destination_parent()/$msg->destination_parent($value)Type:
StringRequired. The new parent to move the Project under.
Google::Cloud::Resourcemanager::V3::Projects::MoveProjectMetadata
A status object which is used as the `metadata` field for the Operation returned by MoveProject.
Inherits from Protobuf::Message.
Google::Cloud::Resourcemanager::V3::Projects::DeleteProjectRequest
[DeleteProject][google.cloud.resourcemanager.v3.Projects.DeleteProject] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the Project (for example, `projects/415104041262`).
Google::Cloud::Resourcemanager::V3::Projects::DeleteProjectMetadata
A status object which is used as the `metadata` field for the Operation returned by `DeleteProject`.
Inherits from Protobuf::Message.
Google::Cloud::Resourcemanager::V3::Projects::UndeleteProjectRequest
The request sent to the [UndeleteProject] [google.cloud.resourcemanager.v3.Projects.UndeleteProject] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the project (for example, `projects/415104041262`).
Required.
Google::Cloud::Resourcemanager::V3::Projects::UndeleteProjectMetadata
A status object which is used as the `metadata` field for the Operation returned by `UndeleteProject`.
Inherits from Protobuf::Message.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Resourcemanager::V3::Projects::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.