Class: Google::Apis::ContainerV1::CreateClusterRequest

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

CreateClusterRequest creates a cluster.

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

Returns a new instance of CreateClusterRequest.



517
518
519
# File 'generated/google/apis/container_v1/classes.rb', line 517

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

Instance Attribute Details

#clusterGoogle::Apis::ContainerV1::Cluster

A Google Container Engine cluster. Corresponds to the JSON property cluster



515
516
517
# File 'generated/google/apis/container_v1/classes.rb', line 515

def cluster
  @cluster
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



522
523
524
# File 'generated/google/apis/container_v1/classes.rb', line 522

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