google-cloud-compute-v1 2.10.0 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +9 -3
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +17 -7
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +17 -7
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +27 -12
  6. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +35 -16
  7. data/lib/google/cloud/compute/v1/compute_pb.rb +51 -1
  8. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +9 -3
  9. data/lib/google/cloud/compute/v1/disks/rest/client.rb +39 -18
  10. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +15 -6
  11. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +39 -18
  12. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +15 -6
  13. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +19 -8
  14. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +15 -6
  15. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +17 -7
  16. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +17 -7
  17. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +13 -5
  18. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +9 -3
  19. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +13 -5
  20. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +17 -7
  21. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +5 -1
  22. data/lib/google/cloud/compute/v1/images/rest/client.rb +25 -11
  23. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/credentials.rb +52 -0
  24. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +837 -0
  25. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +378 -0
  26. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +51 -0
  27. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +47 -0
  28. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +43 -20
  29. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +21 -9
  30. data/lib/google/cloud/compute/v1/instance_settings_service/credentials.rb +52 -0
  31. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +517 -0
  32. data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +190 -0
  33. data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +51 -0
  34. data/lib/google/cloud/compute/v1/instance_settings_service.rb +47 -0
  35. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +19 -8
  36. data/lib/google/cloud/compute/v1/instances/rest/client.rb +99 -48
  37. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +21 -9
  38. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +17 -7
  39. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +7 -2
  40. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +7 -2
  41. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +19 -8
  42. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +7 -2
  43. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +17 -7
  44. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +17 -7
  45. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +9 -3
  46. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +21 -9
  47. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +13 -5
  48. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +21 -9
  49. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +35 -16
  50. data/lib/google/cloud/compute/v1/networks/rest/client.rb +25 -11
  51. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +136 -14
  52. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +62 -0
  53. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +19 -8
  54. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +9 -3
  55. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +17 -7
  56. data/lib/google/cloud/compute/v1/projects/rest/client.rb +31 -14
  57. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +17 -7
  58. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +19 -8
  59. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +15 -6
  60. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +27 -12
  61. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +13 -5
  62. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +7 -2
  63. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +37 -17
  64. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +13 -5
  65. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +15 -6
  66. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +41 -19
  67. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +11 -4
  68. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +11 -4
  69. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -1
  70. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +19 -8
  71. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +17 -7
  72. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +37 -17
  73. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +11 -4
  74. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +11 -4
  75. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +21 -9
  76. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +11 -4
  77. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +15 -6
  78. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +13 -5
  79. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +17 -7
  80. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +11 -4
  81. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +17 -7
  82. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +5 -1
  83. data/lib/google/cloud/compute/v1/regions/rest/client.rb +7 -2
  84. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +23 -10
  85. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +21 -9
  86. data/lib/google/cloud/compute/v1/rest.rb +4 -0
  87. data/lib/google/cloud/compute/v1/routers/rest/client.rb +25 -11
  88. data/lib/google/cloud/compute/v1/routes/rest/client.rb +11 -4
  89. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +27 -12
  90. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +21 -9
  91. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +7 -2
  92. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +19 -8
  93. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +13 -5
  94. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +17 -7
  95. data/lib/google/cloud/compute/v1/storage_pool_types/credentials.rb +53 -0
  96. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +609 -0
  97. data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +249 -0
  98. data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +51 -0
  99. data/lib/google/cloud/compute/v1/storage_pool_types.rb +47 -0
  100. data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +52 -0
  101. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1326 -0
  102. data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +679 -0
  103. data/lib/google/cloud/compute/v1/storage_pools/rest.rb +51 -0
  104. data/lib/google/cloud/compute/v1/storage_pools.rb +47 -0
  105. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +27 -12
  106. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +13 -5
  107. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +17 -7
  108. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +25 -11
  109. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +15 -6
  110. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +27 -12
  111. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +21 -9
  112. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +17 -7
  113. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +15 -6
  114. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +21 -9
  115. data/lib/google/cloud/compute/v1/version.rb +1 -1
  116. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +19 -8
  117. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +15 -6
  118. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +11 -4
  119. data/lib/google/cloud/compute/v1/zones/rest/client.rb +7 -2
  120. data/lib/google/cloud/compute/v1.rb +4 -0
  121. data/proto_docs/google/api/client.rb +4 -0
  122. data/proto_docs/google/cloud/compute/v1/compute.rb +1333 -37
  123. metadata +22 -2
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetInstances API.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
38
41
 
