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.
- 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 +51 -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/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +837 -0
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +378 -0
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +47 -0
- 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/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +517 -0
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +190 -0
- data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/instance_settings_service.rb +47 -0
- 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 +136 -14
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +62 -0
- 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/rest.rb +4 -0
- 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/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +609 -0
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +249 -0
- data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/storage_pool_types.rb +47 -0
- data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1326 -0
- data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +679 -0
- data/lib/google/cloud/compute/v1/storage_pools/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/storage_pools.rb +47 -0
- 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/lib/google/cloud/compute/v1.rb +4 -0
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1333 -37
- metadata +22 -2
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The InstantSnapshots API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -264,12 +267,13 @@ module Google
|
|
264
267
|
# Customize the options with defaults
|
265
268
|
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
266
269
|
|
267
|
-
# Set x-goog-api-client
|
270
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
268
271
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
269
272
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
270
273
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
271
274
|
transports_version_send: [:rest]
|
272
275
|
|
276
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
273
277
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
274
278
|
|
275
279
|
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
@@ -349,12 +353,13 @@ module Google
|
|
349
353
|
# Customize the options with defaults
|
350
354
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
351
355
|
|
352
|
-
# Set x-goog-api-client
|
356
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
353
357
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
354
358
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
355
359
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
356
360
|
transports_version_send: [:rest]
|
357
361
|
|
362
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
358
363
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
359
364
|
|
360
365
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
@@ -440,12 +445,13 @@ module Google
|
|
440
445
|
# Customize the options with defaults
|
441
446
|
call_metadata = @config.rpcs.get.metadata.to_h
|
442
447
|
|
443
|
-
# Set x-goog-api-client
|
448
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
444
449
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
445
450
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
446
451
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
447
452
|
transports_version_send: [:rest]
|
448
453
|
|
454
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
449
455
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
450
456
|
|
451
457
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
@@ -524,12 +530,13 @@ module Google
|
|
524
530
|
# Customize the options with defaults
|
525
531
|
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
526
532
|
|
527
|
-
# Set x-goog-api-client
|
533
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
528
534
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
529
535
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
530
536
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
531
537
|
transports_version_send: [:rest]
|
532
538
|
|
539
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
533
540
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
534
541
|
|
535
542
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
@@ -608,12 +615,13 @@ module Google
|
|
608
615
|
# Customize the options with defaults
|
609
616
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
610
617
|
|
611
|
-
# Set x-goog-api-client
|
618
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
612
619
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
613
620
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
614
621
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
615
622
|
transports_version_send: [:rest]
|
616
623
|
|
624
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
617
625
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
618
626
|
|
619
627
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
@@ -707,12 +715,13 @@ module Google
|
|
707
715
|
# Customize the options with defaults
|
708
716
|
call_metadata = @config.rpcs.list.metadata.to_h
|
709
717
|
|
710
|
-
# Set x-goog-api-client
|
718
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
711
719
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
712
720
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
713
721
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
714
722
|
transports_version_send: [:rest]
|
715
723
|
|
724
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
716
725
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
717
726
|
|
718
727
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
@@ -792,12 +801,13 @@ module Google
|
|
792
801
|
# Customize the options with defaults
|
793
802
|
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
794
803
|
|
795
|
-
# Set x-goog-api-client
|
804
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
796
805
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
797
806
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
798
807
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
799
808
|
transports_version_send: [:rest]
|
800
809
|
|
810
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
801
811
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
802
812
|
|
803
813
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
@@ -878,12 +888,13 @@ module Google
|
|
878
888
|
# Customize the options with defaults
|
879
889
|
call_metadata = @config.rpcs.set_labels.metadata.to_h
|
880
890
|
|
881
|
-
# Set x-goog-api-client
|
891
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
882
892
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
883
893
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
884
894
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
885
895
|
transports_version_send: [:rest]
|
886
896
|
|
897
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
887
898
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
888
899
|
|
889
900
|
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
@@ -971,12 +982,13 @@ module Google
|
|
971
982
|
# Customize the options with defaults
|
972
983
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
973
984
|
|
974
|
-
# Set x-goog-api-client
|
985
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
975
986
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
976
987
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
977
988
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
978
989
|
transports_version_send: [:rest]
|
979
990
|
|
991
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
980
992
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
981
993
|
|
982
994
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The InterconnectAttachments 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
|
|
@@ -257,12 +260,13 @@ module Google
|
|
257
260
|
# Customize the options with defaults
|
258
261
|
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
259
262
|
|
260
|
-
# Set x-goog-api-client
|
263
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
261
264
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
262
265
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
263
266
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
264
267
|
transports_version_send: [:rest]
|
265
268
|
|
269
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
266
270
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
267
271
|
|
268
272
|
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
@@ -342,12 +346,13 @@ module Google
|
|
342
346
|
# Customize the options with defaults
|
343
347
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
344
348
|
|
345
|
-
# Set x-goog-api-client
|
349
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
346
350
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
347
351
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
348
352
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
349
353
|
transports_version_send: [:rest]
|
350
354
|
|
355
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
351
356
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
352
357
|
|
353
358
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
@@ -433,12 +438,13 @@ module Google
|
|
433
438
|
# Customize the options with defaults
|
434
439
|
call_metadata = @config.rpcs.get.metadata.to_h
|
435
440
|
|
436
|
-
# Set x-goog-api-client
|
441
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
437
442
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
438
443
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
439
444
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
440
445
|
transports_version_send: [:rest]
|
441
446
|
|
447
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
442
448
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
443
449
|
|
444
450
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
@@ -519,12 +525,13 @@ module Google
|
|
519
525
|
# Customize the options with defaults
|
520
526
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
521
527
|
|
522
|
-
# Set x-goog-api-client
|
528
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
523
529
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
524
530
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
525
531
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
526
532
|
transports_version_send: [:rest]
|
527
533
|
|
534
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
528
535
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
529
536
|
|
530
537
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
@@ -618,12 +625,13 @@ module Google
|
|
618
625
|
# Customize the options with defaults
|
619
626
|
call_metadata = @config.rpcs.list.metadata.to_h
|
620
627
|
|
621
|
-
# Set x-goog-api-client
|
628
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
622
629
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
623
630
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
624
631
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
625
632
|
transports_version_send: [:rest]
|
626
633
|
|
634
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
627
635
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
628
636
|
|
629
637
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
@@ -705,12 +713,13 @@ module Google
|
|
705
713
|
# Customize the options with defaults
|
706
714
|
call_metadata = @config.rpcs.patch.metadata.to_h
|
707
715
|
|
708
|
-
# Set x-goog-api-client
|
716
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
709
717
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
710
718
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
711
719
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
712
720
|
transports_version_send: [:rest]
|
713
721
|
|
722
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
714
723
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
715
724
|
|
716
725
|
options.apply_defaults timeout: @config.rpcs.patch.timeout,
|
@@ -800,12 +809,13 @@ module Google
|
|
800
809
|
# Customize the options with defaults
|
801
810
|
call_metadata = @config.rpcs.set_labels.metadata.to_h
|
802
811
|
|
803
|
-
# Set x-goog-api-client
|
812
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
804
813
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
805
814
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
806
815
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
807
816
|
transports_version_send: [:rest]
|
808
817
|
|
818
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
809
819
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
810
820
|
|
811
821
|
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# The InterconnectLocations API.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -217,12 +220,13 @@ module Google
|
|
217
220
|
# Customize the options with defaults
|
218
221
|
call_metadata = @config.rpcs.get.metadata.to_h
|
219
222
|
|
220
|
-
# Set x-goog-api-client
|
223
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
221
224
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
222
225
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
223
226
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
224
227
|
transports_version_send: [:rest]
|
225
228
|
|
229
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
226
230
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
227
231
|
|
228
232
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
@@ -305,12 +309,13 @@ module Google
|
|
305
309
|
# Customize the options with defaults
|
306
310
|
call_metadata = @config.rpcs.list.metadata.to_h
|
307
311
|
|
308
|
-
# Set x-goog-api-client
|
312
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
309
313
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
310
314
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
311
315
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
312
316
|
transports_version_send: [:rest]
|
313
317
|
|
318
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
314
319
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
315
320
|
|
316
321
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# The InterconnectRemoteLocations API.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -217,12 +220,13 @@ module Google
|
|
217
220
|
# Customize the options with defaults
|
218
221
|
call_metadata = @config.rpcs.get.metadata.to_h
|
219
222
|
|
220
|
-
# Set x-goog-api-client
|
223
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
221
224
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
222
225
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
223
226
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
224
227
|
transports_version_send: [:rest]
|
225
228
|
|
229
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
226
230
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
227
231
|
|
228
232
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
@@ -305,12 +309,13 @@ module Google
|
|
305
309
|
# Customize the options with defaults
|
306
310
|
call_metadata = @config.rpcs.list.metadata.to_h
|
307
311
|
|
308
|
-
# Set x-goog-api-client
|
312
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
309
313
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
310
314
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
311
315
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
312
316
|
transports_version_send: [:rest]
|
313
317
|
|
318
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
314
319
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
315
320
|
|
316
321
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The Interconnects 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
|
|
@@ -252,12 +255,13 @@ module Google
|
|
252
255
|
# Customize the options with defaults
|
253
256
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
254
257
|
|
255
|
-
# Set x-goog-api-client
|
258
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
256
259
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
257
260
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
258
261
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
259
262
|
transports_version_send: [:rest]
|
260
263
|
|
264
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
261
265
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
262
266
|
|
263
267
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
@@ -340,12 +344,13 @@ module Google
|
|
340
344
|
# Customize the options with defaults
|
341
345
|
call_metadata = @config.rpcs.get.metadata.to_h
|
342
346
|
|
343
|
-
# Set x-goog-api-client
|
347
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
344
348
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
345
349
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
346
350
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
347
351
|
transports_version_send: [:rest]
|
348
352
|
|
353
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
349
354
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
350
355
|
|
351
356
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
@@ -420,12 +425,13 @@ module Google
|
|
420
425
|
# Customize the options with defaults
|
421
426
|
call_metadata = @config.rpcs.get_diagnostics.metadata.to_h
|
422
427
|
|
423
|
-
# Set x-goog-api-client
|
428
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
424
429
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
425
430
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
426
431
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
427
432
|
transports_version_send: [:rest]
|
428
433
|
|
434
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
429
435
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
430
436
|
|
431
437
|
options.apply_defaults timeout: @config.rpcs.get_diagnostics.timeout,
|
@@ -500,12 +506,13 @@ module Google
|
|
500
506
|
# Customize the options with defaults
|
501
507
|
call_metadata = @config.rpcs.get_macsec_config.metadata.to_h
|
502
508
|
|
503
|
-
# Set x-goog-api-client
|
509
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
504
510
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
505
511
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
506
512
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
507
513
|
transports_version_send: [:rest]
|
508
514
|
|
515
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
509
516
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
510
517
|
|
511
518
|
options.apply_defaults timeout: @config.rpcs.get_macsec_config.timeout,
|
@@ -582,12 +589,13 @@ module Google
|
|
582
589
|
# Customize the options with defaults
|
583
590
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
584
591
|
|
585
|
-
# Set x-goog-api-client
|
592
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
586
593
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
587
594
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
588
595
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
589
596
|
transports_version_send: [:rest]
|
590
597
|
|
598
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
591
599
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
592
600
|
|
593
601
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
@@ -678,12 +686,13 @@ module Google
|
|
678
686
|
# Customize the options with defaults
|
679
687
|
call_metadata = @config.rpcs.list.metadata.to_h
|
680
688
|
|
681
|
-
# Set x-goog-api-client
|
689
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
682
690
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
683
691
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
684
692
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
685
693
|
transports_version_send: [:rest]
|
686
694
|
|
695
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
687
696
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
688
697
|
|
689
698
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
@@ -763,12 +772,13 @@ module Google
|
|
763
772
|
# Customize the options with defaults
|
764
773
|
call_metadata = @config.rpcs.patch.metadata.to_h
|
765
774
|
|
766
|
-
# Set x-goog-api-client
|
775
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
767
776
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
768
777
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
769
778
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
770
779
|
transports_version_send: [:rest]
|
771
780
|
|
781
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
772
782
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
773
783
|
|
774
784
|
options.apply_defaults timeout: @config.rpcs.patch.timeout,
|
@@ -853,12 +863,13 @@ module Google
|
|
853
863
|
# Customize the options with defaults
|
854
864
|
call_metadata = @config.rpcs.set_labels.metadata.to_h
|
855
865
|
|
856
|
-
# Set x-goog-api-client
|
866
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
857
867
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
858
868
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
859
869
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
860
870
|
transports_version_send: [:rest]
|
861
871
|
|
872
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
862
873
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
863
874
|
|
864
875
|
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# The LicenseCodes 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
|
|
@@ -214,12 +217,13 @@ module Google
|
|
214
217
|
# Customize the options with defaults
|
215
218
|
call_metadata = @config.rpcs.get.metadata.to_h
|
216
219
|
|
217
|
-
# Set x-goog-api-client
|
220
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
218
221
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
219
222
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
220
223
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
221
224
|
transports_version_send: [:rest]
|
222
225
|
|
226
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
223
227
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
224
228
|
|
225
229
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
@@ -296,12 +300,13 @@ module Google
|
|
296
300
|
# Customize the options with defaults
|
297
301
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
298
302
|
|
299
|
-
# Set x-goog-api-client
|
303
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
300
304
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
301
305
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
302
306
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
303
307
|
transports_version_send: [:rest]
|
304
308
|
|
309
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
305
310
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
311
|
|
307
312
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The Licenses API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -247,12 +250,13 @@ module Google
|
|
247
250
|
# Customize the options with defaults
|
248
251
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
249
252
|
|
250
|
-
# Set x-goog-api-client
|
253
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
251
254
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
252
255
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
253
256
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
254
257
|
transports_version_send: [:rest]
|
255
258
|
|
259
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
256
260
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
257
261
|
|
258
262
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
@@ -335,12 +339,13 @@ module Google
|
|
335
339
|
# Customize the options with defaults
|
336
340
|
call_metadata = @config.rpcs.get.metadata.to_h
|
337
341
|
|
338
|
-
# Set x-goog-api-client
|
342
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
339
343
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
340
344
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
341
345
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
342
346
|
transports_version_send: [:rest]
|
343
347
|
|
348
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
344
349
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
345
350
|
|
346
351
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
@@ -417,12 +422,13 @@ module Google
|
|
417
422
|
# Customize the options with defaults
|
418
423
|
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
419
424
|
|
420
|
-
# Set x-goog-api-client
|
425
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
421
426
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
422
427
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
423
428
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
424
429
|
transports_version_send: [:rest]
|
425
430
|
|
431
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
426
432
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
427
433
|
|
428
434
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
@@ -499,12 +505,13 @@ module Google
|
|
499
505
|
# Customize the options with defaults
|
500
506
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
501
507
|
|
502
|
-
# Set x-goog-api-client
|
508
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
503
509
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
504
510
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
505
511
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
506
512
|
transports_version_send: [:rest]
|
507
513
|
|
514
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
508
515
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
509
516
|
|
510
517
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
@@ -595,12 +602,13 @@ module Google
|
|
595
602
|
# Customize the options with defaults
|
596
603
|
call_metadata = @config.rpcs.list.metadata.to_h
|
597
604
|
|
598
|
-
# Set x-goog-api-client
|
605
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
599
606
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
600
607
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
601
608
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
602
609
|
transports_version_send: [:rest]
|
603
610
|
|
611
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
604
612
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
605
613
|
|
606
614
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
@@ -678,12 +686,13 @@ module Google
|
|
678
686
|
# Customize the options with defaults
|
679
687
|
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
680
688
|
|
681
|
-
# Set x-goog-api-client
|
689
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
682
690
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
683
691
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
684
692
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
685
693
|
transports_version_send: [:rest]
|
686
694
|
|
695
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
687
696
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
688
697
|
|
689
698
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
@@ -760,12 +769,13 @@ module Google
|
|
760
769
|
# Customize the options with defaults
|
761
770
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
762
771
|
|
763
|
-
# Set x-goog-api-client
|
772
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
764
773
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
765
774
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
766
775
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
767
776
|
transports_version_send: [:rest]
|
768
777
|
|
778
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
769
779
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
770
780
|
|
771
781
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|