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.



94
95
96
# File 'lib/google/apis/container_v1beta1/classes.rb', line 94

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)


87
88
89
# File 'lib/google/apis/container_v1beta1/classes.rb', line 87

def network
  @network
end

#subnetworkString

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

Returns:

  • (String)


92
93
94
# File 'lib/google/apis/container_v1beta1/classes.rb', line 92

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



99
100
101
102
# File 'lib/google/apis/container_v1beta1/classes.rb', line 99

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