google-cloud-container-v1beta1 0.2.4 → 0.5.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/LICENSE.md +188 -190
- data/README.md +66 -2
- data/lib/google/cloud/container/v1beta1.rb +3 -0
- data/lib/google/cloud/container/v1beta1/cluster_manager.rb +1 -0
- data/lib/google/cloud/container/v1beta1/cluster_manager/client.rb +287 -171
- data/lib/google/cloud/container/v1beta1/cluster_manager/paths.rb +50 -0
- data/lib/google/cloud/container/v1beta1/version.rb +1 -1
- data/lib/google/container/v1beta1/cluster_service_pb.rb +264 -0
- data/lib/google/container/v1beta1/cluster_service_services_pb.rb +43 -35
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/container/v1beta1/cluster_service.rb +1114 -210
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/code.rb +185 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +14 -7
@@ -23,6 +23,7 @@ require "gapic/config/method"
|
|
23
23
|
require "google/cloud/container/v1beta1/version"
|
24
24
|
|
25
25
|
require "google/cloud/container/v1beta1/cluster_manager/credentials"
|
26
|
+
require "google/cloud/container/v1beta1/cluster_manager/paths"
|
26
27
|
require "google/cloud/container/v1beta1/cluster_manager/client"
|
27
28
|
|
28
29
|
module Google
|
@@ -30,6 +30,8 @@ module Google
|
|
30
30
|
# Google Kubernetes Engine Cluster Manager v1beta1
|
31
31
|
#
|
32
32
|
class Client
|
33
|
+
include Paths
|
34
|
+
|
33
35
|
# @private
|
34
36
|
attr_reader :cluster_manager_stub
|
35
37
|
|
@@ -58,7 +60,7 @@ module Google
|
|
58
60
|
parent_config = while namespace.any?
|
59
61
|
parent_name = namespace.join "::"
|
60
62
|
parent_const = const_get parent_name
|
61
|
-
break parent_const.configure if parent_const
|
63
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
62
64
|
namespace.pop
|
63
65
|
end
|
64
66
|
default_config = Client::Configuration.new parent_config
|
@@ -66,17 +68,17 @@ module Google
|
|
66
68
|
default_config.rpcs.list_clusters.timeout = 20.0
|
67
69
|
default_config.rpcs.list_clusters.retry_policy = {
|
68
70
|
initial_delay: 0.1,
|
69
|
-
|
70
|
-
|
71
|
-
|
71
|
+
max_delay: 60.0,
|
72
|
+
multiplier: 1.3,
|
73
|
+
retry_codes: [14, 4]
|
72
74
|
}
|
73
75
|
|
74
76
|
default_config.rpcs.get_cluster.timeout = 20.0
|
75
77
|
default_config.rpcs.get_cluster.retry_policy = {
|
76
78
|
initial_delay: 0.1,
|
77
|
-
|
78
|
-
|
79
|
-
|
79
|
+
max_delay: 60.0,
|
80
|
+
multiplier: 1.3,
|
81
|
+
retry_codes: [14, 4]
|
80
82
|
}
|
81
83
|
|
82
84
|
default_config.rpcs.create_cluster.timeout = 45.0
|
@@ -102,25 +104,25 @@ module Google
|
|
102
104
|
default_config.rpcs.delete_cluster.timeout = 20.0
|
103
105
|
default_config.rpcs.delete_cluster.retry_policy = {
|
104
106
|
initial_delay: 0.1,
|
105
|
-
|
106
|
-
|
107
|
-
|
107
|
+
max_delay: 60.0,
|
108
|
+
multiplier: 1.3,
|
109
|
+
retry_codes: [14, 4]
|
108
110
|
}
|
109
111
|
|
110
112
|
default_config.rpcs.list_operations.timeout = 20.0
|
111
113
|
default_config.rpcs.list_operations.retry_policy = {
|
112
114
|
initial_delay: 0.1,
|
113
|
-
|
114
|
-
|
115
|
-
|
115
|
+
max_delay: 60.0,
|
116
|
+
multiplier: 1.3,
|
117
|
+
retry_codes: [14, 4]
|
116
118
|
}
|
117
119
|
|
118
120
|
default_config.rpcs.get_operation.timeout = 20.0
|
119
121
|
default_config.rpcs.get_operation.retry_policy = {
|
120
122
|
initial_delay: 0.1,
|
121
|
-
|
122
|
-
|
123
|
-
|
123
|
+
max_delay: 60.0,
|
124
|
+
multiplier: 1.3,
|
125
|
+
retry_codes: [14, 4]
|
124
126
|
}
|
125
127
|
|
126
128
|
default_config.rpcs.cancel_operation.timeout = 45.0
|
@@ -128,25 +130,25 @@ module Google
|
|
128
130
|
default_config.rpcs.get_server_config.timeout = 20.0
|
129
131
|
default_config.rpcs.get_server_config.retry_policy = {
|
130
132
|
initial_delay: 0.1,
|
131
|
-
|
132
|
-
|
133
|
-
|
133
|
+
max_delay: 60.0,
|
134
|
+
multiplier: 1.3,
|
135
|
+
retry_codes: [14, 4]
|
134
136
|
}
|
135
137
|
|
136
138
|
default_config.rpcs.list_node_pools.timeout = 20.0
|
137
139
|
default_config.rpcs.list_node_pools.retry_policy = {
|
138
140
|
initial_delay: 0.1,
|
139
|
-
|
140
|
-
|
141
|
-
|
141
|
+
max_delay: 60.0,
|
142
|
+
multiplier: 1.3,
|
143
|
+
retry_codes: [14, 4]
|
142
144
|
}
|
143
145
|
|
144
146
|
default_config.rpcs.get_node_pool.timeout = 20.0
|
145
147
|
default_config.rpcs.get_node_pool.retry_policy = {
|
146
148
|
initial_delay: 0.1,
|
147
|
-
|
148
|
-
|
149
|
-
|
149
|
+
max_delay: 60.0,
|
150
|
+
multiplier: 1.3,
|
151
|
+
retry_codes: [14, 4]
|
150
152
|
}
|
151
153
|
|
152
154
|
default_config.rpcs.create_node_pool.timeout = 45.0
|
@@ -154,9 +156,9 @@ module Google
|
|
154
156
|
default_config.rpcs.delete_node_pool.timeout = 20.0
|
155
157
|
default_config.rpcs.delete_node_pool.retry_policy = {
|
156
158
|
initial_delay: 0.1,
|
157
|
-
|
158
|
-
|
159
|
-
|
159
|
+
max_delay: 60.0,
|
160
|
+
multiplier: 1.3,
|
161
|
+
retry_codes: [14, 4]
|
160
162
|
}
|
161
163
|
|
162
164
|
default_config.rpcs.rollback_node_pool_upgrade.timeout = 45.0
|
@@ -180,17 +182,17 @@ module Google
|
|
180
182
|
default_config.rpcs.list_usable_subnetworks.timeout = 20.0
|
181
183
|
default_config.rpcs.list_usable_subnetworks.retry_policy = {
|
182
184
|
initial_delay: 0.1,
|
183
|
-
|
184
|
-
|
185
|
-
|
185
|
+
max_delay: 60.0,
|
186
|
+
multiplier: 1.3,
|
187
|
+
retry_codes: [14, 4]
|
186
188
|
}
|
187
189
|
|
188
190
|
default_config.rpcs.list_locations.timeout = 20.0
|
189
191
|
default_config.rpcs.list_locations.retry_policy = {
|
190
192
|
initial_delay: 0.1,
|
191
|
-
|
192
|
-
|
193
|
-
|
193
|
+
max_delay: 60.0,
|
194
|
+
multiplier: 1.3,
|
195
|
+
retry_codes: [14, 4]
|
194
196
|
}
|
195
197
|
|
196
198
|
default_config
|
@@ -254,7 +256,13 @@ module Google
|
|
254
256
|
|
255
257
|
# Create credentials
|
256
258
|
credentials = @config.credentials
|
257
|
-
|
259
|
+
# Use self-signed JWT if the scope and endpoint are unchanged from default,
|
260
|
+
# but only if the default endpoint does not have a region prefix.
|
261
|
+
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
262
|
+
@config.endpoint == Client.configure.endpoint &&
|
263
|
+
!@config.endpoint.split(".").first.include?("-")
|
264
|
+
credentials ||= Credentials.default scope: @config.scope,
|
265
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
258
266
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
259
267
|
credentials = Credentials.new credentials, scope: @config.scope
|
260
268
|
end
|
@@ -297,9 +305,9 @@ module Google
|
|
297
305
|
# This field has been deprecated and replaced by the parent field.
|
298
306
|
# @param zone [::String]
|
299
307
|
# Required. Deprecated. The name of the Google Compute Engine
|
300
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
301
|
-
# resides, or "-" for all zones.
|
302
|
-
#
|
308
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
309
|
+
# cluster resides, or "-" for all zones. This field has been deprecated and
|
310
|
+
# replaced by the parent field.
|
303
311
|
# @param parent [::String]
|
304
312
|
# The parent (project and location) where the clusters will be listed.
|
305
313
|
# Specified in the format `projects/*/locations/*`.
|
@@ -374,9 +382,9 @@ module Google
|
|
374
382
|
# This field has been deprecated and replaced by the name field.
|
375
383
|
# @param zone [::String]
|
376
384
|
# Required. Deprecated. The name of the Google Compute Engine
|
377
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
378
|
-
# resides.
|
379
|
-
#
|
385
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
386
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
387
|
+
# field.
|
380
388
|
# @param cluster_id [::String]
|
381
389
|
# Required. Deprecated. The name of the cluster to retrieve.
|
382
390
|
# This field has been deprecated and replaced by the name field.
|
@@ -434,7 +442,8 @@ module Google
|
|
434
442
|
# Compute Engine instances.
|
435
443
|
#
|
436
444
|
# By default, the cluster is created in the project's
|
437
|
-
# [default
|
445
|
+
# [default
|
446
|
+
# network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
|
438
447
|
#
|
439
448
|
# One firewall is added for the cluster. After cluster creation,
|
440
449
|
# the Kubelet creates routes for each node to allow the containers
|
@@ -465,12 +474,12 @@ module Google
|
|
465
474
|
# This field has been deprecated and replaced by the parent field.
|
466
475
|
# @param zone [::String]
|
467
476
|
# Required. Deprecated. The name of the Google Compute Engine
|
468
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
469
|
-
# resides.
|
470
|
-
#
|
477
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
478
|
+
# cluster resides. This field has been deprecated and replaced by the parent
|
479
|
+
# field.
|
471
480
|
# @param cluster [::Google::Cloud::Container::V1beta1::Cluster, ::Hash]
|
472
481
|
# Required. A [cluster
|
473
|
-
# resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.
|
482
|
+
# resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
|
474
483
|
# @param parent [::String]
|
475
484
|
# The parent (project and location) where the cluster will be created.
|
476
485
|
# Specified in the format `projects/*/locations/*`.
|
@@ -544,9 +553,9 @@ module Google
|
|
544
553
|
# This field has been deprecated and replaced by the name field.
|
545
554
|
# @param zone [::String]
|
546
555
|
# Required. Deprecated. The name of the Google Compute Engine
|
547
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
548
|
-
# resides.
|
549
|
-
#
|
556
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
557
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
558
|
+
# field.
|
550
559
|
# @param cluster_id [::String]
|
551
560
|
# Required. Deprecated. The name of the cluster to upgrade.
|
552
561
|
# This field has been deprecated and replaced by the name field.
|
@@ -614,7 +623,7 @@ module Google
|
|
614
623
|
# @param options [::Gapic::CallOptions, ::Hash]
|
615
624
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
616
625
|
#
|
617
|
-
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, workload_metadata_config: nil, name: nil)
|
626
|
+
# @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, linux_node_config: nil, kubelet_config: nil)
|
618
627
|
# Pass arguments to `update_node_pool` via keyword arguments. Note that at
|
619
628
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
620
629
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -625,9 +634,9 @@ module Google
|
|
625
634
|
# This field has been deprecated and replaced by the name field.
|
626
635
|
# @param zone [::String]
|
627
636
|
# Required. Deprecated. The name of the Google Compute Engine
|
628
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
629
|
-
# resides.
|
630
|
-
#
|
637
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
638
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
639
|
+
# field.
|
631
640
|
# @param cluster_id [::String]
|
632
641
|
# Required. Deprecated. The name of the cluster to upgrade.
|
633
642
|
# This field has been deprecated and replaced by the name field.
|
@@ -648,12 +657,24 @@ module Google
|
|
648
657
|
# - "-": picks the Kubernetes master version
|
649
658
|
# @param image_type [::String]
|
650
659
|
# Required. The desired image type for the node pool.
|
660
|
+
# @param locations [::Array<::String>]
|
661
|
+
# The desired list of Google Compute Engine
|
662
|
+
# [zones](https://cloud.google.com/compute/docs/zones#available) in which the
|
663
|
+
# node pool's nodes should be located. Changing the locations for a node pool
|
664
|
+
# will result in nodes being either created or removed from the node pool,
|
665
|
+
# depending on whether locations are being added or removed.
|
651
666
|
# @param workload_metadata_config [::Google::Cloud::Container::V1beta1::WorkloadMetadataConfig, ::Hash]
|
652
|
-
# The desired
|
667
|
+
# The desired workload metadata config for the node pool.
|
653
668
|
# @param name [::String]
|
654
669
|
# The name (project, location, cluster, node pool) of the node pool to
|
655
670
|
# update. Specified in the format
|
656
671
|
# `projects/*/locations/*/clusters/*/nodePools/*`.
|
672
|
+
# @param upgrade_settings [::Google::Cloud::Container::V1beta1::NodePool::UpgradeSettings, ::Hash]
|
673
|
+
# Upgrade settings control disruption and speed of the upgrade.
|
674
|
+
# @param linux_node_config [::Google::Cloud::Container::V1beta1::LinuxNodeConfig, ::Hash]
|
675
|
+
# Parameters that can be configured on Linux nodes.
|
676
|
+
# @param kubelet_config [::Google::Cloud::Container::V1beta1::NodeKubeletConfig, ::Hash]
|
677
|
+
# Node kubelet configs.
|
657
678
|
#
|
658
679
|
# @yield [response, operation] Access the result along with the RPC operation
|
659
680
|
# @yieldparam response [::Google::Cloud::Container::V1beta1::Operation]
|
@@ -724,9 +745,9 @@ module Google
|
|
724
745
|
# This field has been deprecated and replaced by the name field.
|
725
746
|
# @param zone [::String]
|
726
747
|
# Required. Deprecated. The name of the Google Compute Engine
|
727
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
728
|
-
# resides.
|
729
|
-
#
|
748
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
749
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
750
|
+
# field.
|
730
751
|
# @param cluster_id [::String]
|
731
752
|
# Required. Deprecated. The name of the cluster to upgrade.
|
732
753
|
# This field has been deprecated and replaced by the name field.
|
@@ -809,18 +830,24 @@ module Google
|
|
809
830
|
# This field has been deprecated and replaced by the name field.
|
810
831
|
# @param zone [::String]
|
811
832
|
# Required. Deprecated. The name of the Google Compute Engine
|
812
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
813
|
-
# resides.
|
814
|
-
#
|
833
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
834
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
835
|
+
# field.
|
815
836
|
# @param cluster_id [::String]
|
816
837
|
# Required. Deprecated. The name of the cluster to upgrade.
|
817
838
|
# This field has been deprecated and replaced by the name field.
|
818
839
|
# @param logging_service [::String]
|
819
|
-
# Required. The logging service the cluster should use to write
|
840
|
+
# Required. The logging service the cluster should use to write logs.
|
820
841
|
# Currently available options:
|
821
842
|
#
|
822
|
-
# *
|
823
|
-
#
|
843
|
+
# * `logging.googleapis.com/kubernetes` - The Cloud Logging
|
844
|
+
# service with a Kubernetes-native resource model
|
845
|
+
# * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
|
846
|
+
# available as of GKE 1.15).
|
847
|
+
# * `none` - no logs will be exported from the cluster.
|
848
|
+
#
|
849
|
+
# If left as an empty string,`logging.googleapis.com/kubernetes` will be
|
850
|
+
# used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
|
824
851
|
# @param name [::String]
|
825
852
|
# The name (project, location, cluster) of the cluster to set logging.
|
826
853
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
@@ -894,9 +921,9 @@ module Google
|
|
894
921
|
# This field has been deprecated and replaced by the name field.
|
895
922
|
# @param zone [::String]
|
896
923
|
# Required. Deprecated. The name of the Google Compute Engine
|
897
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
898
|
-
# resides.
|
899
|
-
#
|
924
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
925
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
926
|
+
# field.
|
900
927
|
# @param cluster_id [::String]
|
901
928
|
# Required. Deprecated. The name of the cluster to upgrade.
|
902
929
|
# This field has been deprecated and replaced by the name field.
|
@@ -904,8 +931,14 @@ module Google
|
|
904
931
|
# Required. The monitoring service the cluster should use to write metrics.
|
905
932
|
# Currently available options:
|
906
933
|
#
|
907
|
-
# * "monitoring.googleapis.com" -
|
908
|
-
#
|
934
|
+
# * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
|
935
|
+
# service with a Kubernetes-native resource model
|
936
|
+
# * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
|
937
|
+
# longer available as of GKE 1.15).
|
938
|
+
# * `none` - No metrics will be exported from the cluster.
|
939
|
+
#
|
940
|
+
# If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
|
941
|
+
# used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
|
909
942
|
# @param name [::String]
|
910
943
|
# The name (project, location, cluster) of the cluster to set monitoring.
|
911
944
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
@@ -979,9 +1012,9 @@ module Google
|
|
979
1012
|
# This field has been deprecated and replaced by the name field.
|
980
1013
|
# @param zone [::String]
|
981
1014
|
# Required. Deprecated. The name of the Google Compute Engine
|
982
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
983
|
-
# resides.
|
984
|
-
#
|
1015
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1016
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1017
|
+
# field.
|
985
1018
|
# @param cluster_id [::String]
|
986
1019
|
# Required. Deprecated. The name of the cluster to upgrade.
|
987
1020
|
# This field has been deprecated and replaced by the name field.
|
@@ -1039,6 +1072,9 @@ module Google
|
|
1039
1072
|
|
1040
1073
|
##
|
1041
1074
|
# Sets the locations for a specific cluster.
|
1075
|
+
# Deprecated. Use
|
1076
|
+
# [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
|
1077
|
+
# instead.
|
1042
1078
|
#
|
1043
1079
|
# @overload set_locations(request, options = nil)
|
1044
1080
|
# Pass arguments to `set_locations` via a request object, either of type
|
@@ -1061,18 +1097,18 @@ module Google
|
|
1061
1097
|
# This field has been deprecated and replaced by the name field.
|
1062
1098
|
# @param zone [::String]
|
1063
1099
|
# Required. Deprecated. The name of the Google Compute Engine
|
1064
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1065
|
-
# resides.
|
1066
|
-
#
|
1100
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1101
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1102
|
+
# field.
|
1067
1103
|
# @param cluster_id [::String]
|
1068
1104
|
# Required. Deprecated. The name of the cluster to upgrade.
|
1069
1105
|
# This field has been deprecated and replaced by the name field.
|
1070
1106
|
# @param locations [::Array<::String>]
|
1071
1107
|
# Required. The desired list of Google Compute Engine
|
1072
|
-
# [zones](https://cloud.google.com/compute/docs/zones#available) in which the
|
1073
|
-
# should be located. Changing the locations a cluster is in
|
1074
|
-
# in nodes being either created or removed from the cluster,
|
1075
|
-
# whether locations are being added or removed.
|
1108
|
+
# [zones](https://cloud.google.com/compute/docs/zones#available) in which the
|
1109
|
+
# cluster's nodes should be located. Changing the locations a cluster is in
|
1110
|
+
# will result in nodes being either created or removed from the cluster,
|
1111
|
+
# depending on whether locations are being added or removed.
|
1076
1112
|
#
|
1077
1113
|
# This list must always include the cluster's primary zone.
|
1078
1114
|
# @param name [::String]
|
@@ -1148,9 +1184,9 @@ module Google
|
|
1148
1184
|
# This field has been deprecated and replaced by the name field.
|
1149
1185
|
# @param zone [::String]
|
1150
1186
|
# Required. Deprecated. The name of the Google Compute Engine
|
1151
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1152
|
-
# resides.
|
1153
|
-
#
|
1187
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1188
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1189
|
+
# field.
|
1154
1190
|
# @param cluster_id [::String]
|
1155
1191
|
# Required. Deprecated. The name of the cluster to upgrade.
|
1156
1192
|
# This field has been deprecated and replaced by the name field.
|
@@ -1240,9 +1276,9 @@ module Google
|
|
1240
1276
|
# This field has been deprecated and replaced by the name field.
|
1241
1277
|
# @param zone [::String]
|
1242
1278
|
# Required. Deprecated. The name of the Google Compute Engine
|
1243
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1244
|
-
# resides.
|
1245
|
-
#
|
1279
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1280
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1281
|
+
# field.
|
1246
1282
|
# @param cluster_id [::String]
|
1247
1283
|
# Required. Deprecated. The name of the cluster to upgrade.
|
1248
1284
|
# This field has been deprecated and replaced by the name field.
|
@@ -1331,9 +1367,9 @@ module Google
|
|
1331
1367
|
# This field has been deprecated and replaced by the name field.
|
1332
1368
|
# @param zone [::String]
|
1333
1369
|
# Required. Deprecated. The name of the Google Compute Engine
|
1334
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1335
|
-
# resides.
|
1336
|
-
#
|
1370
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1371
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1372
|
+
# field.
|
1337
1373
|
# @param cluster_id [::String]
|
1338
1374
|
# Required. Deprecated. The name of the cluster to delete.
|
1339
1375
|
# This field has been deprecated and replaced by the name field.
|
@@ -1410,8 +1446,9 @@ module Google
|
|
1410
1446
|
# This field has been deprecated and replaced by the parent field.
|
1411
1447
|
# @param zone [::String]
|
1412
1448
|
# Required. Deprecated. The name of the Google Compute Engine
|
1413
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
1414
|
-
# all zones. This field has been deprecated and
|
1449
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
1450
|
+
# operations for, or `-` for all zones. This field has been deprecated and
|
1451
|
+
# replaced by the parent field.
|
1415
1452
|
# @param parent [::String]
|
1416
1453
|
# The parent (project and location) where the operations will be listed.
|
1417
1454
|
# Specified in the format `projects/*/locations/*`.
|
@@ -1486,9 +1523,9 @@ module Google
|
|
1486
1523
|
# This field has been deprecated and replaced by the name field.
|
1487
1524
|
# @param zone [::String]
|
1488
1525
|
# Required. Deprecated. The name of the Google Compute Engine
|
1489
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1490
|
-
# resides.
|
1491
|
-
#
|
1526
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1527
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1528
|
+
# field.
|
1492
1529
|
# @param operation_id [::String]
|
1493
1530
|
# Required. Deprecated. The server-assigned `name` of the operation.
|
1494
1531
|
# This field has been deprecated and replaced by the name field.
|
@@ -1565,8 +1602,9 @@ module Google
|
|
1565
1602
|
# This field has been deprecated and replaced by the name field.
|
1566
1603
|
# @param zone [::String]
|
1567
1604
|
# Required. Deprecated. The name of the Google Compute Engine
|
1568
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1569
|
-
# This field has been deprecated and replaced by the name
|
1605
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1606
|
+
# operation resides. This field has been deprecated and replaced by the name
|
1607
|
+
# field.
|
1570
1608
|
# @param operation_id [::String]
|
1571
1609
|
# Required. Deprecated. The server-assigned `name` of the operation.
|
1572
1610
|
# This field has been deprecated and replaced by the name field.
|
@@ -1643,8 +1681,9 @@ module Google
|
|
1643
1681
|
# This field has been deprecated and replaced by the name field.
|
1644
1682
|
# @param zone [::String]
|
1645
1683
|
# Required. Deprecated. The name of the Google Compute Engine
|
1646
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
1647
|
-
# This field has been deprecated and replaced by the name
|
1684
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) to return
|
1685
|
+
# operations for. This field has been deprecated and replaced by the name
|
1686
|
+
# field.
|
1648
1687
|
# @param name [::String]
|
1649
1688
|
# The name (project and location) of the server config to get,
|
1650
1689
|
# specified in the format `projects/*/locations/*`.
|
@@ -1718,9 +1757,9 @@ module Google
|
|
1718
1757
|
# This field has been deprecated and replaced by the parent field.
|
1719
1758
|
# @param zone [::String]
|
1720
1759
|
# Required. Deprecated. The name of the Google Compute Engine
|
1721
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1722
|
-
# resides.
|
1723
|
-
#
|
1760
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1761
|
+
# cluster resides. This field has been deprecated and replaced by the parent
|
1762
|
+
# field.
|
1724
1763
|
# @param cluster_id [::String]
|
1725
1764
|
# Required. Deprecated. The name of the cluster.
|
1726
1765
|
# This field has been deprecated and replaced by the parent field.
|
@@ -1773,6 +1812,76 @@ module Google
|
|
1773
1812
|
raise ::Google::Cloud::Error.from_error(e)
|
1774
1813
|
end
|
1775
1814
|
|
1815
|
+
##
|
1816
|
+
# Gets the public component of the cluster signing keys in
|
1817
|
+
# JSON Web Key format.
|
1818
|
+
# This API is not yet intended for general use, and is not available for all
|
1819
|
+
# clusters.
|
1820
|
+
#
|
1821
|
+
# @overload get_json_web_keys(request, options = nil)
|
1822
|
+
# Pass arguments to `get_json_web_keys` via a request object, either of type
|
1823
|
+
# {::Google::Cloud::Container::V1beta1::GetJSONWebKeysRequest} or an equivalent Hash.
|
1824
|
+
#
|
1825
|
+
# @param request [::Google::Cloud::Container::V1beta1::GetJSONWebKeysRequest, ::Hash]
|
1826
|
+
# A request object representing the call parameters. Required. To specify no
|
1827
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1828
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1829
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1830
|
+
#
|
1831
|
+
# @overload get_json_web_keys(parent: nil)
|
1832
|
+
# Pass arguments to `get_json_web_keys` via keyword arguments. Note that at
|
1833
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1834
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1835
|
+
#
|
1836
|
+
# @param parent [::String]
|
1837
|
+
# The cluster (project, location, cluster id) to get keys for. Specified in
|
1838
|
+
# the format `projects/*/locations/*/clusters/*`.
|
1839
|
+
#
|
1840
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1841
|
+
# @yieldparam response [::Google::Cloud::Container::V1beta1::GetJSONWebKeysResponse]
|
1842
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1843
|
+
#
|
1844
|
+
# @return [::Google::Cloud::Container::V1beta1::GetJSONWebKeysResponse]
|
1845
|
+
#
|
1846
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1847
|
+
#
|
1848
|
+
def get_json_web_keys request, options = nil
|
1849
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1850
|
+
|
1851
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1beta1::GetJSONWebKeysRequest
|
1852
|
+
|
1853
|
+
# Converts hash and nil to an options object
|
1854
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1855
|
+
|
1856
|
+
# Customize the options with defaults
|
1857
|
+
metadata = @config.rpcs.get_json_web_keys.metadata.to_h
|
1858
|
+
|
1859
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1860
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1861
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1862
|
+
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1863
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1864
|
+
|
1865
|
+
header_params = {
|
1866
|
+
"parent" => request.parent
|
1867
|
+
}
|
1868
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1869
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1870
|
+
|
1871
|
+
options.apply_defaults timeout: @config.rpcs.get_json_web_keys.timeout,
|
1872
|
+
metadata: metadata,
|
1873
|
+
retry_policy: @config.rpcs.get_json_web_keys.retry_policy
|
1874
|
+
options.apply_defaults metadata: @config.metadata,
|
1875
|
+
retry_policy: @config.retry_policy
|
1876
|
+
|
1877
|
+
@cluster_manager_stub.call_rpc :get_json_web_keys, request, options: options do |response, operation|
|
1878
|
+
yield response, operation if block_given?
|
1879
|
+
return response
|
1880
|
+
end
|
1881
|
+
rescue ::GRPC::BadStatus => e
|
1882
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1883
|
+
end
|
1884
|
+
|
1776
1885
|
##
|
1777
1886
|
# Retrieves the requested node pool.
|
1778
1887
|
#
|
@@ -1797,9 +1906,9 @@ module Google
|
|
1797
1906
|
# This field has been deprecated and replaced by the name field.
|
1798
1907
|
# @param zone [::String]
|
1799
1908
|
# Required. Deprecated. The name of the Google Compute Engine
|
1800
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1801
|
-
# resides.
|
1802
|
-
#
|
1909
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1910
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
1911
|
+
# field.
|
1803
1912
|
# @param cluster_id [::String]
|
1804
1913
|
# Required. Deprecated. The name of the cluster.
|
1805
1914
|
# This field has been deprecated and replaced by the name field.
|
@@ -1880,9 +1989,9 @@ module Google
|
|
1880
1989
|
# This field has been deprecated and replaced by the parent field.
|
1881
1990
|
# @param zone [::String]
|
1882
1991
|
# Required. Deprecated. The name of the Google Compute Engine
|
1883
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1884
|
-
# resides.
|
1885
|
-
#
|
1992
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1993
|
+
# cluster resides. This field has been deprecated and replaced by the parent
|
1994
|
+
# field.
|
1886
1995
|
# @param cluster_id [::String]
|
1887
1996
|
# Required. Deprecated. The name of the cluster.
|
1888
1997
|
# This field has been deprecated and replaced by the parent field.
|
@@ -1962,9 +2071,9 @@ module Google
|
|
1962
2071
|
# This field has been deprecated and replaced by the name field.
|
1963
2072
|
# @param zone [::String]
|
1964
2073
|
# Required. Deprecated. The name of the Google Compute Engine
|
1965
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
1966
|
-
# resides.
|
1967
|
-
#
|
2074
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2075
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2076
|
+
# field.
|
1968
2077
|
# @param cluster_id [::String]
|
1969
2078
|
# Required. Deprecated. The name of the cluster.
|
1970
2079
|
# This field has been deprecated and replaced by the name field.
|
@@ -2046,9 +2155,9 @@ module Google
|
|
2046
2155
|
# This field has been deprecated and replaced by the name field.
|
2047
2156
|
# @param zone [::String]
|
2048
2157
|
# Required. Deprecated. The name of the Google Compute Engine
|
2049
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2050
|
-
# resides.
|
2051
|
-
#
|
2158
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2159
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2160
|
+
# field.
|
2052
2161
|
# @param cluster_id [::String]
|
2053
2162
|
# Required. Deprecated. The name of the cluster to rollback.
|
2054
2163
|
# This field has been deprecated and replaced by the name field.
|
@@ -2129,9 +2238,9 @@ module Google
|
|
2129
2238
|
# This field has been deprecated and replaced by the name field.
|
2130
2239
|
# @param zone [::String]
|
2131
2240
|
# Required. Deprecated. The name of the Google Compute Engine
|
2132
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2133
|
-
# resides.
|
2134
|
-
#
|
2241
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2242
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2243
|
+
# field.
|
2135
2244
|
# @param cluster_id [::String]
|
2136
2245
|
# Required. Deprecated. The name of the cluster to update.
|
2137
2246
|
# This field has been deprecated and replaced by the name field.
|
@@ -2214,9 +2323,9 @@ module Google
|
|
2214
2323
|
# This field has been deprecated and replaced by the name field.
|
2215
2324
|
# @param zone [::String]
|
2216
2325
|
# Required. Deprecated. The name of the Google Compute Engine
|
2217
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2218
|
-
# resides.
|
2219
|
-
#
|
2326
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2327
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2328
|
+
# field.
|
2220
2329
|
# @param cluster_id [::String]
|
2221
2330
|
# Required. Deprecated. The name of the cluster.
|
2222
2331
|
# This field has been deprecated and replaced by the name field.
|
@@ -2227,7 +2336,7 @@ module Google
|
|
2227
2336
|
# used to detect conflicts. The fingerprint is initially generated by
|
2228
2337
|
# Kubernetes Engine and changes after every request to modify or update
|
2229
2338
|
# labels. You must always provide an up-to-date fingerprint hash when
|
2230
|
-
# updating or changing labels. Make a
|
2339
|
+
# updating or changing labels. Make a `get()` request to the
|
2231
2340
|
# resource to get the latest fingerprint.
|
2232
2341
|
# @param name [::String]
|
2233
2342
|
# The name (project, location, cluster id) of the cluster to set labels.
|
@@ -2302,9 +2411,9 @@ module Google
|
|
2302
2411
|
# This field has been deprecated and replaced by the name field.
|
2303
2412
|
# @param zone [::String]
|
2304
2413
|
# Required. Deprecated. The name of the Google Compute Engine
|
2305
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2306
|
-
# resides.
|
2307
|
-
#
|
2414
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2415
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2416
|
+
# field.
|
2308
2417
|
# @param cluster_id [::String]
|
2309
2418
|
# Required. Deprecated. The name of the cluster to update.
|
2310
2419
|
# This field has been deprecated and replaced by the name field.
|
@@ -2383,9 +2492,9 @@ module Google
|
|
2383
2492
|
# This field has been deprecated and replaced by the name field.
|
2384
2493
|
# @param zone [::String]
|
2385
2494
|
# Required. Deprecated. The name of the Google Compute Engine
|
2386
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2387
|
-
# resides.
|
2388
|
-
#
|
2495
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2496
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2497
|
+
# field.
|
2389
2498
|
# @param cluster_id [::String]
|
2390
2499
|
# Required. Deprecated. The name of the cluster.
|
2391
2500
|
# This field has been deprecated and replaced by the name field.
|
@@ -2464,9 +2573,9 @@ module Google
|
|
2464
2573
|
# This field has been deprecated and replaced by the name field.
|
2465
2574
|
# @param zone [::String]
|
2466
2575
|
# Required. Deprecated. The name of the Google Compute Engine
|
2467
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2468
|
-
# resides.
|
2469
|
-
#
|
2576
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2577
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2578
|
+
# field.
|
2470
2579
|
# @param cluster_id [::String]
|
2471
2580
|
# Required. Deprecated. The name of the cluster.
|
2472
2581
|
# This field has been deprecated and replaced by the name field.
|
@@ -2543,9 +2652,9 @@ module Google
|
|
2543
2652
|
# This field has been deprecated and replaced by the name field.
|
2544
2653
|
# @param zone [::String]
|
2545
2654
|
# Required. Deprecated. The name of the Google Compute Engine
|
2546
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2547
|
-
# resides.
|
2548
|
-
#
|
2655
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2656
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2657
|
+
# field.
|
2549
2658
|
# @param cluster_id [::String]
|
2550
2659
|
# Required. Deprecated. The name of the cluster to update.
|
2551
2660
|
# This field has been deprecated and replaced by the name field.
|
@@ -2628,9 +2737,9 @@ module Google
|
|
2628
2737
|
# This field has been deprecated and replaced by the name field.
|
2629
2738
|
# @param zone [::String]
|
2630
2739
|
# Required. Deprecated. The name of the Google Compute Engine
|
2631
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2632
|
-
# resides.
|
2633
|
-
#
|
2740
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2741
|
+
# cluster resides. This field has been deprecated and replaced by the name
|
2742
|
+
# field.
|
2634
2743
|
# @param cluster_id [::String]
|
2635
2744
|
# Required. Deprecated. The name of the cluster.
|
2636
2745
|
# This field has been deprecated and replaced by the name field.
|
@@ -2708,8 +2817,8 @@ module Google
|
|
2708
2817
|
# number](https://support.google.com/cloud/answer/6158840).
|
2709
2818
|
# @param zone [::String]
|
2710
2819
|
# Required. The name of the Google Compute Engine
|
2711
|
-
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2712
|
-
# resides.
|
2820
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the
|
2821
|
+
# cluster resides.
|
2713
2822
|
# @param cluster_id [::String]
|
2714
2823
|
# Required. The name of the cluster to update.
|
2715
2824
|
# @param maintenance_policy [::Google::Cloud::Container::V1beta1::MaintenancePolicy, ::Hash]
|
@@ -2998,14 +3107,14 @@ module Google
|
|
2998
3107
|
|
2999
3108
|
config_attr :endpoint, "container.googleapis.com", ::String
|
3000
3109
|
config_attr :credentials, nil do |value|
|
3001
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3110
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3002
3111
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
3003
3112
|
allowed.any? { |klass| klass === value }
|
3004
3113
|
end
|
3005
3114
|
config_attr :scope, nil, ::String, ::Array, nil
|
3006
3115
|
config_attr :lib_name, nil, ::String, nil
|
3007
3116
|
config_attr :lib_version, nil, ::String, nil
|
3008
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
3117
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
3009
3118
|
config_attr :interceptors, nil, ::Array, nil
|
3010
3119
|
config_attr :timeout, nil, ::Numeric, nil
|
3011
3120
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -3026,7 +3135,7 @@ module Google
|
|
3026
3135
|
def rpcs
|
3027
3136
|
@rpcs ||= begin
|
3028
3137
|
parent_rpcs = nil
|
3029
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
3138
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
3030
3139
|
Rpcs.new parent_rpcs
|
3031
3140
|
end
|
3032
3141
|
end
|
@@ -3038,7 +3147,7 @@ module Google
|
|
3038
3147
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
3039
3148
|
# the following configuration fields:
|
3040
3149
|
#
|
3041
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
3150
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
3042
3151
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
3043
3152
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
3044
3153
|
# include the following keys:
|
@@ -3140,6 +3249,11 @@ module Google
|
|
3140
3249
|
#
|
3141
3250
|
attr_reader :list_node_pools
|
3142
3251
|
##
|
3252
|
+
# RPC-specific configuration for `get_json_web_keys`
|
3253
|
+
# @return [::Gapic::Config::Method]
|
3254
|
+
#
|
3255
|
+
attr_reader :get_json_web_keys
|
3256
|
+
##
|
3143
3257
|
# RPC-specific configuration for `get_node_pool`
|
3144
3258
|
# @return [::Gapic::Config::Method]
|
3145
3259
|
#
|
@@ -3212,69 +3326,71 @@ module Google
|
|
3212
3326
|
|
3213
3327
|
# @private
|
3214
3328
|
def initialize parent_rpcs = nil
|
3215
|
-
list_clusters_config = parent_rpcs
|
3329
|
+
list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
|
3216
3330
|
@list_clusters = ::Gapic::Config::Method.new list_clusters_config
|
3217
|
-
get_cluster_config = parent_rpcs
|
3331
|
+
get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
|
3218
3332
|
@get_cluster = ::Gapic::Config::Method.new get_cluster_config
|
3219
|
-
create_cluster_config = parent_rpcs
|
3333
|
+
create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
|
3220
3334
|
@create_cluster = ::Gapic::Config::Method.new create_cluster_config
|
3221
|
-
update_cluster_config = parent_rpcs
|
3335
|
+
update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
|
3222
3336
|
@update_cluster = ::Gapic::Config::Method.new update_cluster_config
|
3223
|
-
update_node_pool_config = parent_rpcs
|
3337
|
+
update_node_pool_config = parent_rpcs.update_node_pool if parent_rpcs.respond_to? :update_node_pool
|
3224
3338
|
@update_node_pool = ::Gapic::Config::Method.new update_node_pool_config
|
3225
|
-
set_node_pool_autoscaling_config = parent_rpcs
|
3339
|
+
set_node_pool_autoscaling_config = parent_rpcs.set_node_pool_autoscaling if parent_rpcs.respond_to? :set_node_pool_autoscaling
|
3226
3340
|
@set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config
|
3227
|
-
set_logging_service_config = parent_rpcs
|
3341
|
+
set_logging_service_config = parent_rpcs.set_logging_service if parent_rpcs.respond_to? :set_logging_service
|
3228
3342
|
@set_logging_service = ::Gapic::Config::Method.new set_logging_service_config
|
3229
|
-
set_monitoring_service_config = parent_rpcs
|
3343
|
+
set_monitoring_service_config = parent_rpcs.set_monitoring_service if parent_rpcs.respond_to? :set_monitoring_service
|
3230
3344
|
@set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config
|
3231
|
-
set_addons_config_config = parent_rpcs
|
3345
|
+
set_addons_config_config = parent_rpcs.set_addons_config if parent_rpcs.respond_to? :set_addons_config
|
3232
3346
|
@set_addons_config = ::Gapic::Config::Method.new set_addons_config_config
|
3233
|
-
set_locations_config = parent_rpcs
|
3347
|
+
set_locations_config = parent_rpcs.set_locations if parent_rpcs.respond_to? :set_locations
|
3234
3348
|
@set_locations = ::Gapic::Config::Method.new set_locations_config
|
3235
|
-
update_master_config = parent_rpcs
|
3349
|
+
update_master_config = parent_rpcs.update_master if parent_rpcs.respond_to? :update_master
|
3236
3350
|
@update_master = ::Gapic::Config::Method.new update_master_config
|
3237
|
-
set_master_auth_config = parent_rpcs
|
3351
|
+
set_master_auth_config = parent_rpcs.set_master_auth if parent_rpcs.respond_to? :set_master_auth
|
3238
3352
|
@set_master_auth = ::Gapic::Config::Method.new set_master_auth_config
|
3239
|
-
delete_cluster_config = parent_rpcs
|
3353
|
+
delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
|
3240
3354
|
@delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
|
3241
|
-
list_operations_config = parent_rpcs
|
3355
|
+
list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
|
3242
3356
|
@list_operations = ::Gapic::Config::Method.new list_operations_config
|
3243
|
-
get_operation_config = parent_rpcs
|
3357
|
+
get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
|
3244
3358
|
@get_operation = ::Gapic::Config::Method.new get_operation_config
|
3245
|
-
cancel_operation_config = parent_rpcs
|
3359
|
+
cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
|
3246
3360
|
@cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
|
3247
|
-
get_server_config_config = parent_rpcs
|
3361
|
+
get_server_config_config = parent_rpcs.get_server_config if parent_rpcs.respond_to? :get_server_config
|
3248
3362
|
@get_server_config = ::Gapic::Config::Method.new get_server_config_config
|
3249
|
-
list_node_pools_config = parent_rpcs
|
3363
|
+
list_node_pools_config = parent_rpcs.list_node_pools if parent_rpcs.respond_to? :list_node_pools
|
3250
3364
|
@list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
|
3251
|
-
|
3365
|
+
get_json_web_keys_config = parent_rpcs.get_json_web_keys if parent_rpcs.respond_to? :get_json_web_keys
|
3366
|
+
@get_json_web_keys = ::Gapic::Config::Method.new get_json_web_keys_config
|
3367
|
+
get_node_pool_config = parent_rpcs.get_node_pool if parent_rpcs.respond_to? :get_node_pool
|
3252
3368
|
@get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
|
3253
|
-
create_node_pool_config = parent_rpcs
|
3369
|
+
create_node_pool_config = parent_rpcs.create_node_pool if parent_rpcs.respond_to? :create_node_pool
|
3254
3370
|
@create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
|
3255
|
-
delete_node_pool_config = parent_rpcs
|
3371
|
+
delete_node_pool_config = parent_rpcs.delete_node_pool if parent_rpcs.respond_to? :delete_node_pool
|
3256
3372
|
@delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
|
3257
|
-
rollback_node_pool_upgrade_config = parent_rpcs
|
3373
|
+
rollback_node_pool_upgrade_config = parent_rpcs.rollback_node_pool_upgrade if parent_rpcs.respond_to? :rollback_node_pool_upgrade
|
3258
3374
|
@rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
|
3259
|
-
set_node_pool_management_config = parent_rpcs
|
3375
|
+
set_node_pool_management_config = parent_rpcs.set_node_pool_management if parent_rpcs.respond_to? :set_node_pool_management
|
3260
3376
|
@set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config
|
3261
|
-
set_labels_config = parent_rpcs
|
3377
|
+
set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
|
3262
3378
|
@set_labels = ::Gapic::Config::Method.new set_labels_config
|
3263
|
-
set_legacy_abac_config = parent_rpcs
|
3379
|
+
set_legacy_abac_config = parent_rpcs.set_legacy_abac if parent_rpcs.respond_to? :set_legacy_abac
|
3264
3380
|
@set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config
|
3265
|
-
start_ip_rotation_config = parent_rpcs
|
3381
|
+
start_ip_rotation_config = parent_rpcs.start_ip_rotation if parent_rpcs.respond_to? :start_ip_rotation
|
3266
3382
|
@start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config
|
3267
|
-
complete_ip_rotation_config = parent_rpcs
|
3383
|
+
complete_ip_rotation_config = parent_rpcs.complete_ip_rotation if parent_rpcs.respond_to? :complete_ip_rotation
|
3268
3384
|
@complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config
|
3269
|
-
set_node_pool_size_config = parent_rpcs
|
3385
|
+
set_node_pool_size_config = parent_rpcs.set_node_pool_size if parent_rpcs.respond_to? :set_node_pool_size
|
3270
3386
|
@set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config
|
3271
|
-
set_network_policy_config = parent_rpcs
|
3387
|
+
set_network_policy_config = parent_rpcs.set_network_policy if parent_rpcs.respond_to? :set_network_policy
|
3272
3388
|
@set_network_policy = ::Gapic::Config::Method.new set_network_policy_config
|
3273
|
-
set_maintenance_policy_config = parent_rpcs
|
3389
|
+
set_maintenance_policy_config = parent_rpcs.set_maintenance_policy if parent_rpcs.respond_to? :set_maintenance_policy
|
3274
3390
|
@set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
|
3275
|
-
list_usable_subnetworks_config = parent_rpcs
|
3391
|
+
list_usable_subnetworks_config = parent_rpcs.list_usable_subnetworks if parent_rpcs.respond_to? :list_usable_subnetworks
|
3276
3392
|
@list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
|
3277
|
-
list_locations_config = parent_rpcs
|
3393
|
+
list_locations_config = parent_rpcs.list_locations if parent_rpcs.respond_to? :list_locations
|
3278
3394
|
@list_locations = ::Gapic::Config::Method.new list_locations_config
|
3279
3395
|
|
3280
3396
|
yield self if block_given?
|