Class: Google::Apis::ContainerV1::AdditionalIpRangesConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::AdditionalIpRangesConfig
- 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
-
#pod_ipv4_range_names ⇒ Array<String>
List of secondary ranges names within this subnetwork that can be used for pod IPs.
-
#subnetwork ⇒ String
Name of the subnetwork.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdditionalIpRangesConfig
constructor
A new instance of AdditionalIpRangesConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_names ⇒ Array<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
82 83 84 |
# File 'lib/google/apis/container_v1/classes.rb', line 82 def pod_ipv4_range_names @pod_ipv4_range_names end |
#subnetwork ⇒ String
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
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 |