Class: Google::Apis::ContainerV1beta1::AdditionalNodeNetworkConfig

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

Overview

AdditionalNodeNetworkConfig is the configuration for additional node networks within the NodeNetworkConfig message

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdditionalNodeNetworkConfig

Returns a new instance of AdditionalNodeNetworkConfig.



123
124
125
# File 'lib/google/apis/container_v1beta1/classes.rb', line 123

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

Instance Attribute Details

#networkString

Name of the VPC where the additional interface belongs Corresponds to the JSON property network

Returns:

  • (String)


116
117
118
# File 'lib/google/apis/container_v1beta1/classes.rb', line 116

def network
  @network
end

#subnetworkString

Name of the subnetwork where the additional interface belongs Corresponds to the JSON property subnetwork

Returns:

  • (String)


121
122
123
# File 'lib/google/apis/container_v1beta1/classes.rb', line 121

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



128
129
130
131
# File 'lib/google/apis/container_v1beta1/classes.rb', line 128

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