google-cloud-dataproc-v1 0.25.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +13 -5
  3. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/client.rb +13 -5
  4. data/lib/google/cloud/dataproc/v1/batch_controller/client.rb +11 -4
  5. data/lib/google/cloud/dataproc/v1/batch_controller/operations.rb +13 -5
  6. data/lib/google/cloud/dataproc/v1/batch_controller/rest/client.rb +11 -4
  7. data/lib/google/cloud/dataproc/v1/batch_controller/rest/operations.rb +11 -4
  8. data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +19 -8
  9. data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +13 -5
  10. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/client.rb +19 -8
  11. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/operations.rb +11 -4
  12. data/lib/google/cloud/dataproc/v1/job_controller/client.rb +17 -7
  13. data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +13 -5
  14. data/lib/google/cloud/dataproc/v1/job_controller/rest/client.rb +17 -7
  15. data/lib/google/cloud/dataproc/v1/job_controller/rest/operations.rb +11 -4
  16. data/lib/google/cloud/dataproc/v1/node_group_controller/client.rb +9 -3
  17. data/lib/google/cloud/dataproc/v1/node_group_controller/operations.rb +13 -5
  18. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/client.rb +9 -3
  19. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/operations.rb +11 -4
  20. data/lib/google/cloud/dataproc/v1/session_controller/client.rb +13 -5
  21. data/lib/google/cloud/dataproc/v1/session_controller/operations.rb +13 -5
  22. data/lib/google/cloud/dataproc/v1/session_controller/rest/client.rb +13 -5
  23. data/lib/google/cloud/dataproc/v1/session_controller/rest/operations.rb +11 -4
  24. data/lib/google/cloud/dataproc/v1/session_template_controller/client.rb +13 -5
  25. data/lib/google/cloud/dataproc/v1/session_template_controller/rest/client.rb +13 -5
  26. data/lib/google/cloud/dataproc/v1/shared_pb.rb +3 -1
  27. data/lib/google/cloud/dataproc/v1/version.rb +1 -1
  28. data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +17 -7
  29. data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +13 -5
  30. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/client.rb +17 -7
  31. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/operations.rb +11 -4
  32. data/proto_docs/google/api/client.rb +4 -0
  33. data/proto_docs/google/cloud/dataproc/v1/shared.rb +32 -0
  34. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e949d654d2dd254761398deff99e483ec9c526b62cd88d4d302b6e780bb8664e
4
- data.tar.gz: ee918dd040660beeb7b1444e5e75f28632496a984f2e2907aaf9195530356d89
3
+ metadata.gz: 5c0874b57d05e07f492399abe0e1903bda007936f885ce2e6ca1724a12741740
4
+ data.tar.gz: 7528695ead864d2e72d7213d5d2b26b1204c0ef5cd3c5e5d704a6583e117397f
5
5
  SHA512:
6
- metadata.gz: ef4939cefb7bd7641ecc7018948c4329a2da5dfd5de9b792dfc3ff704fca4f9b19fe954e63ab5042c6fde64eab72eb0586dc8a464fdcb6e8e9cbff2337f727f3
7
- data.tar.gz: efb851ea7dd07ff41fe3c5b42929b4e5ef56b1560e174f7c3c2ebb4b7ddd571014f14abd87791380a81b73c048b69d3b778288f74b81cd92489e6dde1ca64088
6
+ metadata.gz: e2c104d073431bf93a8202cb02a6388a5c1abac8b6305bb4b41868cddc691ea81495b5a6ef1f08072cae530b416e6613b89e5cded181ca95a126b7fce4cb53fa
7
+ data.tar.gz: b7e89b62b92bcb555ed37fc074fcf48b3cb91d9265a544b45958bc57d99bc7d71881ffb09cf30b85c6af8a694ea014cd7aa5a660ea4e5340eccfcfe6908fa79b
@@ -32,6 +32,9 @@ module Google
32
32
  # Dataproc API.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
37
40
 
@@ -261,10 +264,11 @@ module Google
261
264
  # Customize the options with defaults
262
265
  metadata = @config.rpcs.create_autoscaling_policy.metadata.to_h
263
266
 
264
- # Set x-goog-api-client and x-goog-user-project headers
267
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
265
268
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
266
269
  lib_name: @config.lib_name, lib_version: @config.lib_version,
