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
@@ -34,6 +34,9 @@ module Google
34
34
  # of Compute Engine instances.
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
 
@@ -297,12 +300,13 @@ module Google
297
300
  # Customize the options with defaults
298
301
  call_metadata = @config.rpcs.create_cluster.metadata.to_h
299
302
 
300
- # Set x-goog-api-client and x-goog-user-project headers
303
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
301
304
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
302
305
  lib_name: @config.lib_name, lib_version: @config.lib_version,
303
306
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
304
307
  transports_version_send: [:rest]
305
308
 
309
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
306
310
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
307
311
 
308
312
  options.apply_defaults timeout: @config.rpcs.create_cluster.timeout,
@@ -470,12 +474,13 @@ module Google
470
474
  # Customize the options with defaults
471
475
  call_metadata = @config.rpcs.update_cluster.metadata.to_h
472
476
 
473
- # Set x-goog-api-client and x-goog-user-project headers
477
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
478
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
479
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
480
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
477
481
  transports_version_send: [:rest]
478
482
 
483
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
479
484
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
480
485
 
481
486
  options.apply_defaults timeout: @config.rpcs.update_cluster.timeout,
@@ -577,12 +582,13 @@ module Google
577
582
  # Customize the options with defaults
578
583
  call_metadata = @config.rpcs.stop_cluster.metadata.to_h
579
584
 
580
- # Set x-goog-api-client and x-goog-user-project headers
585
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
581
586
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
582
587
  lib_name: @config.lib_name, lib_version: @config.lib_version,
583
588
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
584
589
  transports_version_send: [:rest]
585
590
 
591
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
586
592
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
587
593
 
588
594
  options.apply_defaults timeout: @config.rpcs.stop_cluster.timeout,
@@ -684,12 +690,13 @@ module Google
684
690
  # Customize the options with defaults
685
691
  call_metadata = @config.rpcs.start_cluster.metadata.to_h
686
692
 
687
- # Set x-goog-api-client and x-goog-user-project headers
693
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
688
694
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
689
695
  lib_name: @config.lib_name, lib_version: @config.lib_version,
690
696
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
691
697
  transports_version_send: [:rest]
692
698
 
699
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
693
700
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
694
701
 
695
702
  options.apply_defaults timeout: @config.rpcs.start_cluster.timeout,
@@ -793,12 +800,13 @@ module Google
793
800
  # Customize the options with defaults
794
801
  call_metadata = @config.rpcs.delete_cluster.metadata.to_h
795
802
 
796
- # Set x-goog-api-client and x-goog-user-project headers
803
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
797
804
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
798
805
  lib_name: @config.lib_name, lib_version: @config.lib_version,
799
806
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
800
807
  transports_version_send: [:rest]
801
808
 
809
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
802
810
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
803
811
 
804
812
  options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout,
@@ -877,12 +885,13 @@ module Google
877
885
  # Customize the options with defaults
878
886
  call_metadata = @config.rpcs.get_cluster.metadata.to_h
879
887
 
880
- # Set x-goog-api-client and x-goog-user-project headers
888
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
881
889
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
882
890
  lib_name: @config.lib_name, lib_version: @config.lib_version,
883
891
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
884
892
  transports_version_send: [:rest]
885
893
 
894
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
886
895
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
887
896
 
888
897
  options.apply_defaults timeout: @config.rpcs.get_cluster.timeout,
@@ -986,12 +995,13 @@ module Google
986
995
  # Customize the options with defaults
987
996
  call_metadata = @config.rpcs.list_clusters.metadata.to_h
988
997
 
989
- # Set x-goog-api-client and x-goog-user-project headers
998
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
990
999
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
991
1000
  lib_name: @config.lib_name, lib_version: @config.lib_version,
992
1001
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
993
1002
  transports_version_send: [:rest]
994
1003
 
1004
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
995
1005
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
996
1006
 
997
1007
  options.apply_defaults timeout: @config.rpcs.list_clusters.timeout,
@@ -1096,12 +1106,13 @@ module Google
1096
1106
  # Customize the options with defaults
1097
1107
  call_metadata = @config.rpcs.diagnose_cluster.metadata.to_h
1098
1108
 
