Class: Google::Apis::GkeonpremV1::BareMetalNodeConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalNodeConfig
- 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
-
#labels ⇒ Hash<String,String>
The labels assigned to this node.
-
#node_ip ⇒ String
The default IPv4 address for SSH access and Kubernetes node.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalNodeConfig
constructor
A new instance of BareMetalNodeConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalNodeConfig
Returns a new instance of BareMetalNodeConfig.
1628 1629 1630 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1628 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Hash<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
1620 1621 1622 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1620 def labels @labels end |
#node_ip ⇒ String
The default IPv4 address for SSH access and Kubernetes node. Example: 192.168.
0.1
Corresponds to the JSON property nodeIp
1626 1627 1628 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1626 def node_ip @node_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1633 1634 1635 1636 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1633 def update!(**args) @labels = args[:labels] if args.key?(:labels) @node_ip = args[:node_ip] if args.key?(:node_ip) end |