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 MachineImages 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,
@@ -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,
@@ -417,12 +422,13 @@ module Google
417
422
  # Customize the options with defaults
418
423
  call_metadata = @config.rpcs.get_iam_policy.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.get_iam_policy.timeout,
@@ -501,12 +507,13 @@ module Google
501
507
  # Customize the options with defaults
502
508
  call_metadata = @config.rpcs.insert.metadata.to_h
503
509
 
504
- # Set x-goog-api-client and x-goog-user-project headers
510
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
505
511
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
506
512
  lib_name: @config.lib_name, lib_version: @config.lib_version,
507
513
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
508
514
  transports_version_send: [:rest]
509
515
 
516
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
510
517
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
511
518
 
512
519
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -597,12 +604,13 @@ module Google
597
604
  # Customize the options with defaults
598
605
  call_metadata = @config.rpcs.list.metadata.to_h
599
606
 
600
- # Set x-goog-api-client and x-goog-user-project headers
607
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
601
608
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
602
609
  lib_name: @config.lib_name, lib_version: @config.lib_version,
603
610
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
604
611
  transports_version_send: [:rest]
605
612
 
613
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
606
614
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
607
615
 
608
616
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -680,12 +688,13 @@ module Google
680
688
  # Customize the options with defaults
681
689
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
682
690
 
683
- # Set x-goog-api-client and x-goog-user-project headers
691
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
684
692
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
685
693
  lib_name: @config.lib_name, lib_version: @config.lib_version,
686
694
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
687
695
  transports_version_send: [:rest]
688
696
 
697
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
689
698
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
690
699
 
691
700
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -762,12 +771,13 @@ module Google
762
771
  # Customize the options with defaults
763
772
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
764
773
 
765
- # Set x-goog-api-client and x-goog-user-project headers
774
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
766
775
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
767
776
  lib_name: @config.lib_name, lib_version: @config.lib_version,
768
777
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
769
778
  transports_version_send: [:rest]
770
779
 
780
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
771
781
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
772
782
 
773
783
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # The MachineTypes 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
 
@@ -234,12 +237,13 @@ module Google
234
237
  # Customize the options with defaults
235
238
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
236
239
 
237
- # Set x-goog-api-client and x-goog-user-project headers
240
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
238
241
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
239
242
  lib_name: @config.lib_name, lib_version: @config.lib_version,
240
243
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
241
244
  transports_version_send: [:rest]
242
245
 
246
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
243
247
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
244
248
 
245
249
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -317,12 +321,13 @@ module Google
317
321
  # Customize the options with defaults
318
322
  call_metadata = @config.rpcs.get.metadata.to_h
319
323
 
320
- # Set x-goog-api-client and x-goog-user-project headers
324
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
321
325
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
322
326
  lib_name: @config.lib_name, lib_version: @config.lib_version,
323
327
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
324
328
  transports_version_send: [:rest]
325
329
 
330
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
326
331
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
327
332
 
328
333
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -407,12 +412,13 @@ module Google
407
412
  # Customize the options with defaults
408
413
  call_metadata = @config.rpcs.list.metadata.to_h
409
414
 
410
- # Set x-goog-api-client and x-goog-user-project headers
415
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
411
416
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
412
417
  lib_name: @config.lib_name, lib_version: @config.lib_version,
413
418
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
414
419
  transports_version_send: [:rest]
415
420
 
421
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
416
422
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
417
423
 
418
424
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The NetworkAttachments 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
 
@@ -264,12 +267,13 @@ module Google
264
267
  # Customize the options with defaults
265
268
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
266
269
 
267
- # Set x-goog-api-client and x-goog-user-project headers
270
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
268
271
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
269
272
  lib_name: @config.lib_name, lib_version: @config.lib_version,
270
273
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
271
274
  transports_version_send: [:rest]
272
275
 
276
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
273
277
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
274
278
 
275
279
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -349,12 +353,13 @@ module Google
349
353
  # Customize the options with defaults
350
354
  call_metadata = @config.rpcs.delete.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.delete.timeout,
@@ -440,12 +445,13 @@ module Google
440
445
  # Customize the options with defaults
441
446
  call_metadata = @config.rpcs.get.metadata.to_h
442
447
 
443
- # Set x-goog-api-client and x-goog-user-project headers
448
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
444
449
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
445
450
  lib_name: @config.lib_name, lib_version: @config.lib_version,
