Class: Google::Apis::GkeonpremV1::Versions

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

Versions describes the mapping of a given version to the number of machines under this version.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Versions

Returns a new instance of Versions.



3845
3846
3847
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3845

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

Instance Attribute Details

#versionsArray<Google::Apis::GkeonpremV1::Version>

Shows the mapping of a given version to the number of machines under this version. Corresponds to the JSON property versions



3843
3844
3845
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3843

def versions
  @versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3850
3851
3852
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3850

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