class Google::Apis::DataprocV1::Cluster

Describes the identifying information, config, and status of a cluster of Google Compute Engine instances.

Attributes

cluster_name[RW]
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` @return [String]

cluster_uuid[RW]
Output-only

A cluster UUID (Unique Universal Identifier). Cloud Dataproc

generates this value when it creates the cluster. Corresponds to the JSON property `clusterUuid` @return [String]

config[RW]

The cluster config. Corresponds to the JSON property `config` @return [Google::Apis::DataprocV1::ClusterConfig]

project_id[RW]
Required

The Google Cloud Platform project ID that the cluster belongs to.

Corresponds to the JSON property `projectId` @return [String]

status[RW]

The status of a cluster and its instances. Corresponds to the JSON property `status` @return [Google::Apis::DataprocV1::ClusterStatus]

status_history[RW]
Output-only

The previous cluster status.

Corresponds to the JSON property `statusHistory` @return [Array<Google::Apis::DataprocV1::ClusterStatus>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dataproc_v1/classes.rb, line 81
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/dataproc_v1/classes.rb, line 86
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