@@ -255,12 +258,13 @@ module Google
255
258
  # Customize the options with defaults
256
259
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
257
260
 
258
- # Set x-goog-api-client and x-goog-user-project headers
261
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
259
262
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
260
263
  lib_name: @config.lib_name, lib_version: @config.lib_version,
261
264
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
262
265
  transports_version_send: [:rest]
263
266
 
267
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
264
268
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
265
269
 
266
270
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -340,12 +344,13 @@ module Google
340
344
  # Customize the options with defaults
341
345
  call_metadata = @config.rpcs.delete.metadata.to_h
342
346
 
343
- # Set x-goog-api-client and x-goog-user-project headers
347
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
344
348
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
345
349
  lib_name: @config.lib_name, lib_version: @config.lib_version,
346
350
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
347
351
  transports_version_send: [:rest]
348
352
 
353
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
349
354
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
350
355
 
351
356
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -431,12 +436,13 @@ module Google
431
436
  # Customize the options with defaults
432
437
  call_metadata = @config.rpcs.get.metadata.to_h
433
438
 
434
- # Set x-goog-api-client and x-goog-user-project headers
439
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
435
440
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
436
441
  lib_name: @config.lib_name, lib_version: @config.lib_version,
437
442
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
438
443
  transports_version_send: [:rest]
439
444
 
445
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
440
446
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
441
447
 
442
448
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -515,12 +521,13 @@ module Google
515
521
  # Customize the options with defaults
516
522
  call_metadata = @config.rpcs.insert.metadata.to_h
517
523
 
518
- # Set x-goog-api-client and x-goog-user-project headers
524
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
519
525
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
520
526
  lib_name: @config.lib_name, lib_version: @config.lib_version,
521
527
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
522
528
  transports_version_send: [:rest]
523
529
 
530
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
524
531
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
525
532
 
526
533
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -614,12 +621,13 @@ module Google
614
621
  # Customize the options with defaults
615
622
  call_metadata = @config.rpcs.list.metadata.to_h
616
623
 
617
- # Set x-goog-api-client and x-goog-user-project headers
624
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
618
625
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
619
626
  lib_name: @config.lib_name, lib_version: @config.lib_version,
620
627
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
621
628
  transports_version_send: [:rest]
622
629
 
630
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
623
631
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
624
632
 
625
633
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -701,12 +709,13 @@ module Google
701
709
  # Customize the options with defaults
702
710
  call_metadata = @config.rpcs.set_security_policy.metadata.to_h
703
711
 
704
- # Set x-goog-api-client and x-goog-user-project headers
712
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
705
713
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
706
714
  lib_name: @config.lib_name, lib_version: @config.lib_version,
707
715
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
708
716
  transports_version_send: [:rest]
709
717
 
718
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
710
719
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
711
720
 
712
721
  options.apply_defaults timeout: @config.rpcs.set_security_policy.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetPools API.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
38
41
 
@@ -261,12 +264,13 @@ module Google
261
264
  # Customize the options with defaults
262
265
  call_metadata = @config.rpcs.add_health_check.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
  call_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::Compute::V1::VERSION,
268
271
  transports_version_send: [:rest]
269
272
 
273
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
270
274
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
271
275
 
272
276
  options.apply_defaults timeout: @config.rpcs.add_health_check.timeout,
@@ -356,12 +360,13 @@ module Google
356
360
  # Customize the options with defaults
357
361
  call_metadata = @config.rpcs.add_instance.metadata.to_h
358
362
 
359
- # Set x-goog-api-client and x-goog-user-project headers
363
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
360
364
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
361
365
  lib_name: @config.lib_name, lib_version: @config.lib_version,
362
366
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
363
367
  transports_version_send: [:rest]
364
368
 
