Class: Google::Apis::GkeonpremV1::BareMetalNodePool
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalNodePool
- 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
Resource that represents a bare metal node pool.
Instance Attribute Summary collapse
-
#annotations ⇒ Hash<String,String>
Annotations on the bare metal node pool.
-
#create_time ⇒ String
Output only.
-
#delete_time ⇒ String
Output only.
-
#display_name ⇒ String
The display name for the bare metal node pool.
-
#etag ⇒ String
This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up- to-date value before proceeding.
-
#name ⇒ String
Immutable.
-
#node_pool_config ⇒ Google::Apis::GkeonpremV1::BareMetalNodePoolConfig
BareMetalNodePoolConfig describes the configuration of all nodes within a given bare metal node pool.
-
#reconciling ⇒ Boolean
(also: #reconciling?)
Output only.
-
#state ⇒ String
Output only.
-
#status ⇒ Google::Apis::GkeonpremV1::ResourceStatus
ResourceStatus describes why a cluster or node pool has a certain status.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#upgrade_policy ⇒ Google::Apis::GkeonpremV1::BareMetalNodePoolUpgradePolicy
BareMetalNodePoolUpgradePolicy defines the node pool upgrade policy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalNodePool
constructor
A new instance of BareMetalNodePool.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalNodePool
Returns a new instance of BareMetalNodePool.
1721 1722 1723 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1721 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<String,String>
Annotations on the bare metal node pool. This field has the same restrictions
as Kubernetes annotations. The total size of all keys and values combined is
limited to 256k. Key can have 2 segments: prefix (optional) and name (required)
, separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63
characters or less, begin and end with alphanumerics, with dashes (-),
underscores (_), dots (.), and alphanumerics between.
Corresponds to the JSON property annotations
1651 1652 1653 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1651 def annotations @annotations end |
#create_time ⇒ String
Output only. The time at which this bare metal node pool was created.
Corresponds to the JSON property createTime
1656 1657 1658 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1656 def create_time @create_time end |
#delete_time ⇒ String
Output only. The time at which this bare metal node pool was deleted. If the
resource is not deleted, this must be empty
Corresponds to the JSON property deleteTime
1662 1663 1664 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1662 def delete_time @delete_time end |
#display_name ⇒ String
The display name for the bare metal node pool.
Corresponds to the JSON property displayName
1667 1668 1669 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1667 def display_name @display_name end |
#etag ⇒ String
This checksum is computed by the server based on the value of other fields,
and may be sent on update and delete requests to ensure the client has an up-
to-date value before proceeding. Allows clients to perform consistent read-
modify-writes through optimistic concurrency control.
Corresponds to the JSON property etag
1675 1676 1677 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1675 def etag @etag end |
#name ⇒ String
Immutable. The bare metal node pool resource name.
Corresponds to the JSON property name
1680 1681 1682 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1680 def name @name end |
#node_pool_config ⇒ Google::Apis::GkeonpremV1::BareMetalNodePoolConfig
BareMetalNodePoolConfig describes the configuration of all nodes within a
given bare metal node pool.
Corresponds to the JSON property nodePoolConfig
1686 1687 1688 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1686 def node_pool_config @node_pool_config end |
#reconciling ⇒ Boolean Also known as: reconciling?
Output only. If set, there are currently changes in flight to the bare metal
node pool.
Corresponds to the JSON property reconciling
1692 1693 1694 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1692 def reconciling @reconciling end |
#state ⇒ String
Output only. The current state of the bare metal node pool.
Corresponds to the JSON property state
1698 1699 1700 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1698 def state @state end |
#status ⇒ Google::Apis::GkeonpremV1::ResourceStatus
ResourceStatus describes why a cluster or node pool has a certain status. (e.g.
, ERROR or DEGRADED).
Corresponds to the JSON property status
1704 1705 1706 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1704 def status @status end |
#uid ⇒ String
Output only. The unique identifier of the bare metal node pool.
Corresponds to the JSON property uid
1709 1710 1711 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1709 def uid @uid end |
#update_time ⇒ String
Output only. The time at which this bare metal node pool was last updated.
Corresponds to the JSON property updateTime
1714 1715 1716 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1714 def update_time @update_time end |
#upgrade_policy ⇒ Google::Apis::GkeonpremV1::BareMetalNodePoolUpgradePolicy
BareMetalNodePoolUpgradePolicy defines the node pool upgrade policy.
Corresponds to the JSON property upgradePolicy
1719 1720 1721 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1719 def upgrade_policy @upgrade_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1726 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @create_time = args[:create_time] if args.key?(:create_time) @delete_time = args[:delete_time] if args.key?(:delete_time) @display_name = args[:display_name] if args.key?(:display_name) @etag = args[:etag] if args.key?(:etag) @name = args[:name] if args.key?(:name) @node_pool_config = args[:node_pool_config] if args.key?(:node_pool_config) @reconciling = args[:reconciling] if args.key?(:reconciling) @state = args[:state] if args.key?(:state) @status = args[:status] if args.key?(:status) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) @upgrade_policy = args[:upgrade_policy] if args.key?(:upgrade_policy) end |