google-cloud-compute-v1 2.11.0 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +9 -3
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +17 -7
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +17 -7
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +27 -12
  6. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +35 -16
  7. data/lib/google/cloud/compute/v1/compute_pb.rb +1 -1
  8. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +9 -3
  9. data/lib/google/cloud/compute/v1/disks/rest/client.rb +39 -18
  10. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +15 -6
  11. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +39 -18
  12. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +15 -6
  13. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +19 -8
  14. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +15 -6
  15. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +17 -7
  16. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +17 -7
  17. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +13 -5
  18. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +9 -3
  19. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +13 -5
  20. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +17 -7
  21. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +5 -1
  22. data/lib/google/cloud/compute/v1/images/rest/client.rb +25 -11
  23. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +13 -5
  24. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +43 -20
  25. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +21 -9
  26. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +7 -2
  27. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +19 -8
  28. data/lib/google/cloud/compute/v1/instances/rest/client.rb +99 -48
  29. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +21 -9
  30. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +17 -7
  31. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +7 -2
  32. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +7 -2
  33. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +19 -8
  34. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +7 -2
  35. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +17 -7
  36. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +17 -7
  37. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +9 -3
  38. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +21 -9
  39. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +13 -5
  40. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +21 -9
  41. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +35 -16
  42. data/lib/google/cloud/compute/v1/networks/rest/client.rb +25 -11
  43. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +33 -15
  44. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +19 -8
  45. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +9 -3
  46. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +17 -7
  47. data/lib/google/cloud/compute/v1/projects/rest/client.rb +31 -14
  48. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +17 -7
  49. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +19 -8
  50. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +15 -6
  51. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +27 -12
  52. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +13 -5
  53. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +7 -2
  54. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +37 -17
  55. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +13 -5
  56. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +15 -6
  57. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +41 -19
  58. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +11 -4
  59. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +11 -4
  60. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -1
  61. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +19 -8
  62. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +17 -7
  63. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +37 -17
  64. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +11 -4
  65. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +11 -4
  66. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +21 -9
  67. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +11 -4
  68. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +15 -6
  69. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +13 -5
  70. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +17 -7
  71. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +11 -4
  72. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +17 -7
  73. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +5 -1
  74. data/lib/google/cloud/compute/v1/regions/rest/client.rb +7 -2
  75. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +23 -10
  76. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +21 -9
  77. data/lib/google/cloud/compute/v1/routers/rest/client.rb +25 -11
  78. data/lib/google/cloud/compute/v1/routes/rest/client.rb +11 -4
  79. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +27 -12
  80. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +21 -9
  81. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +7 -2
  82. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +19 -8
  83. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +13 -5
  84. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +17 -7
  85. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +9 -3
  86. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +23 -10
  87. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +27 -12
  88. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +13 -5
  89. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +17 -7
  90. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +25 -11
  91. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +15 -6
  92. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +27 -12
  93. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +21 -9
  94. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +17 -7
  95. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +15 -6
  96. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +21 -9
  97. data/lib/google/cloud/compute/v1/version.rb +1 -1
  98. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +19 -8
  99. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +15 -6
  100. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +11 -4
  101. data/lib/google/cloud/compute/v1/zones/rest/client.rb +7 -2
  102. data/proto_docs/google/cloud/compute/v1/compute.rb +11 -7
  103. metadata +2 -2
@@ -33,6 +33,9 @@ module Google
33
33
  # The SslPolicies 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
 
@@ -260,12 +263,13 @@ module Google
260
263
  # Customize the options with defaults
261
264
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
262
265
 
263
- # Set x-goog-api-client and x-goog-user-project headers
266
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
264
267
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
265
268
  lib_name: @config.lib_name, lib_version: @config.lib_version,
266
269
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
267
270
  transports_version_send: [:rest]
268
271
 
272
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
269
273
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
270
274
 
271
275
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -343,12 +347,13 @@ module Google
343
347
  # Customize the options with defaults
344
348
  call_metadata = @config.rpcs.delete.metadata.to_h
345
349
 
346
- # Set x-goog-api-client and x-goog-user-project headers
350
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
347
351
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
348
352
  lib_name: @config.lib_name, lib_version: @config.lib_version,
349
353
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
350
354
  transports_version_send: [:rest]
351
355
 
356
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
352
357
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
353
358
 
354
359
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -431,12 +436,13 @@ module Google
431
436
  # Customize the options with defaults
432
437
  call_metadata = @config.rpcs.get.metadata.to_h
433
438
 
434
- # Set x-goog-api-client and x-goog-user-project headers
439
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
435
440
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
436
441
  lib_name: @config.lib_name, lib_version: @config.lib_version,
437
442
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
438
443
  transports_version_send: [:rest]
439
444
 
