google-cloud-container-v1beta1 0.38.0 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffdd7284d0f74a781c21c723d66f451d9f3276b64d5da8f12bb510eddfbca9d6
4
- data.tar.gz: c87a82928f305c74cd756b81b0d16d363723767b8ea325026e3f4138dfba7f8f
3
+ metadata.gz: 6f2f9b484e78ce5fa439e4d54b4a6ae17281542b29e397b98981a97fa04ef853
4
+ data.tar.gz: 185d4f19700ed54f77bc589e2d36e214e419fe6ad5187f485a8f3c5d7dc0a910
5
5
  SHA512:
6
- metadata.gz: c2844a537c817c060ff5590b657874ccd5d196d5c8a006b14332512de60f2ed3bef6db7bd053aee582903c44f408ae45eaa1a7ec7393e5deba95be3693b97dd9
7
- data.tar.gz: f42b3b0f3839e2a9fd38cb19f2e31b60a73dc8c502bf0b183a8712e36d96c0d9e29b7bc9d9e27f98e04e32a17c675f2e69ab4b5669bfe74202af2328e3e90f06
6
+ metadata.gz: 2f10ce3f623582df514c977fad0b5d93776d614d0992310e6f2e120f17e7b6ead208a7b3e32b42c4f7036aece9b4f280f33056defd0c0790c6040ee5e9af5e4e
7
+ data.tar.gz: 2b8aa756bd246de8d79af05f29b9b3174e0dcf6c9d2279c6f651e54ed6f7f6bddab06b115ed79df1a5e8e48be354a691be6c5cc9598b4e9fed0d9bc856ad1def
@@ -30,6 +30,9 @@ module Google
30
30
  # Google Kubernetes Engine Cluster Manager v1beta1
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "container.$UNIVERSE_DOMAIN$"
35
38
 
@@ -324,10 +327,11 @@ module Google
324
327
  # Customize the options with defaults
325
328
  metadata = @config.rpcs.list_clusters.metadata.to_h
326
329
 
327
- # Set x-goog-api-client and x-goog-user-project headers
330
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
328
331
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
329
332
  lib_name: @config.lib_name, lib_version: @config.lib_version,
330
333
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
334
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
331
335
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
332
336
 
333
337
  header_params = {}
@@ -422,10 +426,11 @@ module Google
422
426
  # Customize the options with defaults
423
427
  metadata = @config.rpcs.get_cluster.metadata.to_h
424
428
 
425
- # Set x-goog-api-client and x-goog-user-project headers
429
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
426
430
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
427
431
  lib_name: @config.lib_name, lib_version: @config.lib_version,
428
432
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
433
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
429
434
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
430
435
 
431
436
  header_params = {}
@@ -533,10 +538,11 @@ module Google
533
538
  # Customize the options with defaults
534
539
  metadata = @config.rpcs.create_cluster.metadata.to_h
535
540
 
536
- # Set x-goog-api-client and x-goog-user-project headers
541
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
537
542
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
538
543
  lib_name: @config.lib_name, lib_version: @config.lib_version,
539
544
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
545
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
540
546
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
541
547
 
542
548
  header_params = {}
@@ -633,10 +639,11 @@ module Google
633
639
  # Customize the options with defaults
634
640
  metadata = @config.rpcs.update_cluster.metadata.to_h
635
641
 
636
- # Set x-goog-api-client and x-goog-user-project headers
642
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
637
643
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
638
644
  lib_name: @config.lib_name, lib_version: @config.lib_version,
639
645
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
646
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
640
647
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
641
648
 
642
649
  header_params = {}
@@ -676,7 +683,7 @@ module Google
676
683
  # @param options [::Gapic::CallOptions, ::Hash]
677
684
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
678
685
  #
