google-cloud-compute-v1 2.11.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) 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 +1 -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/rest/client.rb +13 -5
  24. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +43 -20
  25. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +21 -9
  26. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +7 -2
  27. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +19 -8
  28. data/lib/google/cloud/compute/v1/instances/rest/client.rb +99 -48
  29. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +21 -9
  30. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +17 -7
  31. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +7 -2
  32. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +7 -2
  33. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +19 -8
  34. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +7 -2
  35. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +17 -7
  36. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +17 -7
  37. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +9 -3
  38. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +21 -9
  39. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +13 -5
  40. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +21 -9
  41. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +35 -16
  42. data/lib/google/cloud/compute/v1/networks/rest/client.rb +25 -11
  43. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +33 -15
  44. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +19 -8
  45. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +9 -3
  46. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +17 -7
  47. data/lib/google/cloud/compute/v1/projects/rest/client.rb +31 -14
  48. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +17 -7
  49. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +19 -8
  50. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +15 -6
  51. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +27 -12
  52. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +13 -5
  53. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +7 -2
  54. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +37 -17
  55. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +13 -5
  56. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +15 -6
  57. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +41 -19
  58. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +11 -4
  59. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +11 -4
  60. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -1
  61. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +19 -8
  62. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +17 -7
  63. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +37 -17
  64. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +11 -4
  65. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +11 -4
  66. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +21 -9
  67. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +11 -4
  68. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +15 -6
  69. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +13 -5
  70. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +17 -7
  71. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +11 -4
  72. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +17 -7
  73. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +5 -1
  74. data/lib/google/cloud/compute/v1/regions/rest/client.rb +7 -2
  75. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +23 -10
  76. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +21 -9
  77. data/lib/google/cloud/compute/v1/routers/rest/client.rb +25 -11
  78. data/lib/google/cloud/compute/v1/routes/rest/client.rb +11 -4
  79. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +27 -12
  80. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +21 -9
  81. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +7 -2
  82. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +19 -8
  83. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +13 -5
  84. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +17 -7
  85. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +9 -3
  86. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +23 -10
  87. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +27 -12
  88. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +13 -5
  89. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +17 -7
  90. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +25 -11
  91. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +15 -6
  92. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +27 -12
  93. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +21 -9
  94. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +17 -7
  95. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +15 -6
  96. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +21 -9
  97. data/lib/google/cloud/compute/v1/version.rb +1 -1
  98. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +19 -8
  99. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +15 -6
  100. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +11 -4
  101. data/lib/google/cloud/compute/v1/zones/rest/client.rb +7 -2
  102. data/proto_docs/google/cloud/compute/v1/compute.rb +11 -7
  103. metadata +2 -2
@@ -33,6 +33,9 @@ module Google
33
33
  # The Images 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
 
@@ -258,12 +261,13 @@ module Google
258
261
  # Customize the options with defaults
259
262
  call_metadata = @config.rpcs.delete.metadata.to_h
260
263
 
261
- # Set x-goog-api-client and x-goog-user-project headers
264
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
262
265
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
263
266
  lib_name: @config.lib_name, lib_version: @config.lib_version,
264
267
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
265
268
  transports_version_send: [:rest]
266
269
 
270
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
267
271
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
268
272
 
269
273
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -350,12 +354,13 @@ module Google
350
354
  # Customize the options with defaults
351
355
  call_metadata = @config.rpcs.deprecate.metadata.to_h
352
356
 
353
- # Set x-goog-api-client and x-goog-user-project headers
357
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
354
358
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
355
359
  lib_name: @config.lib_name, lib_version: @config.lib_version,
356
360
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
357
361
  transports_version_send: [:rest]
358
362
 
363
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
359
364
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
360
365
 
361
366
  options.apply_defaults timeout: @config.rpcs.deprecate.timeout,
@@ -438,12 +443,13 @@ module Google
438
443
  # Customize the options with defaults
439
444
  call_metadata = @config.rpcs.get.metadata.to_h
440
445
 
441
- # Set x-goog-api-client and x-goog-user-project headers
446
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
447
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
448
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
449
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
445
450
  transports_version_send: [:rest]
