Class: Google::Apis::ContainerV1::ReleaseChannelConfig

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

Overview

ReleaseChannelConfig exposes configuration for a release channel.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReleaseChannelConfig

Returns a new instance of ReleaseChannelConfig.



2967
2968
2969
# File 'generated/google/apis/container_v1/classes.rb', line 2967

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

Instance Attribute Details

#channelString

The release channel this configuration applies to. Corresponds to the JSON property channel

Returns:

  • (String)


2955
2956
2957
# File 'generated/google/apis/container_v1/classes.rb', line 2955

def channel
  @channel
end

#default_versionString

The default version for newly created clusters on the channel. Corresponds to the JSON property defaultVersion

Returns:

  • (String)


2960
2961
2962
# File 'generated/google/apis/container_v1/classes.rb', line 2960

def default_version
  @default_version
end

#valid_versionsArray<String>

List of valid versions for the channel. Corresponds to the JSON property validVersions

Returns:

  • (Array<String>)


2965
2966
2967
# File 'generated/google/apis/container_v1/classes.rb', line 2965

def valid_versions
  @valid_versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2972
2973
2974
2975
2976
# File 'generated/google/apis/container_v1/classes.rb', line 2972

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