369
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
365
370
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
366
371
 
367
372
  options.apply_defaults timeout: @config.rpcs.add_instance.timeout,
@@ -457,12 +462,13 @@ module Google
457
462
  # Customize the options with defaults
458
463
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
459
464
 
460
- # Set x-goog-api-client and x-goog-user-project headers
465
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
461
466
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
462
467
  lib_name: @config.lib_name, lib_version: @config.lib_version,
463
468
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
464
469
  transports_version_send: [:rest]
465
470
 
471
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
466
472
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
467
473
 
468
474
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -542,12 +548,13 @@ module Google
542
548
  # Customize the options with defaults
543
549
  call_metadata = @config.rpcs.delete.metadata.to_h
544
550
 
545
- # Set x-goog-api-client and x-goog-user-project headers
551
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
546
552
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
547
553
  lib_name: @config.lib_name, lib_version: @config.lib_version,
548
554
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
549
555
  transports_version_send: [:rest]
550
556
 
557
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
551
558
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
552
559
 
553
560
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -633,12 +640,13 @@ module Google
633
640
  # Customize the options with defaults
634
641
  call_metadata = @config.rpcs.get.metadata.to_h
635
642
 
636
- # Set x-goog-api-client and x-goog-user-project headers
643
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
637
644
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
638
645
  lib_name: @config.lib_name, lib_version: @config.lib_version,
639
646
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
640
647
  transports_version_send: [:rest]
641
648
 
649
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
642
650
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
643
651
 
644
652
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -717,12 +725,13 @@ module Google
717
725
  # Customize the options with defaults
718
726
  call_metadata = @config.rpcs.get_health.metadata.to_h
719
727
 
720
- # Set x-goog-api-client and x-goog-user-project headers
728
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
721
729
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
722
730
  lib_name: @config.lib_name, lib_version: @config.lib_version,
723
731
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
724
732
  transports_version_send: [:rest]
725
733
 
734
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
726
735
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
727
736
 
728
737
  options.apply_defaults timeout: @config.rpcs.get_health.timeout,
@@ -801,12 +810,13 @@ module Google
801
810
  # Customize the options with defaults
802
811
  call_metadata = @config.rpcs.insert.metadata.to_h
803
812
 
804
- # Set x-goog-api-client and x-goog-user-project headers
813
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
805
814
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
806
815
  lib_name: @config.lib_name, lib_version: @config.lib_version,
807
816
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
808
817
  transports_version_send: [:rest]
809
818
 
819
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
810
820
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
811
821
 
812
822
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -900,12 +910,13 @@ module Google
900
910
  # Customize the options with defaults
901
911
  call_metadata = @config.rpcs.list.metadata.to_h
902
912
 
903
- # Set x-goog-api-client and x-goog-user-project headers
913
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
904
914
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
905
915
  lib_name: @config.lib_name, lib_version: @config.lib_version,
906
916
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
907
917
  transports_version_send: [:rest]
908
918
 
919
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
909
920
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
910
921
 
911
922
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -987,12 +998,13 @@ module Google
987
998
  # Customize the options with defaults
988
999
  call_metadata = @config.rpcs.remove_health_check.metadata.to_h
989
1000
 
990
- # Set x-goog-api-client and x-goog-user-project headers
1001
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
991
1002
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
992
1003
  lib_name: @config.lib_name, lib_version: @config.lib_version,
993
1004
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
994
1005
  transports_version_send: [:rest]
995
1006
 
1007
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
996
1008
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
997
1009
 
998
1010
  options.apply_defaults timeout: @config.rpcs.remove_health_check.timeout,
@@ -1082,12 +1094,13 @@ module Google
1082
1094
  # Customize the options with defaults
1083
1095
  call_metadata = @config.rpcs.remove_instance.metadata.to_h
1084
1096
 
1085
- # Set x-goog-api-client and x-goog-user-project headers
1097
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1086
1098
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1087
1099
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1088
1100
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1089
1101
  transports_version_send: [:rest]
1090
1102
 
1103
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1091
1104
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1092
1105
 
1093
1106
  options.apply_defaults timeout: @config.rpcs.remove_instance.timeout,
