Class: Google::Apis::ContainerV1::AdditionalPodNetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::AdditionalPodNetworkConfig
- 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
AdditionalPodNetworkConfig is the configuration for additional pod networks within the NodeNetworkConfig message
Instance Attribute Summary collapse
-
#max_pods_per_node ⇒ Google::Apis::ContainerV1::MaxPodsConstraint
Constraints applied to pods.
-
#secondary_pod_range ⇒ String
The name of the secondary range on the subnet which provides IP address for this pod range.
-
#subnetwork ⇒ String
Name of the subnetwork where the additional pod network belongs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdditionalPodNetworkConfig
constructor
A new instance of AdditionalPodNetworkConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdditionalPodNetworkConfig
Returns a new instance of AdditionalPodNetworkConfig.
120 121 122 |
# File 'lib/google/apis/container_v1/classes.rb', line 120 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_pods_per_node ⇒ Google::Apis::ContainerV1::MaxPodsConstraint
Constraints applied to pods.
Corresponds to the JSON property maxPodsPerNode
107 108 109 |
# File 'lib/google/apis/container_v1/classes.rb', line 107 def max_pods_per_node @max_pods_per_node end |
#secondary_pod_range ⇒ String
The name of the secondary range on the subnet which provides IP address for
this pod range.
Corresponds to the JSON property secondaryPodRange
113 114 115 |
# File 'lib/google/apis/container_v1/classes.rb', line 113 def secondary_pod_range @secondary_pod_range end |
#subnetwork ⇒ String
Name of the subnetwork where the additional pod network belongs.
Corresponds to the JSON property subnetwork
118 119 120 |
# File 'lib/google/apis/container_v1/classes.rb', line 118 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
125 126 127 128 129 |
# File 'lib/google/apis/container_v1/classes.rb', line 125 def update!(**args) @max_pods_per_node = args[:max_pods_per_node] if args.key?(:max_pods_per_node) @secondary_pod_range = args[:secondary_pod_range] if args.key?(:secondary_pod_range) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end |