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.
1653 1654 1655 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1653 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
1645 1646 1647 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1645 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
1651 1652 1653 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1651 def node_ip @node_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1658 1659 1660 1661 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1658 def update!(**args) @labels = args[:labels] if args.key?(:labels) @node_ip = args[:node_ip] if args.key?(:node_ip) end |