Class: Google::Apis::DataprocV1::Cluster
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::Cluster
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1/classes.rb,
generated/google/apis/dataproc_v1/representations.rb,
generated/google/apis/dataproc_v1/representations.rb
Overview
Describes the identifying information, config, and status of a cluster of Google Compute Engine instances.
Instance Attribute Summary collapse
-
#cluster_name ⇒ String
[Required] The cluster name.
-
#cluster_uuid ⇒ String
[Output-only] A cluster UUID (Unique Universal Identifier).
-
#config ⇒ Google::Apis::DataprocV1::ClusterConfig
The cluster config.
-
#project_id ⇒ String
[Required] The Google Cloud Platform project ID that the cluster belongs to.
-
#status ⇒ Google::Apis::DataprocV1::ClusterStatus
The status of a cluster and its instances.
-
#status_history ⇒ Array<Google::Apis::DataprocV1::ClusterStatus>
[Output-only] The previous cluster status.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Cluster
constructor
A new instance of Cluster.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Cluster
Returns a new instance of Cluster.
62 63 64 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 62 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_name ⇒ String
[Required] The cluster name. Cluster names within a project must be unique.
Names of deleted clusters can be reused.
Corresponds to the JSON property clusterName
39 40 41 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 39 def cluster_name @cluster_name end |
#cluster_uuid ⇒ String
[Output-only] A cluster UUID (Unique Universal Identifier). Cloud Dataproc
generates this value when it creates the cluster.
Corresponds to the JSON property clusterUuid
60 61 62 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 60 def cluster_uuid @cluster_uuid end |
#config ⇒ Google::Apis::DataprocV1::ClusterConfig
The cluster config.
Corresponds to the JSON property config
44 45 46 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 44 def config @config end |
#project_id ⇒ String
[Required] The Google Cloud Platform project ID that the cluster belongs to.
Corresponds to the JSON property projectId
33 34 35 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 33 def project_id @project_id end |
#status ⇒ Google::Apis::DataprocV1::ClusterStatus
The status of a cluster and its instances.
Corresponds to the JSON property status
49 50 51 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 49 def status @status end |
#status_history ⇒ Array<Google::Apis::DataprocV1::ClusterStatus>
[Output-only] The previous cluster status.
Corresponds to the JSON property statusHistory
54 55 56 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 54 def status_history @status_history end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
67 68 69 70 71 72 73 74 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 67 def update!(**args) @project_id = args[:project_id] if args.key?(:project_id) @cluster_name = args[:cluster_name] if args.key?(:cluster_name) @config = args[:config] if args.key?(:config) @status = args[:status] if args.key?(:status) @status_history = args[:status_history] if args.key?(:status_history) @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) end |