# Kubernetes Engine V1 API - Class Google::Cloud::Container::V1::NetworkConfig (v1.16.0)

1.16.0 (latest) 1.15.0 1.14.0 1.13.0 1.12.0 1.11.1 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.42.0 0.41.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.0 0.35.0 0.34.1 0.33.1 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.1 0.20.0 0.19.0 0.18.0 0.17.0 0.16.3 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 0.8.0 0.7.3 Reference documentation and code samples for the Kubernetes Engine V1 API class Google::Cloud::Container::V1::NetworkConfig.

NetworkConfig reports the relative names of network \& subnetwork.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #datapath_provider

    def datapath_provider() -> ::Google::Cloud::Container::V1::DatapathProvider

**Returns**

- ([::Google::Cloud::Container::V1::DatapathProvider](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-DatapathProvider)) --- The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.

### #datapath_provider=

    def datapath_provider=(value) -> ::Google::Cloud::Container::V1::DatapathProvider

**Parameter**

- **value** ([::Google::Cloud::Container::V1::DatapathProvider](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-DatapathProvider)) --- The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.
**Returns**

- ([::Google::Cloud::Container::V1::DatapathProvider](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-DatapathProvider)) --- The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.

### #dataplane_v2_config

    def dataplane_v2_config() -> ::Google::Cloud::Container::V1::DataplaneV2Config

**Returns**

- ([::Google::Cloud::Container::V1::DataplaneV2Config](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-DataplaneV2Config)) --- Optional. DataplaneV2Config specifies the DPv2 configuration.

### #dataplane_v2_config=

    def dataplane_v2_config=(value) -> ::Google::Cloud::Container::V1::DataplaneV2Config

**Parameter**

- **value** ([::Google::Cloud::Container::V1::DataplaneV2Config](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-DataplaneV2Config)) --- Optional. DataplaneV2Config specifies the DPv2 configuration.
**Returns**

- ([::Google::Cloud::Container::V1::DataplaneV2Config](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-DataplaneV2Config)) --- Optional. DataplaneV2Config specifies the DPv2 configuration.

### #default_enable_private_nodes

    def default_enable_private_nodes() -> ::Boolean

**Returns**

