Class: Google::Apis::GkeonpremV1::BareMetalVersionInfo

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

Contains information about a specific Anthos on bare metal version.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalVersionInfo

Returns a new instance of BareMetalVersionInfo.



2018
2019
2020
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2018

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

Instance Attribute Details

#dependenciesArray<Google::Apis::GkeonpremV1::UpgradeDependency>

The list of upgrade dependencies for this version. Corresponds to the JSON property dependencies



2003
2004
2005
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2003

def dependencies
  @dependencies
end

#has_dependenciesBoolean Also known as: has_dependencies?

If set, the cluster dependencies (e.g. the admin cluster, other user clusters managed by the same admin cluster, version skew policy, etc) must be upgraded before this version can be installed or upgraded to. Corresponds to the JSON property hasDependencies

Returns:

  • (Boolean)


2010
2011
2012
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2010

def has_dependencies
  @has_dependencies
end

#versionString

Version number e.g. 1.13.1. Corresponds to the JSON property version

Returns:

  • (String)


2016
2017
2018
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2016

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2023
2024
2025
2026
2027
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2023

def update!(**args)
  @dependencies = args[:dependencies] if args.key?(:dependencies)
  @has_dependencies = args[:has_dependencies] if args.key?(:has_dependencies)
  @version = args[:version] if args.key?(:version)
end