446
451
 
452
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
453
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
454
 
449
455
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -518,12 +524,13 @@ module Google
518
524
  # Customize the options with defaults
519
525
  call_metadata = @config.rpcs.get_from_family.metadata.to_h
520
526
 
521
- # Set x-goog-api-client and x-goog-user-project headers
527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
522
528
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
523
529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
524
530
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
525
531
  transports_version_send: [:rest]
526
532
 
533
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
527
534
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
528
535
 
529
536
  options.apply_defaults timeout: @config.rpcs.get_from_family.timeout,
@@ -600,12 +607,13 @@ module Google
600
607
  # Customize the options with defaults
601
608
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
602
609
 
603
- # Set x-goog-api-client and x-goog-user-project headers
610
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
604
611
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
605
612
  lib_name: @config.lib_name, lib_version: @config.lib_version,
606
613
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
607
614
  transports_version_send: [:rest]
608
615
 
616
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
609
617
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
610
618
 
611
619
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -684,12 +692,13 @@ module Google
684
692
  # Customize the options with defaults
685
693
  call_metadata = @config.rpcs.insert.metadata.to_h
686
694
 
687
- # Set x-goog-api-client and x-goog-user-project headers
695
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
688
696
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
689
697
  lib_name: @config.lib_name, lib_version: @config.lib_version,
690
698
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
691
699
  transports_version_send: [:rest]
692
700
 
701
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
693
702
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
694
703
 
695
704
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -780,12 +789,13 @@ module Google
780
789
  # Customize the options with defaults
781
790
  call_metadata = @config.rpcs.list.metadata.to_h
782
791
 
783
- # Set x-goog-api-client and x-goog-user-project headers
792
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
784
793
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
785
794
  lib_name: @config.lib_name, lib_version: @config.lib_version,
786
795
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
787
796
  transports_version_send: [:rest]
788
797
 
798
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
789
799
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
790
800
 
791
801
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -865,12 +875,13 @@ module Google
865
875
  # Customize the options with defaults
866
876
  call_metadata = @config.rpcs.patch.metadata.to_h
867
877
 
868
- # Set x-goog-api-client and x-goog-user-project headers
878
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
869
879
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
870
880
  lib_name: @config.lib_name, lib_version: @config.lib_version,
871
881
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
872
882
  transports_version_send: [:rest]
873
883
 
884
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
874
885
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
875
886
 
876
887
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -955,12 +966,13 @@ module Google
955
966
  # Customize the options with defaults
956
967
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
957
968
 
958
- # Set x-goog-api-client and x-goog-user-project headers
969
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
959
970
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
960
971
  lib_name: @config.lib_name, lib_version: @config.lib_version,
961
972
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
962
973
  transports_version_send: [:rest]
963
974
 
975
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
964
976
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
965
977
 
966
978
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1037,12 +1049,13 @@ module Google
1037
1049
  # Customize the options with defaults
1038
1050
  call_metadata = @config.rpcs.set_labels.metadata.to_h
1039
1051
 
1040
- # Set x-goog-api-client and x-goog-user-project headers
1052
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1041
1053
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1042
1054
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1043
1055
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1044
1056
  transports_version_send: [:rest]
1045
1057
 
1058
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1046
1059
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1047
1060
 
1048
1061
  options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
@@ -1127,12 +1140,13 @@ module Google
1127
1140
  # Customize the options with defaults
1128
1141
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1129
1142
 
1130
- # Set x-goog-api-client and x-goog-user-project headers
1143
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1131
1144
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1132
1145
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1133
1146
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1134
1147
  transports_version_send: [:rest]
1135
1148
 
1149
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1136
1150
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1137
1151
 
1138
1152
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The InstanceGroupManagerResizeRequests 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
 
@@ -244,12 +247,13 @@ module Google
244
247
  # Customize the options with defaults
245
248
  call_metadata = @config.rpcs.cancel.metadata.to_h
246
249
 
247
- # Set x-goog-api-client and x-goog-user-project headers
250
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
248
251
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
249
252
  lib_name: @config.lib_name, lib_version: @config.lib_version,
250
253
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
251
254
  transports_version_send: [:rest]
