Class: Google::Apis::ContainerV1beta1::ServerConfig

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

Kubernetes 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



2679
2680
2681
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2679

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)


2657
2658
2659
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2657

def default_cluster_version
  @default_cluster_version
end

#default_image_typeString

Default image type. Corresponds to the JSON property defaultImageType

Returns:

  • (String)


2662
2663
2664
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2662

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


2667
2668
2669
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2667

def valid_image_types
  @valid_image_types
end

#valid_master_versionsArray<String>

List of valid master versions. Corresponds to the JSON property validMasterVersions

Returns:

  • (Array<String>)


2672
2673
2674
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2672

def valid_master_versions
  @valid_master_versions
end

#valid_node_versionsArray<String>

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

Returns:

  • (Array<String>)


2677
2678
2679
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2677

def valid_node_versions
  @valid_node_versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2684
2685
2686
2687
2688
2689
2690
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2684

def update!(**args)
  @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