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 PacketMirrorings 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,
@@ -342,12 +346,13 @@ module Google
342
346
  # Customize the options with defaults
343
347
  call_metadata = @config.rpcs.delete.metadata.to_h
344
348
 
345
- # Set x-goog-api-client and x-goog-user-project headers
349
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
346
350
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
347
351
  lib_name: @config.lib_name, lib_version: @config.lib_version,
348
352
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
349
353
  transports_version_send: [:rest]
350
354
 
355
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
351
356
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
352
357
 
353
358
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -433,12 +438,13 @@ module Google
433
438
  # Customize the options with defaults
434
439
  call_metadata = @config.rpcs.get.metadata.to_h
435
440
 
436
- # Set x-goog-api-client and x-goog-user-project headers
441
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
437
442
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
438
443
  lib_name: @config.lib_name, lib_version: @config.lib_version,
439
444
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
440
445
  transports_version_send: [:rest]
441
446
 
447
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
442
448
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
443
449
 
444
450
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -517,12 +523,13 @@ module Google
517
523
  # Customize the options with defaults
518
524
  call_metadata = @config.rpcs.insert.metadata.to_h
519
525
 
520
- # Set x-goog-api-client and x-goog-user-project headers
526
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
521
527
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
522
528
  lib_name: @config.lib_name, lib_version: @config.lib_version,
523
529
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
524
530
  transports_version_send: [:rest]
525
531
 
532
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
526
533
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
527
534
 
528
535
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -616,12 +623,13 @@ module Google
616
623
  # Customize the options with defaults
617
624
  call_metadata = @config.rpcs.list.metadata.to_h
618
625
 
619
- # Set x-goog-api-client and x-goog-user-project headers
626
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
620
627
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
621
628
  lib_name: @config.lib_name, lib_version: @config.lib_version,
622
629
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
623
630
  transports_version_send: [:rest]
624
631
 
632
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
625
633
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
626
634
 
627
635
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -703,12 +711,13 @@ module Google
703
711
  # Customize the options with defaults
704
712
  call_metadata = @config.rpcs.patch.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.patch.timeout,
@@ -796,12 +805,13 @@ module Google
796
805
  # Customize the options with defaults
797
806
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
798
807
 
799
- # Set x-goog-api-client and x-goog-user-project headers
808
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
800
809
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
801
810
  lib_name: @config.lib_name, lib_version: @config.lib_version,
802
811
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
803
812
  transports_version_send: [:rest]
804
813
 
814
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
805
815
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
806
816
 
807
817
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The Projects 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.disable_xpn_host.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.disable_xpn_host.timeout,
@@ -349,12 +353,13 @@ module Google
349
353
  # Customize the options with defaults
350
354
  call_metadata = @config.rpcs.disable_xpn_resource.metadata.to_h
351
355
 
352
- # Set x-goog-api-client and x-goog-user-project headers
356
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
353
357
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
354
358
  lib_name: @config.lib_name, lib_version: @config.lib_version,
355
359
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
356
360
  transports_version_send: [:rest]
357
361
 
362
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
358
363
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
359
364
 
360
365
  options.apply_defaults timeout: @config.rpcs.disable_xpn_resource.timeout,
@@ -437,12 +442,13 @@ module Google
437
442
  # Customize the options with defaults
438
443
  call_metadata = @config.rpcs.enable_xpn_host.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.enable_xpn_host.timeout,
@@ -527,12 +533,13 @@ module Google
527
533
  # Customize the options with defaults
528
534
  call_metadata = @config.rpcs.enable_xpn_resource.metadata.to_h
529
535
 
530
- # Set x-goog-api-client and x-goog-user-project headers
536
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
531
537
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
532
538
  lib_name: @config.lib_name, lib_version: @config.lib_version,
533
539
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
534
540
  transports_version_send: [:rest]
535
541
 
542
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
536
543
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
537
544
 
