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
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The InstanceGroups 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
|
|
@@ -255,12 +258,13 @@ module Google
|
|
255
258
|
# Customize the options with defaults
|
256
259
|
call_metadata = @config.rpcs.add_instances.metadata.to_h
|
257
260
|
|
258
|
-
# Set x-goog-api-client
|
261
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
259
262
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
260
263
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
261
264
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
262
265
|
transports_version_send: [:rest]
|
263
266
|
|
267
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
264
268
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
265
269
|
|
266
270
|
options.apply_defaults timeout: @config.rpcs.add_instances.timeout,
|
@@ -356,12 +360,13 @@ module Google
|
|
356
360
|
# Customize the options with defaults
|
357
361
|
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
358
362
|
|
359
|
-
# Set x-goog-api-client
|
363
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
360
364
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
361
365
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
362
366
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
363
367
|
transports_version_send: [:rest]
|
364
368
|
|
369
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
365
370
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
366
371
|
|
367
372
|
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
@@ -441,12 +446,13 @@ module Google
|
|
441
446
|
# Customize the options with defaults
|
442
447
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
443
448
|
|
444
|
-
# Set x-goog-api-client
|
449
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
445
450
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
446
451
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
447
452
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
448
453
|
transports_version_send: [:rest]
|
449
454
|
|
455
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
450
456
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
451
457
|
|
452
458
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
@@ -532,12 +538,13 @@ module Google
|
|
532
538
|
# Customize the options with defaults
|
533
539
|
call_metadata = @config.rpcs.get.metadata.to_h
|
534
540
|
|
535
|
-
# Set x-goog-api-client
|
541
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
536
542
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
537
543
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
538
544
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
539
545
|
transports_version_send: [:rest]
|
540
546
|
|
547
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
541
548
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
542
549
|
|
543
550
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
@@ -616,12 +623,13 @@ module Google
|
|
616
623
|
# Customize the options with defaults
|
617
624
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
618
625
|
|
619
|
-
# Set x-goog-api-client
|
626
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
620
627
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
621
628
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
622
629
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
623
630
|
transports_version_send: [:rest]
|
624
631
|
|
632
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
625
633
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
626
634
|
|
627
635
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
@@ -715,12 +723,13 @@ module Google
|
|
715
723
|
# Customize the options with defaults
|
716
724
|
call_metadata = @config.rpcs.list.metadata.to_h
|
717
725
|
|
718
|
-
# Set x-goog-api-client
|
726
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
719
727
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
720
728
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
721
729
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
722
730
|
transports_version_send: [:rest]
|
723
731
|
|
732
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
724
733
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
725
734
|
|
726
735
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
@@ -810,12 +819,13 @@ module Google
|
|
810
819
|
# Customize the options with defaults
|
811
820
|
call_metadata = @config.rpcs.list_instances.metadata.to_h
|
812
821
|
|
813
|
-
# Set x-goog-api-client
|
822
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
814
823
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
815
824
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
816
825
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
817
826
|
transports_version_send: [:rest]
|
818
827
|
|
828
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
819
829
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
820
830
|
|
821
831
|
options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
|
@@ -897,12 +907,13 @@ module Google
|
|
897
907
|
# Customize the options with defaults
|
898
908
|
call_metadata = @config.rpcs.remove_instances.metadata.to_h
|
899
909
|
|
900
|
-
# Set x-goog-api-client
|
910
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
901
911
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
902
912
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
903
913
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
904
914
|
transports_version_send: [:rest]
|
905
915
|
|
916
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
906
917
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
907
918
|
|
908
919
|
options.apply_defaults timeout: @config.rpcs.remove_instances.timeout,
|
@@ -992,12 +1003,13 @@ module Google
|
|
992
1003
|
# Customize the options with defaults
|
993
1004
|
call_metadata = @config.rpcs.set_named_ports.metadata.to_h
|
994
1005
|
|
995
|
-
# Set x-goog-api-client
|
1006
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
996
1007
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
997
1008
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
998
1009
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
999
1010
|
transports_version_send: [:rest]
|
1000
1011
|
|
1012
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1001
1013
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1002
1014
|
|
1003
1015
|
options.apply_defaults timeout: @config.rpcs.set_named_ports.timeout,
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The InstanceSettings 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
|
|
@@ -229,12 +232,13 @@ module Google
|
|
229
232
|
# Customize the options with defaults
|
230
233
|
call_metadata = @config.rpcs.get.metadata.to_h
|
231
234
|
|
232
|
-
# Set x-goog-api-client
|
235
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
233
236
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
234
237
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
235
238
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
236
239
|
transports_version_send: [:rest]
|
237
240
|
|
241
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
238
242
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
239
243
|
|
240
244
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
@@ -315,12 +319,13 @@ module Google
|
|
315
319
|
# Customize the options with defaults
|
316
320
|
call_metadata = @config.rpcs.patch.metadata.to_h
|
317
321
|
|
318
|
-
# Set x-goog-api-client
|
322
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
319
323
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
320
324
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
321
325
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
322
326
|
transports_version_send: [:rest]
|
323
327
|
|
328
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
324
329
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
325
330
|
|
326
331
|
options.apply_defaults timeout: @config.rpcs.patch.timeout,
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The InstanceTemplates 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
|
|
@@ -262,12 +265,13 @@ module Google
|
|
262
265
|
# Customize the options with defaults
|
263
266
|
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
264
267
|
|
265
|
-
# Set x-goog-api-client
|
268
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
266
269
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
267
270
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
268
271
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
269
272
|
transports_version_send: [:rest]
|
270
273
|
|
274
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
271
275
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
272
276
|
|
273
277
|
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
@@ -345,12 +349,13 @@ module Google
|
|
345
349
|
# Customize the options with defaults
|
346
350
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
347
351
|
|
348
|
-
# Set x-goog-api-client
|
352
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
349
353
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
350
354
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
351
355
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
352
356
|
transports_version_send: [:rest]
|
353
357
|
|
358
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
354
359
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
355
360
|
|
356
361
|
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,
|
@@ -515,12 +521,13 @@ module Google
|
|
515
521
|
# Customize the options with defaults
|
516
522
|
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
517
523
|
|
518
|
-
# Set x-goog-api-client
|
524
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
519
525
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
520
526
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
521
527
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
522
528
|
transports_version_send: [:rest]
|
523
529
|
|
530
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
524
531
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
525
532
|
|
526
533
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
@@ -597,12 +604,13 @@ module Google
|
|
597
604
|
# Customize the options with defaults
|
598
605
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
599
606
|
|
600
|
-
# Set x-goog-api-client
|
607
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
601
608
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
602
609
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
603
610
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
604
611
|
transports_version_send: [:rest]
|
605
612
|
|
613
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
606
614
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
607
615
|
|
608
616
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
@@ -693,12 +701,13 @@ module Google
|
|
693
701
|
# Customize the options with defaults
|
694
702
|
call_metadata = @config.rpcs.list.metadata.to_h
|
695
703
|
|
696
|
-
# Set x-goog-api-client
|
704
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
697
705
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
698
706
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
699
707
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
700
708
|
transports_version_send: [:rest]
|
701
709
|
|
710
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
702
711
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
703
712
|
|
704
713
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
@@ -776,12 +785,13 @@ module Google
|
|
776
785
|
# Customize the options with defaults
|
777
786
|
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
778
787
|
|
779
|
-
# Set x-goog-api-client
|
788
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
780
789
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
781
790
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
782
791
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
783
792
|
transports_version_send: [:rest]
|
784
793
|
|
794
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
785
795
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
786
796
|
|
787
797
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
@@ -858,12 +868,13 @@ module Google
|
|
858
868
|
# Customize the options with defaults
|
859
869
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
860
870
|
|
861
|
-
# Set x-goog-api-client
|
871
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
862
872
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
863
873
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
864
874
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
865
875
|
transports_version_send: [:rest]
|
866
876
|
|
877
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
867
878
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
868
879
|
|
869
880
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|