@@ -1179,12 +1192,13 @@ module Google
1179
1192
  # Customize the options with defaults
1180
1193
  call_metadata = @config.rpcs.set_backup.metadata.to_h
1181
1194
 
1182
- # Set x-goog-api-client and x-goog-user-project headers
1195
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1183
1196
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1184
1197
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1185
1198
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1186
1199
  transports_version_send: [:rest]
1187
1200
 
1201
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1188
1202
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1189
1203
 
1190
1204
  options.apply_defaults timeout: @config.rpcs.set_backup.timeout,
@@ -1274,12 +1288,13 @@ module Google
1274
1288
  # Customize the options with defaults
1275
1289
  call_metadata = @config.rpcs.set_security_policy.metadata.to_h
1276
1290
 
1277
- # Set x-goog-api-client and x-goog-user-project headers
1291
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1278
1292
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1279
1293
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1280
1294
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1281
1295
  transports_version_send: [:rest]
1282
1296
 
1297
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1283
1298
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1284
1299
 
1285
1300
  options.apply_defaults timeout: @config.rpcs.set_security_policy.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetSslProxies API.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
38
41
 
@@ -248,12 +251,13 @@ module Google
248
251
  # Customize the options with defaults
249
252
  call_metadata = @config.rpcs.delete.metadata.to_h
250
253
 
251
- # Set x-goog-api-client and x-goog-user-project headers
254
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
252
255
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
253
256
  lib_name: @config.lib_name, lib_version: @config.lib_version,
254
257
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
255
258
  transports_version_send: [:rest]
256
259
 
260
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
257
261
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
258
262
 
259
263
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -336,12 +340,13 @@ module Google
336
340
  # Customize the options with defaults
337
341
  call_metadata = @config.rpcs.get.metadata.to_h
338
342
 
339
- # Set x-goog-api-client and x-goog-user-project headers
343
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
340
344
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
341
345
  lib_name: @config.lib_name, lib_version: @config.lib_version,
342
346
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
343
347
  transports_version_send: [:rest]
344
348
 
349
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
345
350
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
346
351
 
347
352
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -418,12 +423,13 @@ module Google
418
423
  # Customize the options with defaults
419
424
  call_metadata = @config.rpcs.insert.metadata.to_h
420
425
 
421
- # Set x-goog-api-client and x-goog-user-project headers
426
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
422
427
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
423
428
  lib_name: @config.lib_name, lib_version: @config.lib_version,
424
429
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
425
430
  transports_version_send: [:rest]
426
431
 
432
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
427
433
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
428
434
 
429
435
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -514,12 +520,13 @@ module Google
514
520
  # Customize the options with defaults
515
521
  call_metadata = @config.rpcs.list.metadata.to_h
516
522
 
517
- # Set x-goog-api-client and x-goog-user-project headers
523
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
518
524
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
519
525
  lib_name: @config.lib_name, lib_version: @config.lib_version,
520
526
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
521
527
  transports_version_send: [:rest]
522
528
 
529
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
523
530
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
524
531
 
525
532
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -599,12 +606,13 @@ module Google
599
606
  # Customize the options with defaults
600
607
  call_metadata = @config.rpcs.set_backend_service.metadata.to_h
601
608
 
602
- # Set x-goog-api-client and x-goog-user-project headers
609
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
603
610
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
604
611
  lib_name: @config.lib_name, lib_version: @config.lib_version,
605
612
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
606
613
  transports_version_send: [:rest]
607
614
 
615
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
608
616
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
609
617
 
610
618
  options.apply_defaults timeout: @config.rpcs.set_backend_service.timeout,
@@ -691,12 +699,13 @@ module Google
691
699
  # Customize the options with defaults
692
700
  call_metadata = @config.rpcs.set_certificate_map.metadata.to_h
693
701
 
694
- # Set x-goog-api-client and x-goog-user-project headers
702
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
695
703
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
696
704
  lib_name: @config.lib_name, lib_version: @config.lib_version,
697
705
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
698
706
  transports_version_send: [:rest]
699
707
 
