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 RegionSslCertificates API.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
38
41
 
@@ -240,12 +243,13 @@ module Google
240
243
  # Customize the options with defaults
241
244
  call_metadata = @config.rpcs.delete.metadata.to_h
242
245
 
243
- # Set x-goog-api-client and x-goog-user-project headers
246
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
244
247
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
245
248
  lib_name: @config.lib_name, lib_version: @config.lib_version,
246
249
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
247
250
  transports_version_send: [:rest]
248
251
 
252
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
249
253
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
250
254
 
251
255
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -331,12 +335,13 @@ module Google
331
335
  # Customize the options with defaults
332
336
  call_metadata = @config.rpcs.get.metadata.to_h
333
337
 
334
- # Set x-goog-api-client and x-goog-user-project headers
338
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
335
339
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
336
340
  lib_name: @config.lib_name, lib_version: @config.lib_version,
337
341
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
338
342
  transports_version_send: [:rest]
339
343
 
344
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
340
345
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
341
346
 
342
347
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -415,12 +420,13 @@ module Google
415
420
  # Customize the options with defaults
416
421
  call_metadata = @config.rpcs.insert.metadata.to_h
417
422
 
418
- # Set x-goog-api-client and x-goog-user-project headers
423
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
419
424
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
420
425
  lib_name: @config.lib_name, lib_version: @config.lib_version,
421
426
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
422
427
  transports_version_send: [:rest]
423
428
 
429
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
424
430
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
425
431
 
426
432
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -514,12 +520,13 @@ module Google
514
520
  # Customize the options with defaults
515
521
  call_metadata = @config.rpcs.list.metadata.to_h
516
522
 
517
- # Set x-goog-api-client and x-goog-user-project headers
523
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
518
524
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
519
525
  lib_name: @config.lib_name, lib_version: @config.lib_version,
520
526
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
521
527
  transports_version_send: [:rest]
522
528
 
529
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
523
530
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
524
531
 
525
532
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The RegionSslPolicies 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
 
@@ -247,12 +250,13 @@ module Google
247
250
  # Customize the options with defaults
248
251
  call_metadata = @config.rpcs.delete.metadata.to_h
249
252
 
250
- # Set x-goog-api-client and x-goog-user-project headers
253
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
251
254
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
252
255
  lib_name: @config.lib_name, lib_version: @config.lib_version,
253
256
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
254
257
  transports_version_send: [:rest]
255
258
 
259
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
256
260
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
257
261
 
258
262
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -338,12 +342,13 @@ module Google
338
342
  # Customize the options with defaults
339
343
  call_metadata = @config.rpcs.get.metadata.to_h
340
344
 
341
- # Set x-goog-api-client and x-goog-user-project headers
345
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
342
346
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
343
347
  lib_name: @config.lib_name, lib_version: @config.lib_version,
344
348
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
345
349
  transports_version_send: [:rest]
346
350
 
351
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
347
352
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
348
353
 
349
354
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -422,12 +427,13 @@ module Google
422
427
  # Customize the options with defaults
423
428
  call_metadata = @config.rpcs.insert.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.insert.timeout,
@@ -521,12 +527,13 @@ module Google
521
527
  # Customize the options with defaults
522
528
  call_metadata = @config.rpcs.list.metadata.to_h
523
529
 
524
- # Set x-goog-api-client and x-goog-user-project headers
530
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
525
531
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
526
532
  lib_name: @config.lib_name, lib_version: @config.lib_version,
527
533
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
528
534
  transports_version_send: [:rest]
529
535
 
536
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
530
537
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
531
538
 
532
539
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -612,12 +619,13 @@ module Google
612
619
  # Customize the options with defaults
613
620
  call_metadata = @config.rpcs.list_available_features.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.list_available_features.timeout,
@@ -698,12 +706,13 @@ module Google
698
706
  # Customize the options with defaults
699
707
  call_metadata = @config.rpcs.patch.metadata.to_h
700
708
 
701
- # Set x-goog-api-client and x-goog-user-project headers
709
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
702
710
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
703
711
  lib_name: @config.lib_name, lib_version: @config.lib_version,
704
712
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
705
713
  transports_version_send: [:rest]
706
714
 
715
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
707
716
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
708
717
 
709
718
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The RegionTargetHttpProxies 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
 
@@ -242,12 +245,13 @@ module Google
242
245
  # Customize the options with defaults
243
246
  call_metadata = @config.rpcs.delete.metadata.to_h
244
247
 
245
- # Set x-goog-api-client and x-goog-user-project headers
248
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
246
249
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
247
250
  lib_name: @config.lib_name, lib_version: @config.lib_version,
248
251
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
249
252
  transports_version_send: [:rest]
250
253
 
254
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
251
255
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
252
256
 
253
257
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -333,12 +337,13 @@ module Google
333
337
  # Customize the options with defaults
334
338
  call_metadata = @config.rpcs.get.metadata.to_h
335
339
 
336
- # Set x-goog-api-client and x-goog-user-project headers
340
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
337
341
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
338
342
  lib_name: @config.lib_name, lib_version: @config.lib_version,
339
343
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
340
344
  transports_version_send: [:rest]
