Class: Google::Apis::ContainerV1::AdditionalPodNetworkConfig

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

AdditionalPodNetworkConfig is the configuration for additional pod networks within the NodeNetworkConfig message

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdditionalPodNetworkConfig

Returns a new instance of AdditionalPodNetworkConfig.



126
127
128
# File 'lib/google/apis/container_v1/classes.rb', line 126

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

Instance Attribute Details

#max_pods_per_nodeGoogle::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

#network_attachmentString

The name of the network attachment for pods to communicate to; cannot be specified along with subnetwork or secondary_pod_range. Corresponds to the JSON property networkAttachment

Returns:

  • (String)


113
114
115
# File 'lib/google/apis/container_v1/classes.rb', line 113

def network_attachment
  @network_attachment
end

#secondary_pod_rangeString

The name of the secondary range on the subnet which provides IP address for this pod range. Corresponds to the JSON property secondaryPodRange

Returns:

  • (String)


119
120
121
# File 'lib/google/apis/container_v1/classes.rb', line 119

def secondary_pod_range
  @secondary_pod_range
end

#subnetworkString

Name of the subnetwork where the additional pod network belongs. Corresponds to the JSON property subnetwork

Returns:

  • (String)


124
125
126
# File 'lib/google/apis/container_v1/classes.rb', line 124

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



131
132
133
134
135
136
# File 'lib/google/apis/container_v1/classes.rb', line 131

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