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 GlobalForwardingRules 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.delete.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.delete.timeout,
@@ -332,12 +336,13 @@ module Google
332
336
  # Customize the options with defaults
333
337
  call_metadata = @config.rpcs.get.metadata.to_h
334
338
 
335
- # Set x-goog-api-client and x-goog-user-project headers
339
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
336
340
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
337
341
  lib_name: @config.lib_name, lib_version: @config.lib_version,
338
342
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
339
343
  transports_version_send: [:rest]
340
344
 
345
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
341
346
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
342
347
 
343
348
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -414,12 +419,13 @@ module Google
414
419
  # Customize the options with defaults
415
420
  call_metadata = @config.rpcs.insert.metadata.to_h
416
421
 
417
- # Set x-goog-api-client and x-goog-user-project headers
422
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
418
423
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
419
424
  lib_name: @config.lib_name, lib_version: @config.lib_version,
420
425
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
421
426
  transports_version_send: [:rest]
422
427
 
428
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
423
429
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
424
430
 
425
431
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -510,12 +516,13 @@ module Google
510
516
  # Customize the options with defaults
511
517
  call_metadata = @config.rpcs.list.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.list.timeout,
@@ -595,12 +602,13 @@ module Google
595
602
  # Customize the options with defaults
596
603
  call_metadata = @config.rpcs.patch.metadata.to_h
597
604
 
598
- # Set x-goog-api-client and x-goog-user-project headers
605
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
599
606
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
600
607
  lib_name: @config.lib_name, lib_version: @config.lib_version,
601
608
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
602
609
  transports_version_send: [:rest]
603
610
 
611
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
604
612
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
605
613
 
606
614
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -685,12 +693,13 @@ module Google
685
693
  # Customize the options with defaults
686
694
  call_metadata = @config.rpcs.set_labels.metadata.to_h
687
695
 
688
- # Set x-goog-api-client and x-goog-user-project headers
696
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
689
697
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
690
698
  lib_name: @config.lib_name, lib_version: @config.lib_version,
691
699
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
692
700
  transports_version_send: [:rest]
693
701
 
702
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
694
703
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
695
704
 
696
705
  options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
@@ -777,12 +786,13 @@ module Google
777
786
  # Customize the options with defaults
778
787
  call_metadata = @config.rpcs.set_target.metadata.to_h
779
788
 
780
- # Set x-goog-api-client and x-goog-user-project headers
789
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
781
790
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
782
791
  lib_name: @config.lib_name, lib_version: @config.lib_version,
783
792
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
784
793
  transports_version_send: [:rest]
785
794
 
795
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
786
796
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
787
797
 
788
798
  options.apply_defaults timeout: @config.rpcs.set_target.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The GlobalNetworkEndpointGroups 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
 
@@ -246,12 +249,13 @@ module Google
246
249
  # Customize the options with defaults
247
250
  call_metadata = @config.rpcs.attach_network_endpoints.metadata.to_h
248
251
 
249
- # Set x-goog-api-client and x-goog-user-project headers
252
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
250
253
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
251
254
  lib_name: @config.lib_name, lib_version: @config.lib_version,
252
255
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
253
256
  transports_version_send: [:rest]
254
257
 
258
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
255
259
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
256
260
 
257
261
  options.apply_defaults timeout: @config.rpcs.attach_network_endpoints.timeout,
@@ -336,12 +340,13 @@ module Google
336
340
  # Customize the options with defaults
337
341
  call_metadata = @config.rpcs.delete.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.delete.timeout,
@@ -428,12 +433,13 @@ module Google
428
433
  # Customize the options with defaults
429
434
  call_metadata = @config.rpcs.detach_network_endpoints.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.detach_network_endpoints.timeout,
@@ -516,12 +522,13 @@ module Google
516
522
  # Customize the options with defaults
517
523
  call_metadata = @config.rpcs.get.metadata.to_h
518
524
 
519
- # Set x-goog-api-client and x-goog-user-project headers
525
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
520
526
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
521
527
  lib_name: @config.lib_name, lib_version: @config.lib_version,