341
345
 
346
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
342
347
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
343
348
 
344
349
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -417,12 +422,13 @@ module Google
417
422
  # Customize the options with defaults
418
423
  call_metadata = @config.rpcs.insert.metadata.to_h
419
424
 
420
- # Set x-goog-api-client and x-goog-user-project headers
425
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
421
426
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
422
427
  lib_name: @config.lib_name, lib_version: @config.lib_version,
423
428
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
424
429
  transports_version_send: [:rest]
425
430
 
431
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
426
432
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
427
433
 
428
434
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -516,12 +522,13 @@ module Google
516
522
  # Customize the options with defaults
517
523
  call_metadata = @config.rpcs.list.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.list.timeout,
@@ -603,12 +610,13 @@ module Google
603
610
  # Customize the options with defaults
604
611
  call_metadata = @config.rpcs.set_url_map.metadata.to_h
605
612
 
606
- # Set x-goog-api-client and x-goog-user-project headers
613
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
607
614
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
608
615
  lib_name: @config.lib_name, lib_version: @config.lib_version,
609
616
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
610
617
  transports_version_send: [:rest]
611
618
 
619
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
612
620
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
613
621
 
614
622
  options.apply_defaults timeout: @config.rpcs.set_url_map.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The RegionTargetHttpsProxies 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.delete.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.delete.timeout,
@@ -337,12 +341,13 @@ module Google
337
341
  # Customize the options with defaults
338
342
  call_metadata = @config.rpcs.get.metadata.to_h
339
343
 
340
- # Set x-goog-api-client and x-goog-user-project headers
344
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
341
345
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
342
346
  lib_name: @config.lib_name, lib_version: @config.lib_version,
343
347
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
344
348
  transports_version_send: [:rest]
345
349
 
350
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
346
351
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
347
352
 
348
353
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -421,12 +426,13 @@ module Google
421
426
  # Customize the options with defaults
422
427
  call_metadata = @config.rpcs.insert.metadata.to_h
423
428
 
424
- # Set x-goog-api-client and x-goog-user-project headers
429
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
425
430
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
426
431
  lib_name: @config.lib_name, lib_version: @config.lib_version,
427
432
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
428
433
  transports_version_send: [:rest]
429
434
 
435
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
430
436
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
431
437
 
432
438
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -520,12 +526,13 @@ module Google
520
526
  # Customize the options with defaults
521
527
  call_metadata = @config.rpcs.list.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.list.timeout,
@@ -607,12 +614,13 @@ module Google
607
614
  # Customize the options with defaults
608
615
  call_metadata = @config.rpcs.patch.metadata.to_h
609
616
 
610
- # Set x-goog-api-client and x-goog-user-project headers
617
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
611
618
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
612
619
  lib_name: @config.lib_name, lib_version: @config.lib_version,
613
620
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
614
621
  transports_version_send: [:rest]
615
622
 
623
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
616
624
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
617
625
 
618
626
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -702,12 +710,13 @@ module Google
702
710
  # Customize the options with defaults
703
711
  call_metadata = @config.rpcs.set_ssl_certificates.metadata.to_h
704
712
 
705
- # Set x-goog-api-client and x-goog-user-project headers
713
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
706
714
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
707
715
  lib_name: @config.lib_name, lib_version: @config.lib_version,
708
716
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
709
717
  transports_version_send: [:rest]
710
718
 
719
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
711
720
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
712
721
 
713
722
  options.apply_defaults timeout: @config.rpcs.set_ssl_certificates.timeout,
@@ -797,12 +806,13 @@ module Google
797
806
  # Customize the options with defaults
798
807
  call_metadata = @config.rpcs.set_url_map.metadata.to_h
799
808
 
800
- # Set x-goog-api-client and x-goog-user-project headers
809
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
801
810
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
802
811
  lib_name: @config.lib_name, lib_version: @config.lib_version,
803
812
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
804
813
  transports_version_send: [:rest]
805
814
 
815
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
806
816
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
807
817
 
808
818
  options.apply_defaults timeout: @config.rpcs.set_url_map.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The RegionTargetTcpProxies API.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
38
41
 
@@ -240,12 +243,13 @@ module Google
240
243
  # Customize the options with defaults
241
244
  call_metadata = @config.rpcs.delete.metadata.to_h
242
245
 
243
- # Set x-goog-api-client and x-goog-user-project headers
246
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
244
247
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
245
248
  lib_name: @config.lib_name, lib_version: @config.lib_version,
246
249
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
247
250
  transports_version_send: [:rest]
248
251
 
252
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
249
253
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
250
254
 
251
255
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -331,12 +335,13 @@ module Google
331
335
  # Customize the options with defaults
332
336
  call_metadata = @config.rpcs.get.metadata.to_h
333
337
 
334
- # Set x-goog-api-client and x-goog-user-project headers
338
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
335
339
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
336
340
  lib_name: @config.lib_name, lib_version: @config.lib_version,
337
341
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
338
342
  transports_version_send: [:rest]
339
343
 
344
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
340
345
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
341
346
 
342
347
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -415,12 +420,13 @@ module Google
415
420
  # Customize the options with defaults