445
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
440
446
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
441
447
 
442
448
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -513,12 +519,13 @@ module Google
513
519
  # Customize the options with defaults
514
520
  call_metadata = @config.rpcs.insert.metadata.to_h
515
521
 
516
- # Set x-goog-api-client and x-goog-user-project headers
522
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
517
523
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
518
524
  lib_name: @config.lib_name, lib_version: @config.lib_version,
519
525
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
520
526
  transports_version_send: [:rest]
521
527
 
528
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
522
529
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
523
530
 
524
531
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -609,12 +616,13 @@ module Google
609
616
  # Customize the options with defaults
610
617
  call_metadata = @config.rpcs.list.metadata.to_h
611
618
 
612
- # Set x-goog-api-client and x-goog-user-project headers
619
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
613
620
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
614
621
  lib_name: @config.lib_name, lib_version: @config.lib_version,
615
622
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
616
623
  transports_version_send: [:rest]
617
624
 
625
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
618
626
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
619
627
 
620
628
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -698,12 +706,13 @@ module Google
698
706
  # Customize the options with defaults
699
707
  call_metadata = @config.rpcs.list_available_features.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.list_available_features.timeout,
@@ -782,12 +791,13 @@ module Google
782
791
  # Customize the options with defaults
783
792
  call_metadata = @config.rpcs.patch.metadata.to_h
784
793
 
785
- # Set x-goog-api-client and x-goog-user-project headers
794
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
786
795
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
787
796
  lib_name: @config.lib_name, lib_version: @config.lib_version,
788
797
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
789
798
  transports_version_send: [:rest]
790
799
 
800
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
791
801
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
792
802
 
793
803
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # The StoragePoolTypes 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 StoragePools 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
 
@@ -269,12 +272,13 @@ module Google
269
272
  # Customize the options with defaults
270
273
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
271
274
 
272
- # Set x-goog-api-client and x-goog-user-project headers
275
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
276
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
277
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
278
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
276
279
  transports_version_send: [:rest]
277
280
 
281
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
282
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
283
 
280
284
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -354,12 +358,13 @@ module Google
354
358
  # Customize the options with defaults
355
359
  call_metadata = @config.rpcs.delete.metadata.to_h
356
360
 
357
- # Set x-goog-api-client and x-goog-user-project headers
361
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
358
362
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
359
363
  lib_name: @config.lib_name, lib_version: @config.lib_version,
360
364
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
361
365
  transports_version_send: [:rest]
362
366
 
367
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
363
368
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
364
369
 
365
370
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -445,12 +450,13 @@ module Google
445
450
  # Customize the options with defaults
446
451
  call_metadata = @config.rpcs.get.metadata.to_h
447
452
 
448
- # Set x-goog-api-client and x-goog-user-project headers
453
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
449
454
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
450
455
  lib_name: @config.lib_name, lib_version: @config.lib_version,
451
456
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
452
457
  transports_version_send: [:rest]
453
458
 
459
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
454
460
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
455
461
 
456
462
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -529,12 +535,13 @@ module Google
529
535
  # Customize the options with defaults
530
536
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
531
537
 
532
- # Set x-goog-api-client and x-goog-user-project headers
538
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
533
539
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
534
540
  lib_name: @config.lib_name, lib_version: @config.lib_version,
535
541
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
536
542
  transports_version_send: [:rest]
537
543
 
544
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
538
545
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
539
546
 
540
547
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -613,12 +620,13 @@ module Google
613
620
  # Customize the options with defaults
614
621
  call_metadata = @config.rpcs.insert.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.insert.timeout,
@@ -712,12 +720,13 @@ module Google
712
720
  # Customize the options with defaults
713
721
  call_metadata = @config.rpcs.list.metadata.to_h
714
722
 
715
- # Set x-goog-api-client and x-goog-user-project headers
723
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
716
724
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
717
725
  lib_name: @config.lib_name, lib_version: @config.lib_version,
718
726
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
719
727
  transports_version_send: [:rest]
720
728
 
729
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
721
730
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
722
731
 
723
732
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -804,12 +813,13 @@ module Google
804
813
  # Customize the options with defaults
805
814
  call_metadata = @config.rpcs.list_disks.metadata.to_h
806
815
 
807
- # Set x-goog-api-client and x-goog-user-project headers
816
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
808
817
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
809
818
  lib_name: @config.lib_name, lib_version: @config.lib_version,
810
819
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
811
820
  transports_version_send: [:rest]
812
821
 
822
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
813
823
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
814
824
 
815
825
  options.apply_defaults timeout: @config.rpcs.list_disks.timeout,
@@ -888,12 +898,13 @@ module Google
888
898
  # Customize the options with defaults
889
899
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
890
900
 