522
528
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
523
529
  transports_version_send: [:rest]
524
530
 
531
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
525
532
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
526
533
 
527
534
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -598,12 +605,13 @@ module Google
598
605
  # Customize the options with defaults
599
606
  call_metadata = @config.rpcs.insert.metadata.to_h
600
607
 
601
- # Set x-goog-api-client and x-goog-user-project headers
608
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
602
609
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
603
610
  lib_name: @config.lib_name, lib_version: @config.lib_version,
604
611
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
605
612
  transports_version_send: [:rest]
606
613
 
614
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
607
615
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
608
616
 
609
617
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -694,12 +702,13 @@ module Google
694
702
  # Customize the options with defaults
695
703
  call_metadata = @config.rpcs.list.metadata.to_h
696
704
 
697
- # Set x-goog-api-client and x-goog-user-project headers
705
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
698
706
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
699
707
  lib_name: @config.lib_name, lib_version: @config.lib_version,
700
708
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
701
709
  transports_version_send: [:rest]
702
710
 
711
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
703
712
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
704
713
 
705
714
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -785,12 +794,13 @@ module Google
785
794
  # Customize the options with defaults
786
795
  call_metadata = @config.rpcs.list_network_endpoints.metadata.to_h
787
796
 
788
- # Set x-goog-api-client and x-goog-user-project headers
797
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
789
798
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
790
799
  lib_name: @config.lib_name, lib_version: @config.lib_version,
791
800
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
792
801
  transports_version_send: [:rest]
793
802
 
803
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
794
804
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
795
805
 
796
806
  options.apply_defaults timeout: @config.rpcs.list_network_endpoints.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # The GlobalOperations 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
 
@@ -238,12 +241,13 @@ module Google
238
241
  # Customize the options with defaults
239
242
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
240
243
 
241
- # Set x-goog-api-client and x-goog-user-project headers
244
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
242
245
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
243
246
  lib_name: @config.lib_name, lib_version: @config.lib_version,
244
247
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
245
248
  transports_version_send: [:rest]
246
249
 
250
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
247
251
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
248
252
 
249
253
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -319,12 +323,13 @@ module Google
319
323
  # Customize the options with defaults
320
324
  call_metadata = @config.rpcs.delete.metadata.to_h
321
325
 
322
- # Set x-goog-api-client and x-goog-user-project headers
326
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
323
327
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
324
328
  lib_name: @config.lib_name, lib_version: @config.lib_version,
325
329
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
326
330
  transports_version_send: [:rest]
327
331
 
332
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
328
333
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
329
334
 
330
335
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -399,12 +404,13 @@ module Google
399
404
  # Customize the options with defaults
400
405
  call_metadata = @config.rpcs.get.metadata.to_h
401
406
 
402
- # Set x-goog-api-client and x-goog-user-project headers
407
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
403
408
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
404
409
  lib_name: @config.lib_name, lib_version: @config.lib_version,
405
410
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
406
411
  transports_version_send: [:rest]
407
412
 
413
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
408
414
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
409
415
 
410
416
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -487,12 +493,13 @@ module Google
487
493
  # Customize the options with defaults
488
494
  call_metadata = @config.rpcs.list.metadata.to_h
489
495
 
490
- # Set x-goog-api-client and x-goog-user-project headers
496
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
491
497
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
492
498
  lib_name: @config.lib_name, lib_version: @config.lib_version,
493
499
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
494
500
  transports_version_send: [:rest]
495
501
 
502
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
496
503
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
497
504
 
498
505
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -568,12 +575,13 @@ module Google
568
575
  # Customize the options with defaults
569
576
  call_metadata = @config.rpcs.wait.metadata.to_h
570
577
 
571
- # 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
572
579
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
573
580
  lib_name: @config.lib_name, lib_version: @config.lib_version,
574
581
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
575
582
  transports_version_send: [:rest]
576
583
 
584
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
577
585
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
578
586
 
579
587
  options.apply_defaults timeout: @config.rpcs.wait.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # The GlobalOrganizationOperations 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
 
@@ -219,12 +222,13 @@ module Google
219
222
  # Customize the options with defaults
