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 NetworkFirewallPolicies 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
 
@@ -275,12 +278,13 @@ module Google
275
278
  # Customize the options with defaults
276
279
  call_metadata = @config.rpcs.add_association.metadata.to_h
277
280
 
278
- # Set x-goog-api-client and x-goog-user-project headers
281
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
279
282
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
280
283
  lib_name: @config.lib_name, lib_version: @config.lib_version,
281
284
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
282
285
  transports_version_send: [:rest]
283
286
 
287
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
284
288
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
285
289
 
286
290
  options.apply_defaults timeout: @config.rpcs.add_association.timeout,
@@ -371,12 +375,13 @@ module Google
371
375
  # Customize the options with defaults
372
376
  call_metadata = @config.rpcs.add_rule.metadata.to_h
373
377
 
374
- # Set x-goog-api-client and x-goog-user-project headers
378
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
375
379
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
376
380
  lib_name: @config.lib_name, lib_version: @config.lib_version,
377
381
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
378
382
  transports_version_send: [:rest]
379
383
 
384
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
380
385
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
381
386
 
382
387
  options.apply_defaults timeout: @config.rpcs.add_rule.timeout,
@@ -463,12 +468,13 @@ module Google
463
468
  # Customize the options with defaults
464
469
  call_metadata = @config.rpcs.clone_rules.metadata.to_h
465
470
 
466
- # Set x-goog-api-client and x-goog-user-project headers
471
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
467
472
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
468
473
  lib_name: @config.lib_name, lib_version: @config.lib_version,
469
474
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
470
475
  transports_version_send: [:rest]
471
476
 
477
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
472
478
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
473
479
 
474
480
  options.apply_defaults timeout: @config.rpcs.clone_rules.timeout,
@@ -553,12 +559,13 @@ module Google
553
559
  # Customize the options with defaults
554
560
  call_metadata = @config.rpcs.delete.metadata.to_h
555
561
 
556
- # Set x-goog-api-client and x-goog-user-project headers
562
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
557
563
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
558
564
  lib_name: @config.lib_name, lib_version: @config.lib_version,
559
565
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
560
566
  transports_version_send: [:rest]
561
567
 
568
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
562
569
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
563
570
 
564
571
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -641,12 +648,13 @@ module Google
641
648
  # Customize the options with defaults
642
649
  call_metadata = @config.rpcs.get.metadata.to_h
643
650
 
644
- # Set x-goog-api-client and x-goog-user-project headers
651
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
645
652
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
646
653
  lib_name: @config.lib_name, lib_version: @config.lib_version,
647
654
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
648
655
  transports_version_send: [:rest]
649
656
 
657
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
650
658
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
651
659
 
652
660
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -723,12 +731,13 @@ module Google
723
731
  # Customize the options with defaults
724
732
  call_metadata = @config.rpcs.get_association.metadata.to_h
725
733
 
726
- # Set x-goog-api-client and x-goog-user-project headers
734
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
727
735
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
728
736
  lib_name: @config.lib_name, lib_version: @config.lib_version,
729
737
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
730
738
  transports_version_send: [:rest]
731
739
 
740
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
732
741
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
733
742
 
734
743
  options.apply_defaults timeout: @config.rpcs.get_association.timeout,
@@ -805,12 +814,13 @@ module Google
805
814
  # Customize the options with defaults
806
815
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
807
816
 
808
- # Set x-goog-api-client and x-goog-user-project headers
817
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
809
818
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
810
819
  lib_name: @config.lib_name, lib_version: @config.lib_version,
811
820
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
812
821
  transports_version_send: [:rest]
813
822
 
823
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
814
824
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
815
825
 
816
826
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -887,12 +897,13 @@ module Google
887
897
  # Customize the options with defaults
888
898
  call_metadata = @config.rpcs.get_rule.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.get_rule.timeout,
@@ -969,12 +980,13 @@ module Google
969
980
  # Customize the options with defaults
970
981
  call_metadata = @config.rpcs.insert.metadata.to_h
971
982
 
972
- # Set x-goog-api-client and x-goog-user-project headers
983
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
973
984
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
974
985
  lib_name: @config.lib_name, lib_version: @config.lib_version,
975
986
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
976
987
  transports_version_send: [:rest]
977
988
 
