Class: Google::Apis::DataprocV1beta2::ManagedCluster
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1beta2::ManagedCluster
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1beta2/classes.rb,
generated/google/apis/dataproc_v1beta2/representations.rb,
generated/google/apis/dataproc_v1beta2/representations.rb
Overview
Cluster that is managed by the workflow.
Instance Attribute Summary collapse
-
#cluster_name ⇒ String
Required.
-
#config ⇒ Google::Apis::DataprocV1beta2::ClusterConfig
The cluster config.
-
#labels ⇒ Hash<String,String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ManagedCluster
constructor
A new instance of ManagedCluster.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ManagedCluster
Returns a new instance of ManagedCluster
1518 1519 1520 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1518 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_name ⇒ String
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
1502 1503 1504 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1502 def cluster_name @cluster_name end |
#config ⇒ Google::Apis::DataprocV1beta2::ClusterConfig
The cluster config.
Corresponds to the JSON property config
1507 1508 1509 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1507 def config @config end |
#labels ⇒ Hash<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
\pLo
0,62
Label values must be between 1 and 63 characters
long, and must conform to the following PCRE regular expression: \pLl
\pLo
\
pN
_-0,63
No more than 32 labels can be associated with a given cluster.
Corresponds to the JSON property labels
1516 1517 1518 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1516 def labels @labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1523 1524 1525 1526 1527 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1523 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 |