1099
- # Set x-goog-api-client and x-goog-user-project headers
1109
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1100
1110
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1101
1111
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1102
1112
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
1103
1113
  transports_version_send: [:rest]
1104
1114
 
1115
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1105
1116
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1106
1117
 
1107
1118
  options.apply_defaults timeout: @config.rpcs.diagnose_cluster.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,
@@ -31,6 +31,9 @@ module Google
31
31
  # The JobController provides methods to manage jobs.
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
 
@@ -295,10 +298,11 @@ module Google
295
298
  # Customize the options with defaults
296
299
  metadata = @config.rpcs.submit_job.metadata.to_h
297
300
 
298
- # Set x-goog-api-client and x-goog-user-project headers
301
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
299
302
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
300
303
  lib_name: @config.lib_name, lib_version: @config.lib_version,
301
304
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
305
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
302
306
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
303
307
 
304
308
  header_params = {}
@@ -408,10 +412,11 @@ module Google
408
412
  # Customize the options with defaults
409
413
  metadata = @config.rpcs.submit_job_as_operation.metadata.to_h
410
414
 
411
- # Set x-goog-api-client and x-goog-user-project headers
415
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
412
416
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
413
417
  lib_name: @config.lib_name, lib_version: @config.lib_version,
414
418
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
419
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
415
420
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
416
421
 
417
422
  header_params = {}
@@ -502,10 +507,11 @@ module Google
502
507
  # Customize the options with defaults
503
508
  metadata = @config.rpcs.get_job.metadata.to_h
504
509
 
505
- # Set x-goog-api-client and x-goog-user-project headers
510
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
506
511
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
507
512
  lib_name: @config.lib_name, lib_version: @config.lib_version,
508
513
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
514
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
509
515
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
510
516
 
511
517
  header_params = {}
@@ -628,10 +634,11 @@ module Google
628
634
  # Customize the options with defaults
629
635
  metadata = @config.rpcs.list_jobs.metadata.to_h
630
636
 
631
- # Set x-goog-api-client and x-goog-user-project headers
637
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
632
638
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
633
639
  lib_name: @config.lib_name, lib_version: @config.lib_version,
634
640
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
641
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
635
642
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
636
643
 
637
644
  header_params = {}
@@ -731,10 +738,11 @@ module Google
731
738
  # Customize the options with defaults
732
739
  metadata = @config.rpcs.update_job.metadata.to_h
733
740
 
734
- # Set x-goog-api-client and x-goog-user-project headers
741
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
735
742
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
736
743
  lib_name: @config.lib_name, lib_version: @config.lib_version,
737
744
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
745
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
738
746
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
739
747
 
740
748
  header_params = {}
@@ -831,10 +839,11 @@ module Google
831
839
  # Customize the options with defaults
832
840
  metadata = @config.rpcs.cancel_job.metadata.to_h
833
841
 
834
- # Set x-goog-api-client and x-goog-user-project headers
842
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
835
843
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
836
844
  lib_name: @config.lib_name, lib_version: @config.lib_version,
837
845
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
846
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
838
847
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
839
848
 
840
849
  header_params = {}
@@ -928,10 +937,11 @@ module Google
928
937
  # Customize the options with defaults
929
938
  metadata = @config.rpcs.delete_job.metadata.to_h
930
939
 
931
- # Set x-goog-api-client and x-goog-user-project headers
940
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
932
941
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
933
942
  lib_name: @config.lib_name, lib_version: @config.lib_version,
934
943
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
944
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
935
945
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
936
946
 
937
947
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module JobController
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 JobController provides methods to manage jobs.
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
 
@@ -288,12 +291,13 @@ module Google
288
291
  # Customize the options with defaults
289
292
  call_metadata = @config.rpcs.submit_job.metadata.to_h
290
293
 
291
- # 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
292
295
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
293
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
294
297
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
295
298
  transports_version_send: [:rest]
296
299
 
300
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
297
301
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
298
302
 
299
303
  options.apply_defaults timeout: @config.rpcs.submit_job.timeout,
@@ -391,12 +395,13 @@ module Google
391
395
  # Customize the options with defaults
392
396
  call_metadata = @config.rpcs.submit_job_as_operation.metadata.to_h
393
397
 
