Class: Google::Apis::DataprocV1::Cluster

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_nameString

[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

Returns:

  • (String)


39
40
41
# File 'generated/google/apis/dataproc_v1/classes.rb', line 39

def cluster_name
  @cluster_name
end

#cluster_uuidString

[Output-only] A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster. Corresponds to the JSON property clusterUuid

Returns:

  • (String)


60
61
62
# File 'generated/google/apis/dataproc_v1/classes.rb', line 60

def cluster_uuid
  @cluster_uuid
end

#configGoogle::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_idString

[Required] The Google Cloud Platform project ID that the cluster belongs to. Corresponds to the JSON property projectId

Returns:

  • (String)


33
34
35
# File 'generated/google/apis/dataproc_v1/classes.rb', line 33

def project_id
  @project_id
end

#statusGoogle::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_historyArray<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