google-cloud-gke_multi_cloud-v1 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,6 +26,9 @@ module Google
26
26
  module AwsClusters
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "gkemulticloud.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # to create and manage Anthos clusters that run on AWS infrastructure.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "gkemulticloud.$UNIVERSE_DOMAIN$"
38
41
 
@@ -315,12 +318,13 @@ module Google
315
318
  # Customize the options with defaults
316
319
  call_metadata = @config.rpcs.create_aws_cluster.metadata.to_h
317
320
 
318
- # Set x-goog-api-client and x-goog-user-project headers
321
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
319
322
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
320
323
  lib_name: @config.lib_name, lib_version: @config.lib_version,
321
324
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
322
325
  transports_version_send: [:rest]
323
326
 
327
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
324
328
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
325
329
 
326
330
  options.apply_defaults timeout: @config.rpcs.create_aws_cluster.timeout,
@@ -436,12 +440,13 @@ module Google
436
440
  # Customize the options with defaults
437
441
  call_metadata = @config.rpcs.update_aws_cluster.metadata.to_h
438
442
 
439
- # Set x-goog-api-client and x-goog-user-project headers
443
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
440
444
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
441
445
  lib_name: @config.lib_name, lib_version: @config.lib_version,
442
446
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
443
447
  transports_version_send: [:rest]
444
448
 
449
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
445
450
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
446
451
 
447
452
  options.apply_defaults timeout: @config.rpcs.update_aws_cluster.timeout,
@@ -524,12 +529,13 @@ module Google
524
529
  # Customize the options with defaults
525
530
  call_metadata = @config.rpcs.get_aws_cluster.metadata.to_h
526
531
 
527
- # Set x-goog-api-client and x-goog-user-project headers
532
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
528
533
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
529
534
  lib_name: @config.lib_name, lib_version: @config.lib_version,
530
535
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
531
536
  transports_version_send: [:rest]
532
537
 
538
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
533
539
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
534
540
 
535
541
  options.apply_defaults timeout: @config.rpcs.get_aws_cluster.timeout,
@@ -625,12 +631,13 @@ module Google
625
631
  # Customize the options with defaults
626
632
  call_metadata = @config.rpcs.list_aws_clusters.metadata.to_h
627
633
 
628
- # Set x-goog-api-client and x-goog-user-project headers
634
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
629
635
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
630
636
  lib_name: @config.lib_name, lib_version: @config.lib_version,
631
637
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
632
638
  transports_version_send: [:rest]
633
639
 
640
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
634
641
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
635
642
 
636
643
  options.apply_defaults timeout: @config.rpcs.list_aws_clusters.timeout,
@@ -748,12 +755,13 @@ module Google
748
755
  # Customize the options with defaults
749
756
  call_metadata = @config.rpcs.delete_aws_cluster.metadata.to_h
750
757
 
751
- # Set x-goog-api-client and x-goog-user-project headers
758
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
752
759
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
753
760
  lib_name: @config.lib_name, lib_version: @config.lib_version,
754
761
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
755
762
  transports_version_send: [:rest]
756
763
 
764
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
757
765
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
758
766
 
759
767
  options.apply_defaults timeout: @config.rpcs.delete_aws_cluster.timeout,
@@ -845,12 +853,13 @@ module Google
845
853
  # Customize the options with defaults
846
854
  call_metadata = @config.rpcs.generate_aws_cluster_agent_token.metadata.to_h
847
855
 
848
- # Set x-goog-api-client and x-goog-user-project headers
856
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
849
857
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
850
858
  lib_name: @config.lib_name, lib_version: @config.lib_version,
851
859
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
852
860
  transports_version_send: [:rest]
853
861
 
862
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
854
863
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
855
864
 
856
865
  options.apply_defaults timeout: @config.rpcs.generate_aws_cluster_agent_token.timeout,
@@ -932,12 +941,13 @@ module Google
932
941
  # Customize the options with defaults
933
942
  call_metadata = @config.rpcs.generate_aws_access_token.metadata.to_h
934
943
 
935
- # Set x-goog-api-client and x-goog-user-project headers
944
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
936
945
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
937
946
  lib_name: @config.lib_name, lib_version: @config.lib_version,
938
947
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
939
948
  transports_version_send: [:rest]
940
949
 
950
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
941
951
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
942
952
 
943
953
  options.apply_defaults timeout: @config.rpcs.generate_aws_access_token.timeout,
@@ -1045,12 +1055,13 @@ module Google
1045
1055
  # Customize the options with defaults
1046
1056
  call_metadata = @config.rpcs.create_aws_node_pool.metadata.to_h
1047
1057
 
1048
- # Set x-goog-api-client and x-goog-user-project headers
1058
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1049
1059
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1050
1060
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1051
1061
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
1052
1062
  transports_version_send: [:rest]
