# Google Cloud Service Health V1 Client - Class GetOrganizationEventRequest (0.5.0)

0.5.0 (latest) 0.4.3 0.3.1 0.2.3 0.1.8 Reference documentation and code samples for the Google Cloud Service Health V1 Client class GetOrganizationEventRequest.

Gets information about a specific event affecting an organization.

Generated from protobuf message `google.cloud.servicehealth.v1.GetOrganizationEventRequest`

## Namespace

Google \\ Cloud \\ ServiceHealth \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Unique name of the event in this scope including organization and event ID using the form `organizations/{organization_id}/locations/locations/global/organizationEvents/{event_id}`. `organization_id` - ID (number) of the project that contains the event. To get your `organization_id`, see [Getting your organization resource ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). `event_id` - Organization event ID to retrieve. |

### getName

Required. Unique name of the event in this scope including organization and
event ID using the form
`organizations/{organization_id}/locations/locations/global/organizationEvents/{event_id}`.

`organization_id` - ID (number) of the project that contains the event. To
get your `organization_id`, see
[Getting your organization resource
ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).  

`event_id` - Organization event ID to retrieve.

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

### setName

Required. Unique name of the event in this scope including organization and
event ID using the form
`organizations/{organization_id}/locations/locations/global/organizationEvents/{event_id}`.

`organization_id` - ID (number) of the project that contains the event. To
get your `organization_id`, see
[Getting your organization resource
ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).  

`event_id` - Organization event ID to retrieve.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Unique name of the event in this scope including organization and event ID using the form `organizations/{organization_id}/locations/locations/global/organizationEvents/{event_id}`. `organization_id` - ID (number) of the project that contains the event. To get your `organization_id`, see [Getting your organization resource ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). `event_id` - Organization event ID to retrieve. Please see ServiceHealthClient::organizationEventName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-servicehealth/latest/V1.GetOrganizationEventRequest` |   |