252
255
 
256
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
253
257
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
254
258
 
255
259
  options.apply_defaults timeout: @config.rpcs.cancel.timeout,
@@ -339,12 +343,13 @@ module Google
339
343
  # Customize the options with defaults
340
344
  call_metadata = @config.rpcs.delete.metadata.to_h
341
345
 
342
- # Set x-goog-api-client and x-goog-user-project headers
346
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
343
347
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
344
348
  lib_name: @config.lib_name, lib_version: @config.lib_version,
345
349
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
346
350
  transports_version_send: [:rest]
347
351
 
352
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
348
353
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
349
354
 
350
355
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -432,12 +437,13 @@ module Google
432
437
  # Customize the options with defaults
433
438
  call_metadata = @config.rpcs.get.metadata.to_h
434
439
 
435
- # Set x-goog-api-client and x-goog-user-project headers
440
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
436
441
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
437
442
  lib_name: @config.lib_name, lib_version: @config.lib_version,
438
443
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
439
444
  transports_version_send: [:rest]
440
445
 
446
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
441
447
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
442
448
 
443
449
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -518,12 +524,13 @@ module Google
518
524
  # Customize the options with defaults
519
525
  call_metadata = @config.rpcs.insert.metadata.to_h
520
526
 
521
- # Set x-goog-api-client and x-goog-user-project headers
527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
522
528
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
523
529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
524
530
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
525
531
  transports_version_send: [:rest]
526
532
 
533
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
527
534
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
528
535
 
529
536
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -619,12 +626,13 @@ module Google
619
626
  # Customize the options with defaults
620
627
  call_metadata = @config.rpcs.list.metadata.to_h
621
628
 
622
- # Set x-goog-api-client and x-goog-user-project headers
629
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
623
630
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
624
631
  lib_name: @config.lib_name, lib_version: @config.lib_version,
625
632
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
626
633
  transports_version_send: [:rest]
627
634
 
635
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
628
636
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
629
637
 
630
638
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The InstanceGroupManagers 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
 
@@ -280,12 +283,13 @@ module Google
280
283
  # Customize the options with defaults
281
284
  call_metadata = @config.rpcs.abandon_instances.metadata.to_h
282
285
 
283
- # Set x-goog-api-client and x-goog-user-project headers
286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
284
287
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
285
288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
286
289
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
287
290
  transports_version_send: [:rest]
288
291
 
292
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
289
293
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
290
294
 
291
295
  options.apply_defaults timeout: @config.rpcs.abandon_instances.timeout,
@@ -381,12 +385,13 @@ module Google
381
385
  # Customize the options with defaults
382
386
  call_metadata = @config.rpcs.aggregated_list.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.aggregated_list.timeout,
@@ -466,12 +471,13 @@ module Google
466
471
  # Customize the options with defaults
467
472
  call_metadata = @config.rpcs.apply_updates_to_instances.metadata.to_h
468
473
 
469
- # Set x-goog-api-client and x-goog-user-project headers
474
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
470
475
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
471
476
  lib_name: @config.lib_name, lib_version: @config.lib_version,
472
477
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
473
478
  transports_version_send: [:rest]
474
479
 
480
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
475
481
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
476
482
 
477
483
  options.apply_defaults timeout: @config.rpcs.apply_updates_to_instances.timeout,
@@ -561,12 +567,13 @@ module Google
561
567
  # Customize the options with defaults
562
568
  call_metadata = @config.rpcs.create_instances.metadata.to_h
563
569
 
564
- # Set x-goog-api-client and x-goog-user-project headers
570
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
565
571
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
566
572
  lib_name: @config.lib_name, lib_version: @config.lib_version,
567
573
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
568
574
  transports_version_send: [:rest]
569
575
 
576
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
570
577
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
571
578
 
572
579
  options.apply_defaults timeout: @config.rpcs.create_instances.timeout,
@@ -654,12 +661,13 @@ module Google
654
661
  # Customize the options with defaults
655
662
  call_metadata = @config.rpcs.delete.metadata.to_h
656
663
 
657
- # Set x-goog-api-client and x-goog-user-project headers
664
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
658
665
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
659
666
  lib_name: @config.lib_name, lib_version: @config.lib_version,