1053
1063
 
1064
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1054
1065
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1055
1066
 
1056
1067
  options.apply_defaults timeout: @config.rpcs.create_aws_node_pool.timeout,
@@ -1169,12 +1180,13 @@ module Google
1169
1180
  # Customize the options with defaults
1170
1181
  call_metadata = @config.rpcs.update_aws_node_pool.metadata.to_h
1171
1182
 
1172
- # Set x-goog-api-client and x-goog-user-project headers
1183
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1173
1184
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1174
1185
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1175
1186
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
1176
1187
  transports_version_send: [:rest]
1177
1188
 
1189
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1178
1190
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1179
1191
 
1180
1192
  options.apply_defaults timeout: @config.rpcs.update_aws_node_pool.timeout,
@@ -1271,12 +1283,13 @@ module Google
1271
1283
  # Customize the options with defaults
1272
1284
  call_metadata = @config.rpcs.rollback_aws_node_pool_update.metadata.to_h
1273
1285
 
1274
- # Set x-goog-api-client and x-goog-user-project headers
1286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1275
1287
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1276
1288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1277
1289
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
1278
1290
  transports_version_send: [:rest]
1279
1291
 
1292
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1280
1293
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1281
1294
 
1282
1295
  options.apply_defaults timeout: @config.rpcs.rollback_aws_node_pool_update.timeout,
@@ -1359,12 +1372,13 @@ module Google
1359
1372
  # Customize the options with defaults
1360
1373
  call_metadata = @config.rpcs.get_aws_node_pool.metadata.to_h
1361
1374
 
1362
- # Set x-goog-api-client and x-goog-user-project headers
1375
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1363
1376
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1364
1377
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1365
1378
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
1366
1379
  transports_version_send: [:rest]
1367
1380
 
1381
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1368
1382
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1369
1383
 
1370
1384
  options.apply_defaults timeout: @config.rpcs.get_aws_node_pool.timeout,
@@ -1462,12 +1476,13 @@ module Google
1462
1476
  # Customize the options with defaults
1463
1477
  call_metadata = @config.rpcs.list_aws_node_pools.metadata.to_h
1464
1478
 
1465
- # Set x-goog-api-client and x-goog-user-project headers
1479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1466
1480
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1467
1481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1468
1482
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
1469
1483
  transports_version_send: [:rest]
1470
1484
 
1485
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1471
1486
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1472
1487
 
1473
1488
  options.apply_defaults timeout: @config.rpcs.list_aws_node_pools.timeout,
@@ -1583,12 +1598,13 @@ module Google
1583
1598
  # Customize the options with defaults
1584
1599
  call_metadata = @config.rpcs.delete_aws_node_pool.metadata.to_h
1585
1600
 
1586
- # Set x-goog-api-client and x-goog-user-project headers
1601
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1587
1602
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1588
1603
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1589
1604
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
1590
1605
  transports_version_send: [:rest]
1591
1606
 
1607
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1592
1608
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1593
1609
 
1594
1610
  options.apply_defaults timeout: @config.rpcs.delete_aws_node_pool.timeout,
@@ -1668,12 +1684,13 @@ module Google
1668
1684
  # Customize the options with defaults
1669
1685
  call_metadata = @config.rpcs.get_aws_open_id_config.metadata.to_h
1670
1686
 
1671
- # Set x-goog-api-client and x-goog-user-project headers
1687
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1672
1688
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1673
1689
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1674
1690
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
1675
1691
  transports_version_send: [:rest]
1676
1692
 
1693
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1677
1694
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1678
1695
 
1679
1696
  options.apply_defaults timeout: @config.rpcs.get_aws_open_id_config.timeout,
@@ -1749,12 +1766,13 @@ module Google
1749
1766
  # Customize the options with defaults
1750
1767
  call_metadata = @config.rpcs.get_aws_json_web_keys.metadata.to_h
1751
1768
 
1752
- # Set x-goog-api-client and x-goog-user-project headers
1769
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1753
1770
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1754
1771
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1755
1772
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
1756
1773
  transports_version_send: [:rest]
1757
1774
 
1775
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1758
1776
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1759
1777
 
1760
1778
  options.apply_defaults timeout: @config.rpcs.get_aws_json_web_keys.timeout,
@@ -1836,12 +1854,13 @@ module Google
1836
1854
  # Customize the options with defaults
1837
1855
  call_metadata = @config.rpcs.get_aws_server_config.metadata.to_h
1838
1856
 
1839
- # Set x-goog-api-client and x-goog-user-project headers
1857
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1840
1858
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1841
1859
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1842
1860
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
1843
1861
  transports_version_send: [:rest]
1844
1862
 
1863
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1845
1864
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1846
1865
 
1847
1866
  options.apply_defaults timeout: @config.rpcs.get_aws_server_config.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "gkemulticloud.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,