679
- # @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, locations: nil, workload_metadata_config: nil, name: nil, upgrade_settings: nil, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, node_network_config: nil, gcfs_config: nil, confidential_nodes: nil, gvnic: nil, etag: nil, fast_socket: nil, logging_config: nil, resource_labels: nil, windows_node_config: nil, machine_type: nil, disk_type: nil, disk_size_gb: nil, resource_manager_tags: nil, queued_provisioning: nil)
686
+ # @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, locations: nil, workload_metadata_config: nil, name: nil, upgrade_settings: nil, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, node_network_config: nil, gcfs_config: nil, confidential_nodes: nil, gvnic: nil, etag: nil, fast_socket: nil, logging_config: nil, resource_labels: nil, windows_node_config: nil, accelerators: nil, machine_type: nil, disk_type: nil, disk_size_gb: nil, resource_manager_tags: nil, containerd_config: nil, queued_provisioning: nil)
680
687
  # Pass arguments to `update_node_pool` via keyword arguments. Note that at
681
688
  # least one keyword argument is required. To specify no parameters, or to keep all
682
689
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -764,6 +771,10 @@ module Google
764
771
  # Google Compute Engine resources.
765
772
  # @param windows_node_config [::Google::Cloud::Container::V1beta1::WindowsNodeConfig, ::Hash]
766
773
  # Parameters that can be configured on Windows nodes.
774
+ # @param accelerators [::Array<::Google::Cloud::Container::V1beta1::AcceleratorConfig, ::Hash>]
775
+ # A list of hardware accelerators to be attached to each node.
776
+ # See https://cloud.google.com/compute/docs/gpus for more information about
777
+ # support for GPUs.
767
778
  # @param machine_type [::String]
768
779
  # Optional. The desired machine type for nodes in the node pool.
769
780
  # Initiates an upgrade operation that migrates the nodes in the
@@ -780,6 +791,10 @@ module Google
780
791
  # Desired resource manager tag keys and values to be attached to the nodes
781
792
  # for managing Compute Engine firewalls using Network Firewall Policies.
782
793
  # Existing tags will be replaced with new values.
794
+ # @param containerd_config [::Google::Cloud::Container::V1beta1::ContainerdConfig, ::Hash]
795
+ # The desired containerd config for nodes in the node pool.
796
+ # Initiates an upgrade operation that recreates the nodes with the new
797
+ # config.
783
798
  # @param queued_provisioning [::Google::Cloud::Container::V1beta1::NodePool::QueuedProvisioning, ::Hash]
784
799
  # Specifies the configuration of queued provisioning.
785
800
  #
@@ -817,10 +832,11 @@ module Google
817
832
  # Customize the options with defaults
818
833
  metadata = @config.rpcs.update_node_pool.metadata.to_h
819
834
 
820
- # Set x-goog-api-client and x-goog-user-project headers
835
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
821
836
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
822
837
  lib_name: @config.lib_name, lib_version: @config.lib_version,
823
838
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
839
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
824
840
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
825
841
 
826
842
  header_params = {}
@@ -921,10 +937,11 @@ module Google
921
937
  # Customize the options with defaults
922
938
  metadata = @config.rpcs.set_node_pool_autoscaling.metadata.to_h
923
939
 
924
- # Set x-goog-api-client and x-goog-user-project headers
940
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
925
941
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
926
942
  lib_name: @config.lib_name, lib_version: @config.lib_version,
927
943
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
944
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
928
945
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
929
946
 
930
947
  header_params = {}
@@ -1031,10 +1048,11 @@ module Google
1031
1048
  # Customize the options with defaults
1032
1049
  metadata = @config.rpcs.set_logging_service.metadata.to_h
1033
1050
 
1034
- # Set x-goog-api-client and x-goog-user-project headers
1051
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1035
1052
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1036
1053
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1037
1054
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1055
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1038
1056
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1039
1057
 
1040
1058
  header_params = {}
@@ -1141,10 +1159,11 @@ module Google
1141
1159
  # Customize the options with defaults
1142
1160
  metadata = @config.rpcs.set_monitoring_service.metadata.to_h
1143
1161
 