708
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
700
709
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
701
710
 
702
711
  options.apply_defaults timeout: @config.rpcs.set_certificate_map.timeout,
@@ -783,12 +792,13 @@ module Google
783
792
  # Customize the options with defaults
784
793
  call_metadata = @config.rpcs.set_proxy_header.metadata.to_h
785
794
 
786
- # Set x-goog-api-client and x-goog-user-project headers
795
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
787
796
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
788
797
  lib_name: @config.lib_name, lib_version: @config.lib_version,
789
798
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
790
799
  transports_version_send: [:rest]
791
800
 
801
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
792
802
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
793
803
 
794
804
  options.apply_defaults timeout: @config.rpcs.set_proxy_header.timeout,
@@ -875,12 +885,13 @@ module Google
875
885
  # Customize the options with defaults
876
886
  call_metadata = @config.rpcs.set_ssl_certificates.metadata.to_h
877
887
 
878
- # 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
879
889
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
880
890
  lib_name: @config.lib_name, lib_version: @config.lib_version,
881
891
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
882
892
  transports_version_send: [:rest]
883
893
 
894
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
884
895
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
885
896
 
886
897
  options.apply_defaults timeout: @config.rpcs.set_ssl_certificates.timeout,
@@ -967,12 +978,13 @@ module Google
967
978
  # Customize the options with defaults
968
979
  call_metadata = @config.rpcs.set_ssl_policy.metadata.to_h
969
980
 
970
- # Set x-goog-api-client and x-goog-user-project headers
981
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
971
982
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
972
983
  lib_name: @config.lib_name, lib_version: @config.lib_version,
973
984
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
974
985
  transports_version_send: [:rest]
975
986
 
987
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
976
988
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
977
989
 
978
990
  options.apply_defaults timeout: @config.rpcs.set_ssl_policy.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetTcpProxies API.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
38
41
 
@@ -257,12 +260,13 @@ module Google
257
260
  # Customize the options with defaults
258
261
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
259
262
 
260
- # Set x-goog-api-client and x-goog-user-project headers
263
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
261
264
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
262
265
  lib_name: @config.lib_name, lib_version: @config.lib_version,
263
266
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
264
267
  transports_version_send: [:rest]
265
268
 
269
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
266
270
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
267
271
 
268
272
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -340,12 +344,13 @@ module Google
340
344
  # Customize the options with defaults
341
345
  call_metadata = @config.rpcs.delete.metadata.to_h
342
346
 
343
- # Set x-goog-api-client and x-goog-user-project headers
347
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
344
348
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
345
349
  lib_name: @config.lib_name, lib_version: @config.lib_version,
346
350
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
347
351
  transports_version_send: [:rest]
348
352
 
353
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
349
354
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
350
355
 
351
356
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -428,12 +433,13 @@ module Google
428
433
  # Customize the options with defaults
429
434
  call_metadata = @config.rpcs.get.metadata.to_h
430
435
 
431
- # Set x-goog-api-client and x-goog-user-project headers
436
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
432
437
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
433
438
  lib_name: @config.lib_name, lib_version: @config.lib_version,
434
439
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
435
440
  transports_version_send: [:rest]
436
441
 
442
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
437
443
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
438
444
 
439
445
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -510,12 +516,13 @@ module Google
510
516
  # Customize the options with defaults
511
517
  call_metadata = @config.rpcs.insert.metadata.to_h
512
518
 
513
- # Set x-goog-api-client and x-goog-user-project headers
519
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
514
520
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
515
521
  lib_name: @config.lib_name, lib_version: @config.lib_version,
516
522
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
517
523
  transports_version_send: [:rest]
518
524
 
525
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
519
526
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
520
527
 
521
528
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -606,12 +613,13 @@ module Google
606
613
  # Customize the options with defaults
607
614
  call_metadata = @config.rpcs.list.metadata.to_h
608
615
 
609
- # Set x-goog-api-client and x-goog-user-project headers
616
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
610
617
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
611
618
  lib_name: @config.lib_name, lib_version: @config.lib_version,
612
619
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
613
620
  transports_version_send: [:rest]
614
621
 
