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.
1758 1759 1760 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1758 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
1688 1689 1690 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1688 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
1693 1694 1695 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1693 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
1699 1700 1701 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1699 def delete_time @delete_time end |
#display_name ⇒ String
The display name for the bare metal node pool.
Corresponds to the JSON property displayName
1704 1705 1706 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1704 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
1712 1713 1714 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1712 def etag @etag end |
#name ⇒ String
Immutable. The bare metal node pool resource name.
Corresponds to the JSON property name
1717 1718 1719 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1717 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
1723 1724 1725 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1723 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
1729 1730 1731 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1729 def reconciling @reconciling end |
#state ⇒ String
Output only. The current state of the bare metal node pool.
Corresponds to the JSON property state
1735 1736 1737 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1735 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
1741 1742 1743 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1741 def status @status end |
#uid ⇒ String
Output only. The unique identifier of the bare metal node pool.
Corresponds to the JSON property uid
1746 1747 1748 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1746 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
1751 1752 1753 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1751 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
1756 1757 1758 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1756 def upgrade_policy @upgrade_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1763 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 |