google-cloud-container-v1beta1 0.5.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/container/v1beta1/cluster_manager/client.rb +162 -118
- data/lib/google/cloud/container/v1beta1/version.rb +1 -1
- data/lib/google/container/v1beta1/cluster_service_pb.rb +151 -0
- data/lib/google/container/v1beta1/cluster_service_services_pb.rb +3 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/container/v1beta1/cluster_service.rb +481 -40
- data/proto_docs/google/type/date.rb +53 -0
- metadata +14 -7
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Container::V1beta1::ClusterManager::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all ClusterManager clients
|
47
|
+
# ::Google::Cloud::Container::V1beta1::ClusterManager::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -67,18 +66,12 @@ module Google
|
|
67
66
|
|
68
67
|
default_config.rpcs.list_clusters.timeout = 20.0
|
69
68
|
default_config.rpcs.list_clusters.retry_policy = {
|
70
|
-
initial_delay: 0.1,
|
71
|
-
max_delay: 60.0,
|
72
|
-
multiplier: 1.3,
|
73
|
-
retry_codes: [14, 4]
|
69
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
74
70
|
}
|
75
71
|
|
76
72
|
default_config.rpcs.get_cluster.timeout = 20.0
|
77
73
|
default_config.rpcs.get_cluster.retry_policy = {
|
78
|
-
initial_delay: 0.1,
|
79
|
-
max_delay: 60.0,
|
80
|
-
multiplier: 1.3,
|
81
|
-
retry_codes: [14, 4]
|
74
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
82
75
|
}
|
83
76
|
|
84
77
|
default_config.rpcs.create_cluster.timeout = 45.0
|
@@ -103,62 +96,41 @@ module Google
|
|
103
96
|
|
104
97
|
default_config.rpcs.delete_cluster.timeout = 20.0
|
105
98
|
default_config.rpcs.delete_cluster.retry_policy = {
|
106
|
-
initial_delay: 0.1,
|
107
|
-
max_delay: 60.0,
|
108
|
-
multiplier: 1.3,
|
109
|
-
retry_codes: [14, 4]
|
99
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
110
100
|
}
|
111
101
|
|
112
102
|
default_config.rpcs.list_operations.timeout = 20.0
|
113
103
|
default_config.rpcs.list_operations.retry_policy = {
|
114
|
-
initial_delay: 0.1,
|
115
|
-
max_delay: 60.0,
|
116
|
-
multiplier: 1.3,
|
117
|
-
retry_codes: [14, 4]
|
104
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
118
105
|
}
|
119
106
|
|
120
107
|
default_config.rpcs.get_operation.timeout = 20.0
|
121
108
|
default_config.rpcs.get_operation.retry_policy = {
|
122
|
-
initial_delay: 0.1,
|
123
|
-
max_delay: 60.0,
|
124
|
-
multiplier: 1.3,
|
125
|
-
retry_codes: [14, 4]
|
109
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
126
110
|
}
|
127
111
|
|
128
112
|
default_config.rpcs.cancel_operation.timeout = 45.0
|
129
113
|
|
130
114
|
default_config.rpcs.get_server_config.timeout = 20.0
|
131
115
|
default_config.rpcs.get_server_config.retry_policy = {
|
132
|
-
initial_delay: 0.1,
|
133
|
-
max_delay: 60.0,
|
134
|
-
multiplier: 1.3,
|
135
|
-
retry_codes: [14, 4]
|
116
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
136
117
|
}
|
137
118
|
|
138
119
|
default_config.rpcs.list_node_pools.timeout = 20.0
|
139
120
|
default_config.rpcs.list_node_pools.retry_policy = {
|
140
|
-
initial_delay: 0.1,
|
141
|
-
max_delay: 60.0,
|
142
|
-
multiplier: 1.3,
|
143
|
-
retry_codes: [14, 4]
|
121
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
144
122
|
}
|
145
123
|
|
146
124
|
default_config.rpcs.get_node_pool.timeout = 20.0
|
147
125
|
default_config.rpcs.get_node_pool.retry_policy = {
|
148
|
-
initial_delay: 0.1,
|
149
|
-
max_delay: 60.0,
|
150
|
-
multiplier: 1.3,
|
151
|
-
retry_codes: [14, 4]
|
126
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
152
127
|
}
|
153
128
|
|
154
129
|
default_config.rpcs.create_node_pool.timeout = 45.0
|
155
130
|
|
156
131
|
default_config.rpcs.delete_node_pool.timeout = 20.0
|
157
132
|
default_config.rpcs.delete_node_pool.retry_policy = {
|
158
|
-
initial_delay: 0.1,
|
159
|
-
max_delay: 60.0,
|
160
|
-
multiplier: 1.3,
|
161
|
-
retry_codes: [14, 4]
|
133
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
162
134
|
}
|
163
135
|
|
164
136
|
default_config.rpcs.rollback_node_pool_upgrade.timeout = 45.0
|
@@ -181,18 +153,12 @@ module Google
|
|
181
153
|
|
182
154
|
default_config.rpcs.list_usable_subnetworks.timeout = 20.0
|
183
155
|
default_config.rpcs.list_usable_subnetworks.retry_policy = {
|
184
|
-
initial_delay: 0.1,
|
185
|
-
max_delay: 60.0,
|
186
|
-
multiplier: 1.3,
|
187
|
-
retry_codes: [14, 4]
|
156
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
188
157
|
}
|
189
158
|
|
190
159
|
default_config.rpcs.list_locations.timeout = 20.0
|
191
160
|
default_config.rpcs.list_locations.retry_policy = {
|
192
|
-
initial_delay: 0.1,
|
193
|
-
max_delay: 60.0,
|
194
|
-
multiplier: 1.3,
|
195
|
-
retry_codes: [14, 4]
|
161
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
196
162
|
}
|
197
163
|
|
198
164
|
default_config
|
@@ -224,19 +190,15 @@ module Google
|
|
224
190
|
##
|
225
191
|
# Create a new ClusterManager client object.
|
226
192
|
#
|
227
|
-
#
|
228
|
-
#
|
229
|
-
# To create a new ClusterManager client with the default
|
230
|
-
# configuration:
|
231
|
-
#
|
232
|
-
# client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
193
|
+
# @example
|
233
194
|
#
|
234
|
-
#
|
235
|
-
#
|
195
|
+
# # Create a client using the default configuration
|
196
|
+
# client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
236
197
|
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
198
|
+
# # Create a client using a custom configuration
|
199
|
+
# client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new do |config|
|
200
|
+
# config.timeout = 10.0
|
201
|
+
# end
|
240
202
|
#
|
241
203
|
# @yield [config] Configure the ClusterManager client.
|
242
204
|
# @yieldparam config [Client::Configuration]
|
@@ -256,14 +218,13 @@ module Google
|
|
256
218
|
|
257
219
|
# Create credentials
|
258
220
|
credentials = @config.credentials
|
259
|
-
# Use self-signed JWT if the
|
221
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
260
222
|
# but only if the default endpoint does not have a region prefix.
|
261
|
-
enable_self_signed_jwt = @config.
|
262
|
-
@config.endpoint == Client.configure.endpoint &&
|
223
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
263
224
|
!@config.endpoint.split(".").first.include?("-")
|
264
225
|
credentials ||= Credentials.default scope: @config.scope,
|
265
226
|
enable_self_signed_jwt: enable_self_signed_jwt
|
266
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
227
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
267
228
|
credentials = Credentials.new credentials, scope: @config.scope
|
268
229
|
end
|
269
230
|
@quota_project_id = @config.quota_project
|
@@ -347,7 +308,9 @@ module Google
|
|
347
308
|
options.apply_defaults timeout: @config.rpcs.list_clusters.timeout,
|
348
309
|
metadata: metadata,
|
349
310
|
retry_policy: @config.rpcs.list_clusters.retry_policy
|
350
|
-
|
311
|
+
|
312
|
+
options.apply_defaults timeout: @config.timeout,
|
313
|
+
metadata: @config.metadata,
|
351
314
|
retry_policy: @config.retry_policy
|
352
315
|
|
353
316
|
@cluster_manager_stub.call_rpc :list_clusters, request, options: options do |response, operation|
|
@@ -426,7 +389,9 @@ module Google
|
|
426
389
|
options.apply_defaults timeout: @config.rpcs.get_cluster.timeout,
|
427
390
|
metadata: metadata,
|
428
391
|
retry_policy: @config.rpcs.get_cluster.retry_policy
|
429
|
-
|
392
|
+
|
393
|
+
options.apply_defaults timeout: @config.timeout,
|
394
|
+
metadata: @config.metadata,
|
430
395
|
retry_policy: @config.retry_policy
|
431
396
|
|
432
397
|
@cluster_manager_stub.call_rpc :get_cluster, request, options: options do |response, operation|
|
@@ -518,7 +483,9 @@ module Google
|
|
518
483
|
options.apply_defaults timeout: @config.rpcs.create_cluster.timeout,
|
519
484
|
metadata: metadata,
|
520
485
|
retry_policy: @config.rpcs.create_cluster.retry_policy
|
521
|
-
|
486
|
+
|
487
|
+
options.apply_defaults timeout: @config.timeout,
|
488
|
+
metadata: @config.metadata,
|
522
489
|
retry_policy: @config.retry_policy
|
523
490
|
|
524
491
|
@cluster_manager_stub.call_rpc :create_cluster, request, options: options do |response, operation|
|
@@ -599,7 +566,9 @@ module Google
|
|
599
566
|
options.apply_defaults timeout: @config.rpcs.update_cluster.timeout,
|
600
567
|
metadata: metadata,
|
601
568
|
retry_policy: @config.rpcs.update_cluster.retry_policy
|
602
|
-
|
569
|
+
|
570
|
+
options.apply_defaults timeout: @config.timeout,
|
571
|
+
metadata: @config.metadata,
|
603
572
|
retry_policy: @config.retry_policy
|
604
573
|
|
605
574
|
@cluster_manager_stub.call_rpc :update_cluster, request, options: options do |response, operation|
|
@@ -623,7 +592,7 @@ module Google
|
|
623
592
|
# @param options [::Gapic::CallOptions, ::Hash]
|
624
593
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
625
594
|
#
|
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)
|
595
|
+
# @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)
|
627
596
|
# Pass arguments to `update_node_pool` via keyword arguments. Note that at
|
628
597
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
629
598
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -671,10 +640,24 @@ module Google
|
|
671
640
|
# `projects/*/locations/*/clusters/*/nodePools/*`.
|
672
641
|
# @param upgrade_settings [::Google::Cloud::Container::V1beta1::NodePool::UpgradeSettings, ::Hash]
|
673
642
|
# Upgrade settings control disruption and speed of the upgrade.
|
643
|
+
# @param tags [::Google::Cloud::Container::V1beta1::NetworkTags, ::Hash]
|
644
|
+
# The desired network tags to be applied to all nodes in the node pool.
|
645
|
+
# If this field is not present, the tags will not be changed. Otherwise,
|
646
|
+
# the existing network tags will be *replaced* with the provided tags.
|
647
|
+
# @param taints [::Google::Cloud::Container::V1beta1::NodeTaints, ::Hash]
|
648
|
+
# The desired node taints to be applied to all nodes in the node pool.
|
649
|
+
# If this field is not present, the taints will not be changed. Otherwise,
|
650
|
+
# the existing node taints will be *replaced* with the provided taints.
|
651
|
+
# @param labels [::Google::Cloud::Container::V1beta1::NodeLabels, ::Hash]
|
652
|
+
# The desired node labels to be applied to all nodes in the node pool.
|
653
|
+
# If this field is not present, the labels will not be changed. Otherwise,
|
654
|
+
# the existing node labels will be *replaced* with the provided labels.
|
674
655
|
# @param linux_node_config [::Google::Cloud::Container::V1beta1::LinuxNodeConfig, ::Hash]
|
675
656
|
# Parameters that can be configured on Linux nodes.
|
676
657
|
# @param kubelet_config [::Google::Cloud::Container::V1beta1::NodeKubeletConfig, ::Hash]
|
677
658
|
# Node kubelet configs.
|
659
|
+
# @param gvnic [::Google::Cloud::Container::V1beta1::VirtualNIC, ::Hash]
|
660
|
+
# Enable or disable gvnic on the node pool.
|
678
661
|
#
|
679
662
|
# @yield [response, operation] Access the result along with the RPC operation
|
680
663
|
# @yieldparam response [::Google::Cloud::Container::V1beta1::Operation]
|
@@ -710,7 +693,9 @@ module Google
|
|
710
693
|
options.apply_defaults timeout: @config.rpcs.update_node_pool.timeout,
|
711
694
|
metadata: metadata,
|
712
695
|
retry_policy: @config.rpcs.update_node_pool.retry_policy
|
713
|
-
|
696
|
+
|
697
|
+
options.apply_defaults timeout: @config.timeout,
|
698
|
+
metadata: @config.metadata,
|
714
699
|
retry_policy: @config.retry_policy
|
715
700
|
|
716
701
|
@cluster_manager_stub.call_rpc :update_node_pool, request, options: options do |response, operation|
|
@@ -795,7 +780,9 @@ module Google
|
|
795
780
|
options.apply_defaults timeout: @config.rpcs.set_node_pool_autoscaling.timeout,
|
796
781
|
metadata: metadata,
|
797
782
|
retry_policy: @config.rpcs.set_node_pool_autoscaling.retry_policy
|
798
|
-
|
783
|
+
|
784
|
+
options.apply_defaults timeout: @config.timeout,
|
785
|
+
metadata: @config.metadata,
|
799
786
|
retry_policy: @config.retry_policy
|
800
787
|
|
801
788
|
@cluster_manager_stub.call_rpc :set_node_pool_autoscaling, request, options: options do |response, operation|
|
@@ -886,7 +873,9 @@ module Google
|
|
886
873
|
options.apply_defaults timeout: @config.rpcs.set_logging_service.timeout,
|
887
874
|
metadata: metadata,
|
888
875
|
retry_policy: @config.rpcs.set_logging_service.retry_policy
|
889
|
-
|
876
|
+
|
877
|
+
options.apply_defaults timeout: @config.timeout,
|
878
|
+
metadata: @config.metadata,
|
890
879
|
retry_policy: @config.retry_policy
|
891
880
|
|
892
881
|
@cluster_manager_stub.call_rpc :set_logging_service, request, options: options do |response, operation|
|
@@ -977,7 +966,9 @@ module Google
|
|
977
966
|
options.apply_defaults timeout: @config.rpcs.set_monitoring_service.timeout,
|
978
967
|
metadata: metadata,
|
979
968
|
retry_policy: @config.rpcs.set_monitoring_service.retry_policy
|
980
|
-
|
969
|
+
|
970
|
+
options.apply_defaults timeout: @config.timeout,
|
971
|
+
metadata: @config.metadata,
|
981
972
|
retry_policy: @config.retry_policy
|
982
973
|
|
983
974
|
@cluster_manager_stub.call_rpc :set_monitoring_service, request, options: options do |response, operation|
|
@@ -1019,8 +1010,8 @@ module Google
|
|
1019
1010
|
# Required. Deprecated. The name of the cluster to upgrade.
|
1020
1011
|
# This field has been deprecated and replaced by the name field.
|
1021
1012
|
# @param addons_config [::Google::Cloud::Container::V1beta1::AddonsConfig, ::Hash]
|
1022
|
-
# Required. The desired configurations for the various addons available to
|
1023
|
-
# cluster.
|
1013
|
+
# Required. The desired configurations for the various addons available to
|
1014
|
+
# run in the cluster.
|
1024
1015
|
# @param name [::String]
|
1025
1016
|
# The name (project, location, cluster) of the cluster to set addons.
|
1026
1017
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
@@ -1059,7 +1050,9 @@ module Google
|
|
1059
1050
|
options.apply_defaults timeout: @config.rpcs.set_addons_config.timeout,
|
1060
1051
|
metadata: metadata,
|
1061
1052
|
retry_policy: @config.rpcs.set_addons_config.retry_policy
|
1062
|
-
|
1053
|
+
|
1054
|
+
options.apply_defaults timeout: @config.timeout,
|
1055
|
+
metadata: @config.metadata,
|
1063
1056
|
retry_policy: @config.retry_policy
|
1064
1057
|
|
1065
1058
|
@cluster_manager_stub.call_rpc :set_addons_config, request, options: options do |response, operation|
|
@@ -1076,6 +1069,8 @@ module Google
|
|
1076
1069
|
# [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
|
1077
1070
|
# instead.
|
1078
1071
|
#
|
1072
|
+
# @deprecated This method is deprecated and may be removed in the next major version update.
|
1073
|
+
#
|
1079
1074
|
# @overload set_locations(request, options = nil)
|
1080
1075
|
# Pass arguments to `set_locations` via a request object, either of type
|
1081
1076
|
# {::Google::Cloud::Container::V1beta1::SetLocationsRequest} or an equivalent Hash.
|
@@ -1149,7 +1144,9 @@ module Google
|
|
1149
1144
|
options.apply_defaults timeout: @config.rpcs.set_locations.timeout,
|
1150
1145
|
metadata: metadata,
|
1151
1146
|
retry_policy: @config.rpcs.set_locations.retry_policy
|
1152
|
-
|
1147
|
+
|
1148
|
+
options.apply_defaults timeout: @config.timeout,
|
1149
|
+
metadata: @config.metadata,
|
1153
1150
|
retry_policy: @config.retry_policy
|
1154
1151
|
|
1155
1152
|
@cluster_manager_stub.call_rpc :set_locations, request, options: options do |response, operation|
|
@@ -1239,7 +1236,9 @@ module Google
|
|
1239
1236
|
options.apply_defaults timeout: @config.rpcs.update_master.timeout,
|
1240
1237
|
metadata: metadata,
|
1241
1238
|
retry_policy: @config.rpcs.update_master.retry_policy
|
1242
|
-
|
1239
|
+
|
1240
|
+
options.apply_defaults timeout: @config.timeout,
|
1241
|
+
metadata: @config.metadata,
|
1243
1242
|
retry_policy: @config.retry_policy
|
1244
1243
|
|
1245
1244
|
@cluster_manager_stub.call_rpc :update_master, request, options: options do |response, operation|
|
@@ -1324,7 +1323,9 @@ module Google
|
|
1324
1323
|
options.apply_defaults timeout: @config.rpcs.set_master_auth.timeout,
|
1325
1324
|
metadata: metadata,
|
1326
1325
|
retry_policy: @config.rpcs.set_master_auth.retry_policy
|
1327
|
-
|
1326
|
+
|
1327
|
+
options.apply_defaults timeout: @config.timeout,
|
1328
|
+
metadata: @config.metadata,
|
1328
1329
|
retry_policy: @config.retry_policy
|
1329
1330
|
|
1330
1331
|
@cluster_manager_stub.call_rpc :set_master_auth, request, options: options do |response, operation|
|
@@ -1411,7 +1412,9 @@ module Google
|
|
1411
1412
|
options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout,
|
1412
1413
|
metadata: metadata,
|
1413
1414
|
retry_policy: @config.rpcs.delete_cluster.retry_policy
|
1414
|
-
|
1415
|
+
|
1416
|
+
options.apply_defaults timeout: @config.timeout,
|
1417
|
+
metadata: @config.metadata,
|
1415
1418
|
retry_policy: @config.retry_policy
|
1416
1419
|
|
1417
1420
|
@cluster_manager_stub.call_rpc :delete_cluster, request, options: options do |response, operation|
|
@@ -1488,7 +1491,9 @@ module Google
|
|
1488
1491
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
1489
1492
|
metadata: metadata,
|
1490
1493
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
1491
|
-
|
1494
|
+
|
1495
|
+
options.apply_defaults timeout: @config.timeout,
|
1496
|
+
metadata: @config.metadata,
|
1492
1497
|
retry_policy: @config.retry_policy
|
1493
1498
|
|
1494
1499
|
@cluster_manager_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -1567,7 +1572,9 @@ module Google
|
|
1567
1572
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
1568
1573
|
metadata: metadata,
|
1569
1574
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
1570
|
-
|
1575
|
+
|
1576
|
+
options.apply_defaults timeout: @config.timeout,
|
1577
|
+
metadata: @config.metadata,
|
1571
1578
|
retry_policy: @config.retry_policy
|
1572
1579
|
|
1573
1580
|
@cluster_manager_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -1646,7 +1653,9 @@ module Google
|
|
1646
1653
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
1647
1654
|
metadata: metadata,
|
1648
1655
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
1649
|
-
|
1656
|
+
|
1657
|
+
options.apply_defaults timeout: @config.timeout,
|
1658
|
+
metadata: @config.metadata,
|
1650
1659
|
retry_policy: @config.retry_policy
|
1651
1660
|
|
1652
1661
|
@cluster_manager_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -1722,7 +1731,9 @@ module Google
|
|
1722
1731
|
options.apply_defaults timeout: @config.rpcs.get_server_config.timeout,
|
1723
1732
|
metadata: metadata,
|
1724
1733
|
retry_policy: @config.rpcs.get_server_config.retry_policy
|
1725
|
-
|
1734
|
+
|
1735
|
+
options.apply_defaults timeout: @config.timeout,
|
1736
|
+
metadata: @config.metadata,
|
1726
1737
|
retry_policy: @config.retry_policy
|
1727
1738
|
|
1728
1739
|
@cluster_manager_stub.call_rpc :get_server_config, request, options: options do |response, operation|
|
@@ -1801,7 +1812,9 @@ module Google
|
|
1801
1812
|
options.apply_defaults timeout: @config.rpcs.list_node_pools.timeout,
|
1802
1813
|
metadata: metadata,
|
1803
1814
|
retry_policy: @config.rpcs.list_node_pools.retry_policy
|
1804
|
-
|
1815
|
+
|
1816
|
+
options.apply_defaults timeout: @config.timeout,
|
1817
|
+
metadata: @config.metadata,
|
1805
1818
|
retry_policy: @config.retry_policy
|
1806
1819
|
|
1807
1820
|
@cluster_manager_stub.call_rpc :list_node_pools, request, options: options do |response, operation|
|
@@ -1871,7 +1884,9 @@ module Google
|
|
1871
1884
|
options.apply_defaults timeout: @config.rpcs.get_json_web_keys.timeout,
|
1872
1885
|
metadata: metadata,
|
1873
1886
|
retry_policy: @config.rpcs.get_json_web_keys.retry_policy
|
1874
|
-
|
1887
|
+
|
1888
|
+
options.apply_defaults timeout: @config.timeout,
|
1889
|
+
metadata: @config.metadata,
|
1875
1890
|
retry_policy: @config.retry_policy
|
1876
1891
|
|
1877
1892
|
@cluster_manager_stub.call_rpc :get_json_web_keys, request, options: options do |response, operation|
|
@@ -1954,7 +1969,9 @@ module Google
|
|
1954
1969
|
options.apply_defaults timeout: @config.rpcs.get_node_pool.timeout,
|
1955
1970
|
metadata: metadata,
|
1956
1971
|
retry_policy: @config.rpcs.get_node_pool.retry_policy
|
1957
|
-
|
1972
|
+
|
1973
|
+
options.apply_defaults timeout: @config.timeout,
|
1974
|
+
metadata: @config.metadata,
|
1958
1975
|
retry_policy: @config.retry_policy
|
1959
1976
|
|
1960
1977
|
@cluster_manager_stub.call_rpc :get_node_pool, request, options: options do |response, operation|
|
@@ -2036,7 +2053,9 @@ module Google
|
|
2036
2053
|
options.apply_defaults timeout: @config.rpcs.create_node_pool.timeout,
|
2037
2054
|
metadata: metadata,
|
2038
2055
|
retry_policy: @config.rpcs.create_node_pool.retry_policy
|
2039
|
-
|
2056
|
+
|
2057
|
+
options.apply_defaults timeout: @config.timeout,
|
2058
|
+
metadata: @config.metadata,
|
2040
2059
|
retry_policy: @config.retry_policy
|
2041
2060
|
|
2042
2061
|
@cluster_manager_stub.call_rpc :create_node_pool, request, options: options do |response, operation|
|
@@ -2119,7 +2138,9 @@ module Google
|
|
2119
2138
|
options.apply_defaults timeout: @config.rpcs.delete_node_pool.timeout,
|
2120
2139
|
metadata: metadata,
|
2121
2140
|
retry_policy: @config.rpcs.delete_node_pool.retry_policy
|
2122
|
-
|
2141
|
+
|
2142
|
+
options.apply_defaults timeout: @config.timeout,
|
2143
|
+
metadata: @config.metadata,
|
2123
2144
|
retry_policy: @config.retry_policy
|
2124
2145
|
|
2125
2146
|
@cluster_manager_stub.call_rpc :delete_node_pool, request, options: options do |response, operation|
|
@@ -2203,7 +2224,9 @@ module Google
|
|
2203
2224
|
options.apply_defaults timeout: @config.rpcs.rollback_node_pool_upgrade.timeout,
|
2204
2225
|
metadata: metadata,
|
2205
2226
|
retry_policy: @config.rpcs.rollback_node_pool_upgrade.retry_policy
|
2206
|
-
|
2227
|
+
|
2228
|
+
options.apply_defaults timeout: @config.timeout,
|
2229
|
+
metadata: @config.metadata,
|
2207
2230
|
retry_policy: @config.retry_policy
|
2208
2231
|
|
2209
2232
|
@cluster_manager_stub.call_rpc :rollback_node_pool_upgrade, request, options: options do |response, operation|
|
@@ -2288,7 +2311,9 @@ module Google
|
|
2288
2311
|
options.apply_defaults timeout: @config.rpcs.set_node_pool_management.timeout,
|
2289
2312
|
metadata: metadata,
|
2290
2313
|
retry_policy: @config.rpcs.set_node_pool_management.retry_policy
|
2291
|
-
|
2314
|
+
|
2315
|
+
options.apply_defaults timeout: @config.timeout,
|
2316
|
+
metadata: @config.metadata,
|
2292
2317
|
retry_policy: @config.retry_policy
|
2293
2318
|
|
2294
2319
|
@cluster_manager_stub.call_rpc :set_node_pool_management, request, options: options do |response, operation|
|
@@ -2376,7 +2401,9 @@ module Google
|
|
2376
2401
|
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
2377
2402
|
metadata: metadata,
|
2378
2403
|
retry_policy: @config.rpcs.set_labels.retry_policy
|
2379
|
-
|
2404
|
+
|
2405
|
+
options.apply_defaults timeout: @config.timeout,
|
2406
|
+
metadata: @config.metadata,
|
2380
2407
|
retry_policy: @config.retry_policy
|
2381
2408
|
|
2382
2409
|
@cluster_manager_stub.call_rpc :set_labels, request, options: options do |response, operation|
|
@@ -2457,7 +2484,9 @@ module Google
|
|
2457
2484
|
options.apply_defaults timeout: @config.rpcs.set_legacy_abac.timeout,
|
2458
2485
|
metadata: metadata,
|
2459
2486
|
retry_policy: @config.rpcs.set_legacy_abac.retry_policy
|
2460
|
-
|
2487
|
+
|
2488
|
+
options.apply_defaults timeout: @config.timeout,
|
2489
|
+
metadata: @config.metadata,
|
2461
2490
|
retry_policy: @config.retry_policy
|
2462
2491
|
|
2463
2492
|
@cluster_manager_stub.call_rpc :set_legacy_abac, request, options: options do |response, operation|
|
@@ -2538,7 +2567,9 @@ module Google
|
|
2538
2567
|
options.apply_defaults timeout: @config.rpcs.start_ip_rotation.timeout,
|
2539
2568
|
metadata: metadata,
|
2540
2569
|
retry_policy: @config.rpcs.start_ip_rotation.retry_policy
|
2541
|
-
|
2570
|
+
|
2571
|
+
options.apply_defaults timeout: @config.timeout,
|
2572
|
+
metadata: @config.metadata,
|
2542
2573
|
retry_policy: @config.retry_policy
|
2543
2574
|
|
2544
2575
|
@cluster_manager_stub.call_rpc :start_ip_rotation, request, options: options do |response, operation|
|
@@ -2617,7 +2648,9 @@ module Google
|
|
2617
2648
|
options.apply_defaults timeout: @config.rpcs.complete_ip_rotation.timeout,
|
2618
2649
|
metadata: metadata,
|
2619
2650
|
retry_policy: @config.rpcs.complete_ip_rotation.retry_policy
|
2620
|
-
|
2651
|
+
|
2652
|
+
options.apply_defaults timeout: @config.timeout,
|
2653
|
+
metadata: @config.metadata,
|
2621
2654
|
retry_policy: @config.retry_policy
|
2622
2655
|
|
2623
2656
|
@cluster_manager_stub.call_rpc :complete_ip_rotation, request, options: options do |response, operation|
|
@@ -2629,7 +2662,9 @@ module Google
|
|
2629
2662
|
end
|
2630
2663
|
|
2631
2664
|
##
|
2632
|
-
#
|
2665
|
+
# SetNodePoolSizeRequest sets the size of a node pool. The new size will be
|
2666
|
+
# used for all replicas, including future replicas created by modifying
|
2667
|
+
# {::Google::Cloud::Container::V1beta1::NodePool#locations NodePool.locations}.
|
2633
2668
|
#
|
2634
2669
|
# @overload set_node_pool_size(request, options = nil)
|
2635
2670
|
# Pass arguments to `set_node_pool_size` via a request object, either of type
|
@@ -2702,7 +2737,9 @@ module Google
|
|
2702
2737
|
options.apply_defaults timeout: @config.rpcs.set_node_pool_size.timeout,
|
2703
2738
|
metadata: metadata,
|
2704
2739
|
retry_policy: @config.rpcs.set_node_pool_size.retry_policy
|
2705
|
-
|
2740
|
+
|
2741
|
+
options.apply_defaults timeout: @config.timeout,
|
2742
|
+
metadata: @config.metadata,
|
2706
2743
|
retry_policy: @config.retry_policy
|
2707
2744
|
|
2708
2745
|
@cluster_manager_stub.call_rpc :set_node_pool_size, request, options: options do |response, operation|
|
@@ -2783,7 +2820,9 @@ module Google
|
|
2783
2820
|
options.apply_defaults timeout: @config.rpcs.set_network_policy.timeout,
|
2784
2821
|
metadata: metadata,
|
2785
2822
|
retry_policy: @config.rpcs.set_network_policy.retry_policy
|
2786
|
-
|
2823
|
+
|
2824
|
+
options.apply_defaults timeout: @config.timeout,
|
2825
|
+
metadata: @config.metadata,
|
2787
2826
|
retry_policy: @config.retry_policy
|
2788
2827
|
|
2789
2828
|
@cluster_manager_stub.call_rpc :set_network_policy, request, options: options do |response, operation|
|
@@ -2863,7 +2902,9 @@ module Google
|
|
2863
2902
|
options.apply_defaults timeout: @config.rpcs.set_maintenance_policy.timeout,
|
2864
2903
|
metadata: metadata,
|
2865
2904
|
retry_policy: @config.rpcs.set_maintenance_policy.retry_policy
|
2866
|
-
|
2905
|
+
|
2906
|
+
options.apply_defaults timeout: @config.timeout,
|
2907
|
+
metadata: @config.metadata,
|
2867
2908
|
retry_policy: @config.retry_policy
|
2868
2909
|
|
2869
2910
|
@cluster_manager_stub.call_rpc :set_maintenance_policy, request, options: options do |response, operation|
|
@@ -2943,7 +2984,9 @@ module Google
|
|
2943
2984
|
options.apply_defaults timeout: @config.rpcs.list_usable_subnetworks.timeout,
|
2944
2985
|
metadata: metadata,
|
2945
2986
|
retry_policy: @config.rpcs.list_usable_subnetworks.retry_policy
|
2946
|
-
|
2987
|
+
|
2988
|
+
options.apply_defaults timeout: @config.timeout,
|
2989
|
+
metadata: @config.metadata,
|
2947
2990
|
retry_policy: @config.retry_policy
|
2948
2991
|
|
2949
2992
|
@cluster_manager_stub.call_rpc :list_usable_subnetworks, request, options: options do |response, operation|
|
@@ -3011,7 +3054,9 @@ module Google
|
|
3011
3054
|
options.apply_defaults timeout: @config.rpcs.list_locations.timeout,
|
3012
3055
|
metadata: metadata,
|
3013
3056
|
retry_policy: @config.rpcs.list_locations.retry_policy
|
3014
|
-
|
3057
|
+
|
3058
|
+
options.apply_defaults timeout: @config.timeout,
|
3059
|
+
metadata: @config.metadata,
|
3015
3060
|
retry_policy: @config.retry_policy
|
3016
3061
|
|
3017
3062
|
@cluster_manager_stub.call_rpc :list_locations, request, options: options do |response, operation|
|
@@ -3035,22 +3080,21 @@ module Google
|
|
3035
3080
|
# Configuration can be applied globally to all clients, or to a single client
|
3036
3081
|
# on construction.
|
3037
3082
|
#
|
3038
|
-
#
|
3039
|
-
#
|
3040
|
-
#
|
3041
|
-
# to 20 seconds,
|
3042
|
-
#
|
3043
|
-
#
|
3044
|
-
#
|
3045
|
-
#
|
3046
|
-
#
|
3047
|
-
#
|
3048
|
-
#
|
3049
|
-
#
|
3050
|
-
#
|
3051
|
-
#
|
3052
|
-
#
|
3053
|
-
# end
|
3083
|
+
# @example
|
3084
|
+
#
|
3085
|
+
# # Modify the global config, setting the timeout for
|
3086
|
+
# # list_clusters to 20 seconds,
|
3087
|
+
# # and all remaining timeouts to 10 seconds.
|
3088
|
+
# ::Google::Cloud::Container::V1beta1::ClusterManager::Client.configure do |config|
|
3089
|
+
# config.timeout = 10.0
|
3090
|
+
# config.rpcs.list_clusters.timeout = 20.0
|
3091
|
+
# end
|
3092
|
+
#
|
3093
|
+
# # Apply the above configuration only to a new client.
|
3094
|
+
# client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new do |config|
|
3095
|
+
# config.timeout = 10.0
|
3096
|
+
# config.rpcs.list_clusters.timeout = 20.0
|
3097
|
+
# end
|
3054
3098
|
#
|
3055
3099
|
# @!attribute [rw] endpoint
|
3056
3100
|
# The hostname or hostname:port of the service endpoint.
|