Class: Google::Apis::ContainerV1::NodeNetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::NodeNetworkConfig
- 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
Parameters for node pool-level network config.
Instance Attribute Summary collapse
-
#create_pod_range ⇒ Boolean
(also: #create_pod_range?)
Input only.
-
#network_performance_config ⇒ Google::Apis::ContainerV1::NetworkPerformanceConfig
Configuration of all network bandwidth tiers Corresponds to the JSON property
networkPerformanceConfig. -
#pod_ipv4_cidr_block ⇒ String
The IP address range for pod IPs in this node pool.
-
#pod_range ⇒ String
The ID of the secondary range for pod IPs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NodeNetworkConfig
constructor
A new instance of NodeNetworkConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NodeNetworkConfig
Returns a new instance of NodeNetworkConfig.
3227 3228 3229 |
# File 'lib/google/apis/container_v1/classes.rb', line 3227 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_pod_range ⇒ Boolean Also known as: create_pod_range?
Input only. Whether to create a new range for pod IPs in this node pool.
Defaults are provided for pod_range and pod_ipv4_cidr_block if they are
not specified. If neither create_pod_range or pod_range are specified, the
cluster-level default (ip_allocation_policy.cluster_ipv4_cidr_block) is used.
Only applicable if ip_allocation_policy.use_ip_aliases is true. This field
cannot be changed after the node pool has been created.
Corresponds to the JSON property createPodRange
3199 3200 3201 |
# File 'lib/google/apis/container_v1/classes.rb', line 3199 def create_pod_range @create_pod_range end |
#network_performance_config ⇒ Google::Apis::ContainerV1::NetworkPerformanceConfig
Configuration of all network bandwidth tiers
Corresponds to the JSON property networkPerformanceConfig
3205 3206 3207 |
# File 'lib/google/apis/container_v1/classes.rb', line 3205 def network_performance_config @network_performance_config end |
#pod_ipv4_cidr_block ⇒ String
The IP address range for pod IPs in this node pool. Only applicable if
create_pod_range is true. Set to blank to have a range chosen with the
default size. Set to /netmask (e.g. /14) to have a range chosen with a
specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) to pick a
specific range to use. Only applicable if ip_allocation_policy.use_ip_aliases
is true. This field cannot be changed after the node pool has been created.
Corresponds to the JSON property podIpv4CidrBlock
3216 3217 3218 |
# File 'lib/google/apis/container_v1/classes.rb', line 3216 def pod_ipv4_cidr_block @pod_ipv4_cidr_block end |
#pod_range ⇒ String
The ID of the secondary range for pod IPs. If create_pod_range is true, this
ID is used for the new range. If create_pod_range is false, uses an existing
secondary range with this ID. Only applicable if ip_allocation_policy.
use_ip_aliases is true. This field cannot be changed after the node pool has
been created.
Corresponds to the JSON property podRange
3225 3226 3227 |
# File 'lib/google/apis/container_v1/classes.rb', line 3225 def pod_range @pod_range end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3232 3233 3234 3235 3236 3237 |
# File 'lib/google/apis/container_v1/classes.rb', line 3232 def update!(**args) @create_pod_range = args[:create_pod_range] if args.key?(:create_pod_range) @network_performance_config = args[:network_performance_config] if args.key?(:network_performance_config) @pod_ipv4_cidr_block = args[:pod_ipv4_cidr_block] if args.key?(:pod_ipv4_cidr_block) @pod_range = args[:pod_range] if args.key?(:pod_range) end |