google-cloud-container-v1 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -5
- data/lib/google/cloud/container/v1/cluster_manager/client.rb +158 -43
- data/lib/google/cloud/container/v1/version.rb +1 -1
- data/lib/google/cloud/container/v1.rb +2 -0
- data/lib/google/container/v1/cluster_service_pb.rb +137 -6
- data/lib/google/container/v1/cluster_service_services_pb.rb +3 -0
- data/proto_docs/google/container/v1/cluster_service.rb +451 -55
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/duration.rb +98 -0
- 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: ce8291611b4d69ed13c9005e293beb293bbcbc249beab006129dcf37938ae0fa
|
4
|
+
data.tar.gz: 1a4855fe3efa20fa428c8421beaa17276973d1fc6b9b0c1ca2614c539d223832
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e58231afc4b58d00897a830281572476e2142b4b9901c5581f885555ac9a9e1e8eb62b33f019e8ef46a89cfdf07d62e1b0d2d933eb2cbef3719ff5080a3f00df
|
7
|
+
data.tar.gz: 16f3289fb1362c2244d2d1afae49ca4ce1d708c22bdd14b033f637b5e0a95ddc961317483b1c36adab8f5d5fc5788a87999da8380892503e34d0e6a8d97c8030
|
data/README.md
CHANGED
@@ -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
|
|
@@ -252,7 +252,7 @@ module Google
|
|
252
252
|
#
|
253
253
|
# @param project_id [::String]
|
254
254
|
# Deprecated. The Google Developers Console [project ID or project
|
255
|
-
# number](https://
|
255
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
256
256
|
# This field has been deprecated and replaced by the parent field.
|
257
257
|
# @param zone [::String]
|
258
258
|
# Deprecated. The name of the Google Compute Engine
|
@@ -348,7 +348,7 @@ module Google
|
|
348
348
|
#
|
349
349
|
# @param project_id [::String]
|
350
350
|
# Deprecated. The Google Developers Console [project ID or project
|
351
|
-
# number](https://
|
351
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
352
352
|
# This field has been deprecated and replaced by the name field.
|
353
353
|
# @param zone [::String]
|
354
354
|
# Deprecated. The name of the Google Compute Engine
|
@@ -459,7 +459,7 @@ module Google
|
|
459
459
|
#
|
460
460
|
# @param project_id [::String]
|
461
461
|
# Deprecated. The Google Developers Console [project ID or project
|
462
|
-
# number](https://
|
462
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
463
463
|
# This field has been deprecated and replaced by the parent field.
|
464
464
|
# @param zone [::String]
|
465
465
|
# Deprecated. The name of the Google Compute Engine
|
@@ -557,7 +557,7 @@ module Google
|
|
557
557
|
#
|
558
558
|
# @param project_id [::String]
|
559
559
|
# Deprecated. The Google Developers Console [project ID or project
|
560
|
-
# number](https://
|
560
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
561
561
|
# This field has been deprecated and replaced by the name field.
|
562
562
|
# @param zone [::String]
|
563
563
|
# Deprecated. The name of the Google Compute Engine
|
@@ -650,14 +650,14 @@ module Google
|
|
650
650
|
# @param options [::Gapic::CallOptions, ::Hash]
|
651
651
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
652
652
|
#
|
653
|
-
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, locations: nil, workload_metadata_config: nil, upgrade_settings: nil, linux_node_config: nil, kubelet_config: nil, gcfs_config: nil, gvnic: nil)
|
653
|
+
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, locations: nil, workload_metadata_config: 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)
|
654
654
|
# Pass arguments to `update_node_pool` via keyword arguments. Note that at
|
655
655
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
656
656
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
657
657
|
#
|
658
658
|
# @param project_id [::String]
|
659
659
|
# Deprecated. The Google Developers Console [project ID or project
|
660
|
-
# number](https://
|
660
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
661
661
|
# This field has been deprecated and replaced by the name field.
|
662
662
|
# @param zone [::String]
|
663
663
|
# Deprecated. The name of the Google Compute Engine
|
@@ -698,12 +698,29 @@ module Google
|
|
698
698
|
# The desired workload metadata config for the node pool.
|
699
699
|
# @param upgrade_settings [::Google::Cloud::Container::V1::NodePool::UpgradeSettings, ::Hash]
|
700
700
|
# Upgrade settings control disruption and speed of the upgrade.
|
701
|
+
# @param tags [::Google::Cloud::Container::V1::NetworkTags, ::Hash]
|
702
|
+
# The desired network tags to be applied to all nodes in the node pool.
|
703
|
+
# If this field is not present, the tags will not be changed. Otherwise,
|
704
|
+
# the existing network tags will be *replaced* with the provided tags.
|
705
|
+
# @param taints [::Google::Cloud::Container::V1::NodeTaints, ::Hash]
|
706
|
+
# The desired node taints to be applied to all nodes in the node pool.
|
707
|
+
# If this field is not present, the taints will not be changed. Otherwise,
|
708
|
+
# the existing node taints will be *replaced* with the provided taints.
|
709
|
+
# @param labels [::Google::Cloud::Container::V1::NodeLabels, ::Hash]
|
710
|
+
# The desired node labels to be applied to all nodes in the node pool.
|
711
|
+
# If this field is not present, the labels will not be changed. Otherwise,
|
712
|
+
# the existing node labels will be *replaced* with the provided labels.
|
701
713
|
# @param linux_node_config [::Google::Cloud::Container::V1::LinuxNodeConfig, ::Hash]
|
702
714
|
# Parameters that can be configured on Linux nodes.
|
703
715
|
# @param kubelet_config [::Google::Cloud::Container::V1::NodeKubeletConfig, ::Hash]
|
704
716
|
# Node kubelet configs.
|
717
|
+
# @param node_network_config [::Google::Cloud::Container::V1::NodeNetworkConfig, ::Hash]
|
718
|
+
# Node network config.
|
705
719
|
# @param gcfs_config [::Google::Cloud::Container::V1::GcfsConfig, ::Hash]
|
706
720
|
# GCFS config.
|
721
|
+
# @param confidential_nodes [::Google::Cloud::Container::V1::ConfidentialNodes, ::Hash]
|
722
|
+
# Confidential nodes config.
|
723
|
+
# All the nodes in the node pool will be Confidential VM once enabled.
|
707
724
|
# @param gvnic [::Google::Cloud::Container::V1::VirtualNIC, ::Hash]
|
708
725
|
# Enable or disable gvnic on the node pool.
|
709
726
|
#
|
@@ -791,7 +808,7 @@ module Google
|
|
791
808
|
#
|
792
809
|
# @param project_id [::String]
|
793
810
|
# Deprecated. The Google Developers Console [project ID or project
|
794
|
-
# number](https://
|
811
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
795
812
|
# This field has been deprecated and replaced by the name field.
|
796
813
|
# @param zone [::String]
|
797
814
|
# Deprecated. The name of the Google Compute Engine
|
@@ -895,7 +912,7 @@ module Google
|
|
895
912
|
#
|
896
913
|
# @param project_id [::String]
|
897
914
|
# Deprecated. The Google Developers Console [project ID or project
|
898
|
-
# number](https://
|
915
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
899
916
|
# This field has been deprecated and replaced by the name field.
|
900
917
|
# @param zone [::String]
|
901
918
|
# Deprecated. The name of the Google Compute Engine
|
@@ -1005,7 +1022,7 @@ module Google
|
|
1005
1022
|
#
|
1006
1023
|
# @param project_id [::String]
|
1007
1024
|
# Deprecated. The Google Developers Console [project ID or project
|
1008
|
-
# number](https://
|
1025
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1009
1026
|
# This field has been deprecated and replaced by the name field.
|
1010
1027
|
# @param zone [::String]
|
1011
1028
|
# Deprecated. The name of the Google Compute Engine
|
@@ -1115,7 +1132,7 @@ module Google
|
|
1115
1132
|
#
|
1116
1133
|
# @param project_id [::String]
|
1117
1134
|
# Deprecated. The Google Developers Console [project ID or project
|
1118
|
-
# number](https://
|
1135
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1119
1136
|
# This field has been deprecated and replaced by the name field.
|
1120
1137
|
# @param zone [::String]
|
1121
1138
|
# Deprecated. The name of the Google Compute Engine
|
@@ -1221,7 +1238,7 @@ module Google
|
|
1221
1238
|
#
|
1222
1239
|
# @param project_id [::String]
|
1223
1240
|
# Deprecated. The Google Developers Console [project ID or project
|
1224
|
-
# number](https://
|
1241
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1225
1242
|
# This field has been deprecated and replaced by the name field.
|
1226
1243
|
# @param zone [::String]
|
1227
1244
|
# Deprecated. The name of the Google Compute Engine
|
@@ -1327,7 +1344,7 @@ module Google
|
|
1327
1344
|
#
|
1328
1345
|
# @param project_id [::String]
|
1329
1346
|
# Deprecated. The Google Developers Console [project ID or project
|
1330
|
-
# number](https://
|
1347
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1331
1348
|
# This field has been deprecated and replaced by the name field.
|
1332
1349
|
# @param zone [::String]
|
1333
1350
|
# Deprecated. The name of the Google Compute Engine
|
@@ -1438,7 +1455,7 @@ module Google
|
|
1438
1455
|
#
|
1439
1456
|
# @param project_id [::String]
|
1440
1457
|
# Deprecated. The Google Developers Console [project ID or project
|
1441
|
-
# number](https://
|
1458
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1442
1459
|
# This field has been deprecated and replaced by the name field.
|
1443
1460
|
# @param zone [::String]
|
1444
1461
|
# Deprecated. The name of the Google Compute Engine
|
@@ -1548,7 +1565,7 @@ module Google
|
|
1548
1565
|
#
|
1549
1566
|
# @param project_id [::String]
|
1550
1567
|
# Deprecated. The Google Developers Console [project ID or project
|
1551
|
-
# number](https://
|
1568
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1552
1569
|
# This field has been deprecated and replaced by the name field.
|
1553
1570
|
# @param zone [::String]
|
1554
1571
|
# Deprecated. The name of the Google Compute Engine
|
@@ -1646,7 +1663,7 @@ module Google
|
|
1646
1663
|
#
|
1647
1664
|
# @param project_id [::String]
|
1648
1665
|
# Deprecated. The Google Developers Console [project ID or project
|
1649
|
-
# number](https://
|
1666
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1650
1667
|
# This field has been deprecated and replaced by the parent field.
|
1651
1668
|
# @param zone [::String]
|
1652
1669
|
# Deprecated. The name of the Google Compute Engine
|
@@ -1742,7 +1759,7 @@ module Google
|
|
1742
1759
|
#
|
1743
1760
|
# @param project_id [::String]
|
1744
1761
|
# Deprecated. The Google Developers Console [project ID or project
|
1745
|
-
# number](https://
|
1762
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1746
1763
|
# This field has been deprecated and replaced by the name field.
|
1747
1764
|
# @param zone [::String]
|
1748
1765
|
# Deprecated. The name of the Google Compute Engine
|
@@ -1840,7 +1857,7 @@ module Google
|
|
1840
1857
|
#
|
1841
1858
|
# @param project_id [::String]
|
1842
1859
|
# Deprecated. The Google Developers Console [project ID or project
|
1843
|
-
# number](https://
|
1860
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1844
1861
|
# This field has been deprecated and replaced by the name field.
|
1845
1862
|
# @param zone [::String]
|
1846
1863
|
# Deprecated. The name of the Google Compute Engine
|
@@ -1938,7 +1955,7 @@ module Google
|
|
1938
1955
|
#
|
1939
1956
|
# @param project_id [::String]
|
1940
1957
|
# Deprecated. The Google Developers Console [project ID or project
|
1941
|
-
# number](https://
|
1958
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
1942
1959
|
# This field has been deprecated and replaced by the name field.
|
1943
1960
|
# @param zone [::String]
|
1944
1961
|
# Deprecated. The name of the Google Compute Engine
|
@@ -2035,7 +2052,7 @@ module Google
|
|
2035
2052
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2036
2053
|
#
|
2037
2054
|
# @param parent [::String]
|
2038
|
-
# The cluster (project, location, cluster
|
2055
|
+
# The cluster (project, location, cluster name) to get keys for. Specified in
|
2039
2056
|
# the format `projects/*/locations/*/clusters/*`.
|
2040
2057
|
#
|
2041
2058
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -2122,7 +2139,7 @@ module Google
|
|
2122
2139
|
#
|
2123
2140
|
# @param project_id [::String]
|
2124
2141
|
# Deprecated. The Google Developers Console [project ID or project
|
2125
|
-
# number](https://
|
2142
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2126
2143
|
# This field has been deprecated and replaced by the parent field.
|
2127
2144
|
# @param zone [::String]
|
2128
2145
|
# Deprecated. The name of the Google Compute Engine
|
@@ -2133,7 +2150,7 @@ module Google
|
|
2133
2150
|
# Deprecated. The name of the cluster.
|
2134
2151
|
# This field has been deprecated and replaced by the parent field.
|
2135
2152
|
# @param parent [::String]
|
2136
|
-
# The parent (project, location, cluster
|
2153
|
+
# The parent (project, location, cluster name) where the node pools will be
|
2137
2154
|
# listed. Specified in the format `projects/*/locations/*/clusters/*`.
|
2138
2155
|
#
|
2139
2156
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -2220,7 +2237,7 @@ module Google
|
|
2220
2237
|
#
|
2221
2238
|
# @param project_id [::String]
|
2222
2239
|
# Deprecated. The Google Developers Console [project ID or project
|
2223
|
-
# number](https://
|
2240
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2224
2241
|
# This field has been deprecated and replaced by the name field.
|
2225
2242
|
# @param zone [::String]
|
2226
2243
|
# Deprecated. The name of the Google Compute Engine
|
@@ -2322,7 +2339,7 @@ module Google
|
|
2322
2339
|
#
|
2323
2340
|
# @param project_id [::String]
|
2324
2341
|
# Deprecated. The Google Developers Console [project ID or project
|
2325
|
-
# number](https://
|
2342
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2326
2343
|
# This field has been deprecated and replaced by the parent field.
|
2327
2344
|
# @param zone [::String]
|
2328
2345
|
# Deprecated. The name of the Google Compute Engine
|
@@ -2335,7 +2352,7 @@ module Google
|
|
2335
2352
|
# @param node_pool [::Google::Cloud::Container::V1::NodePool, ::Hash]
|
2336
2353
|
# Required. The node pool to create.
|
2337
2354
|
# @param parent [::String]
|
2338
|
-
# The parent (project, location, cluster
|
2355
|
+
# The parent (project, location, cluster name) where the node pool will be
|
2339
2356
|
# created. Specified in the format
|
2340
2357
|
# `projects/*/locations/*/clusters/*`.
|
2341
2358
|
#
|
@@ -2423,7 +2440,7 @@ module Google
|
|
2423
2440
|
#
|
2424
2441
|
# @param project_id [::String]
|
2425
2442
|
# Deprecated. The Google Developers Console [project ID or project
|
2426
|
-
# number](https://
|
2443
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2427
2444
|
# This field has been deprecated and replaced by the name field.
|
2428
2445
|
# @param zone [::String]
|
2429
2446
|
# Deprecated. The name of the Google Compute Engine
|
@@ -2505,6 +2522,94 @@ module Google
|
|
2505
2522
|
raise ::Google::Cloud::Error.from_error(e)
|
2506
2523
|
end
|
2507
2524
|
|
2525
|
+
##
|
2526
|
+
# CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
|
2527
|
+
# complete.
|
2528
|
+
#
|
2529
|
+
# @overload complete_node_pool_upgrade(request, options = nil)
|
2530
|
+
# Pass arguments to `complete_node_pool_upgrade` via a request object, either of type
|
2531
|
+
# {::Google::Cloud::Container::V1::CompleteNodePoolUpgradeRequest} or an equivalent Hash.
|
2532
|
+
#
|
2533
|
+
# @param request [::Google::Cloud::Container::V1::CompleteNodePoolUpgradeRequest, ::Hash]
|
2534
|
+
# A request object representing the call parameters. Required. To specify no
|
2535
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2536
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2537
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2538
|
+
#
|
2539
|
+
# @overload complete_node_pool_upgrade(name: nil)
|
2540
|
+
# Pass arguments to `complete_node_pool_upgrade` via keyword arguments. Note that at
|
2541
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2542
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2543
|
+
#
|
2544
|
+
# @param name [::String]
|
2545
|
+
# The name (project, location, cluster, node pool id) of the node pool to
|
2546
|
+
# complete upgrade.
|
2547
|
+
# Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
|
2548
|
+
#
|
2549
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2550
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
2551
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2552
|
+
#
|
2553
|
+
# @return [::Google::Protobuf::Empty]
|
2554
|
+
#
|
2555
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2556
|
+
#
|
2557
|
+
# @example Basic example
|
2558
|
+
# require "google/cloud/container/v1"
|
2559
|
+
#
|
2560
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2561
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
2562
|
+
#
|
2563
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2564
|
+
# request = Google::Cloud::Container::V1::CompleteNodePoolUpgradeRequest.new
|
2565
|
+
#
|
2566
|
+
# # Call the complete_node_pool_upgrade method.
|
2567
|
+
# result = client.complete_node_pool_upgrade request
|
2568
|
+
#
|
2569
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2570
|
+
# p result
|
2571
|
+
#
|
2572
|
+
def complete_node_pool_upgrade request, options = nil
|
2573
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2574
|
+
|
2575
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::CompleteNodePoolUpgradeRequest
|
2576
|
+
|
2577
|
+
# Converts hash and nil to an options object
|
2578
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2579
|
+
|
2580
|
+
# Customize the options with defaults
|
2581
|
+
metadata = @config.rpcs.complete_node_pool_upgrade.metadata.to_h
|
2582
|
+
|
2583
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2584
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2585
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2586
|
+
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2587
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2588
|
+
|
2589
|
+
header_params = {}
|
2590
|
+
if request.name
|
2591
|
+
header_params["name"] = request.name
|
2592
|
+
end
|
2593
|
+
|
2594
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2595
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2596
|
+
|
2597
|
+
options.apply_defaults timeout: @config.rpcs.complete_node_pool_upgrade.timeout,
|
2598
|
+
metadata: metadata,
|
2599
|
+
retry_policy: @config.rpcs.complete_node_pool_upgrade.retry_policy
|
2600
|
+
|
2601
|
+
options.apply_defaults timeout: @config.timeout,
|
2602
|
+
metadata: @config.metadata,
|
2603
|
+
retry_policy: @config.retry_policy
|
2604
|
+
|
2605
|
+
@cluster_manager_stub.call_rpc :complete_node_pool_upgrade, request, options: options do |response, operation|
|
2606
|
+
yield response, operation if block_given?
|
2607
|
+
return response
|
2608
|
+
end
|
2609
|
+
rescue ::GRPC::BadStatus => e
|
2610
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2611
|
+
end
|
2612
|
+
|
2508
2613
|
##
|
2509
2614
|
# Rolls back a previously Aborted or Failed NodePool upgrade.
|
2510
2615
|
# This makes no changes if the last upgrade successfully completed.
|
@@ -2519,14 +2624,14 @@ module Google
|
|
2519
2624
|
# @param options [::Gapic::CallOptions, ::Hash]
|
2520
2625
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2521
2626
|
#
|
2522
|
-
# @overload rollback_node_pool_upgrade(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, name: nil)
|
2627
|
+
# @overload rollback_node_pool_upgrade(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, name: nil, respect_pdb: nil)
|
2523
2628
|
# Pass arguments to `rollback_node_pool_upgrade` via keyword arguments. Note that at
|
2524
2629
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2525
2630
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2526
2631
|
#
|
2527
2632
|
# @param project_id [::String]
|
2528
2633
|
# Deprecated. The Google Developers Console [project ID or project
|
2529
|
-
# number](https://
|
2634
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2530
2635
|
# This field has been deprecated and replaced by the name field.
|
2531
2636
|
# @param zone [::String]
|
2532
2637
|
# Deprecated. The name of the Google Compute Engine
|
@@ -2543,6 +2648,9 @@ module Google
|
|
2543
2648
|
# The name (project, location, cluster, node pool id) of the node poll to
|
2544
2649
|
# rollback upgrade.
|
2545
2650
|
# Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
|
2651
|
+
# @param respect_pdb [::Boolean]
|
2652
|
+
# Option for rollback to ignore the PodDisruptionBudget.
|
2653
|
+
# Default value is false.
|
2546
2654
|
#
|
2547
2655
|
# @yield [response, operation] Access the result along with the RPC operation
|
2548
2656
|
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
@@ -2628,7 +2736,7 @@ module Google
|
|
2628
2736
|
#
|
2629
2737
|
# @param project_id [::String]
|
2630
2738
|
# Deprecated. The Google Developers Console [project ID or project
|
2631
|
-
# number](https://
|
2739
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2632
2740
|
# This field has been deprecated and replaced by the name field.
|
2633
2741
|
# @param zone [::String]
|
2634
2742
|
# Deprecated. The name of the Google Compute Engine
|
@@ -2732,7 +2840,7 @@ module Google
|
|
2732
2840
|
#
|
2733
2841
|
# @param project_id [::String]
|
2734
2842
|
# Deprecated. The Google Developers Console [project ID or project
|
2735
|
-
# number](https://
|
2843
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2736
2844
|
# This field has been deprecated and replaced by the name field.
|
2737
2845
|
# @param zone [::String]
|
2738
2846
|
# Deprecated. The name of the Google Compute Engine
|
@@ -2752,7 +2860,7 @@ module Google
|
|
2752
2860
|
# updating or changing labels. Make a `get()` request to the
|
2753
2861
|
# resource to get the latest fingerprint.
|
2754
2862
|
# @param name [::String]
|
2755
|
-
# The name (project, location, cluster
|
2863
|
+
# The name (project, location, cluster name) of the cluster to set labels.
|
2756
2864
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2757
2865
|
#
|
2758
2866
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -2839,7 +2947,7 @@ module Google
|
|
2839
2947
|
#
|
2840
2948
|
# @param project_id [::String]
|
2841
2949
|
# Deprecated. The Google Developers Console [project ID or project
|
2842
|
-
# number](https://
|
2950
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2843
2951
|
# This field has been deprecated and replaced by the name field.
|
2844
2952
|
# @param zone [::String]
|
2845
2953
|
# Deprecated. The name of the Google Compute Engine
|
@@ -2852,8 +2960,8 @@ module Google
|
|
2852
2960
|
# @param enabled [::Boolean]
|
2853
2961
|
# Required. Whether ABAC authorization will be enabled in the cluster.
|
2854
2962
|
# @param name [::String]
|
2855
|
-
# The name (project, location, cluster
|
2856
|
-
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2963
|
+
# The name (project, location, cluster name) of the cluster to set legacy
|
2964
|
+
# abac. Specified in the format `projects/*/locations/*/clusters/*`.
|
2857
2965
|
#
|
2858
2966
|
# @yield [response, operation] Access the result along with the RPC operation
|
2859
2967
|
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
@@ -2939,7 +3047,7 @@ module Google
|
|
2939
3047
|
#
|
2940
3048
|
# @param project_id [::String]
|
2941
3049
|
# Deprecated. The Google Developers Console [project ID or project
|
2942
|
-
# number](https://
|
3050
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
2943
3051
|
# This field has been deprecated and replaced by the name field.
|
2944
3052
|
# @param zone [::String]
|
2945
3053
|
# Deprecated. The name of the Google Compute Engine
|
@@ -2950,7 +3058,7 @@ module Google
|
|
2950
3058
|
# Deprecated. The name of the cluster.
|
2951
3059
|
# This field has been deprecated and replaced by the name field.
|
2952
3060
|
# @param name [::String]
|
2953
|
-
# The name (project, location, cluster
|
3061
|
+
# The name (project, location, cluster name) of the cluster to start IP
|
2954
3062
|
# rotation. Specified in the format `projects/*/locations/*/clusters/*`.
|
2955
3063
|
# @param rotate_credentials [::Boolean]
|
2956
3064
|
# Whether to rotate credentials during IP rotation.
|
@@ -3039,7 +3147,7 @@ module Google
|
|
3039
3147
|
#
|
3040
3148
|
# @param project_id [::String]
|
3041
3149
|
# Deprecated. The Google Developers Console [project ID or project
|
3042
|
-
# number](https://
|
3150
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
3043
3151
|
# This field has been deprecated and replaced by the name field.
|
3044
3152
|
# @param zone [::String]
|
3045
3153
|
# Deprecated. The name of the Google Compute Engine
|
@@ -3050,7 +3158,7 @@ module Google
|
|
3050
3158
|
# Deprecated. The name of the cluster.
|
3051
3159
|
# This field has been deprecated and replaced by the name field.
|
3052
3160
|
# @param name [::String]
|
3053
|
-
# The name (project, location, cluster
|
3161
|
+
# The name (project, location, cluster name) of the cluster to complete IP
|
3054
3162
|
# rotation. Specified in the format `projects/*/locations/*/clusters/*`.
|
3055
3163
|
#
|
3056
3164
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -3139,7 +3247,7 @@ module Google
|
|
3139
3247
|
#
|
3140
3248
|
# @param project_id [::String]
|
3141
3249
|
# Deprecated. The Google Developers Console [project ID or project
|
3142
|
-
# number](https://
|
3250
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
3143
3251
|
# This field has been deprecated and replaced by the name field.
|
3144
3252
|
# @param zone [::String]
|
3145
3253
|
# Deprecated. The name of the Google Compute Engine
|
@@ -3243,7 +3351,7 @@ module Google
|
|
3243
3351
|
#
|
3244
3352
|
# @param project_id [::String]
|
3245
3353
|
# Deprecated. The Google Developers Console [project ID or project
|
3246
|
-
# number](https://
|
3354
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
3247
3355
|
# This field has been deprecated and replaced by the name field.
|
3248
3356
|
# @param zone [::String]
|
3249
3357
|
# Deprecated. The name of the Google Compute Engine
|
@@ -3256,7 +3364,7 @@ module Google
|
|
3256
3364
|
# @param network_policy [::Google::Cloud::Container::V1::NetworkPolicy, ::Hash]
|
3257
3365
|
# Required. Configuration options for the NetworkPolicy feature.
|
3258
3366
|
# @param name [::String]
|
3259
|
-
# The name (project, location, cluster
|
3367
|
+
# The name (project, location, cluster name) of the cluster to set networking
|
3260
3368
|
# policy. Specified in the format `projects/*/locations/*/clusters/*`.
|
3261
3369
|
#
|
3262
3370
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -3343,7 +3451,7 @@ module Google
|
|
3343
3451
|
#
|
3344
3452
|
# @param project_id [::String]
|
3345
3453
|
# Required. The Google Developers Console [project ID or project
|
3346
|
-
# number](https://
|
3454
|
+
# number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
|
3347
3455
|
# @param zone [::String]
|
3348
3456
|
# Required. The name of the Google Compute Engine
|
3349
3457
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
@@ -3354,8 +3462,8 @@ module Google
|
|
3354
3462
|
# Required. The maintenance policy to be set for the cluster. An empty field
|
3355
3463
|
# clears the existing maintenance policy.
|
3356
3464
|
# @param name [::String]
|
3357
|
-
# The name (project, location, cluster
|
3358
|
-
# policy.
|
3465
|
+
# The name (project, location, cluster name) of the cluster to set
|
3466
|
+
# maintenance policy.
|
3359
3467
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
3360
3468
|
#
|
3361
3469
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -3774,6 +3882,11 @@ module Google
|
|
3774
3882
|
#
|
3775
3883
|
attr_reader :delete_node_pool
|
3776
3884
|
##
|
3885
|
+
# RPC-specific configuration for `complete_node_pool_upgrade`
|
3886
|
+
# @return [::Gapic::Config::Method]
|
3887
|
+
#
|
3888
|
+
attr_reader :complete_node_pool_upgrade
|
3889
|
+
##
|
3777
3890
|
# RPC-specific configuration for `rollback_node_pool_upgrade`
|
3778
3891
|
# @return [::Gapic::Config::Method]
|
3779
3892
|
#
|
@@ -3870,6 +3983,8 @@ module Google
|
|
3870
3983
|
@create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
|
3871
3984
|
delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
|
3872
3985
|
@delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
|
3986
|
+
complete_node_pool_upgrade_config = parent_rpcs.complete_node_pool_upgrade if parent_rpcs.respond_to? :complete_node_pool_upgrade
|
3987
|
+
@complete_node_pool_upgrade = ::Gapic::Config::Method.new complete_node_pool_upgrade_config
|
3873
3988
|
rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
|
3874
3989
|
@rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
|
3875
3990
|
set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
|