Class: Google::Apis::DataprocV1beta2::StopClusterRequest

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

Overview

A request to stop a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StopClusterRequest

Returns a new instance of StopClusterRequest.



3300
3301
3302
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 3300

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

Instance Attribute Details

#cluster_uuidString

Optional. Specifying the cluster_uuid means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist. Corresponds to the JSON property clusterUuid

Returns:

  • (String)


3285
3286
3287
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 3285

def cluster_uuid
  @cluster_uuid
end

#request_idString

Optional. A unique id used to identify the request. If the server receives two StopClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/ google.cloud.dataproc.v1beta2#google.cloud.dataproc.v1beta2.StopClusterRequest) s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned. Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/ Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. Corresponds to the JSON property requestId

Returns:

  • (String)


3298
3299
3300
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 3298

def request_id
  @request_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3305
3306
3307
3308
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 3305

def update!(**args)
  @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
  @request_id = args[:request_id] if args.key?(:request_id)
end