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 RegionNetworkEndpointGroups 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.attach_network_endpoints.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.attach_network_endpoints.timeout,
@@ -341,12 +345,13 @@ module Google
341
345
  # Customize the options with defaults
342
346
  call_metadata = @config.rpcs.delete.metadata.to_h
343
347
 
344
- # Set x-goog-api-client and x-goog-user-project headers
348
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
345
349
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
346
350
  lib_name: @config.lib_name, lib_version: @config.lib_version,
347
351
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
348
352
  transports_version_send: [:rest]
349
353
 
354
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
350
355
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
351
356
 
352
357
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -436,12 +441,13 @@ module Google
436
441
  # Customize the options with defaults
437
442
  call_metadata = @config.rpcs.detach_network_endpoints.metadata.to_h
438
443
 
439
- # Set x-goog-api-client and x-goog-user-project headers
444
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
440
445
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
441
446
  lib_name: @config.lib_name, lib_version: @config.lib_version,
442
447
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
443
448
  transports_version_send: [:rest]
444
449
 
450
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
445
451
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
446
452
 
447
453
  options.apply_defaults timeout: @config.rpcs.detach_network_endpoints.timeout,
@@ -527,12 +533,13 @@ module Google
527
533
  # Customize the options with defaults
528
534
  call_metadata = @config.rpcs.get.metadata.to_h
529
535
 
530
- # Set x-goog-api-client and x-goog-user-project headers
536
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
531
537
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
532
538
  lib_name: @config.lib_name, lib_version: @config.lib_version,
533
539
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
534
540
  transports_version_send: [:rest]
535
541
 
542
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
536
543
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
537
544
 
538
545
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -611,12 +618,13 @@ module Google
611
618
  # Customize the options with defaults
612
619
  call_metadata = @config.rpcs.insert.metadata.to_h
613
620
 
614
- # Set x-goog-api-client and x-goog-user-project headers
621
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
615
622
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
616
623
  lib_name: @config.lib_name, lib_version: @config.lib_version,
617
624
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
618
625
  transports_version_send: [:rest]
619
626
 
627
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
620
628
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
621
629
 
622
630
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -710,12 +718,13 @@ module Google
710
718
  # Customize the options with defaults
711
719
  call_metadata = @config.rpcs.list.metadata.to_h
712
720
 
713
- # Set x-goog-api-client and x-goog-user-project headers
721
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
714
722
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
715
723
  lib_name: @config.lib_name, lib_version: @config.lib_version,
716
724
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
717
725
  transports_version_send: [:rest]
718
726
 
727
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
719
728
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
720
729
 
721
730
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -803,12 +812,13 @@ module Google
803
812
  # Customize the options with defaults
804
813
  call_metadata = @config.rpcs.list_network_endpoints.metadata.to_h
805
814
 
806
- # Set x-goog-api-client and x-goog-user-project headers
815
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
807
816
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
808
817
  lib_name: @config.lib_name, lib_version: @config.lib_version,
809
818
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
810
819
  transports_version_send: [:rest]
811
820
 
821
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
812
822
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
813
823
 
814
824
  options.apply_defaults timeout: @config.rpcs.list_network_endpoints.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The RegionNetworkFirewallPolicies 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
 
@@ -282,12 +285,13 @@ module Google
282
285
  # Customize the options with defaults
283
286
  call_metadata = @config.rpcs.add_association.metadata.to_h
284
287
 
285
- # Set x-goog-api-client and x-goog-user-project headers
288
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
286
289
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
287
290
  lib_name: @config.lib_name, lib_version: @config.lib_version,
288
291
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
289
292
  transports_version_send: [:rest]
290
293
 
294
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
291
295
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
292
296
 
293
297
  options.apply_defaults timeout: @config.rpcs.add_association.timeout,
@@ -381,12 +385,13 @@ module Google
381
385
  # Customize the options with defaults
382
386
  call_metadata = @config.rpcs.add_rule.metadata.to_h
383
387
 
384
- # Set x-goog-api-client and x-goog-user-project headers
388
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
385
389
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
386
390
  lib_name: @config.lib_name, lib_version: @config.lib_version,
387
391
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
388
392
  transports_version_send: [:rest]
389
393
 
394
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
390
395
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
391
396
 
392
397
  options.apply_defaults timeout: @config.rpcs.add_rule.timeout,
@@ -476,12 +481,13 @@ module Google
476
481
  # Customize the options with defaults
477
482
  call_metadata = @config.rpcs.clone_rules.metadata.to_h
478
483
 
479
- # Set x-goog-api-client and x-goog-user-project headers
484
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
480
485
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
481
486
  lib_name: @config.lib_name, lib_version: @config.lib_version,
482
487
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
483
488
  transports_version_send: [:rest]
484
489
 
490
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
485
491
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
486
492
 