220
223
  call_metadata = @config.rpcs.delete.metadata.to_h
221
224
 
222
- # Set x-goog-api-client and x-goog-user-project headers
225
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
223
226
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
224
227
  lib_name: @config.lib_name, lib_version: @config.lib_version,
225
228
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
226
229
  transports_version_send: [:rest]
227
230
 
231
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
228
232
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
229
233
 
230
234
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -299,12 +303,13 @@ module Google
299
303
  # Customize the options with defaults
300
304
  call_metadata = @config.rpcs.get.metadata.to_h
301
305
 
302
- # Set x-goog-api-client and x-goog-user-project headers
306
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
303
307
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
304
308
  lib_name: @config.lib_name, lib_version: @config.lib_version,
305
309
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
306
310
  transports_version_send: [:rest]
307
311
 
312
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
308
313
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
309
314
 
310
315
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -387,12 +392,13 @@ module Google
387
392
  # Customize the options with defaults
388
393
  call_metadata = @config.rpcs.list.metadata.to_h
389
394
 
390
- # Set x-goog-api-client and x-goog-user-project headers
395
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
391
396
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
392
397
  lib_name: @config.lib_name, lib_version: @config.lib_version,
393
398
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
394
399
  transports_version_send: [:rest]
395
400
 
401
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
396
402
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
397
403
 
398
404
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The GlobalPublicDelegatedPrefixes 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,
@@ -328,12 +332,13 @@ module Google
328
332
  # Customize the options with defaults
329
333
  call_metadata = @config.rpcs.get.metadata.to_h
330
334
 
331
- # Set x-goog-api-client and x-goog-user-project headers
335
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
332
336
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
333
337
  lib_name: @config.lib_name, lib_version: @config.lib_version,
334
338
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
335
339
  transports_version_send: [:rest]
336
340
 
341
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
337
342
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
338
343
 
339
344
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -410,12 +415,13 @@ module Google
410
415
  # Customize the options with defaults
411
416
  call_metadata = @config.rpcs.insert.metadata.to_h
412
417
 
413
- # Set x-goog-api-client and x-goog-user-project headers
418
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
414
419
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
415
420
  lib_name: @config.lib_name, lib_version: @config.lib_version,
416
421
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
417
422
  transports_version_send: [:rest]
418
423
 
424
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
419
425
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
420
426
 
421
427
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -506,12 +512,13 @@ module Google
506
512
  # Customize the options with defaults
507
513
  call_metadata = @config.rpcs.list.metadata.to_h
508
514
 
509
- # Set x-goog-api-client and x-goog-user-project headers
515
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
510
516
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
511
517
  lib_name: @config.lib_name, lib_version: @config.lib_version,
512
518
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
513
519
  transports_version_send: [:rest]
514
520
 
521
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
515
522
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
516
523
 
517
524
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -591,12 +598,13 @@ module Google
591
598
  # Customize the options with defaults
592
599
  call_metadata = @config.rpcs.patch.metadata.to_h
593
600
 
594
- # Set x-goog-api-client and x-goog-user-project headers
601
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
595
602
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
596
603
  lib_name: @config.lib_name, lib_version: @config.lib_version,
597
604
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
598
605
  transports_version_send: [:rest]
599
606
 
607
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
600
608
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
601
609
 
602
610
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The HealthChecks 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.patch.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.patch.timeout,
@@ -783,12 +792,13 @@ module Google
783
792
  # Customize the options with defaults
784
793
  call_metadata = @config.rpcs.update.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.update.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # The ImageFamilyViews 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
 
@@ -214,12 +217,13 @@ module Google
214
217
  # Customize the options with defaults
215
218
  call_metadata = @config.rpcs.get.metadata.to_h
216
219
 
217
- # Set x-goog-api-client and x-goog-user-project headers
220
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
218
221
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
219
222
  lib_name: @config.lib_name, lib_version: @config.lib_version,
220
223
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
221
224
  transports_version_send: [:rest]
222
225
 
226
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
223
227
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
224
228
 
225
229
  options.apply_defaults timeout: @config.rpcs.get.timeout,