538
545
  options.apply_defaults timeout: @config.rpcs.enable_xpn_resource.timeout,
@@ -613,12 +620,13 @@ module Google
613
620
  # Customize the options with defaults
614
621
  call_metadata = @config.rpcs.get.metadata.to_h
615
622
 
616
- # Set x-goog-api-client and x-goog-user-project headers
623
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
617
624
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
618
625
  lib_name: @config.lib_name, lib_version: @config.lib_version,
619
626
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
620
627
  transports_version_send: [:rest]
621
628
 
629
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
622
630
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
623
631
 
624
632
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -691,12 +699,13 @@ module Google
691
699
  # Customize the options with defaults
692
700
  call_metadata = @config.rpcs.get_xpn_host.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.get_xpn_host.timeout,
@@ -779,12 +788,13 @@ module Google
779
788
  # Customize the options with defaults
780
789
  call_metadata = @config.rpcs.get_xpn_resources.metadata.to_h
781
790
 
782
- # Set x-goog-api-client and x-goog-user-project headers
791
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
783
792
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
784
793
  lib_name: @config.lib_name, lib_version: @config.lib_version,
785
794
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
786
795
  transports_version_send: [:rest]
787
796
 
797
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
788
798
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
789
799
 
790
800
  options.apply_defaults timeout: @config.rpcs.get_xpn_resources.timeout,
@@ -870,12 +880,13 @@ module Google
870
880
  # Customize the options with defaults
871
881
  call_metadata = @config.rpcs.list_xpn_hosts.metadata.to_h
872
882
 
873
- # Set x-goog-api-client and x-goog-user-project headers
883
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
874
884
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
875
885
  lib_name: @config.lib_name, lib_version: @config.lib_version,
876
886
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
877
887
  transports_version_send: [:rest]
878
888
 
889
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
879
890
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
880
891
 
881
892
  options.apply_defaults timeout: @config.rpcs.list_xpn_hosts.timeout,
@@ -953,12 +964,13 @@ module Google
953
964
  # Customize the options with defaults
954
965
  call_metadata = @config.rpcs.move_disk.metadata.to_h
955
966
 
956
- # Set x-goog-api-client and x-goog-user-project headers
967
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
957
968
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
958
969
  lib_name: @config.lib_name, lib_version: @config.lib_version,
959
970
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
960
971
  transports_version_send: [:rest]
961
972
 
973
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
962
974
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
963
975
 
964
976
  options.apply_defaults timeout: @config.rpcs.move_disk.timeout,
@@ -1043,12 +1055,13 @@ module Google
1043
1055
  # Customize the options with defaults
1044
1056
  call_metadata = @config.rpcs.move_instance.metadata.to_h
1045
1057
 
1046
- # Set x-goog-api-client and x-goog-user-project headers
1058
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1047
1059
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1048
1060
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1049
1061
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1050
1062
  transports_version_send: [:rest]
1051
1063
 
1064
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1052
1065
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1053
1066
 
1054
1067
  options.apply_defaults timeout: @config.rpcs.move_instance.timeout,
@@ -1133,12 +1146,13 @@ module Google
1133
1146
  # Customize the options with defaults
1134
1147
  call_metadata = @config.rpcs.set_cloud_armor_tier.metadata.to_h
1135
1148
 
1136
- # Set x-goog-api-client and x-goog-user-project headers
1149
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1137
1150
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1138
1151
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1139
1152
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1140
1153
  transports_version_send: [:rest]
1141
1154
 
1155
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1142
1156
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1143
1157
 
1144
1158
  options.apply_defaults timeout: @config.rpcs.set_cloud_armor_tier.timeout,
@@ -1223,12 +1237,13 @@ module Google
1223
1237
  # Customize the options with defaults
1224
1238
  call_metadata = @config.rpcs.set_common_instance_metadata.metadata.to_h
1225
1239
 