487
493
  options.apply_defaults timeout: @config.rpcs.clone_rules.timeout,
@@ -569,12 +575,13 @@ module Google
569
575
  # Customize the options with defaults
570
576
  call_metadata = @config.rpcs.delete.metadata.to_h
571
577
 
572
- # Set x-goog-api-client and x-goog-user-project headers
578
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
573
579
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
574
580
  lib_name: @config.lib_name, lib_version: @config.lib_version,
575
581
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
576
582
  transports_version_send: [:rest]
577
583
 
584
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
578
585
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
579
586
 
580
587
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -660,12 +667,13 @@ module Google
660
667
  # Customize the options with defaults
661
668
  call_metadata = @config.rpcs.get.metadata.to_h
662
669
 
663
- # Set x-goog-api-client and x-goog-user-project headers
670
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
664
671
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
665
672
  lib_name: @config.lib_name, lib_version: @config.lib_version,
666
673
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
667
674
  transports_version_send: [:rest]
668
675
 
676
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
669
677
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
670
678
 
671
679
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -744,12 +752,13 @@ module Google
744
752
  # Customize the options with defaults
745
753
  call_metadata = @config.rpcs.get_association.metadata.to_h
746
754
 
747
- # Set x-goog-api-client and x-goog-user-project headers
755
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
748
756
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
749
757
  lib_name: @config.lib_name, lib_version: @config.lib_version,
750
758
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
751
759
  transports_version_send: [:rest]
752
760
 
761
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
753
762
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
754
763
 
755
764
  options.apply_defaults timeout: @config.rpcs.get_association.timeout,
@@ -826,12 +835,13 @@ module Google
826
835
  # Customize the options with defaults
827
836
  call_metadata = @config.rpcs.get_effective_firewalls.metadata.to_h
828
837
 
829
- # Set x-goog-api-client and x-goog-user-project headers
838
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
830
839
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
831
840
  lib_name: @config.lib_name, lib_version: @config.lib_version,
832
841
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
833
842
  transports_version_send: [:rest]
834
843
 
844
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
835
845
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
836
846
 
837
847
  options.apply_defaults timeout: @config.rpcs.get_effective_firewalls.timeout,
@@ -910,12 +920,13 @@ module Google
910
920
  # Customize the options with defaults
911
921
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
912
922
 
913
- # Set x-goog-api-client and x-goog-user-project headers
923
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
914
924
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
915
925
  lib_name: @config.lib_name, lib_version: @config.lib_version,
916
926
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
917
927
  transports_version_send: [:rest]
918
928
 
929
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
919
930
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
920
931
 
921
932
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -994,12 +1005,13 @@ module Google
994
1005
  # Customize the options with defaults
995
1006
  call_metadata = @config.rpcs.get_rule.metadata.to_h
996
1007
 
997
- # Set x-goog-api-client and x-goog-user-project headers
1008
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
998
1009
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
999
1010
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1000
1011
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1001
1012
  transports_version_send: [:rest]
1002
1013
 
1014
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1003
1015
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1004
1016
 
1005
1017
  options.apply_defaults timeout: @config.rpcs.get_rule.timeout,
@@ -1078,12 +1090,13 @@ module Google
1078
1090
  # Customize the options with defaults
1079
1091
  call_metadata = @config.rpcs.insert.metadata.to_h
1080
1092
 
1081
- # Set x-goog-api-client and x-goog-user-project headers
1093
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1082
1094
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1083
1095
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1084
1096
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1085
1097
  transports_version_send: [:rest]
1086
1098
 
1099
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1087
1100
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1088
1101
 
1089
1102
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -1177,12 +1190,13 @@ module Google
1177
1190
  # Customize the options with defaults
1178
1191
  call_metadata = @config.rpcs.list.metadata.to_h
1179
1192
 
1180
- # Set x-goog-api-client and x-goog-user-project headers
1193
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1181
1194
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1182
1195
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1183
1196
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1184
1197
  transports_version_send: [:rest]
1185
1198
 
1199
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1186
1200
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1187
1201
 
1188
1202
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -1264,12 +1278,13 @@ module Google
1264
1278
  # Customize the options with defaults
1265
1279
  call_metadata = @config.rpcs.patch.metadata.to_h
1266
1280
 
1267
- # Set x-goog-api-client and x-goog-user-project headers
1281
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1268
1282
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1269
1283
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1270
1284
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1271
1285
  transports_version_send: [:rest]
1272
1286
 
1287
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1273
1288
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1274
1289
 
1275
1290
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -1361,12 +1376,13 @@ module Google
1361
1376
  # Customize the options with defaults
1362
1377
  call_metadata = @config.rpcs.patch_rule.metadata.to_h
1363
1378
 
1364
- # Set x-goog-api-client and x-goog-user-project headers
1379
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1365
1380
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1366
1381
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1367
1382
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1368
1383
  transports_version_send: [:rest]
