google-cloud-compute-v1 2.11.0 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
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 PublicDelegatedPrefixes 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
 
@@ -259,12 +262,13 @@ module Google
259
262
  # Customize the options with defaults
260
263
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
261
264
 
262
- # Set x-goog-api-client and x-goog-user-project headers
265
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
263
266
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
264
267
  lib_name: @config.lib_name, lib_version: @config.lib_version,
265
268
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
266
269
  transports_version_send: [:rest]
267
270
 
271
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
268
272
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
269
273
 
270
274
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -344,12 +348,13 @@ module Google
344
348
  # Customize the options with defaults
345
349
  call_metadata = @config.rpcs.announce.metadata.to_h
346
350
 
347
- # Set x-goog-api-client and x-goog-user-project headers
351
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
348
352
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
349
353
  lib_name: @config.lib_name, lib_version: @config.lib_version,
350
354
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
351
355
  transports_version_send: [:rest]
352
356
 
357
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
353
358
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
354
359
 
355
360
  options.apply_defaults timeout: @config.rpcs.announce.timeout,
@@ -437,12 +442,13 @@ module Google
437
442
  # Customize the options with defaults
438
443
  call_metadata = @config.rpcs.delete.metadata.to_h
439
444
 
440
- # Set x-goog-api-client and x-goog-user-project headers
445
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
441
446
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
442
447
  lib_name: @config.lib_name, lib_version: @config.lib_version,
443
448
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
444
449
  transports_version_send: [:rest]
445
450
 
451
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
446
452
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
447
453
 
448
454
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -528,12 +534,13 @@ module Google
528
534
  # Customize the options with defaults
529
535
  call_metadata = @config.rpcs.get.metadata.to_h
530
536
 
531
- # Set x-goog-api-client and x-goog-user-project headers
537
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
532
538
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
533
539
  lib_name: @config.lib_name, lib_version: @config.lib_version,
534
540
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
535
541
  transports_version_send: [:rest]
536
542
 
543
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
537
544
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
538
545
 
539
546
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -612,12 +619,13 @@ module Google
612
619
  # Customize the options with defaults
613
620
  call_metadata = @config.rpcs.insert.metadata.to_h
614
621
 
615
- # Set x-goog-api-client and x-goog-user-project headers
622
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
616
623
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
617
624
  lib_name: @config.lib_name, lib_version: @config.lib_version,
618
625
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
619
626
  transports_version_send: [:rest]
620
627
 
628
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
621
629
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
622
630
 
623
631
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -711,12 +719,13 @@ module Google
711
719
  # Customize the options with defaults
712
720
  call_metadata = @config.rpcs.list.metadata.to_h
713
721
 
714
- # Set x-goog-api-client and x-goog-user-project headers
722
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
715
723
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
716
724
  lib_name: @config.lib_name, lib_version: @config.lib_version,
717
725
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
718
726
  transports_version_send: [:rest]
719
727
 
728
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
720
729
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
721
730
 
722
731
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -798,12 +807,13 @@ module Google
798
807
  # Customize the options with defaults
799
808
  call_metadata = @config.rpcs.patch.metadata.to_h
800
809
 
801
- # Set x-goog-api-client and x-goog-user-project headers
810
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
802
811
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
803
812
  lib_name: @config.lib_name, lib_version: @config.lib_version,
804
813
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
805
814
  transports_version_send: [:rest]
806
815
 
816
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
807
817
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
808
818
 
809
819
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -891,12 +901,13 @@ module Google
891
901
  # Customize the options with defaults
892
902
  call_metadata = @config.rpcs.withdraw.metadata.to_h
893
903
 
894
- # Set x-goog-api-client and x-goog-user-project headers
904
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
895
905
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
896
906
  lib_name: @config.lib_name, lib_version: @config.lib_version,
897
907
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
898
908
  transports_version_send: [:rest]
899
909
 
910
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
900
911
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
901
912
 
902
913
  options.apply_defaults timeout: @config.rpcs.withdraw.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The RegionAutoscalers 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,
@@ -335,12 +339,13 @@ module Google
335
339
  # Customize the options with defaults
336
340
  call_metadata = @config.rpcs.get.metadata.to_h
337
341
 
338
- # Set x-goog-api-client and x-goog-user-project headers
342
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
339
343
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
340
344
  lib_name: @config.lib_name, lib_version: @config.lib_version,
341
345
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
342
346
  transports_version_send: [:rest]
343
347
 
348
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
344
349
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
345
350
 
346
351
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -419,12 +424,13 @@ module Google
419
424
  # Customize the options with defaults
420
425
  call_metadata = @config.rpcs.insert.metadata.to_h
421
426
 