660
667
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
661
668
  transports_version_send: [:rest]
662
669
 
670
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
663
671
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
664
672
 
665
673
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -749,12 +757,13 @@ module Google
749
757
  # Customize the options with defaults
750
758
  call_metadata = @config.rpcs.delete_instances.metadata.to_h
751
759
 
752
- # Set x-goog-api-client and x-goog-user-project headers
760
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
753
761
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
754
762
  lib_name: @config.lib_name, lib_version: @config.lib_version,
755
763
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
756
764
  transports_version_send: [:rest]
757
765
 
766
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
758
767
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
759
768
 
760
769
  options.apply_defaults timeout: @config.rpcs.delete_instances.timeout,
@@ -842,12 +851,13 @@ module Google
842
851
  # Customize the options with defaults
843
852
  call_metadata = @config.rpcs.delete_per_instance_configs.metadata.to_h
844
853
 
845
- # Set x-goog-api-client and x-goog-user-project headers
854
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
846
855
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
847
856
  lib_name: @config.lib_name, lib_version: @config.lib_version,
848
857
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
849
858
  transports_version_send: [:rest]
850
859
 
860
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
851
861
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
852
862
 
853
863
  options.apply_defaults timeout: @config.rpcs.delete_per_instance_configs.timeout,
@@ -933,12 +943,13 @@ module Google
933
943
  # Customize the options with defaults
934
944
  call_metadata = @config.rpcs.get.metadata.to_h
935
945
 
936
- # Set x-goog-api-client and x-goog-user-project headers
946
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
937
947
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
938
948
  lib_name: @config.lib_name, lib_version: @config.lib_version,
939
949
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
940
950
  transports_version_send: [:rest]
941
951
 
952
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
942
953
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
943
954
 
944
955
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -1017,12 +1028,13 @@ module Google
1017
1028
  # Customize the options with defaults
1018
1029
  call_metadata = @config.rpcs.insert.metadata.to_h
1019
1030
 
1020
- # Set x-goog-api-client and x-goog-user-project headers
1031
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1021
1032
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1022
1033
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1023
1034
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1024
1035
  transports_version_send: [:rest]
1025
1036
 
1037
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1026
1038
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1027
1039
 
1028
1040
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -1116,12 +1128,13 @@ module Google
1116
1128
  # Customize the options with defaults
1117
1129
  call_metadata = @config.rpcs.list.metadata.to_h
1118
1130
 
1119
- # Set x-goog-api-client and x-goog-user-project headers
1131
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1120
1132
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1121
1133
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1122
1134
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1123
1135
  transports_version_send: [:rest]
1124
1136
 
1137
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1125
1138
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1126
1139
 
1127
1140
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -1209,12 +1222,13 @@ module Google
1209
1222
  # Customize the options with defaults
1210
1223
  call_metadata = @config.rpcs.list_errors.metadata.to_h
1211
1224
 
1212
- # Set x-goog-api-client and x-goog-user-project headers
1225
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1213
1226
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1214
1227
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1215
1228
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1216
1229
  transports_version_send: [:rest]
1217
1230
 
1231
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1218
1232
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1219
1233
 
1220
1234
  options.apply_defaults timeout: @config.rpcs.list_errors.timeout,
@@ -1302,12 +1316,13 @@ module Google
1302
1316
  # Customize the options with defaults
1303
1317
  call_metadata = @config.rpcs.list_managed_instances.metadata.to_h
1304
1318
 
1305
- # Set x-goog-api-client and x-goog-user-project headers
1319
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1306
1320
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1307
1321
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1308
1322
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1309
1323
  transports_version_send: [:rest]
1310
1324
 
1325
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1311
1326
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1312
1327
 
1313
1328
  options.apply_defaults timeout: @config.rpcs.list_managed_instances.timeout,
@@ -1395,12 +1410,13 @@ module Google
1395
1410
  # Customize the options with defaults
1396
1411
  call_metadata = @config.rpcs.list_per_instance_configs.metadata.to_h
1397
1412
 