446
451
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
447
452
  transports_version_send: [:rest]
448
453
 
454
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
449
455
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
450
456
 
451
457
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -524,12 +530,13 @@ module Google
524
530
  # Customize the options with defaults
525
531
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
526
532
 
527
- # Set x-goog-api-client and x-goog-user-project headers
533
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
528
534
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
529
535
  lib_name: @config.lib_name, lib_version: @config.lib_version,
530
536
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
531
537
  transports_version_send: [:rest]
532
538
 
539
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
533
540
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
534
541
 
535
542
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -608,12 +615,13 @@ module Google
608
615
  # Customize the options with defaults
609
616
  call_metadata = @config.rpcs.insert.metadata.to_h
610
617
 
611
- # Set x-goog-api-client and x-goog-user-project headers
618
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
612
619
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
613
620
  lib_name: @config.lib_name, lib_version: @config.lib_version,
614
621
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
615
622
  transports_version_send: [:rest]
616
623
 
624
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
617
625
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
618
626
 
619
627
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -707,12 +715,13 @@ module Google
707
715
  # Customize the options with defaults
708
716
  call_metadata = @config.rpcs.list.metadata.to_h
709
717
 
710
- # Set x-goog-api-client and x-goog-user-project headers
718
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
711
719
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
712
720
  lib_name: @config.lib_name, lib_version: @config.lib_version,
713
721
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
714
722
  transports_version_send: [:rest]
715
723
 
724
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
716
725
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
717
726
 
718
727
  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.patch.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.patch.timeout,
@@ -887,12 +897,13 @@ module Google
887
897
  # Customize the options with defaults
888
898
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
889
899
 
890
- # Set x-goog-api-client and x-goog-user-project headers
900
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
891
901
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
892
902
  lib_name: @config.lib_name, lib_version: @config.lib_version,
893
903
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
894
904
  transports_version_send: [:rest]
895
905
 
906
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
896
907
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
897
908
 
898
909
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -971,12 +982,13 @@ module Google
971
982
  # Customize the options with defaults
972
983
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
973
984
 
974
- # Set x-goog-api-client and x-goog-user-project headers
985
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
975
986
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
976
987
  lib_name: @config.lib_name, lib_version: @config.lib_version,
977
988
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
978
989
  transports_version_send: [:rest]
979
990
 
991
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
980
992
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
981
993
 
982
994
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The NetworkEdgeSecurityServices 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
 
@@ -250,12 +253,13 @@ module Google
250
253
  # Customize the options with defaults
251
254
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
252
255
 
253
- # Set x-goog-api-client and x-goog-user-project headers
256
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
254
257
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
255
258
  lib_name: @config.lib_name, lib_version: @config.lib_version,
256
259
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
257
260
  transports_version_send: [:rest]
258
261
 
262
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
259
263
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
260
264
 
261
265
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -335,12 +339,13 @@ module Google
335
339
  # Customize the options with defaults
336
340
  call_metadata = @config.rpcs.delete.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.delete.timeout,
@@ -426,12 +431,13 @@ module Google
426
431
  # Customize the options with defaults
427
432
  call_metadata = @config.rpcs.get.metadata.to_h
428
433
 
429
- # Set x-goog-api-client and x-goog-user-project headers
434
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
430
435
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
431
436
  lib_name: @config.lib_name, lib_version: @config.lib_version,
432
437
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
433
438
  transports_version_send: [:rest]
434
439
 
440
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
435
441
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
436
442
 
437
443
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -512,12 +518,13 @@ module Google
512
518
  # Customize the options with defaults
513
519
  call_metadata = @config.rpcs.insert.metadata.to_h
514
520
 
515
- # Set x-goog-api-client and x-goog-user-project headers
521
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
516
522
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
517
523
  lib_name: @config.lib_name, lib_version: @config.lib_version,
518
524
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
519
525
  transports_version_send: [:rest]
520
526
 
527
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
521
528
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
522
529
 
523
530
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -610,12 +617,13 @@ module Google
610
617
  # Customize the options with defaults
611
618
  call_metadata = @config.rpcs.patch.metadata.to_h
612
619
 
613
- # Set x-goog-api-client and x-goog-user-project headers
620
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
614
621
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
615
622
  lib_name: @config.lib_name, lib_version: @config.lib_version,
616
623
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
617
624
  transports_version_send: [:rest]