267
270
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
271
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
268
272
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
269
273
 
270
274
  header_params = {}
@@ -349,10 +353,11 @@ module Google
349
353
  # Customize the options with defaults
350
354
  metadata = @config.rpcs.update_autoscaling_policy.metadata.to_h
351
355
 
352
- # Set x-goog-api-client and x-goog-user-project headers
356
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
353
357
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
354
358
  lib_name: @config.lib_name, lib_version: @config.lib_version,
355
359
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
360
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
356
361
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
357
362
 
358
363
  header_params = {}
@@ -443,10 +448,11 @@ module Google
443
448
  # Customize the options with defaults
444
449
  metadata = @config.rpcs.get_autoscaling_policy.metadata.to_h
445
450
 
446
- # Set x-goog-api-client and x-goog-user-project headers
451
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
447
452
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
448
453
  lib_name: @config.lib_name, lib_version: @config.lib_version,
449
454
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
455
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
450
456
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
451
457
 
452
458
  header_params = {}
@@ -547,10 +553,11 @@ module Google
547
553
  # Customize the options with defaults
548
554
  metadata = @config.rpcs.list_autoscaling_policies.metadata.to_h
549
555
 
550
- # Set x-goog-api-client and x-goog-user-project headers
556
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
551
557
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
552
558
  lib_name: @config.lib_name, lib_version: @config.lib_version,
553
559
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
560
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
554
561
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
555
562
 
556
563
  header_params = {}
@@ -643,10 +650,11 @@ module Google
643
650
  # Customize the options with defaults
644
651
  metadata = @config.rpcs.delete_autoscaling_policy.metadata.to_h
645
652
 
646
- # Set x-goog-api-client and x-goog-user-project headers
653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
647
654
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
648
655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
649
656
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
657
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
650
658
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
651
659
 
652
660
  header_params = {}
@@ -34,6 +34,9 @@ module Google
34
34
  # Dataproc API.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
39
42
 
@@ -254,12 +257,13 @@ module Google
254
257
  # Customize the options with defaults
255
258
  call_metadata = @config.rpcs.create_autoscaling_policy.metadata.to_h
256
259
 
257
- # Set x-goog-api-client and x-goog-user-project headers
260
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
258
261
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
259
262
  lib_name: @config.lib_name, lib_version: @config.lib_version,
260
263
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
261
264
  transports_version_send: [:rest]
262
265
 
266
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
263
267
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
264
268
 
265
269
  options.apply_defaults timeout: @config.rpcs.create_autoscaling_policy.timeout,
@@ -335,12 +339,13 @@ module Google
335
339
  # Customize the options with defaults
336
340
  call_metadata = @config.rpcs.update_autoscaling_policy.metadata.to_h
337
341
 
338
- # Set x-goog-api-client and x-goog-user-project headers
342
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
339
343
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
340
344
  lib_name: @config.lib_name, lib_version: @config.lib_version,
341
345
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
342
346
  transports_version_send: [:rest]
343
347
 
348
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
344
349
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
345
350
 
346
351
  options.apply_defaults timeout: @config.rpcs.update_autoscaling_policy.timeout,
@@ -422,12 +427,13 @@ module Google
422
427
  # Customize the options with defaults
423
428
  call_metadata = @config.rpcs.get_autoscaling_policy.metadata.to_h
424
429
 
425
- # Set x-goog-api-client and x-goog-user-project headers
430
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
426
431
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
427
432
  lib_name: @config.lib_name, lib_version: @config.lib_version,
428
433
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
429
434
  transports_version_send: [:rest]
430
435
 
436
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
431
437
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
432
438
 
433
439
  options.apply_defaults timeout: @config.rpcs.get_autoscaling_policy.timeout,
@@ -519,12 +525,13 @@ module Google
519
525
  # Customize the options with defaults
520
526
  call_metadata = @config.rpcs.list_autoscaling_policies.metadata.to_h
521
527
 
522
- # Set x-goog-api-client and x-goog-user-project headers
528
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
523
529
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
524
530
  lib_name: @config.lib_name, lib_version: @config.lib_version,
525
531
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
526
532
  transports_version_send: [:rest]
527
533
 
