# Google Cloud Orchestration Airflow V1 Client - Class MasterAuthorizedNetworksConfig (2.2.3)

2.2.3 (latest) 2.2.2 2.1.8 2.0.1 1.6.4 1.5.0 1.4.2 1.3.0 1.2.0 1.1.0 1.0.4 Reference documentation and code samples for the Google Cloud Orchestration Airflow V1 Client class MasterAuthorizedNetworksConfig.

Configuration options for the master authorized networks feature. Enabled
master authorized networks will disallow all external traffic to access
Kubernetes master through HTTPS except traffic from the given CIDR blocks,
Google Compute Engine Public IPs and Google Prod IPs.

Generated from protobuf message `google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig`

## Namespace

Google \\ Cloud \\ Orchestration \\ Airflow \\ Service \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enabled` | `bool` Optional. Whether or not master authorized networks feature is enabled. |
| `↳ cidr_blocks` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.MasterAuthorizedNetworksConfig.CidrBlock>` Up to 50 external networks that could access Kubernetes master through HTTPS. |

### getEnabled

Optional. Whether or not master authorized networks feature is enabled.

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

### setEnabled

Optional. Whether or not master authorized networks feature is enabled.

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

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

### getCidrBlocks

Up to 50 external networks that could access Kubernetes master through
HTTPS.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.MasterAuthorizedNetworksConfig.CidrBlock>` |   |

### setCidrBlocks

Up to 50 external networks that could access Kubernetes master through
HTTPS.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.MasterAuthorizedNetworksConfig.CidrBlock>` |

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