google-cloud-container-v1beta1 0.46.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/container/v1beta1/cluster_manager/client.rb +293 -92
- data/lib/google/cloud/container/v1beta1/cluster_manager/paths.rb +42 -0
- data/lib/google/cloud/container/v1beta1/version.rb +1 -1
- data/lib/google/container/v1beta1/cluster_service_pb.rb +35 -1
- data/lib/google/container/v1beta1/cluster_service_services_pb.rb +6 -0
- data/proto_docs/google/container/v1beta1/cluster_service.rb +1104 -120
- metadata +2 -2
@@ -300,11 +300,11 @@ module Google
|
|
300
300
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
301
301
|
#
|
302
302
|
# @param project_id [::String]
|
303
|
-
#
|
303
|
+
# Deprecated. The Google Developers Console [project ID or project
|
304
304
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
305
305
|
# This field has been deprecated and replaced by the parent field.
|
306
306
|
# @param zone [::String]
|
307
|
-
#
|
307
|
+
# Deprecated. The name of the Google Compute Engine
|
308
308
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
309
309
|
# cluster resides, or "-" for all zones. This field has been deprecated and
|
310
310
|
# replaced by the parent field.
|
@@ -396,16 +396,16 @@ module Google
|
|
396
396
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
397
397
|
#
|
398
398
|
# @param project_id [::String]
|
399
|
-
#
|
399
|
+
# Deprecated. The Google Developers Console [project ID or project
|
400
400
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
401
401
|
# This field has been deprecated and replaced by the name field.
|
402
402
|
# @param zone [::String]
|
403
|
-
#
|
403
|
+
# Deprecated. The name of the Google Compute Engine
|
404
404
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
405
405
|
# cluster resides. This field has been deprecated and replaced by the name
|
406
406
|
# field.
|
407
407
|
# @param cluster_id [::String]
|
408
|
-
#
|
408
|
+
# Deprecated. The name of the cluster to retrieve.
|
409
409
|
# This field has been deprecated and replaced by the name field.
|
410
410
|
# @param name [::String]
|
411
411
|
# The name (project, location, cluster) of the cluster to retrieve.
|
@@ -507,11 +507,11 @@ module Google
|
|
507
507
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
508
508
|
#
|
509
509
|
# @param project_id [::String]
|
510
|
-
#
|
510
|
+
# Deprecated. The Google Developers Console [project ID or project
|
511
511
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
512
512
|
# This field has been deprecated and replaced by the parent field.
|
513
513
|
# @param zone [::String]
|
514
|
-
#
|
514
|
+
# Deprecated. The name of the Google Compute Engine
|
515
515
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
516
516
|
# cluster resides. This field has been deprecated and replaced by the parent
|
517
517
|
# field.
|
@@ -605,16 +605,16 @@ module Google
|
|
605
605
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
606
606
|
#
|
607
607
|
# @param project_id [::String]
|
608
|
-
#
|
608
|
+
# Deprecated. The Google Developers Console [project ID or project
|
609
609
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
610
610
|
# This field has been deprecated and replaced by the name field.
|
611
611
|
# @param zone [::String]
|
612
|
-
#
|
612
|
+
# Deprecated. The name of the Google Compute Engine
|
613
613
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
614
614
|
# cluster resides. This field has been deprecated and replaced by the name
|
615
615
|
# field.
|
616
616
|
# @param cluster_id [::String]
|
617
|
-
#
|
617
|
+
# Deprecated. The name of the cluster to upgrade.
|
618
618
|
# This field has been deprecated and replaced by the name field.
|
619
619
|
# @param update [::Google::Cloud::Container::V1beta1::ClusterUpdate, ::Hash]
|
620
620
|
# Required. A description of the update.
|
@@ -699,25 +699,25 @@ module Google
|
|
699
699
|
# @param options [::Gapic::CallOptions, ::Hash]
|
700
700
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
701
701
|
#
|
702
|
-
# @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)
|
702
|
+
# @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, storage_pools: nil, max_run_duration: nil, flex_start: nil)
|
703
703
|
# Pass arguments to `update_node_pool` via keyword arguments. Note that at
|
704
704
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
705
705
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
706
706
|
#
|
707
707
|
# @param project_id [::String]
|
708
|
-
#
|
708
|
+
# Deprecated. The Google Developers Console [project ID or project
|
709
709
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
710
710
|
# This field has been deprecated and replaced by the name field.
|
711
711
|
# @param zone [::String]
|
712
|
-
#
|
712
|
+
# Deprecated. The name of the Google Compute Engine
|
713
713
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
714
714
|
# cluster resides. This field has been deprecated and replaced by the name
|
715
715
|
# field.
|
716
716
|
# @param cluster_id [::String]
|
717
|
-
#
|
717
|
+
# Deprecated. The name of the cluster to upgrade.
|
718
718
|
# This field has been deprecated and replaced by the name field.
|
719
719
|
# @param node_pool_id [::String]
|
720
|
-
#
|
720
|
+
# Deprecated. The name of the node pool to upgrade.
|
721
721
|
# This field has been deprecated and replaced by the name field.
|
722
722
|
# @param node_version [::String]
|
723
723
|
# Required. The Kubernetes version to change the nodes to (typically an
|
@@ -813,6 +813,14 @@ module Google
|
|
813
813
|
# config.
|
814
814
|
# @param queued_provisioning [::Google::Cloud::Container::V1beta1::NodePool::QueuedProvisioning, ::Hash]
|
815
815
|
# Specifies the configuration of queued provisioning.
|
816
|
+
# @param storage_pools [::Array<::String>]
|
817
|
+
# List of Storage Pools where boot disks are provisioned.
|
818
|
+
# Existing Storage Pools will be replaced with storage-pools.
|
819
|
+
# @param max_run_duration [::Google::Protobuf::Duration, ::Hash]
|
820
|
+
# The maximum duration for the nodes to exist.
|
821
|
+
# If unspecified, the nodes can exist indefinitely.
|
822
|
+
# @param flex_start [::Boolean]
|
823
|
+
# Flex Start flag for enabling Flex Start VM.
|
816
824
|
#
|
817
825
|
# @yield [response, operation] Access the result along with the RPC operation
|
818
826
|
# @yieldparam response [::Google::Cloud::Container::V1beta1::Operation]
|
@@ -897,19 +905,19 @@ module Google
|
|
897
905
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
898
906
|
#
|
899
907
|
# @param project_id [::String]
|
900
|
-
#
|
908
|
+
# Deprecated. The Google Developers Console [project ID or project
|
901
909
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
902
910
|
# This field has been deprecated and replaced by the name field.
|
903
911
|
# @param zone [::String]
|
904
|
-
#
|
912
|
+
# Deprecated. The name of the Google Compute Engine
|
905
913
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
906
914
|
# cluster resides. This field has been deprecated and replaced by the name
|
907
915
|
# field.
|
908
916
|
# @param cluster_id [::String]
|
909
|
-
#
|
917
|
+
# Deprecated. The name of the cluster to upgrade.
|
910
918
|
# This field has been deprecated and replaced by the name field.
|
911
919
|
# @param node_pool_id [::String]
|
912
|
-
#
|
920
|
+
# Deprecated. The name of the node pool to upgrade.
|
913
921
|
# This field has been deprecated and replaced by the name field.
|
914
922
|
# @param autoscaling [::Google::Cloud::Container::V1beta1::NodePoolAutoscaling, ::Hash]
|
915
923
|
# Required. Autoscaling configuration for the node pool.
|
@@ -1001,16 +1009,16 @@ module Google
|
|
1001
1009
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1002
1010
|
#
|
1003
1011
|
# @param project_id [::String]
|
1004
|
-
#
|
1012
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1005
1013
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1006
1014
|
# This field has been deprecated and replaced by the name field.
|
1007
1015
|
# @param zone [::String]
|
1008
|
-
#
|
1016
|
+
# Deprecated. The name of the Google Compute Engine
|
1009
1017
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1010
1018
|
# cluster resides. This field has been deprecated and replaced by the name
|
1011
1019
|
# field.
|
1012
1020
|
# @param cluster_id [::String]
|
1013
|
-
#
|
1021
|
+
# Deprecated. The name of the cluster to upgrade.
|
1014
1022
|
# This field has been deprecated and replaced by the name field.
|
1015
1023
|
# @param logging_service [::String]
|
1016
1024
|
# Required. The logging service the cluster should use to write logs.
|
@@ -1111,22 +1119,22 @@ module Google
|
|
1111
1119
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1112
1120
|
#
|
1113
1121
|
# @param project_id [::String]
|
1114
|
-
#
|
1122
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1115
1123
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1116
1124
|
# This field has been deprecated and replaced by the name field.
|
1117
1125
|
# @param zone [::String]
|
1118
|
-
#
|
1126
|
+
# Deprecated. The name of the Google Compute Engine
|
1119
1127
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1120
1128
|
# cluster resides. This field has been deprecated and replaced by the name
|
1121
1129
|
# field.
|
1122
1130
|
# @param cluster_id [::String]
|
1123
|
-
#
|
1131
|
+
# Deprecated. The name of the cluster to upgrade.
|
1124
1132
|
# This field has been deprecated and replaced by the name field.
|
1125
1133
|
# @param monitoring_service [::String]
|
1126
1134
|
# Required. The monitoring service the cluster should use to write metrics.
|
1127
1135
|
# Currently available options:
|
1128
1136
|
#
|
1129
|
-
# *
|
1137
|
+
# * `monitoring.googleapis.com/kubernetes` - The Cloud Monitoring
|
1130
1138
|
# service with a Kubernetes-native resource model
|
1131
1139
|
# * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
|
1132
1140
|
# longer available as of GKE 1.15).
|
@@ -1221,16 +1229,16 @@ module Google
|
|
1221
1229
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1222
1230
|
#
|
1223
1231
|
# @param project_id [::String]
|
1224
|
-
#
|
1232
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1225
1233
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1226
1234
|
# This field has been deprecated and replaced by the name field.
|
1227
1235
|
# @param zone [::String]
|
1228
|
-
#
|
1236
|
+
# Deprecated. The name of the Google Compute Engine
|
1229
1237
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1230
1238
|
# cluster resides. This field has been deprecated and replaced by the name
|
1231
1239
|
# field.
|
1232
1240
|
# @param cluster_id [::String]
|
1233
|
-
#
|
1241
|
+
# Deprecated. The name of the cluster to upgrade.
|
1234
1242
|
# This field has been deprecated and replaced by the name field.
|
1235
1243
|
# @param addons_config [::Google::Cloud::Container::V1beta1::AddonsConfig, ::Hash]
|
1236
1244
|
# Required. The desired configurations for the various addons available to
|
@@ -1327,16 +1335,16 @@ module Google
|
|
1327
1335
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1328
1336
|
#
|
1329
1337
|
# @param project_id [::String]
|
1330
|
-
#
|
1338
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1331
1339
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1332
1340
|
# This field has been deprecated and replaced by the name field.
|
1333
1341
|
# @param zone [::String]
|
1334
|
-
#
|
1342
|
+
# Deprecated. The name of the Google Compute Engine
|
1335
1343
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1336
1344
|
# cluster resides. This field has been deprecated and replaced by the name
|
1337
1345
|
# field.
|
1338
1346
|
# @param cluster_id [::String]
|
1339
|
-
#
|
1347
|
+
# Deprecated. The name of the cluster to upgrade.
|
1340
1348
|
# This field has been deprecated and replaced by the name field.
|
1341
1349
|
# @param locations [::Array<::String>]
|
1342
1350
|
# Required. The desired list of Google Compute Engine
|
@@ -1433,16 +1441,16 @@ module Google
|
|
1433
1441
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1434
1442
|
#
|
1435
1443
|
# @param project_id [::String]
|
1436
|
-
#
|
1444
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1437
1445
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1438
1446
|
# This field has been deprecated and replaced by the name field.
|
1439
1447
|
# @param zone [::String]
|
1440
|
-
#
|
1448
|
+
# Deprecated. The name of the Google Compute Engine
|
1441
1449
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1442
1450
|
# cluster resides. This field has been deprecated and replaced by the name
|
1443
1451
|
# field.
|
1444
1452
|
# @param cluster_id [::String]
|
1445
|
-
#
|
1453
|
+
# Deprecated. The name of the cluster to upgrade.
|
1446
1454
|
# This field has been deprecated and replaced by the name field.
|
1447
1455
|
# @param master_version [::String]
|
1448
1456
|
# Required. The Kubernetes version to change the master to.
|
@@ -1544,16 +1552,16 @@ module Google
|
|
1544
1552
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1545
1553
|
#
|
1546
1554
|
# @param project_id [::String]
|
1547
|
-
#
|
1555
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1548
1556
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1549
1557
|
# This field has been deprecated and replaced by the name field.
|
1550
1558
|
# @param zone [::String]
|
1551
|
-
#
|
1559
|
+
# Deprecated. The name of the Google Compute Engine
|
1552
1560
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1553
1561
|
# cluster resides. This field has been deprecated and replaced by the name
|
1554
1562
|
# field.
|
1555
1563
|
# @param cluster_id [::String]
|
1556
|
-
#
|
1564
|
+
# Deprecated. The name of the cluster to upgrade.
|
1557
1565
|
# This field has been deprecated and replaced by the name field.
|
1558
1566
|
# @param action [::Google::Cloud::Container::V1beta1::SetMasterAuthRequest::Action]
|
1559
1567
|
# Required. The exact form of action to be taken on the master auth.
|
@@ -1654,16 +1662,16 @@ module Google
|
|
1654
1662
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1655
1663
|
#
|
1656
1664
|
# @param project_id [::String]
|
1657
|
-
#
|
1665
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1658
1666
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1659
1667
|
# This field has been deprecated and replaced by the name field.
|
1660
1668
|
# @param zone [::String]
|
1661
|
-
#
|
1669
|
+
# Deprecated. The name of the Google Compute Engine
|
1662
1670
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1663
1671
|
# cluster resides. This field has been deprecated and replaced by the name
|
1664
1672
|
# field.
|
1665
1673
|
# @param cluster_id [::String]
|
1666
|
-
#
|
1674
|
+
# Deprecated. The name of the cluster to delete.
|
1667
1675
|
# This field has been deprecated and replaced by the name field.
|
1668
1676
|
# @param name [::String]
|
1669
1677
|
# The name (project, location, cluster) of the cluster to delete.
|
@@ -1752,11 +1760,11 @@ module Google
|
|
1752
1760
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1753
1761
|
#
|
1754
1762
|
# @param project_id [::String]
|
1755
|
-
#
|
1763
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1756
1764
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1757
1765
|
# This field has been deprecated and replaced by the parent field.
|
1758
1766
|
# @param zone [::String]
|
1759
|
-
#
|
1767
|
+
# Deprecated. The name of the Google Compute Engine
|
1760
1768
|
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
1761
1769
|
# operations for, or `-` for all zones. This field has been deprecated and
|
1762
1770
|
# replaced by the parent field.
|
@@ -1848,16 +1856,16 @@ module Google
|
|
1848
1856
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1849
1857
|
#
|
1850
1858
|
# @param project_id [::String]
|
1851
|
-
#
|
1859
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1852
1860
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1853
1861
|
# This field has been deprecated and replaced by the name field.
|
1854
1862
|
# @param zone [::String]
|
1855
|
-
#
|
1863
|
+
# Deprecated. The name of the Google Compute Engine
|
1856
1864
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1857
1865
|
# cluster resides. This field has been deprecated and replaced by the name
|
1858
1866
|
# field.
|
1859
1867
|
# @param operation_id [::String]
|
1860
|
-
#
|
1868
|
+
# Deprecated. The server-assigned `name` of the operation.
|
1861
1869
|
# This field has been deprecated and replaced by the name field.
|
1862
1870
|
# @param name [::String]
|
1863
1871
|
# The name (project, location, operation id) of the operation to get.
|
@@ -1946,16 +1954,16 @@ module Google
|
|
1946
1954
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1947
1955
|
#
|
1948
1956
|
# @param project_id [::String]
|
1949
|
-
#
|
1957
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1950
1958
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1951
1959
|
# This field has been deprecated and replaced by the name field.
|
1952
1960
|
# @param zone [::String]
|
1953
|
-
#
|
1961
|
+
# Deprecated. The name of the Google Compute Engine
|
1954
1962
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1955
1963
|
# operation resides. This field has been deprecated and replaced by the name
|
1956
1964
|
# field.
|
1957
1965
|
# @param operation_id [::String]
|
1958
|
-
#
|
1966
|
+
# Deprecated. The server-assigned `name` of the operation.
|
1959
1967
|
# This field has been deprecated and replaced by the name field.
|
1960
1968
|
# @param name [::String]
|
1961
1969
|
# The name (project, location, operation id) of the operation to cancel.
|
@@ -2044,11 +2052,11 @@ module Google
|
|
2044
2052
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2045
2053
|
#
|
2046
2054
|
# @param project_id [::String]
|
2047
|
-
#
|
2055
|
+
# Deprecated. The Google Developers Console [project ID or project
|
2048
2056
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2049
2057
|
# This field has been deprecated and replaced by the name field.
|
2050
2058
|
# @param zone [::String]
|
2051
|
-
#
|
2059
|
+
# Deprecated. The name of the Google Compute Engine
|
2052
2060
|
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
2053
2061
|
# operations for. This field has been deprecated and replaced by the name
|
2054
2062
|
# field.
|
@@ -2226,16 +2234,16 @@ module Google
|
|
2226
2234
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2227
2235
|
#
|
2228
2236
|
# @param project_id [::String]
|
2229
|
-
#
|
2237
|
+
# Deprecated. The Google Developers Console [project ID or project
|
2230
2238
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2231
2239
|
# This field has been deprecated and replaced by the parent field.
|
2232
2240
|
# @param zone [::String]
|
2233
|
-
#
|
2241
|
+
# Deprecated. The name of the Google Compute Engine
|
2234
2242
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2235
2243
|
# cluster resides. This field has been deprecated and replaced by the parent
|
2236
2244
|
# field.
|
2237
2245
|
# @param cluster_id [::String]
|
2238
|
-
#
|
2246
|
+
# Deprecated. The name of the cluster.
|
2239
2247
|
# This field has been deprecated and replaced by the parent field.
|
2240
2248
|
# @param parent [::String]
|
2241
2249
|
# The parent (project, location, cluster name) where the node pools will be
|
@@ -2324,19 +2332,19 @@ module Google
|
|
2324
2332
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2325
2333
|
#
|
2326
2334
|
# @param project_id [::String]
|
2327
|
-
#
|
2335
|
+
# Deprecated. The Google Developers Console [project ID or project
|
2328
2336
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2329
2337
|
# This field has been deprecated and replaced by the name field.
|
2330
2338
|
# @param zone [::String]
|
2331
|
-
#
|
2339
|
+
# Deprecated. The name of the Google Compute Engine
|
2332
2340
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2333
2341
|
# cluster resides. This field has been deprecated and replaced by the name
|
2334
2342
|
# field.
|
2335
2343
|
# @param cluster_id [::String]
|
2336
|
-
#
|
2344
|
+
# Deprecated. The name of the cluster.
|
2337
2345
|
# This field has been deprecated and replaced by the name field.
|
2338
2346
|
# @param node_pool_id [::String]
|
2339
|
-
#
|
2347
|
+
# Deprecated. The name of the node pool.
|
2340
2348
|
# This field has been deprecated and replaced by the name field.
|
2341
2349
|
# @param name [::String]
|
2342
2350
|
# The name (project, location, cluster, node pool id) of the node pool to
|
@@ -2426,16 +2434,16 @@ module Google
|
|
2426
2434
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2427
2435
|
#
|
2428
2436
|
# @param project_id [::String]
|
2429
|
-
#
|
2437
|
+
# Deprecated. The Google Developers Console [project ID or project
|
2430
2438
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2431
2439
|
# This field has been deprecated and replaced by the parent field.
|
2432
2440
|
# @param zone [::String]
|
2433
|
-
#
|
2441
|
+
# Deprecated. The name of the Google Compute Engine
|
2434
2442
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2435
2443
|
# cluster resides. This field has been deprecated and replaced by the parent
|
2436
2444
|
# field.
|
2437
2445
|
# @param cluster_id [::String]
|
2438
|
-
#
|
2446
|
+
# Deprecated. The name of the cluster.
|
2439
2447
|
# This field has been deprecated and replaced by the parent field.
|
2440
2448
|
# @param node_pool [::Google::Cloud::Container::V1beta1::NodePool, ::Hash]
|
2441
2449
|
# Required. The node pool to create.
|
@@ -2527,19 +2535,19 @@ module Google
|
|
2527
2535
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2528
2536
|
#
|
2529
2537
|
# @param project_id [::String]
|
2530
|
-
#
|
2538
|
+
# Deprecated. The Google Developers Console [project ID or project
|
2531
2539
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2532
2540
|
# This field has been deprecated and replaced by the name field.
|
2533
2541
|
# @param zone [::String]
|
2534
|
-
#
|
2542
|
+
# Deprecated. The name of the Google Compute Engine
|
2535
2543
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2536
2544
|
# cluster resides. This field has been deprecated and replaced by the name
|
2537
2545
|
# field.
|
2538
2546
|
# @param cluster_id [::String]
|
2539
|
-
#
|
2547
|
+
# Deprecated. The name of the cluster.
|
2540
2548
|
# This field has been deprecated and replaced by the name field.
|
2541
2549
|
# @param node_pool_id [::String]
|
2542
|
-
#
|
2550
|
+
# Deprecated. The name of the node pool to delete.
|
2543
2551
|
# This field has been deprecated and replaced by the name field.
|
2544
2552
|
# @param name [::String]
|
2545
2553
|
# The name (project, location, cluster, node pool id) of the node pool to
|
@@ -2718,19 +2726,19 @@ module Google
|
|
2718
2726
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2719
2727
|
#
|
2720
2728
|
# @param project_id [::String]
|
2721
|
-
#
|
2729
|
+
# Deprecated. The Google Developers Console [project ID or project
|
2722
2730
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2723
2731
|
# This field has been deprecated and replaced by the name field.
|
2724
2732
|
# @param zone [::String]
|
2725
|
-
#
|
2733
|
+
# Deprecated. The name of the Google Compute Engine
|
2726
2734
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2727
2735
|
# cluster resides. This field has been deprecated and replaced by the name
|
2728
2736
|
# field.
|
2729
2737
|
# @param cluster_id [::String]
|
2730
|
-
#
|
2738
|
+
# Deprecated. The name of the cluster to rollback.
|
2731
2739
|
# This field has been deprecated and replaced by the name field.
|
2732
2740
|
# @param node_pool_id [::String]
|
2733
|
-
#
|
2741
|
+
# Deprecated. The name of the node pool to rollback.
|
2734
2742
|
# This field has been deprecated and replaced by the name field.
|
2735
2743
|
# @param name [::String]
|
2736
2744
|
# The name (project, location, cluster, node pool id) of the node poll to
|
@@ -2823,19 +2831,19 @@ module Google
|
|
2823
2831
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2824
2832
|
#
|
2825
2833
|
# @param project_id [::String]
|
2826
|
-
#
|
2834
|
+
# Deprecated. The Google Developers Console [project ID or project
|
2827
2835
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2828
2836
|
# This field has been deprecated and replaced by the name field.
|
2829
2837
|
# @param zone [::String]
|
2830
|
-
#
|
2838
|
+
# Deprecated. The name of the Google Compute Engine
|
2831
2839
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2832
2840
|
# cluster resides. This field has been deprecated and replaced by the name
|
2833
2841
|
# field.
|
2834
2842
|
# @param cluster_id [::String]
|
2835
|
-
#
|
2843
|
+
# Deprecated. The name of the cluster to update.
|
2836
2844
|
# This field has been deprecated and replaced by the name field.
|
2837
2845
|
# @param node_pool_id [::String]
|
2838
|
-
#
|
2846
|
+
# Deprecated. The name of the node pool to update.
|
2839
2847
|
# This field has been deprecated and replaced by the name field.
|
2840
2848
|
# @param management [::Google::Cloud::Container::V1beta1::NodeManagement, ::Hash]
|
2841
2849
|
# Required. NodeManagement configuration for the node pool.
|
@@ -2927,16 +2935,16 @@ module Google
|
|
2927
2935
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2928
2936
|
#
|
2929
2937
|
# @param project_id [::String]
|
2930
|
-
#
|
2938
|
+
# Deprecated. The Google Developers Console [project ID or project
|
2931
2939
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2932
2940
|
# This field has been deprecated and replaced by the name field.
|
2933
2941
|
# @param zone [::String]
|
2934
|
-
#
|
2942
|
+
# Deprecated. The name of the Google Compute Engine
|
2935
2943
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2936
2944
|
# cluster resides. This field has been deprecated and replaced by the name
|
2937
2945
|
# field.
|
2938
2946
|
# @param cluster_id [::String]
|
2939
|
-
#
|
2947
|
+
# Deprecated. The name of the cluster.
|
2940
2948
|
# This field has been deprecated and replaced by the name field.
|
2941
2949
|
# @param resource_labels [::Hash{::String => ::String}]
|
2942
2950
|
# Required. The labels to set for that cluster.
|
@@ -3034,16 +3042,16 @@ module Google
|
|
3034
3042
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3035
3043
|
#
|
3036
3044
|
# @param project_id [::String]
|
3037
|
-
#
|
3045
|
+
# Deprecated. The Google Developers Console [project ID or project
|
3038
3046
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
3039
3047
|
# This field has been deprecated and replaced by the name field.
|
3040
3048
|
# @param zone [::String]
|
3041
|
-
#
|
3049
|
+
# Deprecated. The name of the Google Compute Engine
|
3042
3050
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
3043
3051
|
# cluster resides. This field has been deprecated and replaced by the name
|
3044
3052
|
# field.
|
3045
3053
|
# @param cluster_id [::String]
|
3046
|
-
#
|
3054
|
+
# Deprecated. The name of the cluster to update.
|
3047
3055
|
# This field has been deprecated and replaced by the name field.
|
3048
3056
|
# @param enabled [::Boolean]
|
3049
3057
|
# Required. Whether ABAC authorization will be enabled in the cluster.
|
@@ -3134,16 +3142,16 @@ module Google
|
|
3134
3142
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3135
3143
|
#
|
3136
3144
|
# @param project_id [::String]
|
3137
|
-
#
|
3145
|
+
# Deprecated. The Google Developers Console [project ID or project
|
3138
3146
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
3139
3147
|
# This field has been deprecated and replaced by the name field.
|
3140
3148
|
# @param zone [::String]
|
3141
|
-
#
|
3149
|
+
# Deprecated. The name of the Google Compute Engine
|
3142
3150
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
3143
3151
|
# cluster resides. This field has been deprecated and replaced by the name
|
3144
3152
|
# field.
|
3145
3153
|
# @param cluster_id [::String]
|
3146
|
-
#
|
3154
|
+
# Deprecated. The name of the cluster.
|
3147
3155
|
# This field has been deprecated and replaced by the name field.
|
3148
3156
|
# @param name [::String]
|
3149
3157
|
# The name (project, location, cluster name) of the cluster to start IP
|
@@ -3234,16 +3242,16 @@ module Google
|
|
3234
3242
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3235
3243
|
#
|
3236
3244
|
# @param project_id [::String]
|
3237
|
-
#
|
3245
|
+
# Deprecated. The Google Developers Console [project ID or project
|
3238
3246
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
3239
3247
|
# This field has been deprecated and replaced by the name field.
|
3240
3248
|
# @param zone [::String]
|
3241
|
-
#
|
3249
|
+
# Deprecated. The name of the Google Compute Engine
|
3242
3250
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
3243
3251
|
# cluster resides. This field has been deprecated and replaced by the name
|
3244
3252
|
# field.
|
3245
3253
|
# @param cluster_id [::String]
|
3246
|
-
#
|
3254
|
+
# Deprecated. The name of the cluster.
|
3247
3255
|
# This field has been deprecated and replaced by the name field.
|
3248
3256
|
# @param name [::String]
|
3249
3257
|
# The name (project, location, cluster name) of the cluster to complete IP
|
@@ -3334,19 +3342,19 @@ module Google
|
|
3334
3342
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3335
3343
|
#
|
3336
3344
|
# @param project_id [::String]
|
3337
|
-
#
|
3345
|
+
# Deprecated. The Google Developers Console [project ID or project
|
3338
3346
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
3339
3347
|
# This field has been deprecated and replaced by the name field.
|
3340
3348
|
# @param zone [::String]
|
3341
|
-
#
|
3349
|
+
# Deprecated. The name of the Google Compute Engine
|
3342
3350
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
3343
3351
|
# cluster resides. This field has been deprecated and replaced by the name
|
3344
3352
|
# field.
|
3345
3353
|
# @param cluster_id [::String]
|
3346
|
-
#
|
3354
|
+
# Deprecated. The name of the cluster to update.
|
3347
3355
|
# This field has been deprecated and replaced by the name field.
|
3348
3356
|
# @param node_pool_id [::String]
|
3349
|
-
#
|
3357
|
+
# Deprecated. The name of the node pool to update.
|
3350
3358
|
# This field has been deprecated and replaced by the name field.
|
3351
3359
|
# @param node_count [::Integer]
|
3352
3360
|
# Required. The desired node count for the pool.
|
@@ -3438,16 +3446,16 @@ module Google
|
|
3438
3446
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3439
3447
|
#
|
3440
3448
|
# @param project_id [::String]
|
3441
|
-
#
|
3449
|
+
# Deprecated. The Google Developers Console [project ID or project
|
3442
3450
|
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
3443
3451
|
# This field has been deprecated and replaced by the name field.
|
3444
3452
|
# @param zone [::String]
|
3445
|
-
#
|
3453
|
+
# Deprecated. The name of the Google Compute Engine
|
3446
3454
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
3447
3455
|
# cluster resides. This field has been deprecated and replaced by the name
|
3448
3456
|
# field.
|
3449
3457
|
# @param cluster_id [::String]
|
3450
|
-
#
|
3458
|
+
# Deprecated. The name of the cluster.
|
3451
3459
|
# This field has been deprecated and replaced by the name field.
|
3452
3460
|
# @param network_policy [::Google::Cloud::Container::V1beta1::NetworkPolicy, ::Hash]
|
3453
3461
|
# Required. Configuration options for the NetworkPolicy feature.
|
@@ -3896,6 +3904,185 @@ module Google
|
|
3896
3904
|
raise ::Google::Cloud::Error.from_error(e)
|
3897
3905
|
end
|
3898
3906
|
|
3907
|
+
##
|
3908
|
+
# Fetch upgrade information of a specific cluster.
|
3909
|
+
#
|
3910
|
+
# @overload fetch_cluster_upgrade_info(request, options = nil)
|
3911
|
+
# Pass arguments to `fetch_cluster_upgrade_info` via a request object, either of type
|
3912
|
+
# {::Google::Cloud::Container::V1beta1::FetchClusterUpgradeInfoRequest} or an equivalent Hash.
|
3913
|
+
#
|
3914
|
+
# @param request [::Google::Cloud::Container::V1beta1::FetchClusterUpgradeInfoRequest, ::Hash]
|
3915
|
+
# A request object representing the call parameters. Required. To specify no
|
3916
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3917
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3918
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3919
|
+
#
|
3920
|
+
# @overload fetch_cluster_upgrade_info(name: nil, version: nil)
|
3921
|
+
# Pass arguments to `fetch_cluster_upgrade_info` via keyword arguments. Note that at
|
3922
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3923
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3924
|
+
#
|
3925
|
+
# @param name [::String]
|
3926
|
+
# Required. The name (project, location, cluster) of the cluster to get.
|
3927
|
+
# Specified in the format `projects/*/locations/*/clusters/*` or
|
3928
|
+
# `projects/*/zones/*/clusters/*`.
|
3929
|
+
# @param version [::String]
|
3930
|
+
# API request version that initiates this operation.
|
3931
|
+
#
|
3932
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3933
|
+
# @yieldparam response [::Google::Cloud::Container::V1beta1::ClusterUpgradeInfo]
|
3934
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3935
|
+
#
|
3936
|
+
# @return [::Google::Cloud::Container::V1beta1::ClusterUpgradeInfo]
|
3937
|
+
#
|
3938
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3939
|
+
#
|
3940
|
+
# @example Basic example
|
3941
|
+
# require "google/cloud/container/v1beta1"
|
3942
|
+
#
|
3943
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3944
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
3945
|
+
#
|
3946
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3947
|
+
# request = Google::Cloud::Container::V1beta1::FetchClusterUpgradeInfoRequest.new
|
3948
|
+
#
|
3949
|
+
# # Call the fetch_cluster_upgrade_info method.
|
3950
|
+
# result = client.fetch_cluster_upgrade_info request
|
3951
|
+
#
|
3952
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::ClusterUpgradeInfo.
|
3953
|
+
# p result
|
3954
|
+
#
|
3955
|
+
def fetch_cluster_upgrade_info request, options = nil
|
3956
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3957
|
+
|
3958
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1beta1::FetchClusterUpgradeInfoRequest
|
3959
|
+
|
3960
|
+
# Converts hash and nil to an options object
|
3961
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3962
|
+
|
3963
|
+
# Customize the options with defaults
|
3964
|
+
metadata = @config.rpcs.fetch_cluster_upgrade_info.metadata.to_h
|
3965
|
+
|
3966
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3967
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3968
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3969
|
+
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
3970
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3971
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3972
|
+
|
3973
|
+
header_params = {}
|
3974
|
+
if request.name
|
3975
|
+
header_params["name"] = request.name
|
3976
|
+
end
|
3977
|
+
|
3978
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3979
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3980
|
+
|
3981
|
+
options.apply_defaults timeout: @config.rpcs.fetch_cluster_upgrade_info.timeout,
|
3982
|
+
metadata: metadata,
|
3983
|
+
retry_policy: @config.rpcs.fetch_cluster_upgrade_info.retry_policy
|
3984
|
+
|
3985
|
+
options.apply_defaults timeout: @config.timeout,
|
3986
|
+
metadata: @config.metadata,
|
3987
|
+
retry_policy: @config.retry_policy
|
3988
|
+
|
3989
|
+
@cluster_manager_stub.call_rpc :fetch_cluster_upgrade_info, request, options: options do |response, operation|
|
3990
|
+
yield response, operation if block_given?
|
3991
|
+
end
|
3992
|
+
rescue ::GRPC::BadStatus => e
|
3993
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3994
|
+
end
|
3995
|
+
|
3996
|
+
##
|
3997
|
+
# Fetch upgrade information of a specific nodepool.
|
3998
|
+
#
|
3999
|
+
# @overload fetch_node_pool_upgrade_info(request, options = nil)
|
4000
|
+
# Pass arguments to `fetch_node_pool_upgrade_info` via a request object, either of type
|
4001
|
+
# {::Google::Cloud::Container::V1beta1::FetchNodePoolUpgradeInfoRequest} or an equivalent Hash.
|
4002
|
+
#
|
4003
|
+
# @param request [::Google::Cloud::Container::V1beta1::FetchNodePoolUpgradeInfoRequest, ::Hash]
|
4004
|
+
# A request object representing the call parameters. Required. To specify no
|
4005
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4006
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4007
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4008
|
+
#
|
4009
|
+
# @overload fetch_node_pool_upgrade_info(name: nil, version: nil)
|
4010
|
+
# Pass arguments to `fetch_node_pool_upgrade_info` via keyword arguments. Note that at
|
4011
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4012
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4013
|
+
#
|
4014
|
+
# @param name [::String]
|
4015
|
+
# Required. The name (project, location, cluster, nodepool) of the nodepool
|
4016
|
+
# to get. Specified in the format
|
4017
|
+
# `projects/*/locations/*/clusters/*/nodePools/*` or
|
4018
|
+
# `projects/*/zones/*/clusters/*/nodePools/*`.
|
4019
|
+
# @param version [::String]
|
4020
|
+
# API request version that initiates this operation.
|
4021
|
+
#
|
4022
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4023
|
+
# @yieldparam response [::Google::Cloud::Container::V1beta1::NodePoolUpgradeInfo]
|
4024
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4025
|
+
#
|
4026
|
+
# @return [::Google::Cloud::Container::V1beta1::NodePoolUpgradeInfo]
|
4027
|
+
#
|
4028
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4029
|
+
#
|
4030
|
+
# @example Basic example
|
4031
|
+
# require "google/cloud/container/v1beta1"
|
4032
|
+
#
|
4033
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4034
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
4035
|
+
#
|
4036
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4037
|
+
# request = Google::Cloud::Container::V1beta1::FetchNodePoolUpgradeInfoRequest.new
|
4038
|
+
#
|
4039
|
+
# # Call the fetch_node_pool_upgrade_info method.
|
4040
|
+
# result = client.fetch_node_pool_upgrade_info request
|
4041
|
+
#
|
4042
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::NodePoolUpgradeInfo.
|
4043
|
+
# p result
|
4044
|
+
#
|
4045
|
+
def fetch_node_pool_upgrade_info request, options = nil
|
4046
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4047
|
+
|
4048
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1beta1::FetchNodePoolUpgradeInfoRequest
|
4049
|
+
|
4050
|
+
# Converts hash and nil to an options object
|
4051
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4052
|
+
|
4053
|
+
# Customize the options with defaults
|
4054
|
+
metadata = @config.rpcs.fetch_node_pool_upgrade_info.metadata.to_h
|
4055
|
+
|
4056
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4057
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4058
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4059
|
+
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
4060
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4061
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4062
|
+
|
4063
|
+
header_params = {}
|
4064
|
+
if request.name
|
4065
|
+
header_params["name"] = request.name
|
4066
|
+
end
|
4067
|
+
|
4068
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4069
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4070
|
+
|
4071
|
+
options.apply_defaults timeout: @config.rpcs.fetch_node_pool_upgrade_info.timeout,
|
4072
|
+
metadata: metadata,
|
4073
|
+
retry_policy: @config.rpcs.fetch_node_pool_upgrade_info.retry_policy
|
4074
|
+
|
4075
|
+
options.apply_defaults timeout: @config.timeout,
|
4076
|
+
metadata: @config.metadata,
|
4077
|
+
retry_policy: @config.retry_policy
|
4078
|
+
|
4079
|
+
@cluster_manager_stub.call_rpc :fetch_node_pool_upgrade_info, request, options: options do |response, operation|
|
4080
|
+
yield response, operation if block_given?
|
4081
|
+
end
|
4082
|
+
rescue ::GRPC::BadStatus => e
|
4083
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4084
|
+
end
|
4085
|
+
|
3899
4086
|
##
|
3900
4087
|
# Configuration class for the ClusterManager API.
|
3901
4088
|
#
|
@@ -4237,6 +4424,16 @@ module Google
|
|
4237
4424
|
# @return [::Gapic::Config::Method]
|
4238
4425
|
#
|
4239
4426
|
attr_reader :list_locations
|
4427
|
+
##
|
4428
|
+
# RPC-specific configuration for `fetch_cluster_upgrade_info`
|
4429
|
+
# @return [::Gapic::Config::Method]
|
4430
|
+
#
|
4431
|
+
attr_reader :fetch_cluster_upgrade_info
|
4432
|
+
##
|
4433
|
+
# RPC-specific configuration for `fetch_node_pool_upgrade_info`
|
4434
|
+
# @return [::Gapic::Config::Method]
|
4435
|
+
#
|
4436
|
+
attr_reader :fetch_node_pool_upgrade_info
|
4240
4437
|
|
4241
4438
|
# @private
|
4242
4439
|
def initialize parent_rpcs = nil
|
@@ -4310,6 +4507,10 @@ module Google
|
|
4310
4507
|
@check_autopilot_compatibility = ::Gapic::Config::Method.new check_autopilot_compatibility_config
|
4311
4508
|
list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations
|
4312
4509
|
@list_locations = ::Gapic::Config::Method.new list_locations_config
|
4510
|
+
fetch_cluster_upgrade_info_config = parent_rpcs.fetch_cluster_upgrade_info if parent_rpcs.respond_to? :fetch_cluster_upgrade_info
|
4511
|
+
@fetch_cluster_upgrade_info = ::Gapic::Config::Method.new fetch_cluster_upgrade_info_config
|
4512
|
+
fetch_node_pool_upgrade_info_config = parent_rpcs.fetch_node_pool_upgrade_info if parent_rpcs.respond_to? :fetch_node_pool_upgrade_info
|
4513
|
+
@fetch_node_pool_upgrade_info = ::Gapic::Config::Method.new fetch_node_pool_upgrade_info_config
|
4313
4514
|
|
4314
4515
|
yield self if block_given?
|
4315
4516
|
end
|