# Cloud Composer V1 API - Class Google::Cloud::Orchestration::Airflow::Service::V1::MasterAuthorizedNetworksConfig (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.4 1.2.0 1.1.0 1.0.1 0.11.0 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Cloud Composer V1 API class Google::Cloud::Orchestration::Airflow::Service::V1::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cidr_blocks

    def cidr_blocks() -> ::Array<::Google::Cloud::Orchestration::Airflow::Service::V1::MasterAuthorizedNetworksConfig::CidrBlock>

**Returns**

- (::Array\<[::Google::Cloud::Orchestration::Airflow::Service::V1::MasterAuthorizedNetworksConfig::CidrBlock](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-MasterAuthorizedNetworksConfig-CidrBlock)\>) --- Up to 50 external networks that could access Kubernetes master through HTTPS.

### #cidr_blocks=

    def cidr_blocks=(value) -> ::Array<::Google::Cloud::Orchestration::Airflow::Service::V1::MasterAuthorizedNetworksConfig::CidrBlock>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Orchestration::Airflow::Service::V1::MasterAuthorizedNetworksConfig::CidrBlock](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-MasterAuthorizedNetworksConfig-CidrBlock)\>) --- Up to 50 external networks that could access Kubernetes master through HTTPS.
**Returns**

- (::Array\<[::Google::Cloud::Orchestration::Airflow::Service::V1::MasterAuthorizedNetworksConfig::CidrBlock](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-MasterAuthorizedNetworksConfig-CidrBlock)\>) --- Up to 50 external networks that could access Kubernetes master through HTTPS.

### #enabled

    def enabled() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Whether or not master authorized networks feature is enabled.

### #enabled=

    def enabled=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Whether or not master authorized networks feature is enabled.
**Returns**

- (::Boolean) --- Optional. Whether or not master authorized networks feature is enabled.