1144
- # Set x-goog-api-client and x-goog-user-project headers
1162
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1145
1163
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1146
1164
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1147
1165
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1166
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1148
1167
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1149
1168
 
1150
1169
  header_params = {}
@@ -1242,10 +1261,11 @@ module Google
1242
1261
  # Customize the options with defaults
1243
1262
  metadata = @config.rpcs.set_addons_config.metadata.to_h
1244
1263
 
1245
- # Set x-goog-api-client and x-goog-user-project headers
1264
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1246
1265
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1247
1266
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1248
1267
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1268
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1249
1269
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1250
1270
 
1251
1271
  header_params = {}
@@ -1353,10 +1373,11 @@ module Google
1353
1373
  # Customize the options with defaults
1354
1374
  metadata = @config.rpcs.set_locations.metadata.to_h
1355
1375
 
1356
- # Set x-goog-api-client and x-goog-user-project headers
1376
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1357
1377
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1358
1378
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1359
1379
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1380
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1360
1381
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1361
1382
 
1362
1383
  header_params = {}
@@ -1462,10 +1483,11 @@ module Google
1462
1483
  # Customize the options with defaults
1463
1484
  metadata = @config.rpcs.update_master.metadata.to_h
1464
1485
 
1465
- # Set x-goog-api-client and x-goog-user-project headers
1486
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1466
1487
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1467
1488
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1468
1489
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1490
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1469
1491
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1470
1492
 
1471
1493
  header_params = {}
@@ -1566,10 +1588,11 @@ module Google
1566
1588
  # Customize the options with defaults
1567
1589
  metadata = @config.rpcs.set_master_auth.metadata.to_h
1568
1590
 
1569
- # Set x-goog-api-client and x-goog-user-project headers
1591
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1570
1592
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1571
1593
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1572
1594
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1595
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1573
1596
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1574
1597
 
1575
1598
  header_params = {}
@@ -1672,10 +1695,11 @@ module Google
1672
1695
  # Customize the options with defaults
1673
1696
  metadata = @config.rpcs.delete_cluster.metadata.to_h
1674
1697
 
1675
- # Set x-goog-api-client and x-goog-user-project headers
1698
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1676
1699
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1677
1700
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1678
1701
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1702
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1679
1703
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1680
1704
 
1681
1705
  header_params = {}
@@ -1768,10 +1792,11 @@ module Google
1768
1792
  # Customize the options with defaults
1769
1793
  metadata = @config.rpcs.list_operations.metadata.to_h
1770
1794
 
1771
- # Set x-goog-api-client and x-goog-user-project headers
1795
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1772
1796
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1773
1797
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1774
1798
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1799
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1775
1800
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1776
1801
 
1777
1802
  header_params = {}
@@ -1866,10 +1891,11 @@ module Google
1866
1891
  # Customize the options with defaults
1867
1892
  metadata = @config.rpcs.get_operation.metadata.to_h
1868
1893
 
1869
- # Set x-goog-api-client and x-goog-user-project headers
1894
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1870
1895
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1871
1896
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1872
1897
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1898
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1873
1899
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1874
1900
 
1875
1901
  header_params = {}
@@ -1964,10 +1990,11 @@ module Google
1964
1990
  # Customize the options with defaults
1965
1991
  metadata = @config.rpcs.cancel_operation.metadata.to_h
1966
1992
 
1967
- # Set x-goog-api-client and x-goog-user-project headers
1993
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1968
1994
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1969
1995
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1970
1996
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1997
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1971
1998
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1972
1999
 
1973
2000
  header_params = {}
@@ -2059,10 +2086,11 @@ module Google
2059
2086
  # Customize the options with defaults
2060
2087
  metadata = @config.rpcs.get_server_config.metadata.to_h
2061
2088
 
2062
- # Set x-goog-api-client and x-goog-user-project headers
2089
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2063
2090
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2064
2091
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2065
2092
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2093
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2066
2094
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2067
2095
 
