google-cloud-container-v1beta1 0.8.3 → 0.10.1
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/README.md +11 -6
- data/lib/google/cloud/container/v1beta1/cluster_manager/client.rb +150 -45
- data/lib/google/cloud/container/v1beta1/version.rb +1 -1
- data/lib/google/cloud/container/v1beta1.rb +2 -0
- data/lib/google/container/v1beta1/cluster_service_pb.rb +249 -7
- data/lib/google/container/v1beta1/cluster_service_services_pb.rb +3 -0
- data/proto_docs/google/container/v1beta1/cluster_service.rb +761 -74
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- metadata +13 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aac0ee752b987372c2be7c3bac5dd04645783957d20bb9b4d87cebfd76e32fbd
|
4
|
+
data.tar.gz: 77d5357f4ce2be69e760ad116cab5a919e3291130a9e65c9bd1124b618c2d12d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f45074cad67a99ff90326ebd541acf0f2c61b12cb147331132e58d3993811e667622d760ff93db45410a44800e7beeba23a82d7bfad80f4f5fede9d434af423e
|
7
|
+
data.tar.gz: e8f74c81d539122141f22ab206eccb172940eaaa75f9088f56344bf35e1ed4abec98d65bf5f4a67aa23b88cd049187c0677d24675e6b2aa276cd901059fe52aa
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Container::V1beta1::ListClustersRequest.new # (reques
|
|
37
37
|
response = client.list_clusters request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-container-v1beta1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/kubernetes-engine)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -262,7 +262,7 @@ module Google
|
|
262
262
|
#
|
263
263
|
# @param project_id [::String]
|
264
264
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
265
|
-
# number](https://
|
265
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
266
266
|
# This field has been deprecated and replaced by the parent field.
|
267
267
|
# @param zone [::String]
|
268
268
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -358,7 +358,7 @@ module Google
|
|
358
358
|
#
|
359
359
|
# @param project_id [::String]
|
360
360
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
361
|
-
# number](https://
|
361
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
362
362
|
# This field has been deprecated and replaced by the name field.
|
363
363
|
# @param zone [::String]
|
364
364
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -469,7 +469,7 @@ module Google
|
|
469
469
|
#
|
470
470
|
# @param project_id [::String]
|
471
471
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
472
|
-
# number](https://
|
472
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
473
473
|
# This field has been deprecated and replaced by the parent field.
|
474
474
|
# @param zone [::String]
|
475
475
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -567,7 +567,7 @@ module Google
|
|
567
567
|
#
|
568
568
|
# @param project_id [::String]
|
569
569
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
570
|
-
# number](https://
|
570
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
571
571
|
# This field has been deprecated and replaced by the name field.
|
572
572
|
# @param zone [::String]
|
573
573
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -660,14 +660,14 @@ module Google
|
|
660
660
|
# @param options [::Gapic::CallOptions, ::Hash]
|
661
661
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
662
662
|
#
|
663
|
-
# @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, gvnic: nil)
|
663
|
+
# @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)
|
664
664
|
# Pass arguments to `update_node_pool` via keyword arguments. Note that at
|
665
665
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
666
666
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
667
667
|
#
|
668
668
|
# @param project_id [::String]
|
669
669
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
670
|
-
# number](https://
|
670
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
671
671
|
# This field has been deprecated and replaced by the name field.
|
672
672
|
# @param zone [::String]
|
673
673
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -724,6 +724,13 @@ module Google
|
|
724
724
|
# Parameters that can be configured on Linux nodes.
|
725
725
|
# @param kubelet_config [::Google::Cloud::Container::V1beta1::NodeKubeletConfig, ::Hash]
|
726
726
|
# Node kubelet configs.
|
727
|
+
# @param node_network_config [::Google::Cloud::Container::V1beta1::NodeNetworkConfig, ::Hash]
|
728
|
+
# Node network config.
|
729
|
+
# @param gcfs_config [::Google::Cloud::Container::V1beta1::GcfsConfig, ::Hash]
|
730
|
+
# GCFS config.
|
731
|
+
# @param confidential_nodes [::Google::Cloud::Container::V1beta1::ConfidentialNodes, ::Hash]
|
732
|
+
# Confidential nodes config.
|
733
|
+
# All the nodes in the node pool will be Confidential VM once enabled.
|
727
734
|
# @param gvnic [::Google::Cloud::Container::V1beta1::VirtualNIC, ::Hash]
|
728
735
|
# Enable or disable gvnic on the node pool.
|
729
736
|
#
|
@@ -811,7 +818,7 @@ module Google
|
|
811
818
|
#
|
812
819
|
# @param project_id [::String]
|
813
820
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
814
|
-
# number](https://
|
821
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
815
822
|
# This field has been deprecated and replaced by the name field.
|
816
823
|
# @param zone [::String]
|
817
824
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -915,7 +922,7 @@ module Google
|
|
915
922
|
#
|
916
923
|
# @param project_id [::String]
|
917
924
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
918
|
-
# number](https://
|
925
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
919
926
|
# This field has been deprecated and replaced by the name field.
|
920
927
|
# @param zone [::String]
|
921
928
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -1025,7 +1032,7 @@ module Google
|
|
1025
1032
|
#
|
1026
1033
|
# @param project_id [::String]
|
1027
1034
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
1028
|
-
# number](https://
|
1035
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1029
1036
|
# This field has been deprecated and replaced by the name field.
|
1030
1037
|
# @param zone [::String]
|
1031
1038
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -1135,7 +1142,7 @@ module Google
|
|
1135
1142
|
#
|
1136
1143
|
# @param project_id [::String]
|
1137
1144
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
1138
|
-
# number](https://
|
1145
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1139
1146
|
# This field has been deprecated and replaced by the name field.
|
1140
1147
|
# @param zone [::String]
|
1141
1148
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -1146,8 +1153,8 @@ module Google
|
|
1146
1153
|
# Required. Deprecated. The name of the cluster to upgrade.
|
1147
1154
|
# This field has been deprecated and replaced by the name field.
|
1148
1155
|
# @param addons_config [::Google::Cloud::Container::V1beta1::AddonsConfig, ::Hash]
|
1149
|
-
# Required. The desired configurations for the various addons available to
|
1150
|
-
#
|
1156
|
+
# Required. The desired configurations for the various addons available to run in the
|
1157
|
+
# cluster.
|
1151
1158
|
# @param name [::String]
|
1152
1159
|
# The name (project, location, cluster) of the cluster to set addons.
|
1153
1160
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
@@ -1241,7 +1248,7 @@ module Google
|
|
1241
1248
|
#
|
1242
1249
|
# @param project_id [::String]
|
1243
1250
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
1244
|
-
# number](https://
|
1251
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1245
1252
|
# This field has been deprecated and replaced by the name field.
|
1246
1253
|
# @param zone [::String]
|
1247
1254
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -1347,7 +1354,7 @@ module Google
|
|
1347
1354
|
#
|
1348
1355
|
# @param project_id [::String]
|
1349
1356
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
1350
|
-
# number](https://
|
1357
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1351
1358
|
# This field has been deprecated and replaced by the name field.
|
1352
1359
|
# @param zone [::String]
|
1353
1360
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -1458,7 +1465,7 @@ module Google
|
|
1458
1465
|
#
|
1459
1466
|
# @param project_id [::String]
|
1460
1467
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
1461
|
-
# number](https://
|
1468
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1462
1469
|
# This field has been deprecated and replaced by the name field.
|
1463
1470
|
# @param zone [::String]
|
1464
1471
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -1568,7 +1575,7 @@ module Google
|
|
1568
1575
|
#
|
1569
1576
|
# @param project_id [::String]
|
1570
1577
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
1571
|
-
# number](https://
|
1578
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1572
1579
|
# This field has been deprecated and replaced by the name field.
|
1573
1580
|
# @param zone [::String]
|
1574
1581
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -1666,7 +1673,7 @@ module Google
|
|
1666
1673
|
#
|
1667
1674
|
# @param project_id [::String]
|
1668
1675
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
1669
|
-
# number](https://
|
1676
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1670
1677
|
# This field has been deprecated and replaced by the parent field.
|
1671
1678
|
# @param zone [::String]
|
1672
1679
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -1762,7 +1769,7 @@ module Google
|
|
1762
1769
|
#
|
1763
1770
|
# @param project_id [::String]
|
1764
1771
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
1765
|
-
# number](https://
|
1772
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1766
1773
|
# This field has been deprecated and replaced by the name field.
|
1767
1774
|
# @param zone [::String]
|
1768
1775
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -1860,7 +1867,7 @@ module Google
|
|
1860
1867
|
#
|
1861
1868
|
# @param project_id [::String]
|
1862
1869
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
1863
|
-
# number](https://
|
1870
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1864
1871
|
# This field has been deprecated and replaced by the name field.
|
1865
1872
|
# @param zone [::String]
|
1866
1873
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -1958,7 +1965,7 @@ module Google
|
|
1958
1965
|
#
|
1959
1966
|
# @param project_id [::String]
|
1960
1967
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
1961
|
-
# number](https://
|
1968
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1962
1969
|
# This field has been deprecated and replaced by the name field.
|
1963
1970
|
# @param zone [::String]
|
1964
1971
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -2053,7 +2060,7 @@ module Google
|
|
2053
2060
|
#
|
2054
2061
|
# @param project_id [::String]
|
2055
2062
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2056
|
-
# number](https://
|
2063
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2057
2064
|
# This field has been deprecated and replaced by the parent field.
|
2058
2065
|
# @param zone [::String]
|
2059
2066
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -2064,7 +2071,7 @@ module Google
|
|
2064
2071
|
# Required. Deprecated. The name of the cluster.
|
2065
2072
|
# This field has been deprecated and replaced by the parent field.
|
2066
2073
|
# @param parent [::String]
|
2067
|
-
# The parent (project, location, cluster
|
2074
|
+
# The parent (project, location, cluster name) where the node pools will be
|
2068
2075
|
# listed. Specified in the format `projects/*/locations/*/clusters/*`.
|
2069
2076
|
#
|
2070
2077
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -2153,7 +2160,7 @@ module Google
|
|
2153
2160
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2154
2161
|
#
|
2155
2162
|
# @param parent [::String]
|
2156
|
-
# The cluster (project, location, cluster
|
2163
|
+
# The cluster (project, location, cluster name) to get keys for. Specified in
|
2157
2164
|
# the format `projects/*/locations/*/clusters/*`.
|
2158
2165
|
#
|
2159
2166
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -2240,7 +2247,7 @@ module Google
|
|
2240
2247
|
#
|
2241
2248
|
# @param project_id [::String]
|
2242
2249
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2243
|
-
# number](https://
|
2250
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2244
2251
|
# This field has been deprecated and replaced by the name field.
|
2245
2252
|
# @param zone [::String]
|
2246
2253
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -2342,7 +2349,7 @@ module Google
|
|
2342
2349
|
#
|
2343
2350
|
# @param project_id [::String]
|
2344
2351
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2345
|
-
# number](https://
|
2352
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2346
2353
|
# This field has been deprecated and replaced by the parent field.
|
2347
2354
|
# @param zone [::String]
|
2348
2355
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -2355,7 +2362,7 @@ module Google
|
|
2355
2362
|
# @param node_pool [::Google::Cloud::Container::V1beta1::NodePool, ::Hash]
|
2356
2363
|
# Required. The node pool to create.
|
2357
2364
|
# @param parent [::String]
|
2358
|
-
# The parent (project, location, cluster
|
2365
|
+
# The parent (project, location, cluster name) where the node pool will be
|
2359
2366
|
# created. Specified in the format
|
2360
2367
|
# `projects/*/locations/*/clusters/*`.
|
2361
2368
|
#
|
@@ -2443,7 +2450,7 @@ module Google
|
|
2443
2450
|
#
|
2444
2451
|
# @param project_id [::String]
|
2445
2452
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2446
|
-
# number](https://
|
2453
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2447
2454
|
# This field has been deprecated and replaced by the name field.
|
2448
2455
|
# @param zone [::String]
|
2449
2456
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -2525,6 +2532,94 @@ module Google
|
|
2525
2532
|
raise ::Google::Cloud::Error.from_error(e)
|
2526
2533
|
end
|
2527
2534
|
|
2535
|
+
##
|
2536
|
+
# CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
|
2537
|
+
# complete.
|
2538
|
+
#
|
2539
|
+
# @overload complete_node_pool_upgrade(request, options = nil)
|
2540
|
+
# Pass arguments to `complete_node_pool_upgrade` via a request object, either of type
|
2541
|
+
# {::Google::Cloud::Container::V1beta1::CompleteNodePoolUpgradeRequest} or an equivalent Hash.
|
2542
|
+
#
|
2543
|
+
# @param request [::Google::Cloud::Container::V1beta1::CompleteNodePoolUpgradeRequest, ::Hash]
|
2544
|
+
# A request object representing the call parameters. Required. To specify no
|
2545
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2546
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2547
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2548
|
+
#
|
2549
|
+
# @overload complete_node_pool_upgrade(name: nil)
|
2550
|
+
# Pass arguments to `complete_node_pool_upgrade` via keyword arguments. Note that at
|
2551
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2552
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2553
|
+
#
|
2554
|
+
# @param name [::String]
|
2555
|
+
# The name (project, location, cluster, node pool id) of the node pool to
|
2556
|
+
# complete upgrade.
|
2557
|
+
# Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
|
2558
|
+
#
|
2559
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2560
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
2561
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2562
|
+
#
|
2563
|
+
# @return [::Google::Protobuf::Empty]
|
2564
|
+
#
|
2565
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2566
|
+
#
|
2567
|
+
# @example Basic example
|
2568
|
+
# require "google/cloud/container/v1beta1"
|
2569
|
+
#
|
2570
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2571
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
2572
|
+
#
|
2573
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2574
|
+
# request = Google::Cloud::Container::V1beta1::CompleteNodePoolUpgradeRequest.new
|
2575
|
+
#
|
2576
|
+
# # Call the complete_node_pool_upgrade method.
|
2577
|
+
# result = client.complete_node_pool_upgrade request
|
2578
|
+
#
|
2579
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2580
|
+
# p result
|
2581
|
+
#
|
2582
|
+
def complete_node_pool_upgrade request, options = nil
|
2583
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2584
|
+
|
2585
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1beta1::CompleteNodePoolUpgradeRequest
|
2586
|
+
|
2587
|
+
# Converts hash and nil to an options object
|
2588
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2589
|
+
|
2590
|
+
# Customize the options with defaults
|
2591
|
+
metadata = @config.rpcs.complete_node_pool_upgrade.metadata.to_h
|
2592
|
+
|
2593
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2594
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2595
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2596
|
+
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2597
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2598
|
+
|
2599
|
+
header_params = {}
|
2600
|
+
if request.name
|
2601
|
+
header_params["name"] = request.name
|
2602
|
+
end
|
2603
|
+
|
2604
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2605
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2606
|
+
|
2607
|
+
options.apply_defaults timeout: @config.rpcs.complete_node_pool_upgrade.timeout,
|
2608
|
+
metadata: metadata,
|
2609
|
+
retry_policy: @config.rpcs.complete_node_pool_upgrade.retry_policy
|
2610
|
+
|
2611
|
+
options.apply_defaults timeout: @config.timeout,
|
2612
|
+
metadata: @config.metadata,
|
2613
|
+
retry_policy: @config.retry_policy
|
2614
|
+
|
2615
|
+
@cluster_manager_stub.call_rpc :complete_node_pool_upgrade, request, options: options do |response, operation|
|
2616
|
+
yield response, operation if block_given?
|
2617
|
+
return response
|
2618
|
+
end
|
2619
|
+
rescue ::GRPC::BadStatus => e
|
2620
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2621
|
+
end
|
2622
|
+
|
2528
2623
|
##
|
2529
2624
|
# Rolls back a previously Aborted or Failed NodePool upgrade.
|
2530
2625
|
# This makes no changes if the last upgrade successfully completed.
|
@@ -2539,14 +2634,14 @@ module Google
|
|
2539
2634
|
# @param options [::Gapic::CallOptions, ::Hash]
|
2540
2635
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2541
2636
|
#
|
2542
|
-
# @overload rollback_node_pool_upgrade(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, name: nil)
|
2637
|
+
# @overload rollback_node_pool_upgrade(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, name: nil, respect_pdb: nil)
|
2543
2638
|
# Pass arguments to `rollback_node_pool_upgrade` via keyword arguments. Note that at
|
2544
2639
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2545
2640
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2546
2641
|
#
|
2547
2642
|
# @param project_id [::String]
|
2548
2643
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2549
|
-
# number](https://
|
2644
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2550
2645
|
# This field has been deprecated and replaced by the name field.
|
2551
2646
|
# @param zone [::String]
|
2552
2647
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -2563,6 +2658,9 @@ module Google
|
|
2563
2658
|
# The name (project, location, cluster, node pool id) of the node poll to
|
2564
2659
|
# rollback upgrade.
|
2565
2660
|
# Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
|
2661
|
+
# @param respect_pdb [::Boolean]
|
2662
|
+
# Option for rollback to ignore the PodDisruptionBudget.
|
2663
|
+
# Default value is false.
|
2566
2664
|
#
|
2567
2665
|
# @yield [response, operation] Access the result along with the RPC operation
|
2568
2666
|
# @yieldparam response [::Google::Cloud::Container::V1beta1::Operation]
|
@@ -2648,7 +2746,7 @@ module Google
|
|
2648
2746
|
#
|
2649
2747
|
# @param project_id [::String]
|
2650
2748
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2651
|
-
# number](https://
|
2749
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2652
2750
|
# This field has been deprecated and replaced by the name field.
|
2653
2751
|
# @param zone [::String]
|
2654
2752
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -2752,7 +2850,7 @@ module Google
|
|
2752
2850
|
#
|
2753
2851
|
# @param project_id [::String]
|
2754
2852
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2755
|
-
# number](https://
|
2853
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2756
2854
|
# This field has been deprecated and replaced by the name field.
|
2757
2855
|
# @param zone [::String]
|
2758
2856
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -2772,7 +2870,7 @@ module Google
|
|
2772
2870
|
# updating or changing labels. Make a `get()` request to the
|
2773
2871
|
# resource to get the latest fingerprint.
|
2774
2872
|
# @param name [::String]
|
2775
|
-
# The name (project, location, cluster
|
2873
|
+
# The name (project, location, cluster name) of the cluster to set labels.
|
2776
2874
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2777
2875
|
#
|
2778
2876
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -2859,7 +2957,7 @@ module Google
|
|
2859
2957
|
#
|
2860
2958
|
# @param project_id [::String]
|
2861
2959
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2862
|
-
# number](https://
|
2960
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2863
2961
|
# This field has been deprecated and replaced by the name field.
|
2864
2962
|
# @param zone [::String]
|
2865
2963
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -2872,8 +2970,8 @@ module Google
|
|
2872
2970
|
# @param enabled [::Boolean]
|
2873
2971
|
# Required. Whether ABAC authorization will be enabled in the cluster.
|
2874
2972
|
# @param name [::String]
|
2875
|
-
# The name (project, location, cluster
|
2876
|
-
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2973
|
+
# The name (project, location, cluster name) of the cluster to set legacy
|
2974
|
+
# abac. Specified in the format `projects/*/locations/*/clusters/*`.
|
2877
2975
|
#
|
2878
2976
|
# @yield [response, operation] Access the result along with the RPC operation
|
2879
2977
|
# @yieldparam response [::Google::Cloud::Container::V1beta1::Operation]
|
@@ -2959,7 +3057,7 @@ module Google
|
|
2959
3057
|
#
|
2960
3058
|
# @param project_id [::String]
|
2961
3059
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
2962
|
-
# number](https://
|
3060
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2963
3061
|
# This field has been deprecated and replaced by the name field.
|
2964
3062
|
# @param zone [::String]
|
2965
3063
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -2970,7 +3068,7 @@ module Google
|
|
2970
3068
|
# Required. Deprecated. The name of the cluster.
|
2971
3069
|
# This field has been deprecated and replaced by the name field.
|
2972
3070
|
# @param name [::String]
|
2973
|
-
# The name (project, location, cluster
|
3071
|
+
# The name (project, location, cluster name) of the cluster to start IP
|
2974
3072
|
# rotation. Specified in the format `projects/*/locations/*/clusters/*`.
|
2975
3073
|
# @param rotate_credentials [::Boolean]
|
2976
3074
|
# Whether to rotate credentials during IP rotation.
|
@@ -3059,7 +3157,7 @@ module Google
|
|
3059
3157
|
#
|
3060
3158
|
# @param project_id [::String]
|
3061
3159
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
3062
|
-
# number](https://
|
3160
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
3063
3161
|
# This field has been deprecated and replaced by the name field.
|
3064
3162
|
# @param zone [::String]
|
3065
3163
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -3070,7 +3168,7 @@ module Google
|
|
3070
3168
|
# Required. Deprecated. The name of the cluster.
|
3071
3169
|
# This field has been deprecated and replaced by the name field.
|
3072
3170
|
# @param name [::String]
|
3073
|
-
# The name (project, location, cluster
|
3171
|
+
# The name (project, location, cluster name) of the cluster to complete IP
|
3074
3172
|
# rotation. Specified in the format `projects/*/locations/*/clusters/*`.
|
3075
3173
|
#
|
3076
3174
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -3159,7 +3257,7 @@ module Google
|
|
3159
3257
|
#
|
3160
3258
|
# @param project_id [::String]
|
3161
3259
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
3162
|
-
# number](https://
|
3260
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
3163
3261
|
# This field has been deprecated and replaced by the name field.
|
3164
3262
|
# @param zone [::String]
|
3165
3263
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -3263,7 +3361,7 @@ module Google
|
|
3263
3361
|
#
|
3264
3362
|
# @param project_id [::String]
|
3265
3363
|
# Required. Deprecated. The Google Developers Console [project ID or project
|
3266
|
-
# number](https://
|
3364
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
3267
3365
|
# This field has been deprecated and replaced by the name field.
|
3268
3366
|
# @param zone [::String]
|
3269
3367
|
# Required. Deprecated. The name of the Google Compute Engine
|
@@ -3276,7 +3374,7 @@ module Google
|
|
3276
3374
|
# @param network_policy [::Google::Cloud::Container::V1beta1::NetworkPolicy, ::Hash]
|
3277
3375
|
# Required. Configuration options for the NetworkPolicy feature.
|
3278
3376
|
# @param name [::String]
|
3279
|
-
# The name (project, location, cluster
|
3377
|
+
# The name (project, location, cluster name) of the cluster to set networking
|
3280
3378
|
# policy. Specified in the format `projects/*/locations/*/clusters/*`.
|
3281
3379
|
#
|
3282
3380
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -3363,7 +3461,7 @@ module Google
|
|
3363
3461
|
#
|
3364
3462
|
# @param project_id [::String]
|
3365
3463
|
# Required. The Google Developers Console [project ID or project
|
3366
|
-
# number](https://
|
3464
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
3367
3465
|
# @param zone [::String]
|
3368
3466
|
# Required. The name of the Google Compute Engine
|
3369
3467
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
@@ -3374,8 +3472,8 @@ module Google
|
|
3374
3472
|
# Required. The maintenance policy to be set for the cluster. An empty field
|
3375
3473
|
# clears the existing maintenance policy.
|
3376
3474
|
# @param name [::String]
|
3377
|
-
# The name (project, location, cluster
|
3378
|
-
# policy.
|
3475
|
+
# The name (project, location, cluster name) of the cluster to set
|
3476
|
+
# maintenance policy.
|
3379
3477
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
3380
3478
|
#
|
3381
3479
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -3880,6 +3978,11 @@ module Google
|
|
3880
3978
|
#
|
3881
3979
|
attr_reader :delete_node_pool
|
3882
3980
|
##
|
3981
|
+
# RPC-specific configuration for `complete_node_pool_upgrade`
|
3982
|
+
# @return [::Gapic::Config::Method]
|
3983
|
+
#
|
3984
|
+
attr_reader :complete_node_pool_upgrade
|
3985
|
+
##
|
3883
3986
|
# RPC-specific configuration for `rollback_node_pool_upgrade`
|
3884
3987
|
# @return [::Gapic::Config::Method]
|
3885
3988
|
#
|
@@ -3981,6 +4084,8 @@ module Google
|
|
3981
4084
|
@create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
|
3982
4085
|
delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
|
3983
4086
|
@delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
|
4087
|
+
complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
|
4088
|
+
@complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
|
3984
4089
|
rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
|
3985
4090
|
@rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
|
3986
4091
|
set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
|