# Google Cloud Service Health V1 Client - Class OrganizationImpact (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 OrganizationImpact.

Represents impact to assets at organizational level. It is a read-only view
and does not allow any modifications.

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

## Namespace

Google \\ Cloud \\ ServiceHealth \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Identifier. Unique name of the organization impact in this scope including organization and location using the form `organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}`. `organization_id` - ID (number) of the organization 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). `organization_impact_id` - ID of the [OrganizationImpact resource](https://docs.cloud.google.com/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact). |
| `↳ events` | `string[]` Output only. A list of event names impacting the asset. |
| `↳ asset` | `https://docs.cloud.google.com/php/docs/reference/cloud-servicehealth/latest/V1.Asset` Output only. Google Cloud asset possibly impacted by the specified events. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the affected project was last modified. |

### getName

Output only. Identifier. Unique name of the organization impact in this
scope including organization and location using the form
`organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}`.

`organization_id` - ID (number) of the organization 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).  

`organization_impact_id` - ID of the [OrganizationImpact
resource](https://docs.cloud.google.com/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).

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

### setName

Output only. Identifier. Unique name of the organization impact in this
scope including organization and location using the form
`organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}`.

`organization_id` - ID (number) of the organization 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).  

`organization_impact_id` - ID of the [OrganizationImpact
resource](https://docs.cloud.google.com/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).

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

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

### getEvents

Output only. A list of event names impacting the asset.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setEvents

Output only. A list of event names impacting the asset.

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

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

### getAsset

Output only. Google Cloud asset possibly impacted by the specified events.

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

### hasAsset

### clearAsset

### setAsset

Output only. Google Cloud asset possibly impacted by the specified events.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-servicehealth/latest/V1.Asset` |

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

### getUpdateTime

Output only. The time when the affected project was last modified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time when the affected project was last modified.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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