Class: Google::Apis::ContainerV1beta1::AvailableVersion

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1beta1/classes.rb,
generated/google/apis/container_v1beta1/representations.rb,
generated/google/apis/container_v1beta1/representations.rb

Overview

AvailableVersion is an additional Kubernetes versions offered to users who subscribed to the release channel.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AvailableVersion

Returns a new instance of AvailableVersion.



275
276
277
# File 'generated/google/apis/container_v1beta1/classes.rb', line 275

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

Instance Attribute Details

#reasonString

Reason for availability. Corresponds to the JSON property reason

Returns:

  • (String)


268
269
270
# File 'generated/google/apis/container_v1beta1/classes.rb', line 268

def reason
  @reason
end

#versionString

Kubernetes version. Corresponds to the JSON property version

Returns:

  • (String)


273
274
275
# File 'generated/google/apis/container_v1beta1/classes.rb', line 273

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



280
281
282
283
# File 'generated/google/apis/container_v1beta1/classes.rb', line 280

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