2068
2096
  header_params = {}
@@ -2146,10 +2174,11 @@ module Google
2146
2174
  # Customize the options with defaults
2147
2175
  metadata = @config.rpcs.get_json_web_keys.metadata.to_h
2148
2176
 
2149
- # Set x-goog-api-client and x-goog-user-project headers
2177
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2150
2178
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2151
2179
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2152
2180
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2181
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2153
2182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2154
2183
 
2155
2184
  header_params = {}
@@ -2244,10 +2273,11 @@ module Google
2244
2273
  # Customize the options with defaults
2245
2274
  metadata = @config.rpcs.list_node_pools.metadata.to_h
2246
2275
 
2247
- # Set x-goog-api-client and x-goog-user-project headers
2276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2248
2277
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2249
2278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2250
2279
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2280
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2251
2281
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2252
2282
 
2253
2283
  header_params = {}
@@ -2346,10 +2376,11 @@ module Google
2346
2376
  # Customize the options with defaults
2347
2377
  metadata = @config.rpcs.get_node_pool.metadata.to_h
2348
2378
 
2349
- # Set x-goog-api-client and x-goog-user-project headers
2379
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2350
2380
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2351
2381
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2352
2382
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2383
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2353
2384
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2354
2385
 
2355
2386
  header_params = {}
@@ -2447,10 +2478,11 @@ module Google
2447
2478
  # Customize the options with defaults
2448
2479
  metadata = @config.rpcs.create_node_pool.metadata.to_h
2449
2480
 
2450
- # Set x-goog-api-client and x-goog-user-project headers
2481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2451
2482
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2452
2483
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2453
2484
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2485
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2454
2486
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2455
2487
 
2456
2488
  header_params = {}
@@ -2549,10 +2581,11 @@ module Google
2549
2581
  # Customize the options with defaults
2550
2582
  metadata = @config.rpcs.delete_node_pool.metadata.to_h
2551
2583
 
2552
- # Set x-goog-api-client and x-goog-user-project headers
2584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2553
2585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2554
2586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2555
2587
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2556
2589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2557
2590
 
2558
2591
  header_params = {}
@@ -2637,10 +2670,11 @@ module Google
2637
2670
  # Customize the options with defaults
2638
2671
  metadata = @config.rpcs.complete_node_pool_upgrade.metadata.to_h
2639
2672
 
2640
- # Set x-goog-api-client and x-goog-user-project headers
2673
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2641
2674
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2642
2675
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2643
2676
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2677
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2644
2678
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2645
2679
 
2646
2680
  header_params = {}
@@ -2743,10 +2777,11 @@ module Google
2743
2777
  # Customize the options with defaults
2744
2778
  metadata = @config.rpcs.rollback_node_pool_upgrade.metadata.to_h
2745
2779
 
2746
- # Set x-goog-api-client and x-goog-user-project headers
2780
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2747
2781
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2748
2782
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2749
2783
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2784
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2750
2785
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2751
2786
 
2752
2787
  header_params = {}
@@ -2847,10 +2882,11 @@ module Google
2847
2882
  # Customize the options with defaults
2848
2883
  metadata = @config.rpcs.set_node_pool_management.metadata.to_h
2849
2884
 
2850
- # Set x-goog-api-client and x-goog-user-project headers
2885
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2851
2886
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2852
2887
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2853
2888
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2889
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2854
2890
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2855
2891
 
2856
2892
  header_params = {}
@@ -2954,10 +2990,11 @@ module Google
2954
2990
  # Customize the options with defaults
2955
2991
  metadata = @config.rpcs.set_labels.metadata.to_h
2956
2992
 
2957
- # Set x-goog-api-client and x-goog-user-project headers
2993
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2958
2994
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2959
2995
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2960
2996
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2997
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2961
2998
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2962
2999
 
2963
3000
  header_params = {}
@@ -3054,10 +3091,11 @@ module Google
3054
3091
  # Customize the options with defaults