534
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
528
535
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
529
536
 
530
537
  options.apply_defaults timeout: @config.rpcs.list_autoscaling_policies.timeout,
@@ -608,12 +615,13 @@ module Google
608
615
  # Customize the options with defaults
609
616
  call_metadata = @config.rpcs.delete_autoscaling_policy.metadata.to_h
610
617
 
611
- # Set x-goog-api-client and x-goog-user-project headers
618
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
612
619
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
613
620
  lib_name: @config.lib_name, lib_version: @config.lib_version,
614
621
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
615
622
  transports_version_send: [:rest]
616
623
 
624
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
617
625
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
618
626
 
619
627
  options.apply_defaults timeout: @config.rpcs.delete_autoscaling_policy.timeout,
@@ -31,6 +31,9 @@ module Google
31
31
  # The BatchController provides methods to manage batch workloads.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
34
37
  # @private
35
38
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
36
39
 
@@ -271,10 +274,11 @@ module Google
271
274
  # Customize the options with defaults
272
275
  metadata = @config.rpcs.create_batch.metadata.to_h
273
276
 
274
- # Set x-goog-api-client and x-goog-user-project headers
277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
275
278
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
276
279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
277
280
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
281
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
282
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
283
 
280
284
  header_params = {}
@@ -359,10 +363,11 @@ module Google
359
363
  # Customize the options with defaults
360
364
  metadata = @config.rpcs.get_batch.metadata.to_h
361
365
 
362
- # Set x-goog-api-client and x-goog-user-project headers
366
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
363
367
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
364
368
  lib_name: @config.lib_name, lib_version: @config.lib_version,
365
369
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
370
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
366
371
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
367
372
 
368
373
  header_params = {}
@@ -475,10 +480,11 @@ module Google
475
480
  # Customize the options with defaults
476
481
  metadata = @config.rpcs.list_batches.metadata.to_h
477
482
 
478
- # Set x-goog-api-client and x-goog-user-project headers
483
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
479
484
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
480
485
  lib_name: @config.lib_name, lib_version: @config.lib_version,
481
486
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
487
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
482
488
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
483
489
 
484
490
  header_params = {}
@@ -564,10 +570,11 @@ module Google
564
570
  # Customize the options with defaults
565
571
  metadata = @config.rpcs.delete_batch.metadata.to_h
566
572
 
567
- # Set x-goog-api-client and x-goog-user-project headers
573
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
568
574
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
569
575
  lib_name: @config.lib_name, lib_version: @config.lib_version,
570
576
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
577
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
571
578
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
572
579
 
573
580
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module BatchController
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The BatchController provides methods to manage batch workloads.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
38
41
 
@@ -264,12 +267,13 @@ module Google
264
267
  # Customize the options with defaults
265
268
  call_metadata = @config.rpcs.create_batch.metadata.to_h
266
269
 
267
- # Set x-goog-api-client and x-goog-user-project headers
270
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
268
271
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
269
272
  lib_name: @config.lib_name, lib_version: @config.lib_version,
270
273
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
271
274
  transports_version_send: [:rest]
272
275
 
276
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
273
277
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
274
278
 
275
279
  options.apply_defaults timeout: @config.rpcs.create_batch.timeout,
@@ -345,12 +349,13 @@ module Google
345
349
  # Customize the options with defaults
346
350
  call_metadata = @config.rpcs.get_batch.metadata.to_h
347
351
 
348
- # Set x-goog-api-client and x-goog-user-project headers
352
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
349
353
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
350
354
  lib_name: @config.lib_name, lib_version: @config.lib_version,
351
355
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
352
356
  transports_version_send: [:rest]
353
357
 
358
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
354
359
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
355
360
 
356
361
  options.apply_defaults timeout: @config.rpcs.get_batch.timeout,
@@ -454,12 +459,13 @@ module Google
454
459
  # Customize the options with defaults
455
460
  call_metadata = @config.rpcs.list_batches.metadata.to_h
456
461
 
457
- # Set x-goog-api-client and x-goog-user-project headers
462
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
458
463
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
459
464
  lib_name: @config.lib_name, lib_version: @config.lib_version,
460
465
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
461
466
  transports_version_send: [:rest]
462
467
 
468
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
463
469
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
464
470
 
