Google Cloud Container V1 Client - Class NetworkConfig (1.9.1)

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

NetworkConfig reports the relative names of network & subnetwork.

Generated from protobuf message google.container.v1.NetworkConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ network 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

↳ subnetwork string

Output only. The relative name of the Google Compute Engine subnetwork to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

↳ enable_intra_node_visibility bool

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

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

↳ enable_l4ilb_subsetting bool

Whether L4ILB Subsetting is enabled for this cluster.

↳ datapath_provider int

The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.

↳ private_ipv6_google_access int

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)

↳ dns_config Google\Cloud\Container\V1\DNSConfig

DNSConfig contains clusterDNS config for this cluster.

↳ service_external_ips_config Google\Cloud\Container\V1\ServiceExternalIPsConfig

ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not.

↳ gateway_api_config Google\Cloud\Container\V1\GatewayAPIConfig

GatewayAPIConfig contains the desired config of Gateway API on this cluster.

getNetwork

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

Generated from protobuf field string network = 1;

Returns
TypeDescription
string

setNetwork

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

Generated from protobuf field string network = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubnetwork

Output only. The relative name of the Google Compute Engine subnetwork to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

Generated from protobuf field string subnetwork = 2;

Returns
TypeDescription
string

setSubnetwork

Output only. The relative name of the Google Compute Engine subnetwork to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

Generated from protobuf field string subnetwork = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEnableIntraNodeVisibility

Whether Intra-node visibility is enabled for this cluster.

This makes same node pod to pod traffic visible for VPC network.

Generated from protobuf field bool enable_intra_node_visibility = 5;

Returns
TypeDescription
bool

setEnableIntraNodeVisibility

Whether Intra-node visibility is enabled for this cluster.

This makes same node pod to pod traffic visible for VPC network.

Generated from protobuf field bool enable_intra_node_visibility = 5;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getDefaultSnatStatus

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.

Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7;

Returns
TypeDescription
Google\Cloud\Container\V1\DefaultSnatStatus|null

hasDefaultSnatStatus

clearDefaultSnatStatus

setDefaultSnatStatus

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.

Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7;

Parameter
NameDescription
var Google\Cloud\Container\V1\DefaultSnatStatus
Returns
TypeDescription
$this

getEnableL4IlbSubsetting

Whether L4ILB Subsetting is enabled for this cluster.

Generated from protobuf field bool enable_l4ilb_subsetting = 10;

Returns
TypeDescription
bool

setEnableL4IlbSubsetting

Whether L4ILB Subsetting is enabled for this cluster.

Generated from protobuf field bool enable_l4ilb_subsetting = 10;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getDatapathProvider

The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.

Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11;

Returns
TypeDescription
int

setDatapathProvider

The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.

Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPrivateIpv6GoogleAccess

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)

Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12;

Returns
TypeDescription
int

setPrivateIpv6GoogleAccess

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)

Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDnsConfig

DNSConfig contains clusterDNS config for this cluster.

Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13;

Returns
TypeDescription
Google\Cloud\Container\V1\DNSConfig|null

hasDnsConfig

clearDnsConfig

setDnsConfig

DNSConfig contains clusterDNS config for this cluster.

Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13;

Parameter
NameDescription
var Google\Cloud\Container\V1\DNSConfig
Returns
TypeDescription
$this

getServiceExternalIpsConfig

ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not.

Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15;

Returns
TypeDescription
Google\Cloud\Container\V1\ServiceExternalIPsConfig|null

hasServiceExternalIpsConfig

clearServiceExternalIpsConfig

setServiceExternalIpsConfig

ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not.

Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15;

Parameter
NameDescription
var Google\Cloud\Container\V1\ServiceExternalIPsConfig
Returns
TypeDescription
$this

getGatewayApiConfig

GatewayAPIConfig contains the desired config of Gateway API on this cluster.

Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16;

Returns
TypeDescription
Google\Cloud\Container\V1\GatewayAPIConfig|null

hasGatewayApiConfig

clearGatewayApiConfig

setGatewayApiConfig

GatewayAPIConfig contains the desired config of Gateway API on this cluster.

Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16;

Parameter
NameDescription
var Google\Cloud\Container\V1\GatewayAPIConfig
Returns
TypeDescription
$this