Class: Google::Apis::ContainerV1::ServerConfig

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

Kubernetes Engine service configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServerConfig

Returns a new instance of ServerConfig.



6130
6131
6132
# File 'lib/google/apis/container_v1/classes.rb', line 6130

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

Instance Attribute Details

#channelsArray<Google::Apis::ContainerV1::ReleaseChannelConfig>

List of release channel configurations. Corresponds to the JSON property channels



6103
6104
6105
# File 'lib/google/apis/container_v1/classes.rb', line 6103

def channels
  @channels
end

#default_cluster_versionString

Version of Kubernetes the service deploys by default. Corresponds to the JSON property defaultClusterVersion

Returns:

  • (String)


6108
6109
6110
# File 'lib/google/apis/container_v1/classes.rb', line 6108

def default_cluster_version
  @default_cluster_version
end

#default_image_typeString

Default image type. Corresponds to the JSON property defaultImageType

Returns:

  • (String)


6113
6114
6115
# File 'lib/google/apis/container_v1/classes.rb', line 6113

def default_image_type
  @default_image_type
end

#valid_image_typesArray<String>

List of valid image types. Corresponds to the JSON property validImageTypes

Returns:

  • (Array<String>)


6118
6119
6120
# File 'lib/google/apis/container_v1/classes.rb', line 6118

def valid_image_types
  @valid_image_types
end

#valid_master_versionsArray<String>

List of valid master versions, in descending order. Corresponds to the JSON property validMasterVersions

Returns:

  • (Array<String>)


6123
6124
6125
# File 'lib/google/apis/container_v1/classes.rb', line 6123

def valid_master_versions
  @valid_master_versions
end

#valid_node_versionsArray<String>

List of valid node upgrade target versions, in descending order. Corresponds to the JSON property validNodeVersions

Returns:

  • (Array<String>)


6128
6129
6130
# File 'lib/google/apis/container_v1/classes.rb', line 6128

def valid_node_versions
  @valid_node_versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6135
6136
6137
6138
6139
6140
6141
6142
# File 'lib/google/apis/container_v1/classes.rb', line 6135

def update!(**args)
  @channels = args[:channels] if args.key?(:channels)
  @default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version)
  @default_image_type = args[:default_image_type] if args.key?(:default_image_type)
  @valid_image_types = args[:valid_image_types] if args.key?(:valid_image_types)
  @valid_master_versions = args[:valid_master_versions] if args.key?(:valid_master_versions)
  @valid_node_versions = args[:valid_node_versions] if args.key?(:valid_node_versions)
end