Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class Organization.
The root node in the resource hierarchy to which a particular entity's
(a company, for example) resources belong.
Generated from protobuf messagegoogle.cloud.resourcemanager.v3.Organization
Namespace
Google \ Cloud \ ResourceManager \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Output 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".
↳ display_name
string
Output 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.
↳ directory_customer_id
string
Immutable. The G Suite / Workspace customer id used in the Directory API.
↳ state
int
Output only. The organization's current lifecycle state.
Output only. Timestamp when the Organization was requested for deletion.
↳ etag
string
Output 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.
getName
Output 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".
Returns
Type
Description
string
setName
Output 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".
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDisplayName
Output 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.
Returns
Type
Description
string
setDisplayName
Output 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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDirectoryCustomerId
Immutable. The G Suite / Workspace customer id used in the Directory API.
Returns
Type
Description
string
hasDirectoryCustomerId
setDirectoryCustomerId
Immutable. The G Suite / Workspace customer id used in the Directory API.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getState
Output only. The organization's current lifecycle state.
Returns
Type
Description
int
setState
Output only. The organization's current lifecycle state.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getCreateTime
Output only. Timestamp when the Organization was created.
Output 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.
Returns
Type
Description
string
setEtag
Output 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Resource Manager V3 Client - Class Organization (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-resource-manager/latest/V3.Organization)\n- [1.0.3](/php/docs/reference/cloud-resource-manager/1.0.3/V3.Organization)\n- [0.8.5](/php/docs/reference/cloud-resource-manager/0.8.5/V3.Organization)\n- [0.7.2](/php/docs/reference/cloud-resource-manager/0.7.2/V3.Organization)\n- [0.6.1](/php/docs/reference/cloud-resource-manager/0.6.1/V3.Organization)\n- [0.5.0](/php/docs/reference/cloud-resource-manager/0.5.0/V3.Organization)\n- [0.4.1](/php/docs/reference/cloud-resource-manager/0.4.1/V3.Organization)\n- [0.3.9](/php/docs/reference/cloud-resource-manager/0.3.9/V3.Organization) \nReference documentation and code samples for the Google Cloud Resource Manager V3 Client class Organization.\n\nThe root node in the resource hierarchy to which a particular entity's\n(a company, for example) resources belong.\n\nGenerated from protobuf message `google.cloud.resourcemanager.v3.Organization`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ResourceManager \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. The resource name of the organization. This is the\norganization's relative path in the API. Its format is\n\"organizations/\\[organization_id\\]\". For example, \"organizations/1234\".\n\n### setName\n\nOutput only. The resource name of the organization. This is the\norganization's relative path in the API. Its format is\n\"organizations/\\[organization_id\\]\". For example, \"organizations/1234\".\n\n### getDisplayName\n\nOutput only. A human-readable string that refers to the organization in the\nGoogle Cloud Console. This string is set by the server and cannot be\nchanged. The string will be set to the primary domain (for example,\n\"google.com\") of the Google Workspace customer that owns the organization.\n\n### setDisplayName\n\nOutput only. A human-readable string that refers to the organization in the\nGoogle Cloud Console. This string is set by the server and cannot be\nchanged. The string will be set to the primary domain (for example,\n\"google.com\") of the Google Workspace customer that owns the organization.\n\n### getDirectoryCustomerId\n\nImmutable. The G Suite / Workspace customer id used in the Directory API.\n\n### hasDirectoryCustomerId\n\n### setDirectoryCustomerId\n\nImmutable. The G Suite / Workspace customer id used in the Directory API.\n\n### getState\n\nOutput only. The organization's current lifecycle state.\n\n### setState\n\nOutput only. The organization's current lifecycle state.\n\n### getCreateTime\n\nOutput only. Timestamp when the Organization was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. Timestamp when the Organization was created.\n\n### getUpdateTime\n\nOutput only. Timestamp when the Organization was last modified.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. Timestamp when the Organization was last modified.\n\n### getDeleteTime\n\nOutput only. Timestamp when the Organization was requested for deletion.\n\n### hasDeleteTime\n\n### clearDeleteTime\n\n### setDeleteTime\n\nOutput only. Timestamp when the Organization was requested for deletion.\n\n### getEtag\n\nOutput only. A checksum computed by the server based on the current value\nof the Organization resource. This may be sent on update and delete\nrequests to ensure the client has an up-to-date value before proceeding.\n\n### setEtag\n\nOutput only. A checksum computed by the server based on the current value\nof the Organization resource. This may be sent on update and delete\nrequests to ensure the client has an up-to-date value before proceeding.\n\n### getOwner"]]