465
471
  options.apply_defaults timeout: @config.rpcs.list_batches.timeout,
@@ -536,12 +542,13 @@ module Google
536
542
  # Customize the options with defaults
537
543
  call_metadata = @config.rpcs.delete_batch.metadata.to_h
538
544
 
539
- # Set x-goog-api-client and x-goog-user-project headers
545
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
540
546
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
541
547
  lib_name: @config.lib_name, lib_version: @config.lib_version,
542
548
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
543
549
  transports_version_send: [:rest]
544
550
 
551
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
545
552
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
546
553
 
547
554
  options.apply_defaults timeout: @config.rpcs.delete_batch.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # of Compute Engine instances.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
37
40
 
@@ -304,10 +307,11 @@ module Google
304
307
  # Customize the options with defaults
305
308
  metadata = @config.rpcs.create_cluster.metadata.to_h
306
309
 
307
- # Set x-goog-api-client and x-goog-user-project headers
310
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
308
311
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
309
312
  lib_name: @config.lib_name, lib_version: @config.lib_version,
310
313
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
314
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
311
315
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
312
316
 
313
317
  header_params = {}
@@ -487,10 +491,11 @@ module Google
487
491
  # Customize the options with defaults
488
492
  metadata = @config.rpcs.update_cluster.metadata.to_h
489
493
 
490
- # Set x-goog-api-client and x-goog-user-project headers
494
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
491
495
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
492
496
  lib_name: @config.lib_name, lib_version: @config.lib_version,
493
497
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
498
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
494
499
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
495
500
 
496
501
  header_params = {}
@@ -607,10 +612,11 @@ module Google
607
612
  # Customize the options with defaults
608
613
  metadata = @config.rpcs.stop_cluster.metadata.to_h
609
614
 
610
- # Set x-goog-api-client and x-goog-user-project headers
615
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
611
616
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
612
617
  lib_name: @config.lib_name, lib_version: @config.lib_version,
613
618
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
619
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
614
620
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
615
621
 
616
622
  header_params = {}
@@ -727,10 +733,11 @@ module Google
727
733
  # Customize the options with defaults
728
734
  metadata = @config.rpcs.start_cluster.metadata.to_h
729
735
 
730
- # Set x-goog-api-client and x-goog-user-project headers
736
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
731
737
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
732
738
  lib_name: @config.lib_name, lib_version: @config.lib_version,
733
739
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
740
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
734
741
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
735
742
 
736
743
  header_params = {}
@@ -849,10 +856,11 @@ module Google
849
856
  # Customize the options with defaults
850
857
  metadata = @config.rpcs.delete_cluster.metadata.to_h
851
858
 
852
- # Set x-goog-api-client and x-goog-user-project headers
859
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
853
860
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
854
861
  lib_name: @config.lib_name, lib_version: @config.lib_version,
855
862
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
863
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
856
864
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
857
865
 
858
866
  header_params = {}
@@ -946,10 +954,11 @@ module Google
946
954
  # Customize the options with defaults
947
955
  metadata = @config.rpcs.get_cluster.metadata.to_h
948
956
 
949
- # Set x-goog-api-client and x-goog-user-project headers
957
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
950
958
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
951
959
  lib_name: @config.lib_name, lib_version: @config.lib_version,
952
960
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
961
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
953
962
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
954
963
 
955
964
  header_params = {}
@@ -1068,10 +1077,11 @@ module Google
1068
1077
  # Customize the options with defaults
1069
1078
  metadata = @config.rpcs.list_clusters.metadata.to_h
1070
1079
 
1071
- # Set x-goog-api-client and x-goog-user-project headers
1080
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1072
1081
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1073
1082
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1074
1083
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
1084
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1075
1085
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1076
1086
 
1077
1087
  header_params = {}
@@ -1188,10 +1198,11 @@ module Google
1188
1198
  # Customize the options with defaults
1189
1199
  metadata = @config.rpcs.diagnose_cluster.metadata.to_h
1190
1200
 
1191
- # Set x-goog-api-client and x-goog-user-project headers
1201
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1192
1202
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1193
1203
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1194
1204
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
1205
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1195
1206
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1196
1207
 
1197
1208
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module ClusterController
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "dataproc.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,