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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/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.



6037
6038
6039
# File 'lib/google/apis/container_v1/classes.rb', line 6037

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)


6020
6021
6022
# File 'lib/google/apis/container_v1/classes.rb', line 6020

def channel
  @channel
end

#default_versionString

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

Returns:

  • (String)


6025
6026
6027
# File 'lib/google/apis/container_v1/classes.rb', line 6025

def default_version
  @default_version
end

#upgrade_target_versionString

The auto upgrade target version for clusters on the channel. Corresponds to the JSON property upgradeTargetVersion

Returns:

  • (String)


6030
6031
6032
# File 'lib/google/apis/container_v1/classes.rb', line 6030

def upgrade_target_version
  @upgrade_target_version
end

#valid_versionsArray<String>

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

Returns:

  • (Array<String>)


6035
6036
6037
# File 'lib/google/apis/container_v1/classes.rb', line 6035

def valid_versions
  @valid_versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6042
6043
6044
6045
6046
6047
# File 'lib/google/apis/container_v1/classes.rb', line 6042

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