416
421
  call_metadata = @config.rpcs.insert.metadata.to_h
417
422
 
418
- # Set x-goog-api-client and x-goog-user-project headers
423
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
419
424
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
420
425
  lib_name: @config.lib_name, lib_version: @config.lib_version,
421
426
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
422
427
  transports_version_send: [:rest]
423
428
 
429
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
424
430
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
425
431
 
426
432
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -514,12 +520,13 @@ module Google
514
520
  # Customize the options with defaults
515
521
  call_metadata = @config.rpcs.list.metadata.to_h
516
522
 
517
- # Set x-goog-api-client and x-goog-user-project headers
523
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
518
524
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
519
525
  lib_name: @config.lib_name, lib_version: @config.lib_version,
520
526
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
521
527
  transports_version_send: [:rest]
522
528
 
529
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
523
530
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
524
531
 
525
532
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The RegionUrlMaps 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.delete.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.delete.timeout,
@@ -337,12 +341,13 @@ module Google
337
341
  # Customize the options with defaults
338
342
  call_metadata = @config.rpcs.get.metadata.to_h
339
343
 
340
- # Set x-goog-api-client and x-goog-user-project headers
344
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
341
345
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
342
346
  lib_name: @config.lib_name, lib_version: @config.lib_version,
343
347
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
344
348
  transports_version_send: [:rest]
345
349
 
350
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
346
351
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
347
352
 
348
353
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -421,12 +426,13 @@ module Google
421
426
  # Customize the options with defaults
422
427
  call_metadata = @config.rpcs.insert.metadata.to_h
423
428
 
424
- # Set x-goog-api-client and x-goog-user-project headers
429
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
425
430
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
426
431
  lib_name: @config.lib_name, lib_version: @config.lib_version,
427
432
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
428
433
  transports_version_send: [:rest]
429
434
 
435
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
430
436
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
431
437
 
432
438
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -520,12 +526,13 @@ module Google
520
526
  # Customize the options with defaults
521
527
  call_metadata = @config.rpcs.list.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.list.timeout,
@@ -607,12 +614,13 @@ module Google
607
614
  # Customize the options with defaults
608
615
  call_metadata = @config.rpcs.patch.metadata.to_h
609
616
 
610
- # Set x-goog-api-client and x-goog-user-project headers
617
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
611
618
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
612
619
  lib_name: @config.lib_name, lib_version: @config.lib_version,
613
620
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
614
621
  transports_version_send: [:rest]
615
622
 
623
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
616
624
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
617
625
 
618
626
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -702,12 +710,13 @@ module Google
702
710
  # Customize the options with defaults
703
711
  call_metadata = @config.rpcs.update.metadata.to_h
704
712
 
705
- # Set x-goog-api-client and x-goog-user-project headers
713
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
706
714
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
707
715
  lib_name: @config.lib_name, lib_version: @config.lib_version,
708
716
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
709
717
  transports_version_send: [:rest]
710
718
 
719
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
711
720
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
712
721
 
713
722
  options.apply_defaults timeout: @config.rpcs.update.timeout,
@@ -795,12 +804,13 @@ module Google
795
804
  # Customize the options with defaults
796
805
  call_metadata = @config.rpcs.validate.metadata.to_h
797
806
 
798
- # Set x-goog-api-client and x-goog-user-project headers
807
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
799
808
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
800
809
  lib_name: @config.lib_name, lib_version: @config.lib_version,
801
810
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
802
811
  transports_version_send: [:rest]
803
812
 
813
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
804
814
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
805
815
 
806
816
  options.apply_defaults timeout: @config.rpcs.validate.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # The RegionZones 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
 
@@ -222,12 +225,13 @@ module Google
222
225
  # Customize the options with defaults
223
226
  call_metadata = @config.rpcs.list.metadata.to_h
224
227
 
225
- # Set x-goog-api-client and x-goog-user-project headers
228
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
226
229
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
227
230
  lib_name: @config.lib_name, lib_version: @config.lib_version,
228
231
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
229
232
  transports_version_send: [:rest]
230
233
 
234
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
231
235
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
232
236
 
233
237
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # The Regions 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
 
@@ -217,12 +220,13 @@ module Google
217
220
  # Customize the options with defaults
218
221
  call_metadata = @config.rpcs.get.metadata.to_h
219
222
 
220
- # Set x-goog-api-client and x-goog-user-project headers
223
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
221
224
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
222
225
  lib_name: @config.lib_name, lib_version: @config.lib_version,
223
226
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
224
227
  transports_version_send: [:rest]
225
228
 
229
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
226
230
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
227
231
 
228
232
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -305,12 +309,13 @@ module Google
305
309
  # Customize the options with defaults
306
310
  call_metadata = @config.rpcs.list.metadata.to_h
307
311
 
308
- # Set x-goog-api-client and x-goog-user-project headers
312
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
309
313
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
310
314
  lib_name: @config.lib_name, lib_version: @config.lib_version,
311
315
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
312
316
  transports_version_send: [:rest]
313
317
 
318
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
314
319
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
315
320
 
316
321
  options.apply_defaults timeout: @config.rpcs.list.timeout,