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

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

Container Engine service configuration.

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) ⇒ ServerConfig

Returns a new instance of ServerConfig.


712
713
714
# File 'generated/google/apis/container_v1/classes.rb', line 712

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

Instance Attribute Details

#default_cluster_versionString

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

Returns:

  • (String)

695
696
697
# File 'generated/google/apis/container_v1/classes.rb', line 695

def default_cluster_version
  @default_cluster_version
end

#default_image_familyString

Default image family. Corresponds to the JSON property defaultImageFamily

Returns:

  • (String)

705
706
707
# File 'generated/google/apis/container_v1/classes.rb', line 705

def default_image_family
  @default_image_family
end

#valid_image_familiesArray<String>

List of valid image families. Corresponds to the JSON property validImageFamilies

Returns:

  • (Array<String>)

710
711
712
# File 'generated/google/apis/container_v1/classes.rb', line 710

def valid_image_families
  @valid_image_families
end

#valid_node_versionsArray<String>

List of valid node upgrade target versions. Corresponds to the JSON property validNodeVersions

Returns:

  • (Array<String>)

700
701
702
# File 'generated/google/apis/container_v1/classes.rb', line 700

def valid_node_versions
  @valid_node_versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


717
718
719
720
721
722
# File 'generated/google/apis/container_v1/classes.rb', line 717

def update!(**args)
  @default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version)
  @valid_node_versions = args[:valid_node_versions] if args.key?(:valid_node_versions)
  @default_image_family = args[:default_image_family] if args.key?(:default_image_family)
  @valid_image_families = args[:valid_image_families] if args.key?(:valid_image_families)
end