Google Cloud Filestore V1 Client - Class NetworkConfig (1.3.2)

Reference documentation and code samples for the Google Cloud Filestore V1 Client class NetworkConfig.

Network configuration for the instance.

Generated from protobuf message google.cloud.filestore.v1.NetworkConfig

Namespace

Google \ Cloud \ Filestore \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ network string

The name of the Google Compute Engine VPC network to which the instance is connected.

↳ modes array

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

↳ reserved_ip_range 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 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 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.

↳ ip_addresses array

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}.

↳ connect_mode int

The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.

getNetwork

The name of the Google Compute Engine VPC network to which the instance is connected.

Returns
TypeDescription
string

setNetwork

The name of the Google Compute Engine VPC network to which the instance is connected.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getModes

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setModes

Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

getReservedIpRange

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 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 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
TypeDescription
string

setReservedIpRange

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 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 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.
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIpAddresses

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}.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setIpAddresses

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}.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getConnectMode

The network connect mode of the Filestore instance.

If not provided, the connect mode defaults to DIRECT_PEERING.

Returns
TypeDescription
int

setConnectMode

The network connect mode of the Filestore instance.

If not provided, the connect mode defaults to DIRECT_PEERING.

Parameter
NameDescription
var int
Returns
TypeDescription
$this