google-cloud-dataproc-v1 0.6.2 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/dataproc/v1/autoscaling_policies_pb.rb +3 -2
- data/lib/google/cloud/dataproc/v1/autoscaling_policies_services_pb.rb +1 -1
- data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +150 -56
- data/lib/google/cloud/dataproc/v1/batch_controller/client.rb +719 -0
- data/lib/google/cloud/dataproc/v1/batch_controller/credentials.rb +51 -0
- data/lib/google/cloud/dataproc/v1/batch_controller/operations.rb +767 -0
- data/lib/google/cloud/dataproc/v1/batch_controller/paths.rb +69 -0
- data/lib/google/cloud/dataproc/v1/batch_controller.rb +50 -0
- data/lib/google/cloud/dataproc/v1/batches_pb.rb +123 -0
- data/lib/google/cloud/dataproc/v1/batches_services_pb.rb +52 -0
- data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +319 -93
- data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +145 -33
- data/lib/google/cloud/dataproc/v1/clusters_pb.rb +10 -2
- data/lib/google/cloud/dataproc/v1/clusters_services_pb.rb +3 -1
- data/lib/google/cloud/dataproc/v1/job_controller/client.rb +237 -75
- data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +145 -33
- data/lib/google/cloud/dataproc/v1/jobs_pb.rb +2 -2
- data/lib/google/cloud/dataproc/v1/jobs_services_pb.rb +1 -1
- data/lib/google/cloud/dataproc/v1/operations_pb.rb +18 -3
- data/lib/google/cloud/dataproc/v1/shared_pb.rb +43 -2
- data/lib/google/cloud/dataproc/v1/version.rb +1 -1
- data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +213 -67
- data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +145 -33
- data/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb +2 -2
- data/lib/google/cloud/dataproc/v1/workflow_templates_services_pb.rb +2 -3
- data/lib/google/cloud/dataproc/v1.rb +1 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/dataproc/v1/autoscaling_policies.rb +18 -0
- data/proto_docs/google/cloud/dataproc/v1/batches.rb +339 -0
- data/proto_docs/google/cloud/dataproc/v1/clusters.rb +55 -24
- data/proto_docs/google/cloud/dataproc/v1/jobs.rb +20 -9
- data/proto_docs/google/cloud/dataproc/v1/operations.rb +48 -0
- data/proto_docs/google/cloud/dataproc/v1/shared.rb +127 -1
- data/proto_docs/google/cloud/dataproc/v1/workflow_templates.rb +12 -15
- metadata +13 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75b10ffcc3efa847d380e239d97ac92298df724a70e6f76e161a4357b31e2464
|
4
|
+
data.tar.gz: ff2d2916e09c5503d8cb4ee6f74058770b64254ecb962aa4e71f453f4bae6401
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2f533ae3bc23fa57971f8fe1faf5ba3abf1bec75d25935cb3e3de5229e9b11bcf4e9dd8d2c7c887f6a0fb54ccfdc21764aea94e5f077c6cf5fa5738648a0b6a
|
7
|
+
data.tar.gz: 73a70eb049fc046aa5ece71bf473adad5df91872e7b83172c1439c1766901b5af6df17fff54dd561fa48e68c70cfb83282cd417a44a3a127058a36adaf547357
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dataproc/v1/autoscaling_policies.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/api/resource_pb'
|
10
8
|
require 'google/protobuf/duration_pb'
|
11
9
|
require 'google/protobuf/empty_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/dataproc/v1/autoscaling_policies.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.dataproc.v1.AutoscalingPolicy" do
|
@@ -16,6 +16,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
16
16
|
optional :name, :string, 2
|
17
17
|
optional :worker_config, :message, 4, "google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig"
|
18
18
|
optional :secondary_worker_config, :message, 5, "google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig"
|
19
|
+
map :labels, :string, :string, 6
|
19
20
|
oneof :algorithm do
|
20
21
|
optional :basic_algorithm, :message, 3, "google.cloud.dataproc.v1.BasicAutoscalingAlgorithm"
|
21
22
|
end
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all AutoscalingPolicyService clients
|
48
|
+
# ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -114,19 +113,15 @@ module Google
|
|
114
113
|
##
|
115
114
|
# Create a new AutoscalingPolicyService client object.
|
116
115
|
#
|
117
|
-
#
|
118
|
-
#
|
119
|
-
# To create a new AutoscalingPolicyService client with the default
|
120
|
-
# configuration:
|
121
|
-
#
|
122
|
-
# client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
|
116
|
+
# @example
|
123
117
|
#
|
124
|
-
#
|
125
|
-
#
|
118
|
+
# # Create a client using the default configuration
|
119
|
+
# client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
|
126
120
|
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
121
|
+
# # Create a client using a custom configuration
|
122
|
+
# client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new do |config|
|
123
|
+
# config.timeout = 10.0
|
124
|
+
# end
|
130
125
|
#
|
131
126
|
# @yield [config] Configure the AutoscalingPolicyService client.
|
132
127
|
# @yieldparam config [Client::Configuration]
|
@@ -146,10 +141,9 @@ module Google
|
|
146
141
|
|
147
142
|
# Create credentials
|
148
143
|
credentials = @config.credentials
|
149
|
-
# Use self-signed JWT if the
|
144
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
150
145
|
# but only if the default endpoint does not have a region prefix.
|
151
|
-
enable_self_signed_jwt = @config.
|
152
|
-
@config.endpoint == Client.configure.endpoint &&
|
146
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
153
147
|
!@config.endpoint.split(".").first.include?("-")
|
154
148
|
credentials ||= Credentials.default scope: @config.scope,
|
155
149
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -210,6 +204,21 @@ module Google
|
|
210
204
|
#
|
211
205
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
212
206
|
#
|
207
|
+
# @example Basic example
|
208
|
+
# require "google/cloud/dataproc/v1"
|
209
|
+
#
|
210
|
+
# # Create a client object. The client can be reused for multiple calls.
|
211
|
+
# client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
|
212
|
+
#
|
213
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
214
|
+
# request = Google::Cloud::Dataproc::V1::CreateAutoscalingPolicyRequest.new
|
215
|
+
#
|
216
|
+
# # Call the create_autoscaling_policy method.
|
217
|
+
# result = client.create_autoscaling_policy request
|
218
|
+
#
|
219
|
+
# # The returned object is of type Google::Cloud::Dataproc::V1::AutoscalingPolicy.
|
220
|
+
# p result
|
221
|
+
#
|
213
222
|
def create_autoscaling_policy request, options = nil
|
214
223
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
215
224
|
|
@@ -227,16 +236,20 @@ module Google
|
|
227
236
|
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
228
237
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
229
238
|
|
230
|
-
header_params = {
|
231
|
-
|
232
|
-
|
239
|
+
header_params = {}
|
240
|
+
if request.parent
|
241
|
+
header_params["parent"] = request.parent
|
242
|
+
end
|
243
|
+
|
233
244
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
234
245
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
235
246
|
|
236
247
|
options.apply_defaults timeout: @config.rpcs.create_autoscaling_policy.timeout,
|
237
248
|
metadata: metadata,
|
238
249
|
retry_policy: @config.rpcs.create_autoscaling_policy.retry_policy
|
239
|
-
|
250
|
+
|
251
|
+
options.apply_defaults timeout: @config.timeout,
|
252
|
+
metadata: @config.metadata,
|
240
253
|
retry_policy: @config.retry_policy
|
241
254
|
|
242
255
|
@autoscaling_policy_service_stub.call_rpc :create_autoscaling_policy, request, options: options do |response, operation|
|
@@ -279,6 +292,21 @@ module Google
|
|
279
292
|
#
|
280
293
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
281
294
|
#
|
295
|
+
# @example Basic example
|
296
|
+
# require "google/cloud/dataproc/v1"
|
297
|
+
#
|
298
|
+
# # Create a client object. The client can be reused for multiple calls.
|
299
|
+
# client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
|
300
|
+
#
|
301
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
302
|
+
# request = Google::Cloud::Dataproc::V1::UpdateAutoscalingPolicyRequest.new
|
303
|
+
#
|
304
|
+
# # Call the update_autoscaling_policy method.
|
305
|
+
# result = client.update_autoscaling_policy request
|
306
|
+
#
|
307
|
+
# # The returned object is of type Google::Cloud::Dataproc::V1::AutoscalingPolicy.
|
308
|
+
# p result
|
309
|
+
#
|
282
310
|
def update_autoscaling_policy request, options = nil
|
283
311
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
284
312
|
|
@@ -296,16 +324,20 @@ module Google
|
|
296
324
|
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
297
325
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
298
326
|
|
299
|
-
header_params = {
|
300
|
-
|
301
|
-
|
327
|
+
header_params = {}
|
328
|
+
if request.policy&.name
|
329
|
+
header_params["policy.name"] = request.policy.name
|
330
|
+
end
|
331
|
+
|
302
332
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
303
333
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
304
334
|
|
305
335
|
options.apply_defaults timeout: @config.rpcs.update_autoscaling_policy.timeout,
|
306
336
|
metadata: metadata,
|
307
337
|
retry_policy: @config.rpcs.update_autoscaling_policy.retry_policy
|
308
|
-
|
338
|
+
|
339
|
+
options.apply_defaults timeout: @config.timeout,
|
340
|
+
metadata: @config.metadata,
|
309
341
|
retry_policy: @config.retry_policy
|
310
342
|
|
311
343
|
@autoscaling_policy_service_stub.call_rpc :update_autoscaling_policy, request, options: options do |response, operation|
|
@@ -354,6 +386,21 @@ module Google
|
|
354
386
|
#
|
355
387
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
356
388
|
#
|
389
|
+
# @example Basic example
|
390
|
+
# require "google/cloud/dataproc/v1"
|
391
|
+
#
|
392
|
+
# # Create a client object. The client can be reused for multiple calls.
|
393
|
+
# client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
|
394
|
+
#
|
395
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
396
|
+
# request = Google::Cloud::Dataproc::V1::GetAutoscalingPolicyRequest.new
|
397
|
+
#
|
398
|
+
# # Call the get_autoscaling_policy method.
|
399
|
+
# result = client.get_autoscaling_policy request
|
400
|
+
#
|
401
|
+
# # The returned object is of type Google::Cloud::Dataproc::V1::AutoscalingPolicy.
|
402
|
+
# p result
|
403
|
+
#
|
357
404
|
def get_autoscaling_policy request, options = nil
|
358
405
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
359
406
|
|
@@ -371,16 +418,20 @@ module Google
|
|
371
418
|
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
372
419
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
373
420
|
|
374
|
-
header_params = {
|
375
|
-
|
376
|
-
|
421
|
+
header_params = {}
|
422
|
+
if request.name
|
423
|
+
header_params["name"] = request.name
|
424
|
+
end
|
425
|
+
|
377
426
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
378
427
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
379
428
|
|
380
429
|
options.apply_defaults timeout: @config.rpcs.get_autoscaling_policy.timeout,
|
381
430
|
metadata: metadata,
|
382
431
|
retry_policy: @config.rpcs.get_autoscaling_policy.retry_policy
|
383
|
-
|
432
|
+
|
433
|
+
options.apply_defaults timeout: @config.timeout,
|
434
|
+
metadata: @config.metadata,
|
384
435
|
retry_policy: @config.retry_policy
|
385
436
|
|
386
437
|
@autoscaling_policy_service_stub.call_rpc :get_autoscaling_policy, request, options: options do |response, operation|
|
@@ -435,6 +486,27 @@ module Google
|
|
435
486
|
#
|
436
487
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
437
488
|
#
|
489
|
+
# @example Basic example
|
490
|
+
# require "google/cloud/dataproc/v1"
|
491
|
+
#
|
492
|
+
# # Create a client object. The client can be reused for multiple calls.
|
493
|
+
# client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
|
494
|
+
#
|
495
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
496
|
+
# request = Google::Cloud::Dataproc::V1::ListAutoscalingPoliciesRequest.new
|
497
|
+
#
|
498
|
+
# # Call the list_autoscaling_policies method.
|
499
|
+
# result = client.list_autoscaling_policies request
|
500
|
+
#
|
501
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
502
|
+
# # iterate over all elements by calling #each, and the enumerable
|
503
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
504
|
+
# # methods are also available for managing paging directly.
|
505
|
+
# result.each do |response|
|
506
|
+
# # Each element is of type ::Google::Cloud::Dataproc::V1::AutoscalingPolicy.
|
507
|
+
# p response
|
508
|
+
# end
|
509
|
+
#
|
438
510
|
def list_autoscaling_policies request, options = nil
|
439
511
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
440
512
|
|
@@ -452,16 +524,20 @@ module Google
|
|
452
524
|
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
453
525
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
454
526
|
|
455
|
-
header_params = {
|
456
|
-
|
457
|
-
|
527
|
+
header_params = {}
|
528
|
+
if request.parent
|
529
|
+
header_params["parent"] = request.parent
|
530
|
+
end
|
531
|
+
|
458
532
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
459
533
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
460
534
|
|
461
535
|
options.apply_defaults timeout: @config.rpcs.list_autoscaling_policies.timeout,
|
462
536
|
metadata: metadata,
|
463
537
|
retry_policy: @config.rpcs.list_autoscaling_policies.retry_policy
|
464
|
-
|
538
|
+
|
539
|
+
options.apply_defaults timeout: @config.timeout,
|
540
|
+
metadata: @config.metadata,
|
465
541
|
retry_policy: @config.retry_policy
|
466
542
|
|
467
543
|
@autoscaling_policy_service_stub.call_rpc :list_autoscaling_policies, request, options: options do |response, operation|
|
@@ -512,6 +588,21 @@ module Google
|
|
512
588
|
#
|
513
589
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
514
590
|
#
|
591
|
+
# @example Basic example
|
592
|
+
# require "google/cloud/dataproc/v1"
|
593
|
+
#
|
594
|
+
# # Create a client object. The client can be reused for multiple calls.
|
595
|
+
# client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
|
596
|
+
#
|
597
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
598
|
+
# request = Google::Cloud::Dataproc::V1::DeleteAutoscalingPolicyRequest.new
|
599
|
+
#
|
600
|
+
# # Call the delete_autoscaling_policy method.
|
601
|
+
# result = client.delete_autoscaling_policy request
|
602
|
+
#
|
603
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
604
|
+
# p result
|
605
|
+
#
|
515
606
|
def delete_autoscaling_policy request, options = nil
|
516
607
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
517
608
|
|
@@ -529,16 +620,20 @@ module Google
|
|
529
620
|
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
530
621
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
531
622
|
|
532
|
-
header_params = {
|
533
|
-
|
534
|
-
|
623
|
+
header_params = {}
|
624
|
+
if request.name
|
625
|
+
header_params["name"] = request.name
|
626
|
+
end
|
627
|
+
|
535
628
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
536
629
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
537
630
|
|
538
631
|
options.apply_defaults timeout: @config.rpcs.delete_autoscaling_policy.timeout,
|
539
632
|
metadata: metadata,
|
540
633
|
retry_policy: @config.rpcs.delete_autoscaling_policy.retry_policy
|
541
|
-
|
634
|
+
|
635
|
+
options.apply_defaults timeout: @config.timeout,
|
636
|
+
metadata: @config.metadata,
|
542
637
|
retry_policy: @config.retry_policy
|
543
638
|
|
544
639
|
@autoscaling_policy_service_stub.call_rpc :delete_autoscaling_policy, request, options: options do |response, operation|
|
@@ -562,22 +657,21 @@ module Google
|
|
562
657
|
# Configuration can be applied globally to all clients, or to a single client
|
563
658
|
# on construction.
|
564
659
|
#
|
565
|
-
#
|
566
|
-
#
|
567
|
-
#
|
568
|
-
# to 20 seconds,
|
569
|
-
#
|
570
|
-
#
|
571
|
-
#
|
572
|
-
#
|
573
|
-
#
|
574
|
-
#
|
575
|
-
#
|
576
|
-
#
|
577
|
-
#
|
578
|
-
#
|
579
|
-
#
|
580
|
-
# end
|
660
|
+
# @example
|
661
|
+
#
|
662
|
+
# # Modify the global config, setting the timeout for
|
663
|
+
# # create_autoscaling_policy to 20 seconds,
|
664
|
+
# # and all remaining timeouts to 10 seconds.
|
665
|
+
# ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.configure do |config|
|
666
|
+
# config.timeout = 10.0
|
667
|
+
# config.rpcs.create_autoscaling_policy.timeout = 20.0
|
668
|
+
# end
|
669
|
+
#
|
670
|
+
# # Apply the above configuration only to a new client.
|
671
|
+
# client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new do |config|
|
672
|
+
# config.timeout = 10.0
|
673
|
+
# config.rpcs.create_autoscaling_policy.timeout = 20.0
|
674
|
+
# end
|
581
675
|
#
|
582
676
|
# @!attribute [rw] endpoint
|
583
677
|
# The hostname or hostname:port of the service endpoint.
|