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.



1957
1958
1959
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1957

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>)


1887
1888
1889
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1887

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)


1892
1893
1894
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1892

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)


1898
1899
1900
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1898

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)


1903
1904
1905
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1903

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)


1911
1912
1913
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1911

def etag
  @etag
end

#nameString

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

Returns:

  • (String)


1916
1917
1918
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1916

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



1922
1923
1924
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1922

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)


1928
1929
1930
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1928

def reconciling
  @reconciling
end

#stateString

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

Returns:

  • (String)


1934
1935
1936
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1934

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



1940
1941
1942
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1940

def status
  @status
end

#uidString

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

Returns:

  • (String)


1945
1946
1947
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1945

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)


1950
1951
1952
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1950

def update_time
  @update_time
end

#upgrade_policyGoogle::Apis::GkeonpremV1::BareMetalNodePoolUpgradePolicy

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



1955
1956
1957
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1955

def upgrade_policy
  @upgrade_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1962

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