Class: Google::Apis::GkeonpremV1::Version

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

Version describes the number of nodes at a given version under a resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Version

Returns a new instance of Version.



3823
3824
3825
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3823

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

Instance Attribute Details

#countFixnum

Number of machines under the above version. Corresponds to the JSON property count

Returns:

  • (Fixnum)


3816
3817
3818
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3816

def count
  @count
end

#versionString

Resource version. Corresponds to the JSON property version

Returns:

  • (String)


3821
3822
3823
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3821

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3828
3829
3830
3831
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3828

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