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.
1766 1767 1768 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1766 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
1696 1697 1698 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1696 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
1701 1702 1703 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1701 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
1707 1708 1709 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1707 def delete_time @delete_time end |
#display_name ⇒ String
The display name for the bare metal node pool.
Corresponds to the JSON property displayName
1712 1713 1714 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1712 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
1720 1721 1722 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1720 def etag @etag end |
#name ⇒ String
Immutable. The bare metal node pool resource name.
Corresponds to the JSON property name
1725 1726 1727 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1725 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
1731 1732 1733 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1731 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
1737 1738 1739 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1737 def reconciling @reconciling end |
#state ⇒ String
Output only. The current state of the bare metal node pool.
Corresponds to the JSON property state
1743 1744 1745 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1743 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
1749 1750 1751 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1749 def status @status end |
#uid ⇒ String
Output only. The unique identifier of the bare metal node pool.
Corresponds to the JSON property uid
1754 1755 1756 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1754 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
1759 1760 1761 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1759 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
1764 1765 1766 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1764 def upgrade_policy @upgrade_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1771 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 |