1369
1384
 
1385
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1370
1386
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1371
1387
 
1372
1388
  options.apply_defaults timeout: @config.rpcs.patch_rule.timeout,
@@ -1456,12 +1472,13 @@ module Google
1456
1472
  # Customize the options with defaults
1457
1473
  call_metadata = @config.rpcs.remove_association.metadata.to_h
1458
1474
 
1459
- # Set x-goog-api-client and x-goog-user-project headers
1475
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1460
1476
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1461
1477
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1462
1478
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1463
1479
  transports_version_send: [:rest]
1464
1480
 
1481
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1465
1482
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1466
1483
 
1467
1484
  options.apply_defaults timeout: @config.rpcs.remove_association.timeout,
@@ -1551,12 +1568,13 @@ module Google
1551
1568
  # Customize the options with defaults
1552
1569
  call_metadata = @config.rpcs.remove_rule.metadata.to_h
1553
1570
 
1554
- # Set x-goog-api-client and x-goog-user-project headers
1571
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1555
1572
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1556
1573
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1557
1574
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1558
1575
  transports_version_send: [:rest]
1559
1576
 
1577
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1560
1578
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1561
1579
 
1562
1580
  options.apply_defaults timeout: @config.rpcs.remove_rule.timeout,
@@ -1644,12 +1662,13 @@ module Google
1644
1662
  # Customize the options with defaults
1645
1663
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1646
1664
 
1647
- # Set x-goog-api-client and x-goog-user-project headers
1665
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1648
1666
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1649
1667
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1650
1668
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1651
1669
  transports_version_send: [:rest]
1652
1670
 
1671
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1653
1672
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1654
1673
 
1655
1674
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1728,12 +1747,13 @@ module Google
1728
1747
  # Customize the options with defaults
1729
1748
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1730
1749
 
1731
- # Set x-goog-api-client and x-goog-user-project headers
1750
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1732
1751
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1733
1752
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1734
1753
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1735
1754
  transports_version_send: [:rest]
1736
1755
 
1756
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1737
1757
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1738
1758
 
1739
1759
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The RegionNotificationEndpoints 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
 
@@ -240,12 +243,13 @@ module Google
240
243
  # Customize the options with defaults
241
244
  call_metadata = @config.rpcs.delete.metadata.to_h
242
245
 
243
- # Set x-goog-api-client and x-goog-user-project headers
246
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
244
247
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
245
248
  lib_name: @config.lib_name, lib_version: @config.lib_version,
246
249
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
247
250
  transports_version_send: [:rest]
248
251
 
252
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
249
253
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
250
254
 
251
255
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -331,12 +335,13 @@ module Google
331
335
  # Customize the options with defaults
332
336
  call_metadata = @config.rpcs.get.metadata.to_h
333
337
 
334
- # Set x-goog-api-client and x-goog-user-project headers
338
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
335
339
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
336
340
  lib_name: @config.lib_name, lib_version: @config.lib_version,
337
341
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
338
342
  transports_version_send: [:rest]
339
343
 
344
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
340
345
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
341
346
 
342
347
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -415,12 +420,13 @@ module Google
415
420
  # Customize the options with defaults
416
421
  call_metadata = @config.rpcs.insert.metadata.to_h
417
422
 
418
- # Set x-goog-api-client and x-goog-user-project headers
423
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
419
424
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
420
425
  lib_name: @config.lib_name, lib_version: @config.lib_version,
421
426
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
422
427
  transports_version_send: [:rest]
423
428
 
429
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
424
430
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
425
431
 
426
432
  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,
@@ -32,6 +32,9 @@ module Google
32
32
  # The RegionOperations API.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
37
40
 
@@ -223,12 +226,13 @@ module Google
223
226
  # Customize the options with defaults
224
227
  call_metadata = @config.rpcs.delete.metadata.to_h
225
228
 
226
- # Set x-goog-api-client and x-goog-user-project headers
229
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
227
230
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
228
231
  lib_name: @config.lib_name, lib_version: @config.lib_version,
229
232
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
230
233
  transports_version_send: [:rest]
231
234
 
235
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
232
236
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
233
237
 
234
238
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -305,12 +309,13 @@ module Google
305
309
  # Customize the options with defaults
306
310
  call_metadata = @config.rpcs.get.metadata.to_h
307
311
 
308
- # Set x-goog-api-client and x-goog-user-project headers
312
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
309
313
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
310
314
  lib_name: @config.lib_name, lib_version: @config.lib_version,
311
315
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
312
316
  transports_version_send: [:rest]
313
317
 
318
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
314
319
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
315
320
 
316
321
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -395,12 +400,13 @@ module Google
395
400
  # Customize the options with defaults
396
401
  call_metadata = @config.rpcs.list.metadata.to_h
397
402
 