422
- # Set x-goog-api-client and x-goog-user-project headers
427
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
423
428
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
424
429
  lib_name: @config.lib_name, lib_version: @config.lib_version,
425
430
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
426
431
  transports_version_send: [:rest]
427
432
 
433
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
428
434
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
429
435
 
430
436
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -518,12 +524,13 @@ module Google
518
524
  # Customize the options with defaults
519
525
  call_metadata = @config.rpcs.list.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.list.timeout,
@@ -605,12 +612,13 @@ module Google
605
612
  # Customize the options with defaults
606
613
  call_metadata = @config.rpcs.patch.metadata.to_h
607
614
 
608
- # Set x-goog-api-client and x-goog-user-project headers
615
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
609
616
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
610
617
  lib_name: @config.lib_name, lib_version: @config.lib_version,
611
618
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
612
619
  transports_version_send: [:rest]
613
620
 
621
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
614
622
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
615
623
 
616
624
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -700,12 +708,13 @@ module Google
700
708
  # Customize the options with defaults
701
709
  call_metadata = @config.rpcs.update.metadata.to_h
702
710
 
703
- # Set x-goog-api-client and x-goog-user-project headers
711
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
704
712
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
705
713
  lib_name: @config.lib_name, lib_version: @config.lib_version,
706
714
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
707
715
  transports_version_send: [:rest]
708
716
 
717
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
709
718
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
710
719
 
711
720
  options.apply_defaults timeout: @config.rpcs.update.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The RegionBackendServices 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
 
@@ -262,12 +265,13 @@ module Google
262
265
  # Customize the options with defaults
263
266
  call_metadata = @config.rpcs.delete.metadata.to_h
264
267
 
265
- # Set x-goog-api-client and x-goog-user-project headers
268
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
266
269
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
267
270
  lib_name: @config.lib_name, lib_version: @config.lib_version,
268
271
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
269
272
  transports_version_send: [:rest]
270
273
 
274
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
271
275
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
272
276
 
273
277
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -353,12 +357,13 @@ module Google
353
357
  # Customize the options with defaults
354
358
  call_metadata = @config.rpcs.get.metadata.to_h
355
359
 
356
- # Set x-goog-api-client and x-goog-user-project headers
360
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
357
361
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
358
362
  lib_name: @config.lib_name, lib_version: @config.lib_version,
359
363
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
360
364
  transports_version_send: [:rest]
361
365
 
366
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
362
367
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
363
368
 
364
369
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -436,12 +441,13 @@ module Google
436
441
  # Customize the options with defaults
437
442
  call_metadata = @config.rpcs.get_health.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.get_health.timeout,
@@ -520,12 +526,13 @@ module Google
520
526
  # Customize the options with defaults
521
527
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
522
528
 
523
- # Set x-goog-api-client and x-goog-user-project headers
529
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
524
530
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
525
531
  lib_name: @config.lib_name, lib_version: @config.lib_version,
526
532
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
527
533
  transports_version_send: [:rest]
528
534
 
535
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
529
536
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
530
537
 
531
538
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -604,12 +611,13 @@ module Google
604
611
  # Customize the options with defaults
605
612
  call_metadata = @config.rpcs.insert.metadata.to_h
606
613
 
607
- # Set x-goog-api-client and x-goog-user-project headers
614
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
608
615
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
609
616
  lib_name: @config.lib_name, lib_version: @config.lib_version,
610
617
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
611
618
  transports_version_send: [:rest]
612
619
 
620
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
613
621
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
614
622
 
615
623
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -703,12 +711,13 @@ module Google
703
711
  # Customize the options with defaults
704
712
  call_metadata = @config.rpcs.list.metadata.to_h
705
713
 
706
- # Set x-goog-api-client and x-goog-user-project headers
714
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
707
715
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
708
716
  lib_name: @config.lib_name, lib_version: @config.lib_version,
709
717
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
710
718
  transports_version_send: [:rest]
711
719
 
720
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
712
721
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
713
722
 
714
723
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -794,12 +803,13 @@ module Google
794
803
  # Customize the options with defaults
795
804
  call_metadata = @config.rpcs.list_usable.metadata.to_h
796
805
 
797
- # Set x-goog-api-client and x-goog-user-project headers
806
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
798
807
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
799
808
  lib_name: @config.lib_name, lib_version: @config.lib_version,
800
809
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
801
810
  transports_version_send: [:rest]
802
811
 
812
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
803
813
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
804
814
 
805
815
  options.apply_defaults timeout: @config.rpcs.list_usable.timeout,
@@ -881,12 +891,13 @@ module Google
881
891
  # Customize the options with defaults
882
892
  call_metadata = @config.rpcs.patch.metadata.to_h
883
893
 
