# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::ConnectNetworkConfig (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.2 1.0.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::V1::ConnectNetworkConfig.

The configuration of a Virtual Private Cloud (VPC) network that can access
the Kafka Connect cluster.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #additional_subnets

    def additional_subnets() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.

### #additional_subnets=

    def additional_subnets=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.
**Returns**

- (::Array\<::String\>) --- Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.

### #dns_domain_names

    def dns_domain_names() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. Additional DNS domain names from the subnet's network to be made visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add the bootstrap address's dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog

### #dns_domain_names=

    def dns_domain_names=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. Additional DNS domain names from the subnet's network to be made visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add the bootstrap address's dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog
**Returns**

- (::Array\<::String\>) --- Optional. Additional DNS domain names from the subnet's network to be made visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add the bootstrap address's dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog

### #primary_subnet

    def primary_subnet() -> ::String

**Returns**

- (::String) --- Required. VPC subnet to make available to the Kafka Connect cluster. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}

  It is used to create a Private Service Connect (PSC) interface for the
  Kafka Connect workers. It must be located in the same region as the
  Kafka Connect cluster.

  The CIDR range of the subnet must be within the IPv4 address ranges for
  private networks, as specified in RFC 1918. The primary subnet CIDR range
  must have a minimum size of /22 (1024 addresses).

### #primary_subnet=

    def primary_subnet=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. VPC subnet to make available to the Kafka Connect cluster. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}


  It is used to create a Private Service Connect (PSC) interface for the
  Kafka Connect workers. It must be located in the same region as the
  Kafka Connect cluster.

  The CIDR range of the subnet must be within the IPv4 address ranges for
  private networks, as specified in RFC 1918. The primary subnet CIDR range
  must have a minimum size of /22 (1024 addresses).
**Returns**

- (::String) --- Required. VPC subnet to make available to the Kafka Connect cluster. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}

  It is used to create a Private Service Connect (PSC) interface for the
  Kafka Connect workers. It must be located in the same region as the
  Kafka Connect cluster.

  The CIDR range of the subnet must be within the IPv4 address ranges for
  private networks, as specified in RFC 1918. The primary subnet CIDR range
  must have a minimum size of /22 (1024 addresses).