Class: Google::Apis::DataprocV1::ManagedCluster

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb

Overview

Cluster that is managed by the workflow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ManagedCluster

Returns a new instance of ManagedCluster.



3001
3002
3003
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3001

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

Instance Attribute Details

#cluster_nameString

Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters. Corresponds to the JSON property clusterName

Returns:

  • (String)


2985
2986
2987
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2985

def cluster_name
  @cluster_name
end

#configGoogle::Apis::DataprocV1::ClusterConfig

The cluster config. Corresponds to the JSON property config



2990
2991
2992
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2990

def config
  @config
end

#labelsHash<String,String>

Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \pLl\pLo0,62Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \pLl\pLo\ pN_-0,63No more than 32 labels can be associated with a given cluster. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2999
3000
3001
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2999

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3006
3007
3008
3009
3010
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3006

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