884
- # Set x-goog-api-client and x-goog-user-project headers
894
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
885
895
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
886
896
  lib_name: @config.lib_name, lib_version: @config.lib_version,
887
897
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
888
898
  transports_version_send: [:rest]
889
899
 
900
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
890
901
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
891
902
 
892
903
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -974,12 +985,13 @@ module Google
974
985
  # Customize the options with defaults
975
986
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
976
987
 
977
- # Set x-goog-api-client and x-goog-user-project headers
988
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
978
989
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
979
990
  lib_name: @config.lib_name, lib_version: @config.lib_version,
980
991
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
981
992
  transports_version_send: [:rest]
982
993
 
994
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
983
995
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
984
996
 
985
997
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1060,12 +1072,13 @@ module Google
1060
1072
  # Customize the options with defaults
1061
1073
  call_metadata = @config.rpcs.set_security_policy.metadata.to_h
1062
1074
 
1063
- # Set x-goog-api-client and x-goog-user-project headers
1075
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1064
1076
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1065
1077
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1066
1078
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1067
1079
  transports_version_send: [:rest]
1068
1080
 
1081
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1069
1082
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1070
1083
 
1071
1084
  options.apply_defaults timeout: @config.rpcs.set_security_policy.timeout,
@@ -1153,12 +1166,13 @@ module Google
1153
1166
  # Customize the options with defaults
1154
1167
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1155
1168
 
1156
- # Set x-goog-api-client and x-goog-user-project headers
1169
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1157
1170
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1158
1171
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1159
1172
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1160
1173
  transports_version_send: [:rest]
1161
1174
 
1175
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1162
1176
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1163
1177
 
1164
1178
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -1239,12 +1253,13 @@ module Google
1239
1253
  # Customize the options with defaults
1240
1254
  call_metadata = @config.rpcs.update.metadata.to_h
1241
1255
 
1242
- # Set x-goog-api-client and x-goog-user-project headers
1256
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1243
1257
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1244
1258
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1245
1259
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1246
1260
  transports_version_send: [:rest]
1247
1261
 
1262
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1248
1263
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1249
1264
 
1250
1265
  options.apply_defaults timeout: @config.rpcs.update.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The RegionCommitments 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
 
@@ -253,12 +256,13 @@ module Google
253
256
  # Customize the options with defaults
254
257
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
255
258
 
256
- # Set x-goog-api-client and x-goog-user-project headers
259
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
257
260
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
258
261
  lib_name: @config.lib_name, lib_version: @config.lib_version,
259
262
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
260
263
  transports_version_send: [:rest]
261
264
 
265
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
262
266
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
263
267
 
264
268
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -336,12 +340,13 @@ module Google
336
340
  # Customize the options with defaults
337
341
  call_metadata = @config.rpcs.get.metadata.to_h
338
342
 
339
- # Set x-goog-api-client and x-goog-user-project headers
343
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
340
344
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
341
345
  lib_name: @config.lib_name, lib_version: @config.lib_version,
342
346
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
343
347
  transports_version_send: [:rest]
344
348
 
349
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
345
350
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
346
351
 
347
352
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -420,12 +425,13 @@ module Google
420
425
  # Customize the options with defaults
421
426
  call_metadata = @config.rpcs.insert.metadata.to_h
422
427
 
423
- # Set x-goog-api-client and x-goog-user-project headers
428
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
424
429
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
425
430
  lib_name: @config.lib_name, lib_version: @config.lib_version,
426
431
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
427
432
  transports_version_send: [:rest]
428
433
 
434
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
429
435
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
430
436
 
431
437
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -519,12 +525,13 @@ module Google
519
525
  # Customize the options with defaults
520
526
  call_metadata = @config.rpcs.list.metadata.to_h
521
527
 
522
- # Set x-goog-api-client and x-goog-user-project headers
528
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
523
529
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
524
530
  lib_name: @config.lib_name, lib_version: @config.lib_version,
525
531
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
526
532
  transports_version_send: [:rest]
527
533
 
534
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
528
535
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
529
536
 
530
537
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -609,12 +616,13 @@ module Google
609
616
  # Customize the options with defaults
610
617
  call_metadata = @config.rpcs.update.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.update.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # The RegionDiskTypes 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.get.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.get.timeout,
@@ -309,12 +313,13 @@ module Google
309
313
  # Customize the options with defaults
310
314
  call_metadata = @config.rpcs.list.metadata.to_h
311
315
 
312
- # Set x-goog-api-client and x-goog-user-project headers
316
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
313
317
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
314
318
  lib_name: @config.lib_name, lib_version: @config.lib_version,
315
319
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
316
320
  transports_version_send: [:rest]
317
321
 
322
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
318
323
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
319
324
 
320
325
  options.apply_defaults timeout: @config.rpcs.list.timeout,