989
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
978
990
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
979
991
 
980
992
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -1065,12 +1077,13 @@ module Google
1065
1077
  # Customize the options with defaults
1066
1078
  call_metadata = @config.rpcs.list.metadata.to_h
1067
1079
 
1068
- # Set x-goog-api-client and x-goog-user-project headers
1080
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1069
1081
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1070
1082
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1071
1083
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1072
1084
  transports_version_send: [:rest]
1073
1085
 
1086
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1074
1087
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1075
1088
 
1076
1089
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -1150,12 +1163,13 @@ module Google
1150
1163
  # Customize the options with defaults
1151
1164
  call_metadata = @config.rpcs.patch.metadata.to_h
1152
1165
 
1153
- # Set x-goog-api-client and x-goog-user-project headers
1166
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1154
1167
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1155
1168
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1156
1169
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1157
1170
  transports_version_send: [:rest]
1158
1171
 
1172
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1159
1173
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1160
1174
 
1161
1175
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -1244,12 +1258,13 @@ module Google
1244
1258
  # Customize the options with defaults
1245
1259
  call_metadata = @config.rpcs.patch_rule.metadata.to_h
1246
1260
 
1247
- # Set x-goog-api-client and x-goog-user-project headers
1261
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1248
1262
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1249
1263
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1250
1264
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1251
1265
  transports_version_send: [:rest]
1252
1266
 
1267
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1253
1268
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1254
1269
 
1255
1270
  options.apply_defaults timeout: @config.rpcs.patch_rule.timeout,
@@ -1336,12 +1351,13 @@ module Google
1336
1351
  # Customize the options with defaults
1337
1352
  call_metadata = @config.rpcs.remove_association.metadata.to_h
1338
1353
 
1339
- # Set x-goog-api-client and x-goog-user-project headers
1354
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1340
1355
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1341
1356
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1342
1357
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1343
1358
  transports_version_send: [:rest]
1344
1359
 
1360
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1345
1361
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1346
1362
 
1347
1363
  options.apply_defaults timeout: @config.rpcs.remove_association.timeout,
@@ -1428,12 +1444,13 @@ module Google
1428
1444
  # Customize the options with defaults
1429
1445
  call_metadata = @config.rpcs.remove_rule.metadata.to_h
1430
1446
 
1431
- # Set x-goog-api-client and x-goog-user-project headers
1447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1432
1448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1433
1449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1434
1450
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1435
1451
  transports_version_send: [:rest]
1436
1452
 
1453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1437
1454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1438
1455
 
1439
1456
  options.apply_defaults timeout: @config.rpcs.remove_rule.timeout,
@@ -1518,12 +1535,13 @@ module Google
1518
1535
  # Customize the options with defaults
1519
1536
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1520
1537
 
1521
- # Set x-goog-api-client and x-goog-user-project headers
1538
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1522
1539
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1523
1540
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1524
1541
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1525
1542
  transports_version_send: [:rest]
1526
1543
 
1544
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1527
1545
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1528
1546
 
1529
1547
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1600,12 +1618,13 @@ module Google
1600
1618
  # Customize the options with defaults
1601
1619
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1602
1620
 
1603
- # Set x-goog-api-client and x-goog-user-project headers
1621
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1604
1622
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1605
1623
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1606
1624
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1607
1625
  transports_version_send: [:rest]
1608
1626
 
1627
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1609
1628
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1610
1629
 
1611
1630
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # The Networks 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.add_peering.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.add_peering.timeout,
@@ -350,12 +354,13 @@ module Google
350
354
  # Customize the options with defaults
351
355
  call_metadata = @config.rpcs.delete.metadata.to_h
352
356
 
353
- # Set x-goog-api-client and x-goog-user-project headers
357
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
354
358
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
355
359
  lib_name: @config.lib_name, lib_version: @config.lib_version,
356
360
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
357
361
  transports_version_send: [:rest]
358
362
 
363
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
359
364
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
360
365
 
361
366
  options.apply_defaults timeout: @config.rpcs.delete.timeout,
@@ -438,12 +443,13 @@ module Google
438
443
  # Customize the options with defaults
439
444
  call_metadata = @config.rpcs.get.metadata.to_h
440
445
 