891
- # Set x-goog-api-client and x-goog-user-project headers
901
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
892
902
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
893
903
  lib_name: @config.lib_name, lib_version: @config.lib_version,
894
904
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
895
905
  transports_version_send: [:rest]
896
906
 
907
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
897
908
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
898
909
 
899
910
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -972,12 +983,13 @@ module Google
972
983
  # Customize the options with defaults
973
984
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
974
985
 
975
- # Set x-goog-api-client and x-goog-user-project headers
986
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
976
987
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
977
988
  lib_name: @config.lib_name, lib_version: @config.lib_version,
978
989
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
979
990
  transports_version_send: [:rest]
980
991
 
992
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
981
993
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
982
994
 
983
995
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -1060,12 +1072,13 @@ module Google
1060
1072
  # Customize the options with defaults
1061
1073
  call_metadata = @config.rpcs.update.metadata.to_h
1062
1074
 
1063
- # Set x-goog-api-client and x-goog-user-project headers
1075
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1064
1076
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1065
1077
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1066
1078
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1067
1079
  transports_version_send: [:rest]
1068
1080
 
1081
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1069
1082
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1070
1083
 
1071
1084
  options.apply_defaults timeout: @config.rpcs.update.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The Subnetworks 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
 
@@ -273,12 +276,13 @@ module Google
273
276
  # Customize the options with defaults
274
277
  call_metadata = @config.rpcs.aggregated_list.metadata.to_h
275
278
 
276
- # Set x-goog-api-client and x-goog-user-project headers
279
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
277
280
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
278
281
  lib_name: @config.lib_name, lib_version: @config.lib_version,
279
282
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
280
283
  transports_version_send: [:rest]
281
284
 
285
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
282
286
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
283
287
 
284
288
  options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
@@ -358,12 +362,13 @@ module Google
358
362
  # Customize the options with defaults
359
363
  call_metadata = @config.rpcs.delete.metadata.to_h
360
364
 
361
- # Set x-goog-api-client and x-goog-user-project headers
365
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
362
366
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
363
367
  lib_name: @config.lib_name, lib_version: @config.lib_version,
364
368
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
365
369
  transports_version_send: [:rest]
366
370
 
371
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
367
372
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
368
373
 
369
374
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -453,12 +458,13 @@ module Google
453
458
  # Customize the options with defaults
454
459
  call_metadata = @config.rpcs.expand_ip_cidr_range.metadata.to_h
455
460
 
456
- # Set x-goog-api-client and x-goog-user-project headers
461
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
457
462
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
458
463
  lib_name: @config.lib_name, lib_version: @config.lib_version,
459
464
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
460
465
  transports_version_send: [:rest]
461
466
 
467
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
462
468
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
463
469
 
464
470
  options.apply_defaults timeout: @config.rpcs.expand_ip_cidr_range.timeout,
@@ -544,12 +550,13 @@ module Google
544
550
  # Customize the options with defaults
545
551
  call_metadata = @config.rpcs.get.metadata.to_h
546
552
 
547
- # Set x-goog-api-client and x-goog-user-project headers
553
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
548
554
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
549
555
  lib_name: @config.lib_name, lib_version: @config.lib_version,
550
556
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
551
557
  transports_version_send: [:rest]
552
558
 
559
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
553
560
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
554
561
 
555
562
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -628,12 +635,13 @@ module Google
628
635
  # Customize the options with defaults
629
636
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
630
637
 
631
- # Set x-goog-api-client and x-goog-user-project headers
638
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
632
639
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
633
640
  lib_name: @config.lib_name, lib_version: @config.lib_version,
634
641
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
635
642
  transports_version_send: [:rest]
636
643
 
644
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
637
645
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
638
646
 
639
647
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -712,12 +720,13 @@ module Google
712
720
  # Customize the options with defaults
713
721
  call_metadata = @config.rpcs.insert.metadata.to_h
714
722
 
715
- # Set x-goog-api-client and x-goog-user-project headers
723
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
716
724
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
717
725
  lib_name: @config.lib_name, lib_version: @config.lib_version,
718
726
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
719
727
  transports_version_send: [:rest]
720
728
 
729
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
721
730
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
722
731
 
723
732
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -811,12 +820,13 @@ module Google
811
820
  # Customize the options with defaults
812
821
  call_metadata = @config.rpcs.list.metadata.to_h
813
822
 
814
- # Set x-goog-api-client and x-goog-user-project headers
823
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
815
824
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
816
825
  lib_name: @config.lib_name, lib_version: @config.lib_version,
817
826
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
818
827
  transports_version_send: [:rest]
819
828
 
829
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
820
830
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
821
831
 
822
832
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -900,12 +910,13 @@ module Google
900
910
  # Customize the options with defaults
901
911
  call_metadata = @config.rpcs.list_usable.metadata.to_h