622
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
615
623
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
616
624
 
617
625
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -691,12 +699,13 @@ module Google
691
699
  # Customize the options with defaults
692
700
  call_metadata = @config.rpcs.set_backend_service.metadata.to_h
693
701
 
694
- # Set x-goog-api-client and x-goog-user-project headers
702
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
695
703
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
696
704
  lib_name: @config.lib_name, lib_version: @config.lib_version,
697
705
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
698
706
  transports_version_send: [:rest]
699
707
 
708
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
700
709
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
701
710
 
702
711
  options.apply_defaults timeout: @config.rpcs.set_backend_service.timeout,
@@ -783,12 +792,13 @@ module Google
783
792
  # Customize the options with defaults
784
793
  call_metadata = @config.rpcs.set_proxy_header.metadata.to_h
785
794
 
786
- # Set x-goog-api-client and x-goog-user-project headers
795
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
787
796
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
788
797
  lib_name: @config.lib_name, lib_version: @config.lib_version,
789
798
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
790
799
  transports_version_send: [:rest]
791
800
 
801
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
792
802
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
793
803
 
794
804
  options.apply_defaults timeout: @config.rpcs.set_proxy_header.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetVpnGateways API.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
38
41
 
@@ -255,12 +258,13 @@ module Google
255
258
  # Customize the options with defaults
256
259
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
257
260
 
258
- # Set x-goog-api-client and x-goog-user-project headers
261
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
259
262
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
260
263
  lib_name: @config.lib_name, lib_version: @config.lib_version,
261
264
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
262
265
  transports_version_send: [:rest]
263
266
 
267
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
264
268
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
265
269
 
266
270
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -340,12 +344,13 @@ module Google
340
344
  # Customize the options with defaults
341
345
  call_metadata = @config.rpcs.delete.metadata.to_h
342
346
 
343
- # Set x-goog-api-client and x-goog-user-project headers
347
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
344
348
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
345
349
  lib_name: @config.lib_name, lib_version: @config.lib_version,
346
350
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
347
351
  transports_version_send: [:rest]
348
352
 
353
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
349
354
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
350
355
 
351
356
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -431,12 +436,13 @@ module Google
431
436
  # Customize the options with defaults
432
437
  call_metadata = @config.rpcs.get.metadata.to_h
433
438
 
434
- # Set x-goog-api-client and x-goog-user-project headers
439
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
435
440
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
436
441
  lib_name: @config.lib_name, lib_version: @config.lib_version,
437
442
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
438
443
  transports_version_send: [:rest]
439
444
 
445
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
440
446
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
441
447
 
442
448
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -515,12 +521,13 @@ module Google
515
521
  # Customize the options with defaults
516
522
  call_metadata = @config.rpcs.insert.metadata.to_h
517
523
 
518
- # Set x-goog-api-client and x-goog-user-project headers
524
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
519
525
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
520
526
  lib_name: @config.lib_name, lib_version: @config.lib_version,
521
527
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
522
528
  transports_version_send: [:rest]
523
529
 
530
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
524
531
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
525
532
 
526
533
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -614,12 +621,13 @@ module Google
614
621
  # Customize the options with defaults
615
622
  call_metadata = @config.rpcs.list.metadata.to_h
616
623
 
617
- # Set x-goog-api-client and x-goog-user-project headers
624
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
618
625
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
619
626
  lib_name: @config.lib_name, lib_version: @config.lib_version,
620
627
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
621
628
  transports_version_send: [:rest]
622
629
 
630
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
623
631
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
624
632
 
625
633
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -701,12 +709,13 @@ module Google
701
709
  # Customize the options with defaults
702
710
  call_metadata = @config.rpcs.set_labels.metadata.to_h
703
711
 
704
- # Set x-goog-api-client and x-goog-user-project headers
712
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
705
713
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
706
714
  lib_name: @config.lib_name, lib_version: @config.lib_version,
707
715
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
708
716
  transports_version_send: [:rest]
709
717
 
718
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
710
719
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
711
720
 
712
721
  options.apply_defaults timeout: @config.rpcs.set_labels.timeout,