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.



1673
1674
1675
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1673

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>)


1665
1666
1667
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1665

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)


1671
1672
1673
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1671

def node_ip
  @node_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1678
1679
1680
1681
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1678

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