394
- # Set x-goog-api-client and x-goog-user-project headers
398
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
395
399
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
396
400
  lib_name: @config.lib_name, lib_version: @config.lib_version,
397
401
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
398
402
  transports_version_send: [:rest]
399
403
 
404
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
400
405
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
401
406
 
402
407
  options.apply_defaults timeout: @config.rpcs.submit_job_as_operation.timeout,
@@ -475,12 +480,13 @@ module Google
475
480
  # Customize the options with defaults
476
481
  call_metadata = @config.rpcs.get_job.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
  call_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,
482
487
  transports_version_send: [:rest]
483
488
 
489
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
484
490
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
485
491
 
486
492
  options.apply_defaults timeout: @config.rpcs.get_job.timeout,
@@ -588,12 +594,13 @@ module Google
588
594
  # Customize the options with defaults
589
595
  call_metadata = @config.rpcs.list_jobs.metadata.to_h
590
596
 
591
- # Set x-goog-api-client and x-goog-user-project headers
597
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
592
598
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
593
599
  lib_name: @config.lib_name, lib_version: @config.lib_version,
594
600
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
595
601
  transports_version_send: [:rest]
596
602
 
603
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
597
604
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
598
605
 
599
606
  options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
@@ -681,12 +688,13 @@ module Google
681
688
  # Customize the options with defaults
682
689
  call_metadata = @config.rpcs.update_job.metadata.to_h
683
690
 
684
- # Set x-goog-api-client and x-goog-user-project headers
691
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
685
692
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
686
693
  lib_name: @config.lib_name, lib_version: @config.lib_version,
687
694
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
688
695
  transports_version_send: [:rest]
689
696
 
697
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
690
698
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
691
699
 
692
700
  options.apply_defaults timeout: @config.rpcs.update_job.timeout,
@@ -768,12 +776,13 @@ module Google
768
776
  # Customize the options with defaults
769
777
  call_metadata = @config.rpcs.cancel_job.metadata.to_h
770
778
 
771
- # Set x-goog-api-client and x-goog-user-project headers
779
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
772
780
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
773
781
  lib_name: @config.lib_name, lib_version: @config.lib_version,
774
782
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
775
783
  transports_version_send: [:rest]
776
784
 
785
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
777
786
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
778
787
 
779
788
  options.apply_defaults timeout: @config.rpcs.cancel_job.timeout,
@@ -852,12 +861,13 @@ module Google
852
861
  # Customize the options with defaults
853
862
  call_metadata = @config.rpcs.delete_job.metadata.to_h
854
863
 
855
- # Set x-goog-api-client and x-goog-user-project headers
864
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
856
865
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
857
866
  lib_name: @config.lib_name, lib_version: @config.lib_version,
858
867
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION,
859
868
  transports_version_send: [:rest]
860
869
 
870
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
861
871
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
862
872
 
863
873
  options.apply_defaults timeout: @config.rpcs.delete_job.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 managed 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
 
@@ -276,10 +279,11 @@ module Google
276
279
  # Customize the options with defaults
277
280
  metadata = @config.rpcs.create_node_group.metadata.to_h
278
281
 
279
- # Set x-goog-api-client and x-goog-user-project headers
282
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
280
283
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
281
284
  lib_name: @config.lib_name, lib_version: @config.lib_version,
282
285
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
286
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
283
287
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
284
288
 
285
289
  header_params = {}
@@ -403,10 +407,11 @@ module Google
403
407
  # Customize the options with defaults
404
408
  metadata = @config.rpcs.resize_node_group.metadata.to_h
405
409
 
406
- # Set x-goog-api-client and x-goog-user-project headers
410
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
407
411
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
408
412
  lib_name: @config.lib_name, lib_version: @config.lib_version,
409
413
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
414
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
410
415
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
411
416
 
412
417
  header_params = {}
@@ -492,10 +497,11 @@ module Google
492
497
  # Customize the options with defaults
493
498
  metadata = @config.rpcs.get_node_group.metadata.to_h
494
499
 
495
- # Set x-goog-api-client and x-goog-user-project headers
500
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
496
501
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
497
502
  lib_name: @config.lib_name, lib_version: @config.lib_version,
498
503
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
504
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
499
505
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
500
506
 
501
507
  header_params = {}