# Google Cloud Resource Manager V3 Client - Class GetOrganizationRequest (1.1.3)

1.1.3 (latest) 1.1.2 1.0.4 0.8.5 0.7.2 0.6.1 0.5.0 0.4.1 0.3.9 Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class GetOrganizationRequest.

The request sent to the `GetOrganization` method. The `name` field is
required. `organization_id` is no longer accepted.

Generated from protobuf message `google.cloud.resourcemanager.v3.GetOrganizationRequest`

## Namespace

Google \\ Cloud \\ ResourceManager \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. 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". |

### getName

Required. 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".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. 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".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. 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". Please see OrganizationsClient::organizationName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.GetOrganizationRequest` |   |