3055
3092
  metadata = @config.rpcs.set_legacy_abac.metadata.to_h
3056
3093
 
3057
- # Set x-goog-api-client and x-goog-user-project headers
3094
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3058
3095
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3059
3096
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3060
3097
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
3098
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3061
3099
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3062
3100
 
3063
3101
  header_params = {}
@@ -3154,10 +3192,11 @@ module Google
3154
3192
  # Customize the options with defaults
3155
3193
  metadata = @config.rpcs.start_ip_rotation.metadata.to_h
3156
3194
 
3157
- # Set x-goog-api-client and x-goog-user-project headers
3195
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3158
3196
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3159
3197
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3160
3198
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
3199
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3161
3200
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3162
3201
 
3163
3202
  header_params = {}
@@ -3252,10 +3291,11 @@ module Google
3252
3291
  # Customize the options with defaults
3253
3292
  metadata = @config.rpcs.complete_ip_rotation.metadata.to_h
3254
3293
 
3255
- # Set x-goog-api-client and x-goog-user-project headers
3294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3256
3295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3257
3296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3258
3297
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
3298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3259
3299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3260
3300
 
3261
3301
  header_params = {}
@@ -3358,10 +3398,11 @@ module Google
3358
3398
  # Customize the options with defaults
3359
3399
  metadata = @config.rpcs.set_node_pool_size.metadata.to_h
3360
3400
 
3361
- # Set x-goog-api-client and x-goog-user-project headers
3401
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3362
3402
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3363
3403
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3364
3404
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
3405
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3365
3406
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3366
3407
 
3367
3408
  header_params = {}
@@ -3458,10 +3499,11 @@ module Google
3458
3499
  # Customize the options with defaults
3459
3500
  metadata = @config.rpcs.set_network_policy.metadata.to_h
3460
3501
 
3461
- # Set x-goog-api-client and x-goog-user-project headers
3502
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3462
3503
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3463
3504
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3464
3505
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
3506
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3465
3507
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3466
3508
 
3467
3509
  header_params = {}
@@ -3557,10 +3599,11 @@ module Google
3557
3599
  # Customize the options with defaults
3558
3600
  metadata = @config.rpcs.set_maintenance_policy.metadata.to_h
3559
3601
 
3560
- # Set x-goog-api-client and x-goog-user-project headers
3602
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3561
3603
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3562
3604
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3563
3605
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
3606
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3564
3607
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3565
3608
 
3566
3609
  header_params = {}
@@ -3660,10 +3703,11 @@ module Google
3660
3703
  # Customize the options with defaults
3661
3704
  metadata = @config.rpcs.list_usable_subnetworks.metadata.to_h
3662
3705
 
3663
- # Set x-goog-api-client and x-goog-user-project headers
3706
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3664
3707
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3665
3708
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3666
3709
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
3710
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3667
3711
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3668
3712
 
3669
3713
  header_params = {}
@@ -3748,10 +3792,11 @@ module Google
3748
3792
  # Customize the options with defaults
3749
3793
  metadata = @config.rpcs.check_autopilot_compatibility.metadata.to_h
3750
3794
 
3751
- # Set x-goog-api-client and x-goog-user-project headers
3795
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3752
3796
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3753
3797
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3754
3798
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
3799
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3755
3800
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3756
3801
 
3757
3802
  header_params = {}
@@ -3834,10 +3879,11 @@ module Google
3834
3879
  # Customize the options with defaults
3835
3880
  metadata = @config.rpcs.list_locations.metadata.to_h
3836
3881
 
3837
- # Set x-goog-api-client and x-goog-user-project headers
3882
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3838
3883
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3839
3884
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3840
3885
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
3886
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3841
3887
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3842
3888
 
3843
3889
  header_params = {}
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Container
23
23
  module V1beta1
24
- VERSION = "0.38.0"
24
+ VERSION = "0.40.0"
25
25
  end
26
26
  end
27
27
  end