1226
- # Set x-goog-api-client and x-goog-user-project headers
1240
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1227
1241
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1228
1242
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1229
1243
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1230
1244
  transports_version_send: [:rest]
1231
1245
 
1246
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1232
1247
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1233
1248
 
1234
1249
  options.apply_defaults timeout: @config.rpcs.set_common_instance_metadata.timeout,
@@ -1313,12 +1328,13 @@ module Google
1313
1328
  # Customize the options with defaults
1314
1329
  call_metadata = @config.rpcs.set_default_network_tier.metadata.to_h
1315
1330
 
1316
- # Set x-goog-api-client and x-goog-user-project headers
1331
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1317
1332
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1318
1333
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1319
1334
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1320
1335
  transports_version_send: [:rest]
1321
1336
 
1337
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1322
1338
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1323
1339
 
1324
1340
  options.apply_defaults timeout: @config.rpcs.set_default_network_tier.timeout,
@@ -1403,12 +1419,13 @@ module Google
1403
1419
  # Customize the options with defaults
1404
1420
  call_metadata = @config.rpcs.set_usage_export_bucket.metadata.to_h
1405
1421
 
1406
- # Set x-goog-api-client and x-goog-user-project headers
1422
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1407
1423
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1408
1424
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1409
1425
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1410
1426
  transports_version_send: [:rest]
1411
1427
 
1428
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1412
1429
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1413
1430
 
1414
1431
  options.apply_defaults timeout: @config.rpcs.set_usage_export_bucket.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The PublicAdvertisedPrefixes 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.announce.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.announce.timeout,
@@ -334,12 +338,13 @@ module Google
334
338
  # Customize the options with defaults
335
339
  call_metadata = @config.rpcs.delete.metadata.to_h
336
340
 
337
- # Set x-goog-api-client and x-goog-user-project headers
341
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
338
342
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
339
343
  lib_name: @config.lib_name, lib_version: @config.lib_version,
340
344
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
341
345
  transports_version_send: [:rest]
342
346
 
347
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
343
348
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
344
349
 
345
350
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -422,12 +427,13 @@ module Google
422
427
  # Customize the options with defaults
423
428
  call_metadata = @config.rpcs.get.metadata.to_h
424
429
 
425
- # Set x-goog-api-client and x-goog-user-project headers
430
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
426
431
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
427
432
  lib_name: @config.lib_name, lib_version: @config.lib_version,
428
433
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
429
434
  transports_version_send: [:rest]
430
435
 
436
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
431
437
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
432
438
 
433
439
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -504,12 +510,13 @@ module Google
504
510
  # Customize the options with defaults
505
511
  call_metadata = @config.rpcs.insert.metadata.to_h
506
512
 
507
- # Set x-goog-api-client and x-goog-user-project headers
513
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
508
514
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
509
515
  lib_name: @config.lib_name, lib_version: @config.lib_version,
510
516
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
511
517
  transports_version_send: [:rest]
512
518
 
519
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
513
520
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
514
521
 
515
522
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -600,12 +607,13 @@ module Google
600
607
  # Customize the options with defaults
601
608
  call_metadata = @config.rpcs.list.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.list.timeout,
@@ -685,12 +693,13 @@ module Google
685
693
  # Customize the options with defaults
686
694
  call_metadata = @config.rpcs.patch.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.patch.timeout,
@@ -775,12 +784,13 @@ module Google
775
784
  # Customize the options with defaults
776
785
  call_metadata = @config.rpcs.withdraw.metadata.to_h
777
786
 
778
- # Set x-goog-api-client and x-goog-user-project headers
787
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
779
788
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
780
789
  lib_name: @config.lib_name, lib_version: @config.lib_version,
781
790
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
782
791
  transports_version_send: [:rest]
783
792
 
793
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
784
794
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
785
795
 
786
796
  options.apply_defaults timeout: @config.rpcs.withdraw.timeout,
@@ -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,