441
- # Set x-goog-api-client and x-goog-user-project headers
446
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
447
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
448
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
449
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
445
450
  transports_version_send: [:rest]
446
451
 
452
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
453
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
454
 
449
455
  options.apply_defaults timeout: @config.rpcs.get.timeout,
@@ -518,12 +524,13 @@ module Google
518
524
  # Customize the options with defaults
519
525
  call_metadata = @config.rpcs.get_effective_firewalls.metadata.to_h
520
526
 
521
- # Set x-goog-api-client and x-goog-user-project headers
527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
522
528
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
523
529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
524
530
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
525
531
  transports_version_send: [:rest]
526
532
 
533
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
527
534
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
528
535
 
529
536
  options.apply_defaults timeout: @config.rpcs.get_effective_firewalls.timeout,
@@ -600,12 +607,13 @@ module Google
600
607
  # Customize the options with defaults
601
608
  call_metadata = @config.rpcs.insert.metadata.to_h
602
609
 
603
- # Set x-goog-api-client and x-goog-user-project headers
610
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
604
611
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
605
612
  lib_name: @config.lib_name, lib_version: @config.lib_version,
606
613
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
607
614
  transports_version_send: [:rest]
608
615
 
616
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
609
617
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
610
618
 
611
619
  options.apply_defaults timeout: @config.rpcs.insert.timeout,
@@ -696,12 +704,13 @@ module Google
696
704
  # Customize the options with defaults
697
705
  call_metadata = @config.rpcs.list.metadata.to_h
698
706
 
699
- # Set x-goog-api-client and x-goog-user-project headers
707
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
700
708
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
701
709
  lib_name: @config.lib_name, lib_version: @config.lib_version,
702
710
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
703
711
  transports_version_send: [:rest]
704
712
 
713
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
705
714
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
706
715
 
707
716
  options.apply_defaults timeout: @config.rpcs.list.timeout,
@@ -794,12 +803,13 @@ module Google
794
803
  # Customize the options with defaults
795
804
  call_metadata = @config.rpcs.list_peering_routes.metadata.to_h
796
805
 
797
- # Set x-goog-api-client and x-goog-user-project headers
806
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
798
807
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
799
808
  lib_name: @config.lib_name, lib_version: @config.lib_version,
800
809
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
801
810
  transports_version_send: [:rest]
802
811
 
812
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
803
813
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
804
814
 
805
815
  options.apply_defaults timeout: @config.rpcs.list_peering_routes.timeout,
@@ -879,12 +889,13 @@ module Google
879
889
  # Customize the options with defaults
880
890
  call_metadata = @config.rpcs.patch.metadata.to_h
881
891
 
882
- # Set x-goog-api-client and x-goog-user-project headers
892
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
883
893
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
884
894
  lib_name: @config.lib_name, lib_version: @config.lib_version,
885
895
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
886
896
  transports_version_send: [:rest]
887
897
 
898
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
888
899
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
889
900
 
890
901
  options.apply_defaults timeout: @config.rpcs.patch.timeout,
@@ -971,12 +982,13 @@ module Google
971
982
  # Customize the options with defaults
972
983
  call_metadata = @config.rpcs.remove_peering.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.remove_peering.timeout,
@@ -1061,12 +1073,13 @@ module Google
1061
1073
  # Customize the options with defaults
1062
1074
  call_metadata = @config.rpcs.switch_to_custom_mode.metadata.to_h
1063
1075
 
1064
- # Set x-goog-api-client and x-goog-user-project headers
1076
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1065
1077
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1066
1078
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1067
1079
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1068
1080
  transports_version_send: [:rest]
1069
1081
 
1082
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1070
1083
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1071
1084
 
1072
1085
  options.apply_defaults timeout: @config.rpcs.switch_to_custom_mode.timeout,
@@ -1153,12 +1166,13 @@ module Google
1153
1166
  # Customize the options with defaults
1154
1167
  call_metadata = @config.rpcs.update_peering.metadata.to_h
1155
1168
 
1156
- # Set x-goog-api-client and x-goog-user-project headers
1169
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1157
1170
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1158
1171
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1159
1172
  gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1160
1173
  transports_version_send: [:rest]
1161
1174
 
1175
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1162
1176
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1163
1177
 
1164
1178
  options.apply_defaults timeout: @config.rpcs.update_peering.timeout,