618
625
 
626
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
619
627
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
620
628
 
621
629
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The NetworkEndpointGroups 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
 
@@ -261,12 +264,13 @@ module Google
261
264
  # Customize the options with defaults
262
265
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
263
266
 
264
- # Set x-goog-api-client and x-goog-user-project headers
267
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
265
268
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
266
269
  lib_name: @config.lib_name, lib_version: @config.lib_version,
267
270
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
268
271
  transports_version_send: [:rest]
269
272
 
273
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
270
274
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
271
275
 
272
276
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -348,12 +352,13 @@ module Google
348
352
  # Customize the options with defaults
349
353
  call_metadata = @config.rpcs.attach_network_endpoints.metadata.to_h
350
354
 
351
- # Set x-goog-api-client and x-goog-user-project headers
355
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
352
356
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
353
357
  lib_name: @config.lib_name, lib_version: @config.lib_version,
354
358
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
355
359
  transports_version_send: [:rest]
356
360
 
361
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
357
362
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
358
363
 
359
364
  options.apply_defaults timeout: @config.rpcs.attach_network_endpoints.timeout,
@@ -441,12 +446,13 @@ module Google
441
446
  # Customize the options with defaults
442
447
  call_metadata = @config.rpcs.delete.metadata.to_h
443
448
 
444
- # Set x-goog-api-client and x-goog-user-project headers
449
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
445
450
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
446
451
  lib_name: @config.lib_name, lib_version: @config.lib_version,
447
452
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
448
453
  transports_version_send: [:rest]
449
454
 
455
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
450
456
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
451
457
 
452
458
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -536,12 +542,13 @@ module Google
536
542
  # Customize the options with defaults
537
543
  call_metadata = @config.rpcs.detach_network_endpoints.metadata.to_h
538
544
 
539
- # Set x-goog-api-client and x-goog-user-project headers
545
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
540
546
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
541
547
  lib_name: @config.lib_name, lib_version: @config.lib_version,
542
548
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
543
549
  transports_version_send: [:rest]
544
550
 
551
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
545
552
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
546
553
 
547
554
  options.apply_defaults timeout: @config.rpcs.detach_network_endpoints.timeout,
@@ -627,12 +634,13 @@ module Google
627
634
  # Customize the options with defaults
628
635
  call_metadata = @config.rpcs.get.metadata.to_h
629
636
 
630
- # Set x-goog-api-client and x-goog-user-project headers
637
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
631
638
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
632
639
  lib_name: @config.lib_name, lib_version: @config.lib_version,
633
640
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
634
641
  transports_version_send: [:rest]
635
642
 
643
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
636
644
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
637
645
 
638
646
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -711,12 +719,13 @@ module Google
711
719
  # Customize the options with defaults
712
720
  call_metadata = @config.rpcs.insert.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.insert.timeout,
@@ -810,12 +819,13 @@ module Google
810
819
  # Customize the options with defaults
811
820
  call_metadata = @config.rpcs.list.metadata.to_h
812
821
 
813
- # Set x-goog-api-client and x-goog-user-project headers
822
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
814
823
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
815
824
  lib_name: @config.lib_name, lib_version: @config.lib_version,
816
825
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
817
826
  transports_version_send: [:rest]
818
827
 
828
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
819
829
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
820
830
 
821
831
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -905,12 +915,13 @@ module Google
905
915
  # Customize the options with defaults
906
916
  call_metadata = @config.rpcs.list_network_endpoints.metadata.to_h
907
917
 
908
- # Set x-goog-api-client and x-goog-user-project headers
918
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
909
919
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
910
920
  lib_name: @config.lib_name, lib_version: @config.lib_version,
911
921
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
912
922
  transports_version_send: [:rest]
913
923
 
924
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
914
925
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
915
926
 
916
927
  options.apply_defaults timeout: @config.rpcs.list_network_endpoints.timeout,
@@ -990,12 +1001,13 @@ module Google
990
1001
  # Customize the options with defaults
991
1002
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
992
1003
 
993
- # Set x-goog-api-client and x-goog-user-project headers
1004
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
994
1005
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
995
1006
  lib_name: @config.lib_name, lib_version: @config.lib_version,
996
1007
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
997
1008
  transports_version_send: [:rest]
998
1009
 
1010
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
999
1011
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1000
1012
 
1001
1013
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,