1398
- # Set x-goog-api-client and x-goog-user-project headers
1413
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1399
1414
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1400
1415
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1401
1416
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1402
1417
  transports_version_send: [:rest]
1403
1418
 
1419
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1404
1420
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1405
1421
 
1406
1422
  options.apply_defaults timeout: @config.rpcs.list_per_instance_configs.timeout,
@@ -1482,12 +1498,13 @@ module Google
1482
1498
  # Customize the options with defaults
1483
1499
  call_metadata = @config.rpcs.patch.metadata.to_h
1484
1500
 
1485
- # Set x-goog-api-client and x-goog-user-project headers
1501
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1486
1502
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1487
1503
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1488
1504
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1489
1505
  transports_version_send: [:rest]
1490
1506
 
1507
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1491
1508
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1492
1509
 
1493
1510
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -1577,12 +1594,13 @@ module Google
1577
1594
  # Customize the options with defaults
1578
1595
  call_metadata = @config.rpcs.patch_per_instance_configs.metadata.to_h
1579
1596
 
1580
- # Set x-goog-api-client and x-goog-user-project headers
1597
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1581
1598
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1582
1599
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1583
1600
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1584
1601
  transports_version_send: [:rest]
1585
1602
 
1603
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1586
1604
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1587
1605
 
1588
1606
  options.apply_defaults timeout: @config.rpcs.patch_per_instance_configs.timeout,
@@ -1672,12 +1690,13 @@ module Google
1672
1690
  # Customize the options with defaults
1673
1691
  call_metadata = @config.rpcs.recreate_instances.metadata.to_h
1674
1692
 
1675
- # Set x-goog-api-client and x-goog-user-project headers
1693
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1676
1694
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1677
1695
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1678
1696
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1679
1697
  transports_version_send: [:rest]
1680
1698
 
1699
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1681
1700
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1682
1701
 
1683
1702
  options.apply_defaults timeout: @config.rpcs.recreate_instances.timeout,
@@ -1767,12 +1786,13 @@ module Google
1767
1786
  # Customize the options with defaults
1768
1787
  call_metadata = @config.rpcs.resize.metadata.to_h
1769
1788
 
1770
- # Set x-goog-api-client and x-goog-user-project headers
1789
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1771
1790
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1772
1791
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1773
1792
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1774
1793
  transports_version_send: [:rest]
1775
1794
 
1795
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1776
1796
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1777
1797
 
1778
1798
  options.apply_defaults timeout: @config.rpcs.resize.timeout,
@@ -1862,12 +1882,13 @@ module Google
1862
1882
  # Customize the options with defaults
1863
1883
  call_metadata = @config.rpcs.set_instance_template.metadata.to_h
1864
1884
 
1865
- # Set x-goog-api-client and x-goog-user-project headers
1885
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1866
1886
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1867
1887
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1868
1888
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1869
1889
  transports_version_send: [:rest]
1870
1890
 
1891
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1871
1892
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1872
1893
 
1873
1894
  options.apply_defaults timeout: @config.rpcs.set_instance_template.timeout,
@@ -1957,12 +1978,13 @@ module Google
1957
1978
  # Customize the options with defaults
1958
1979
  call_metadata = @config.rpcs.set_target_pools.metadata.to_h
1959
1980
 
1960
- # Set x-goog-api-client and x-goog-user-project headers
1981
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1961
1982
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1962
1983
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1963
1984
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1964
1985
  transports_version_send: [:rest]
1965
1986
 
1987
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1966
1988
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1967
1989
 
1968
1990
  options.apply_defaults timeout: @config.rpcs.set_target_pools.timeout,
@@ -2052,12 +2074,13 @@ module Google
2052
2074
  # Customize the options with defaults
2053
2075
  call_metadata = @config.rpcs.update_per_instance_configs.metadata.to_h
2054
2076
 
2055
- # Set x-goog-api-client and x-goog-user-project headers
2077
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2056
2078
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2057
2079
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2058
2080
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
2059
2081
  transports_version_send: [:rest]
2060
2082
 
2083
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2061
2084
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2062
2085
 
2063
2086
  options.apply_defaults timeout: @config.rpcs.update_per_instance_configs.timeout,