# Google Cloud Eventarc V1 Client - Class OrganizationSubscription (2.3.1)

2.3.1 (latest) 2.3.0 2.2.1 2.1.5 2.0.1 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Eventarc V1 Client class OrganizationSubscription.

Config to enabled subscribing to events from other projects in the org.

Generated from protobuf message `google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription`

## Namespace

Google \\ Cloud \\ Eventarc \\ V1 \\ GoogleApiSource

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enabled` | `bool` Required. Enable org level subscription. |

### getEnabled

Required. Enable org level subscription.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnabled

Required. Enable org level subscription.

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

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