Class: Google::Apis::GkeonpremV1::BareMetalNodePool

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalNodePool

Returns a new instance of BareMetalNodePool.



1746
1747
1748
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1746

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#annotationsHash<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

Returns:

  • (Hash<String,String>)


1676
1677
1678
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1676

def annotations
  @annotations
end

#create_timeString

Output only. The time at which this bare metal node pool was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1681
1682
1683
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1681

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


1687
1688
1689
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1687

def delete_time
  @delete_time
end

#display_nameString

The display name for the bare metal node pool. Corresponds to the JSON property displayName

Returns:

  • (String)


1692
1693
1694
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1692

def display_name
  @display_name
end

#etagString

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

Returns:

  • (String)


1700
1701
1702
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1700

def etag
  @etag
end

#nameString

Immutable. The bare metal node pool resource name. Corresponds to the JSON property name

Returns:

  • (String)


1705
1706
1707
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1705

def name
  @name
end

#node_pool_configGoogle::Apis::GkeonpremV1::BareMetalNodePoolConfig

BareMetalNodePoolConfig describes the configuration of all nodes within a given bare metal node pool. Corresponds to the JSON property nodePoolConfig



1711
1712
1713
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1711

def node_pool_config
  @node_pool_config
end

#reconcilingBoolean 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

Returns:

  • (Boolean)


1717
1718
1719
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1717

def reconciling
  @reconciling
end

#stateString

Output only. The current state of the bare metal node pool. Corresponds to the JSON property state

Returns:

  • (String)


1723
1724
1725
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1723

def state
  @state
end

#statusGoogle::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



1729
1730
1731
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1729

def status
  @status
end

#uidString

Output only. The unique identifier of the bare metal node pool. Corresponds to the JSON property uid

Returns:

  • (String)


1734
1735
1736
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1734

def uid
  @uid
end

#update_timeString

Output only. The time at which this bare metal node pool was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1739
1740
1741
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1739

def update_time
  @update_time
end

#upgrade_policyGoogle::Apis::GkeonpremV1::BareMetalNodePoolUpgradePolicy

BareMetalNodePoolUpgradePolicy defines the node pool upgrade policy. Corresponds to the JSON property upgradePolicy



1744
1745
1746
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1744

def upgrade_policy
  @upgrade_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1751

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