# Filestore V1 API - Class Google::Cloud::Filestore::V1::NetworkConfig (v2.7.0)

2.7.0 (latest) 2.6.1 2.5.0 2.4.1 2.3.1 2.2.0 2.1.1 2.0.0 1.2.0 1.1.0 1.0.1 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Filestore V1 API class Google::Cloud::Filestore::V1::NetworkConfig.

Network configuration for the instance.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #connect_mode

    def connect_mode() -> ::Google::Cloud::Filestore::V1::NetworkConfig::ConnectMode

**Returns**

- ([::Google::Cloud::Filestore::V1::NetworkConfig::ConnectMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-NetworkConfig-ConnectMode)) --- The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.

### #connect_mode=

    def connect_mode=(value) -> ::Google::Cloud::Filestore::V1::NetworkConfig::ConnectMode

**Parameter**

- **value** ([::Google::Cloud::Filestore::V1::NetworkConfig::ConnectMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-NetworkConfig-ConnectMode)) --- The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.
**Returns**

- ([::Google::Cloud::Filestore::V1::NetworkConfig::ConnectMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-NetworkConfig-ConnectMode)) --- The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.

### #ip_addresses

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

**Returns**

- (::Array\<::String\>) --- Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.

### #modes

    def modes() -> ::Array<::Google::Cloud::Filestore::V1::NetworkConfig::AddressMode>

**Returns**

- (::Array\<[::Google::Cloud::Filestore::V1::NetworkConfig::AddressMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-NetworkConfig-AddressMode)\>) --- Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

### #modes=

    def modes=(value) -> ::Array<::Google::Cloud::Filestore::V1::NetworkConfig::AddressMode>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Filestore::V1::NetworkConfig::AddressMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-NetworkConfig-AddressMode)\>) --- Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
**Returns**

- (::Array\<[::Google::Cloud::Filestore::V1::NetworkConfig::AddressMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-NetworkConfig-AddressMode)\>) --- Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

### #network

    def network() -> ::String

**Returns**

- (::String) --- The name of the Google Compute Engine [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected.

### #network=

    def network=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the Google Compute Engine [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected.
**Returns**

- (::String) --- The name of the Google Compute Engine [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected.

### #reserved_ip_range

    def reserved_ip_range() -> ::String

**Returns**

- (::String) --- Optional, reserved_ip_range can have one of the following two types of values.

  - CIDR range value when using DIRECT_PEERING connect mode.
  - [Allocated IP address
    range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode.

  When the name of an allocated IP address range is specified, it must be one
  of the ranges associated with the private service access connection.
  When specified as a direct CIDR value, it must be a /29 CIDR block for
  Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
  Enterprise tier in one of the [internal IP address
  ranges](https://www.arin.net/reference/research/statistics/address_filters/)
  that identifies the range of IP addresses reserved for this instance. For
  example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The
  range you specify can't overlap with either existing subnets or assigned IP
  address ranges for other Filestore instances in the selected VPC
  network.

### #reserved_ip_range=

    def reserved_ip_range=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional, reserved_ip_range can have one of the following two types of values.


  - CIDR range value when using DIRECT_PEERING connect mode.
  - [Allocated IP address
    range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode.

  When the name of an allocated IP address range is specified, it must be one
  of the ranges associated with the private service access connection.
  When specified as a direct CIDR value, it must be a /29 CIDR block for
  Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
  Enterprise tier in one of the [internal IP address
  ranges](https://www.arin.net/reference/research/statistics/address_filters/)
  that identifies the range of IP addresses reserved for this instance. For
  example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The
  range you specify can't overlap with either existing subnets or assigned IP
  address ranges for other Filestore instances in the selected VPC
  network.
**Returns**

- (::String) --- Optional, reserved_ip_range can have one of the following two types of values.

  - CIDR range value when using DIRECT_PEERING connect mode.
  - [Allocated IP address
    range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode.

  When the name of an allocated IP address range is specified, it must be one
  of the ranges associated with the private service access connection.
  When specified as a direct CIDR value, it must be a /29 CIDR block for
  Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
  Enterprise tier in one of the [internal IP address
  ranges](https://www.arin.net/reference/research/statistics/address_filters/)
  that identifies the range of IP addresses reserved for this instance. For
  example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The
  range you specify can't overlap with either existing subnets or assigned IP
  address ranges for other Filestore instances in the selected VPC
  network.