Class: Google::Apis::GkeonpremV1::Version
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::Version
- 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
-
#count ⇒ Fixnum
Number of machines under the above version.
-
#version ⇒ String
Resource version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Version
constructor
A new instance of Version.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#count ⇒ Fixnum
Number of machines under the above version.
Corresponds to the JSON property count
3816 3817 3818 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3816 def count @count end |
#version ⇒ String
Resource version.
Corresponds to the JSON property version
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 |