- (::Boolean) --- Controls whether by default nodes have private IP addresses only. It is invalid to specify both \[PrivateClusterConfig.enablePrivateNodes\]\[\] and this field at the same time. To update the default setting, use [ClusterUpdate.desired_default_enable_private_nodes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-ClusterUpdate#Google__Cloud__Container__V1__ClusterUpdate_desired_default_enable_private_nodes_instance_ "Google::Cloud::Container::V1::ClusterUpdate#desired_default_enable_private_nodes (method)")

### #default_enable_private_nodes=

    def default_enable_private_nodes=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Controls whether by default nodes have private IP addresses only. It is invalid to specify both \[PrivateClusterConfig.enablePrivateNodes\]\[\] and this field at the same time. To update the default setting, use [ClusterUpdate.desired_default_enable_private_nodes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-ClusterUpdate#Google__Cloud__Container__V1__ClusterUpdate_desired_default_enable_private_nodes_instance_ "Google::Cloud::Container::V1::ClusterUpdate#desired_default_enable_private_nodes (method)")
**Returns**

- (::Boolean) --- Controls whether by default nodes have private IP addresses only. It is invalid to specify both \[PrivateClusterConfig.enablePrivateNodes\]\[\] and this field at the same time. To update the default setting, use [ClusterUpdate.desired_default_enable_private_nodes](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-ClusterUpdate#Google__Cloud__Container__V1__ClusterUpdate_desired_default_enable_private_nodes_instance_ "Google::Cloud::Container::V1::ClusterUpdate#desired_default_enable_private_nodes (method)")

### #default_snat_status

    def default_snat_status() -> ::Google::Cloud::Container::V1::DefaultSnatStatus

**Returns**

- ([::Google::Cloud::Container::V1::DefaultSnatStatus](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-DefaultSnatStatus)) --- Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic.

### #default_snat_status=

    def default_snat_status=(value) -> ::Google::Cloud::Container::V1::DefaultSnatStatus

**Parameter**

- **value** ([::Google::Cloud::Container::V1::DefaultSnatStatus](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-DefaultSnatStatus)) --- Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic.
**Returns**

- ([::Google::Cloud::Container::V1::DefaultSnatStatus](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-DefaultSnatStatus)) --- Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic.

### #disable_l4_lb_firewall_reconciliation

    def disable_l4_lb_firewall_reconciliation() -> ::Boolean

**Returns**

- (::Boolean) --- Disable L4 load balancer VPC firewalls to enable firewall policies.

### #disable_l4_lb_firewall_reconciliation=

    def disable_l4_lb_firewall_reconciliation=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Disable L4 load balancer VPC firewalls to enable firewall policies.
**Returns**

- (::Boolean) --- Disable L4 load balancer VPC firewalls to enable firewall policies.

### #dns_config

    def dns_config() -> ::Google::Cloud::Container::V1::DNSConfig

**Returns**

- ([::Google::Cloud::Container::V1::DNSConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-DNSConfig)) --- DNSConfig contains clusterDNS config for this cluster.

### #dns_config=

    def dns_config=(value) -> ::Google::Cloud::Container::V1::DNSConfig

**Parameter**

- **value** ([::Google::Cloud::Container::V1::DNSConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-DNSConfig)) --- DNSConfig contains clusterDNS config for this cluster.
**Returns**

- ([::Google::Cloud::Container::V1::DNSConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-DNSConfig)) --- DNSConfig contains clusterDNS config for this cluster.

### #enable_cilium_clusterwide_network_policy

    def enable_cilium_clusterwide_network_policy() -> ::Boolean

**Returns**

- (::Boolean) --- Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.

### #enable_cilium_clusterwide_network_policy=

    def enable_cilium_clusterwide_network_policy=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.
**Returns**

- (::Boolean) --- Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.

### #enable_fqdn_network_policy

    def enable_fqdn_network_policy() -> ::Boolean

**Returns**

- (::Boolean) --- Whether FQDN Network Policy is enabled on this cluster.

### #enable_fqdn_network_policy=

    def enable_fqdn_network_policy=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether FQDN Network Policy is enabled on this cluster.
**Returns**

- (::Boolean) --- Whether FQDN Network Policy is enabled on this cluster.

### #enable_intra_node_visibility

    def enable_intra_node_visibility() -> ::Boolean

**Returns**

- (::Boolean) --- Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network.

### #enable_intra_node_visibility=

    def enable_intra_node_visibility=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network.
**Returns**

- (::Boolean) --- Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network.

### #enable_l4ilb_subsetting

    def enable_l4ilb_subsetting() -> ::Boolean

**Returns**

- (::Boolean) --- Whether L4ILB Subsetting is enabled for this cluster.

### #enable_l4ilb_subsetting=

    def enable_l4ilb_subsetting=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether L4ILB Subsetting is enabled for this cluster.
**Returns**

- (::Boolean) --- Whether L4ILB Subsetting is enabled for this cluster.

### #enable_multi_networking

    def enable_multi_networking() -> ::Boolean

**Returns**

- (::Boolean) --- Whether multi-networking is enabled for this cluster.

### #enable_multi_networking=

    def enable_multi_networking=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether multi-networking is enabled for this cluster.
**Returns**

- (::Boolean) --- Whether multi-networking is enabled for this cluster.

### #gateway_api_config

    def gateway_api_config() -> ::Google::Cloud::Container::V1::GatewayAPIConfig

**Returns**

- ([::Google::Cloud::Container::V1::GatewayAPIConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-GatewayAPIConfig)) --- GatewayAPIConfig contains the desired config of Gateway API on this cluster.

### #gateway_api_config=

    def gateway_api_config=(value) -> ::Google::Cloud::Container::V1::GatewayAPIConfig

**Parameter**

- **value** ([::Google::Cloud::Container::V1::GatewayAPIConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-GatewayAPIConfig)) --- GatewayAPIConfig contains the desired config of Gateway API on this cluster.
**Returns**

- ([::Google::Cloud::Container::V1::GatewayAPIConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-GatewayAPIConfig)) --- GatewayAPIConfig contains the desired config of Gateway API on this cluster.

### #in_transit_encryption_config

    def in_transit_encryption_config() -> ::Google::Cloud::Container::V1::InTransitEncryptionConfig

**Returns**

- ([::Google::Cloud::Container::V1::InTransitEncryptionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-InTransitEncryptionConfig)) --- Specify the details of in-transit encryption. Now named inter-node transparent encryption.

### #in_transit_encryption_config=

    def in_transit_encryption_config=(value) -> ::Google::Cloud::Container::V1::InTransitEncryptionConfig

**Parameter**

- **value** ([::Google::Cloud::Container::V1::InTransitEncryptionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-InTransitEncryptionConfig)) --- Specify the details of in-transit encryption. Now named inter-node transparent encryption.
**Returns**

- ([::Google::Cloud::Container::V1::InTransitEncryptionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-InTransitEncryptionConfig)) --- Specify the details of in-transit encryption. Now named inter-node transparent encryption.

### #network

    def network() -> ::String

**Returns**

- (::String) --- Output only. The relative name of the Google Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. Example: projects/my-project/global/networks/my-network

### #network_performance_config

    def network_performance_config() -> ::Google::Cloud::Container::V1::NetworkConfig::ClusterNetworkPerformanceConfig

**Returns**

- ([::Google::Cloud::Container::V1::NetworkConfig::ClusterNetworkPerformanceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-NetworkConfig-ClusterNetworkPerformanceConfig)) --- Network bandwidth tier configuration.

### #network_performance_config=

    def network_performance_config=(value) -> ::Google::Cloud::Container::V1::NetworkConfig::ClusterNetworkPerformanceConfig

**Parameter**

- **value** ([::Google::Cloud::Container::V1::NetworkConfig::ClusterNetworkPerformanceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-NetworkConfig-ClusterNetworkPerformanceConfig)) --- Network bandwidth tier configuration.
**Returns**

- ([::Google::Cloud::Container::V1::NetworkConfig::ClusterNetworkPerformanceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-NetworkConfig-ClusterNetworkPerformanceConfig)) --- Network bandwidth tier configuration.

### #private_ipv6_google_access

    def private_ipv6_google_access() -> ::Google::Cloud::Container::V1::PrivateIPv6GoogleAccess

**Returns**

- ([::Google::Cloud::Container::V1::PrivateIPv6GoogleAccess](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-PrivateIPv6GoogleAccess)) --- The desired state of IPv6 connectivity to Google Services. By default, no private IPv6 access to or from Google Services (all access will be via IPv4)

### #private_ipv6_google_access=

    def private_ipv6_google_access=(value) -> ::Google::Cloud::Container::V1::PrivateIPv6GoogleAccess

**Parameter**

- **value** ([::Google::Cloud::Container::V1::PrivateIPv6GoogleAccess](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-PrivateIPv6GoogleAccess)) --- The desired state of IPv6 connectivity to Google Services. By default, no private IPv6 access to or from Google Services (all access will be via IPv4)
**Returns**

- ([::Google::Cloud::Container::V1::PrivateIPv6GoogleAccess](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-PrivateIPv6GoogleAccess)) --- The desired state of IPv6 connectivity to Google Services. By default, no private IPv6 access to or from Google Services (all access will be via IPv4)

### #service_external_ips_config

    def service_external_ips_config() -> ::Google::Cloud::Container::V1::ServiceExternalIPsConfig

**Returns**

- ([::Google::Cloud::Container::V1::ServiceExternalIPsConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-ServiceExternalIPsConfig)) --- ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not.

### #service_external_ips_config=

    def service_external_ips_config=(value) -> ::Google::Cloud::Container::V1::ServiceExternalIPsConfig

**Parameter**

- **value** ([::Google::Cloud::Container::V1::ServiceExternalIPsConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-ServiceExternalIPsConfig)) --- ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not.
**Returns**

- ([::Google::Cloud::Container::V1::ServiceExternalIPsConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-ServiceExternalIPsConfig)) --- ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not.

### #subnetwork

    def subnetwork() -> ::String

**Returns**

- (::String) --- Output only. The relative name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet