Class: Google::Apis::GkeonpremV1::BareMetalNodeConfig

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

Overview

BareMetalNodeConfig lists machine addresses to access Nodes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalNodeConfig

Returns a new instance of BareMetalNodeConfig.



1864
1865
1866
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1864

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

Instance Attribute Details

#labelsHash<String,String>

The labels assigned to this node. An object containing a list of key/value pairs. The labels here, unioned with the labels set on BareMetalNodePoolConfig are the set of labels that will be applied to the node. If there are any conflicts, the BareMetalNodeConfig labels take precedence. Example: "name": " wrench", "mass": "1.3kg", "count": "3". Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1856
1857
1858
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1856

def labels
  @labels
end

#node_ipString

The default IPv4 address for SSH access and Kubernetes node. Example: 192.168. 0.1 Corresponds to the JSON property nodeIp

Returns:

  • (String)


1862
1863
1864
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1862

def node_ip
  @node_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1869
1870
1871
1872
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1869

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