902
912
 
903
- # Set x-goog-api-client and x-goog-user-project headers
913
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
904
914
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
905
915
  lib_name: @config.lib_name, lib_version: @config.lib_version,
906
916
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
907
917
  transports_version_send: [:rest]
908
918
 
919
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
909
920
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
910
921
 
911
922
  options.apply_defaults timeout: @config.rpcs.list_usable.timeout,
@@ -989,12 +1000,13 @@ module Google
989
1000
  # Customize the options with defaults
990
1001
  call_metadata = @config.rpcs.patch.metadata.to_h
991
1002
 
992
- # Set x-goog-api-client and x-goog-user-project headers
1003
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
993
1004
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
994
1005
  lib_name: @config.lib_name, lib_version: @config.lib_version,
995
1006
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
996
1007
  transports_version_send: [:rest]
997
1008
 
1009
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
998
1010
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
999
1011
 
1000
1012
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -1082,12 +1094,13 @@ module Google
1082
1094
  # Customize the options with defaults
1083
1095
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1084
1096
 
1085
- # Set x-goog-api-client and x-goog-user-project headers
1097
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1086
1098
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1087
1099
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1088
1100
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1089
1101
  transports_version_send: [:rest]
1090
1102
 
1103
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1091
1104
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1092
1105
 
1093
1106
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1168,12 +1181,13 @@ module Google
1168
1181
  # Customize the options with defaults
1169
1182
  call_metadata = @config.rpcs.set_private_ip_google_access.metadata.to_h
1170
1183
 
1171
- # Set x-goog-api-client and x-goog-user-project headers
1184
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1172
1185
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1173
1186
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1174
1187
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1175
1188
  transports_version_send: [:rest]
1176
1189
 
1190
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1177
1191
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1178
1192
 
1179
1193
  options.apply_defaults timeout: @config.rpcs.set_private_ip_google_access.timeout,
@@ -1261,12 +1275,13 @@ module Google
1261
1275
  # Customize the options with defaults
1262
1276
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1263
1277
 
1264
- # Set x-goog-api-client and x-goog-user-project headers
1278
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1265
1279
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1266
1280
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1267
1281
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1268
1282
  transports_version_send: [:rest]
1269
1283
 
1284
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1270
1285
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1271
1286
 
1272
1287
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The TargetGrpcProxies API.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
38
41
 
@@ -240,12 +243,13 @@ module Google
240
243
  # Customize the options with defaults
241
244
  call_metadata = @config.rpcs.delete.metadata.to_h
242
245
 
243
- # Set x-goog-api-client and x-goog-user-project headers
246
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
244
247
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
245
248
  lib_name: @config.lib_name, lib_version: @config.lib_version,
246
249
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
247
250
  transports_version_send: [:rest]
248
251
 
252
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
249
253
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
250
254
 
251
255
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -328,12 +332,13 @@ module Google
328
332
  # Customize the options with defaults
329
333
  call_metadata = @config.rpcs.get.metadata.to_h
330
334
 
331
- # Set x-goog-api-client and x-goog-user-project headers
335
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
332
336
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
333
337
  lib_name: @config.lib_name, lib_version: @config.lib_version,
334
338
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
335
339
  transports_version_send: [:rest]
336
340
 
341
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
337
342
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
338
343
 
339
344
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -410,12 +415,13 @@ module Google
410
415
  # Customize the options with defaults
411
416
  call_metadata = @config.rpcs.insert.metadata.to_h
412
417
 
413
- # Set x-goog-api-client and x-goog-user-project headers
418
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
414
419
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
415
420
  lib_name: @config.lib_name, lib_version: @config.lib_version,
416
421
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
417
422
  transports_version_send: [:rest]
418
423
 
424
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
419
425
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
420
426
 
421
427
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -506,12 +512,13 @@ module Google
506
512
  # Customize the options with defaults
507
513
  call_metadata = @config.rpcs.list.metadata.to_h
508
514
 
509
- # Set x-goog-api-client and x-goog-user-project headers
515
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
510
516
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
511
517
  lib_name: @config.lib_name, lib_version: @config.lib_version,
512
518
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
513
519
  transports_version_send: [:rest]
514
520
 
521
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
515
522
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
516
523
 
517
524
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -591,12 +598,13 @@ module Google
591
598
  # Customize the options with defaults
592
599
  call_metadata = @config.rpcs.patch.metadata.to_h
593
600
 
594
- # Set x-goog-api-client and x-goog-user-project headers
601
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
595
602
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
596
603
  lib_name: @config.lib_name, lib_version: @config.lib_version,
597
604
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
598
605
  transports_version_send: [:rest]
599
606
 
607
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
600
608
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
601
609
 
602
610
  options.apply_defaults timeout: @config.rpcs.patch.timeout,