Class: Google::Apis::ContainerV1::AdditionalIpRangesConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb

Overview

AdditionalIPRangesConfig is the configuration for individual additional subnetwork attached to the cluster

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdditionalIpRangesConfig

Returns a new instance of AdditionalIpRangesConfig.



91
92
93
# File 'lib/google/apis/container_v1/classes.rb', line 91

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#pod_ipv4_range_namesArray<String>

List of secondary ranges names within this subnetwork that can be used for pod IPs. Example1: gke-pod-range1 Example2: gke-pod-range1,gke-pod-range2 Corresponds to the JSON property podIpv4RangeNames

Returns:

  • (Array<String>)


82
83
84
# File 'lib/google/apis/container_v1/classes.rb', line 82

def pod_ipv4_range_names
  @pod_ipv4_range_names
end

#subnetworkString

Name of the subnetwork. This can be the full path of the subnetwork or just the name. Example1: my-subnet Example2: projects/gke-project/regions/us- central1/subnetworks/my-subnet Corresponds to the JSON property subnetwork

Returns:

  • (String)


89
90
91
# File 'lib/google/apis/container_v1/classes.rb', line 89

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



96
97
98
99
# File 'lib/google/apis/container_v1/classes.rb', line 96

def update!(**args)
  @pod_ipv4_range_names = args[:pod_ipv4_range_names] if args.key?(:pod_ipv4_range_names)
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
end