Class: Google::Apis::DataprocV1beta2::StopClusterRequest
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1beta2::StopClusterRequest
- 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
A request to stop a cluster.
Instance Attribute Summary collapse
-
#cluster_uuid ⇒ String
Optional.
-
#request_id ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StopClusterRequest
constructor
A new instance of StopClusterRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StopClusterRequest
Returns a new instance of StopClusterRequest.
3284 3285 3286 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 3284 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_uuid ⇒ String
Optional. Specifying the cluster_uuid means the RPC should fail (with error
NOT_FOUND) if cluster with specified UUID does not exist.
Corresponds to the JSON property clusterUuid
3271 3272 3273 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 3271 def cluster_uuid @cluster_uuid end |
#request_id ⇒ String
Optional. A unique id used to identify the request. If the server receives two
StopClusterRequest requests 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.It is recommended to always 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
3282 3283 3284 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 3282 def request_id @request_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3289 3290 3291 3292 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 3289 def update!(**args) @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) @request_id = args[:request_id] if args.key?(:request_id) end |