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.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +9 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +27 -12
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +35 -16
- data/lib/google/cloud/compute/v1/compute_pb.rb +1 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +9 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +39 -18
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +39 -18
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +9 -3
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +5 -1
- data/lib/google/cloud/compute/v1/images/rest/client.rb +25 -11
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +43 -20
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +99 -48
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +9 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +35 -16
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +25 -11
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +33 -15
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +9 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +31 -14
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +27 -12
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +37 -17
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +41 -19
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -1
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +37 -17
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +5 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +23 -10
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +25 -11
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +27 -12
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +9 -3
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +23 -10
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +27 -12
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +25 -11
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +27 -12
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +7 -2
- data/proto_docs/google/cloud/compute/v1/compute.rb +11 -7
- metadata +2 -2
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# The DiskTypes 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
|
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
|
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
|
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 Disks 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
|
|
@@ -276,12 +279,13 @@ module Google
|
|
276
279
|
# Customize the options with defaults
|
277
280
|
call_metadata = @config.rpcs.add_resource_policies.metadata.to_h
|
278
281
|
|
279
|
-
# Set x-goog-api-client
|
282
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
280
283
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
281
284
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
282
285
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
283
286
|
transports_version_send: [:rest]
|
284
287
|
|
288
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
285
289
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
286
290
|
|
287
291
|
options.apply_defaults timeout: @config.rpcs.add_resource_policies.timeout,
|
@@ -377,12 +381,13 @@ module Google
|
|
377
381
|
# Customize the options with defaults
|
378
382
|
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
379
383
|
|
380
|
-
# Set x-goog-api-client
|
384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
381
385
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
382
386
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
383
387
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
384
388
|
transports_version_send: [:rest]
|
385
389
|
|
390
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
386
391
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
387
392
|
|
388
393
|
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
@@ -462,12 +467,13 @@ module Google
|
|
462
467
|
# Customize the options with defaults
|
463
468
|
call_metadata = @config.rpcs.bulk_insert.metadata.to_h
|
464
469
|
|
465
|
-
# Set x-goog-api-client
|
470
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
466
471
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
467
472
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
468
473
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
469
474
|
transports_version_send: [:rest]
|
470
475
|
|
476
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
471
477
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
472
478
|
|
473
479
|
options.apply_defaults timeout: @config.rpcs.bulk_insert.timeout,
|
@@ -559,12 +565,13 @@ module Google
|
|
559
565
|
# Customize the options with defaults
|
560
566
|
call_metadata = @config.rpcs.create_snapshot.metadata.to_h
|
561
567
|
|
562
|
-
# Set x-goog-api-client
|
568
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
563
569
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
564
570
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
565
571
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
566
572
|
transports_version_send: [:rest]
|
567
573
|
|
574
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
568
575
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
569
576
|
|
570
577
|
options.apply_defaults timeout: @config.rpcs.create_snapshot.timeout,
|
@@ -652,12 +659,13 @@ module Google
|
|
652
659
|
# Customize the options with defaults
|
653
660
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
654
661
|
|
655
|
-
# Set x-goog-api-client
|
662
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
656
663
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
657
664
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
658
665
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
659
666
|
transports_version_send: [:rest]
|
660
667
|
|
668
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
661
669
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
662
670
|
|
663
671
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
@@ -743,12 +751,13 @@ module Google
|
|
743
751
|
# Customize the options with defaults
|
744
752
|
call_metadata = @config.rpcs.get.metadata.to_h
|
745
753
|
|
746
|
-
# Set x-goog-api-client
|
754
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
747
755
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
748
756
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
749
757
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
750
758
|
transports_version_send: [:rest]
|
751
759
|
|
760
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
752
761
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
753
762
|
|
754
763
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
@@ -827,12 +836,13 @@ module Google
|
|
827
836
|
# Customize the options with defaults
|
828
837
|
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
829
838
|
|
830
|
-
# Set x-goog-api-client
|
839
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
831
840
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
832
841
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
833
842
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
834
843
|
transports_version_send: [:rest]
|
835
844
|
|
845
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
836
846
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
837
847
|
|
838
848
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
@@ -913,12 +923,13 @@ module Google
|
|
913
923
|
# Customize the options with defaults
|
914
924
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
915
925
|
|
916
|
-
# Set x-goog-api-client
|
926
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
917
927
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
918
928
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
919
929
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
920
930
|
transports_version_send: [:rest]
|
921
931
|
|
932
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
922
933
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
923
934
|
|
924
935
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
@@ -1012,12 +1023,13 @@ module Google
|
|
1012
1023
|
# Customize the options with defaults
|
1013
1024
|
call_metadata = @config.rpcs.list.metadata.to_h
|
1014
1025
|
|
1015
|
-
# Set x-goog-api-client
|
1026
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1016
1027
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1017
1028
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1018
1029
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1019
1030
|
transports_version_send: [:rest]
|
1020
1031
|
|
1032
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1021
1033
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1022
1034
|
|
1023
1035
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
@@ -1099,12 +1111,13 @@ module Google
|
|
1099
1111
|
# Customize the options with defaults
|
1100
1112
|
call_metadata = @config.rpcs.remove_resource_policies.metadata.to_h
|
1101
1113
|
|
1102
|
-
# Set x-goog-api-client
|
1114
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1103
1115
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1104
1116
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1105
1117
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1106
1118
|
transports_version_send: [:rest]
|
1107
1119
|
|
1120
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1108
1121
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1109
1122
|
|
1110
1123
|
options.apply_defaults timeout: @config.rpcs.remove_resource_policies.timeout,
|
@@ -1194,12 +1207,13 @@ module Google
|
|
1194
1207
|
# Customize the options with defaults
|
1195
1208
|
call_metadata = @config.rpcs.resize.metadata.to_h
|
1196
1209
|
|
1197
|
-
# Set x-goog-api-client
|
1210
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1198
1211
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1199
1212
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1200
1213
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1201
1214
|
transports_version_send: [:rest]
|
1202
1215
|
|
1216
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1203
1217
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1204
1218
|
|
1205
1219
|
options.apply_defaults timeout: @config.rpcs.resize.timeout,
|
@@ -1287,12 +1301,13 @@ module Google
|
|
1287
1301
|
# Customize the options with defaults
|
1288
1302
|
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
1289
1303
|
|
1290
|
-
# Set x-goog-api-client
|
1304
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1291
1305
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1292
1306
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1293
1307
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1294
1308
|
transports_version_send: [:rest]
|
1295
1309
|
|
1310
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1296
1311
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1297
1312
|
|
1298
1313
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
@@ -1373,12 +1388,13 @@ module Google
|
|
1373
1388
|
# Customize the options with defaults
|
1374
1389
|
call_metadata = @config.rpcs.set_labels.metadata.to_h
|
1375
1390
|
|
1376
|
-
# Set x-goog-api-client
|
1391
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1377
1392
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1378
1393
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1379
1394
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1380
1395
|
transports_version_send: [:rest]
|
1381
1396
|
|
1397
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1382
1398
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1383
1399
|
|
1384
1400
|
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
@@ -1468,12 +1484,13 @@ module Google
|
|
1468
1484
|
# Customize the options with defaults
|
1469
1485
|
call_metadata = @config.rpcs.start_async_replication.metadata.to_h
|
1470
1486
|
|
1471
|
-
# Set x-goog-api-client
|
1487
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1472
1488
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1473
1489
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1474
1490
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1475
1491
|
transports_version_send: [:rest]
|
1476
1492
|
|
1493
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1477
1494
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1478
1495
|
|
1479
1496
|
options.apply_defaults timeout: @config.rpcs.start_async_replication.timeout,
|
@@ -1561,12 +1578,13 @@ module Google
|
|
1561
1578
|
# Customize the options with defaults
|
1562
1579
|
call_metadata = @config.rpcs.stop_async_replication.metadata.to_h
|
1563
1580
|
|
1564
|
-
# Set x-goog-api-client
|
1581
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1565
1582
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1566
1583
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1567
1584
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1568
1585
|
transports_version_send: [:rest]
|
1569
1586
|
|
1587
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1570
1588
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1571
1589
|
|
1572
1590
|
options.apply_defaults timeout: @config.rpcs.stop_async_replication.timeout,
|
@@ -1654,12 +1672,13 @@ module Google
|
|
1654
1672
|
# Customize the options with defaults
|
1655
1673
|
call_metadata = @config.rpcs.stop_group_async_replication.metadata.to_h
|
1656
1674
|
|
1657
|
-
# Set x-goog-api-client
|
1675
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1658
1676
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1659
1677
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1660
1678
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1661
1679
|
transports_version_send: [:rest]
|
1662
1680
|
|
1681
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1663
1682
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1664
1683
|
|
1665
1684
|
options.apply_defaults timeout: @config.rpcs.stop_group_async_replication.timeout,
|
@@ -1747,12 +1766,13 @@ module Google
|
|
1747
1766
|
# Customize the options with defaults
|
1748
1767
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
1749
1768
|
|
1750
|
-
# Set x-goog-api-client
|
1769
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1751
1770
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1752
1771
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1753
1772
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1754
1773
|
transports_version_send: [:rest]
|
1755
1774
|
|
1775
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1756
1776
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1757
1777
|
|
1758
1778
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
@@ -1836,12 +1856,13 @@ module Google
|
|
1836
1856
|
# Customize the options with defaults
|
1837
1857
|
call_metadata = @config.rpcs.update.metadata.to_h
|
1838
1858
|
|
1839
|
-
# Set x-goog-api-client
|
1859
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1840
1860
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1841
1861
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1842
1862
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1843
1863
|
transports_version_send: [:rest]
|
1844
1864
|
|
1865
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1845
1866
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1846
1867
|
|
1847
1868
|
options.apply_defaults timeout: @config.rpcs.update.timeout,
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The ExternalVpnGateways API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -242,12 +245,13 @@ module Google
|
|
242
245
|
# Customize the options with defaults
|
243
246
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
244
247
|
|
245
|
-
# Set x-goog-api-client
|
248
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
246
249
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
247
250
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
248
251
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
249
252
|
transports_version_send: [:rest]
|
250
253
|
|
254
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
251
255
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
252
256
|
|
253
257
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
@@ -330,12 +334,13 @@ module Google
|
|
330
334
|
# Customize the options with defaults
|
331
335
|
call_metadata = @config.rpcs.get.metadata.to_h
|
332
336
|
|
333
|
-
# Set x-goog-api-client
|
337
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
334
338
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
335
339
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
336
340
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
337
341
|
transports_version_send: [:rest]
|
338
342
|
|
343
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
339
344
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
340
345
|
|
341
346
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
@@ -412,12 +417,13 @@ module Google
|
|
412
417
|
# Customize the options with defaults
|
413
418
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
414
419
|
|
415
|
-
# Set x-goog-api-client
|
420
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
416
421
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
417
422
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
418
423
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
419
424
|
transports_version_send: [:rest]
|
420
425
|
|
426
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
421
427
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
422
428
|
|
423
429
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
@@ -508,12 +514,13 @@ module Google
|
|
508
514
|
# Customize the options with defaults
|
509
515
|
call_metadata = @config.rpcs.list.metadata.to_h
|
510
516
|
|
511
|
-
# Set x-goog-api-client
|
517
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
512
518
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
513
519
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
514
520
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
515
521
|
transports_version_send: [:rest]
|
516
522
|
|
523
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
517
524
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
518
525
|
|
519
526
|
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.set_labels.metadata.to_h
|
593
600
|
|
594
|
-
# Set x-goog-api-client
|
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.set_labels.timeout,
|
@@ -681,12 +689,13 @@ module Google
|
|
681
689
|
# Customize the options with defaults
|
682
690
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
683
691
|
|
684
|
-
# Set x-goog-api-client
|
692
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
685
693
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
686
694
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
687
695
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
688
696
|
transports_version_send: [:rest]
|
689
697
|
|
698
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
690
699
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
691
700
|
|
692
701
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|