398
- # Set x-goog-api-client and x-goog-user-project headers
403
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
399
404
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
400
405
  lib_name: @config.lib_name, lib_version: @config.lib_version,
401
406
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
402
407
  transports_version_send: [:rest]
403
408
 
409
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
404
410
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
405
411
 
406
412
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -478,12 +484,13 @@ module Google
478
484
  # Customize the options with defaults
479
485
  call_metadata = @config.rpcs.wait.metadata.to_h
480
486
 
481
- # Set x-goog-api-client and x-goog-user-project headers
487
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
482
488
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
483
489
  lib_name: @config.lib_name, lib_version: @config.lib_version,
484
490
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
485
491
  transports_version_send: [:rest]
486
492
 
493
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
487
494
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
488
495
 
489
496
  options.apply_defaults timeout: @config.rpcs.wait.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The RegionSecurityPolicies 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.add_rule.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.add_rule.timeout,
@@ -348,12 +352,13 @@ module Google
348
352
  # Customize the options with defaults
349
353
  call_metadata = @config.rpcs.delete.metadata.to_h
350
354
 
351
- # Set x-goog-api-client and x-goog-user-project headers
355
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
352
356
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
353
357
  lib_name: @config.lib_name, lib_version: @config.lib_version,
354
358
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
355
359
  transports_version_send: [:rest]
356
360
 
361
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
357
362
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
358
363
 
359
364
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -439,12 +444,13 @@ module Google
439
444
  # Customize the options with defaults
440
445
  call_metadata = @config.rpcs.get.metadata.to_h
441
446
 
442
- # 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
443
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
444
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
445
450
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
446
451
  transports_version_send: [:rest]
447
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
448
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
449
455
 
450
456
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -523,12 +529,13 @@ module Google
523
529
  # Customize the options with defaults
524
530
  call_metadata = @config.rpcs.get_rule.metadata.to_h
525
531
 
526
- # Set x-goog-api-client and x-goog-user-project headers
532
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
527
533
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
528
534
  lib_name: @config.lib_name, lib_version: @config.lib_version,
529
535
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
530
536
  transports_version_send: [:rest]
531
537
 
538
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
532
539
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
533
540
 
534
541
  options.apply_defaults timeout: @config.rpcs.get_rule.timeout,
@@ -609,12 +616,13 @@ module Google
609
616
  # Customize the options with defaults
610
617
  call_metadata = @config.rpcs.insert.metadata.to_h
611
618
 
612
- # Set x-goog-api-client and x-goog-user-project headers
619
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
613
620
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
614
621
  lib_name: @config.lib_name, lib_version: @config.lib_version,
615
622
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
616
623
  transports_version_send: [:rest]
617
624
 
625
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
618
626
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
619
627
 
620
628
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -708,12 +716,13 @@ module Google
708
716
  # Customize the options with defaults
709
717
  call_metadata = @config.rpcs.list.metadata.to_h
710
718
 
711
- # Set x-goog-api-client and x-goog-user-project headers
719
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
712
720
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
713
721
  lib_name: @config.lib_name, lib_version: @config.lib_version,
714
722
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
715
723
  transports_version_send: [:rest]
716
724
 
725
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
717
726
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
718
727
 
719
728
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -797,12 +806,13 @@ module Google
797
806
  # Customize the options with defaults
798
807
  call_metadata = @config.rpcs.patch.metadata.to_h
799
808
 
800
- # Set x-goog-api-client and x-goog-user-project headers
809
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
801
810
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
802
811
  lib_name: @config.lib_name, lib_version: @config.lib_version,
803
812
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
804
813
  transports_version_send: [:rest]
805
814
 
815
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
806
816
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
807
817
 
808
818
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -896,12 +906,13 @@ module Google
896
906
  # Customize the options with defaults
897
907
  call_metadata = @config.rpcs.patch_rule.metadata.to_h
898
908
 
899
- # Set x-goog-api-client and x-goog-user-project headers
909
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
900
910
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
901
911
  lib_name: @config.lib_name, lib_version: @config.lib_version,
902
912
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
903
913
  transports_version_send: [:rest]
904
914
 
915
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
905
916
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
906
917
 
907
918
  options.apply_defaults timeout: @config.rpcs.patch_rule.timeout,
@@ -989,12 +1000,13 @@ module Google
989
1000
  # Customize the options with defaults
990
1001
  call_metadata = @config.rpcs.remove_rule.metadata.to_h
991
1002
 
992
- # Set x-goog-api-client and x-goog-user-project headers
1003
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
993
1004
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
994
1005
  lib_name: @config.lib_name, lib_version: @config.lib_version,
995
1006
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
996
1007
  transports_version_send: [:rest]
997
1008
 
1009
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
998
1010
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
999
1011
 
1000
1012
  options.apply_defaults timeout: @config.rpcs.remove_rule.timeout,