lib/google/cloud/dataproc/v1beta2/cluster_controller_client.rb in google-cloud-dataproc-0.3.1 vs lib/google/cloud/dataproc/v1beta2/cluster_controller_client.rb in google-cloud-dataproc-0.4.0
- old
+ new
@@ -27,10 +27,11 @@
require "google/gax/operation"
require "google/longrunning/operations_client"
require "google/cloud/dataproc/v1beta2/clusters_pb"
require "google/cloud/dataproc/v1beta2/credentials"
+require "google/cloud/dataproc/version"
module Google
module Cloud
module Dataproc
module V1beta2
@@ -144,11 +145,11 @@
end
if credentials.is_a?(Google::Auth::Credentials)
updater_proc = credentials.updater_proc
end
- package_version = Gem.loaded_specs['google-cloud-dataproc'].version.version
+ package_version = Google::Cloud::Dataproc::VERSION
google_api_client = "gl-ruby/#{RUBY_VERSION}"
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
google_api_client << " gapic/#{package_version} gax/#{Google::Gax::VERSION}"
google_api_client << " grpc/#{GRPC::VERSION}"
@@ -232,15 +233,14 @@
# Required. The cluster to create.
# A hash of the same form as `Google::Cloud::Dataproc::V1beta2::Cluster`
# can also be provided.
# @param request_id [String]
# Optional. A unique id used to identify the request. If the server
- # receives two
- # {Google::Cloud::Dataproc::V1beta2::CreateClusterRequest CreateClusterRequest}
- # 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.
+ # receives two {Google::Cloud::Dataproc::V1beta2::CreateClusterRequest CreateClusterRequest} 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),
@@ -382,10 +382,14 @@
# </tr>
# <tr>
# <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
# duration</td>
# </tr>
+ # <tr>
+ # <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ # autoscaling policies</td>
+ # </tr>
# </table>
# A hash of the same form as `Google::Protobuf::FieldMask`
# can also be provided.
# @param graceful_decommission_timeout [Google::Protobuf::Duration | Hash]
# Optional. Timeout for graceful YARN decomissioning. Graceful
@@ -398,15 +402,14 @@
# Only supported on Dataproc image versions 1.2 and higher.
# A hash of the same form as `Google::Protobuf::Duration`
# can also be provided.
# @param request_id [String]
# Optional. A unique id used to identify the request. If the server
- # receives two
- # {Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest UpdateClusterRequest}
- # 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.
+ # receives two {Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest UpdateClusterRequest} 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),
@@ -505,14 +508,13 @@
# @param 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.
# @param request_id [String]
# Optional. A unique id used to identify the request. If the server
- # receives two
- # {Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest DeleteClusterRequest}
- # 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.
+ # receives two {Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest DeleteClusterRequest} 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),