google-cloud-container-v1beta1 0.5.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/container/v1beta1/cluster_manager/client.rb +142 -114
- data/lib/google/cloud/container/v1beta1/version.rb +1 -1
- data/lib/google/container/v1beta1/cluster_service_pb.rb +2 -0
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/container/v1beta1/cluster_service.rb +8 -1
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5937cc399dcc6d86533c9054c23f5fc1da0cfa2e33cd193ef857456a5c8edc6
|
4
|
+
data.tar.gz: 11de3c84a8fbcd857bbeb905cd8d651a0b676943d99ef182fa2c8d8de415ccef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efe91ec7ff62a3d5d2dd28490b0468bae644ddb22eb7d085698ace10f1b0443a67a9b00c20676695bba98cbc4e9734704e2520b7110f7ee14d41e2c765b7b146
|
7
|
+
data.tar.gz: bb72259919bf7928f964de224d356e968bfc42062d241d1b65866a32ad29279d48f680bfd1322f0cecd5e7271adf1b0c27a443f8a06e7eadf5f1931d19c03a0f
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-container-v1beta1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Container::V1beta1::ClusterManager::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `CONTAINER_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `CONTAINER_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/container/v1beta1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/container/v1beta1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new do |con
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/container/v1beta1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/container/v1beta1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Container::V1beta1::ListClustersRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.list_clusters request
|
38
38
|
```
|
39
39
|
|
@@ -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|
|
@@ -710,7 +679,9 @@ module Google
|
|
710
679
|
options.apply_defaults timeout: @config.rpcs.update_node_pool.timeout,
|
711
680
|
metadata: metadata,
|
712
681
|
retry_policy: @config.rpcs.update_node_pool.retry_policy
|
713
|
-
|
682
|
+
|
683
|
+
options.apply_defaults timeout: @config.timeout,
|
684
|
+
metadata: @config.metadata,
|
714
685
|
retry_policy: @config.retry_policy
|
715
686
|
|
716
687
|
@cluster_manager_stub.call_rpc :update_node_pool, request, options: options do |response, operation|
|
@@ -795,7 +766,9 @@ module Google
|
|
795
766
|
options.apply_defaults timeout: @config.rpcs.set_node_pool_autoscaling.timeout,
|
796
767
|
metadata: metadata,
|
797
768
|
retry_policy: @config.rpcs.set_node_pool_autoscaling.retry_policy
|
798
|
-
|
769
|
+
|
770
|
+
options.apply_defaults timeout: @config.timeout,
|
771
|
+
metadata: @config.metadata,
|
799
772
|
retry_policy: @config.retry_policy
|
800
773
|
|
801
774
|
@cluster_manager_stub.call_rpc :set_node_pool_autoscaling, request, options: options do |response, operation|
|
@@ -886,7 +859,9 @@ module Google
|
|
886
859
|
options.apply_defaults timeout: @config.rpcs.set_logging_service.timeout,
|
887
860
|
metadata: metadata,
|
888
861
|
retry_policy: @config.rpcs.set_logging_service.retry_policy
|
889
|
-
|
862
|
+
|
863
|
+
options.apply_defaults timeout: @config.timeout,
|
864
|
+
metadata: @config.metadata,
|
890
865
|
retry_policy: @config.retry_policy
|
891
866
|
|
892
867
|
@cluster_manager_stub.call_rpc :set_logging_service, request, options: options do |response, operation|
|
@@ -977,7 +952,9 @@ module Google
|
|
977
952
|
options.apply_defaults timeout: @config.rpcs.set_monitoring_service.timeout,
|
978
953
|
metadata: metadata,
|
979
954
|
retry_policy: @config.rpcs.set_monitoring_service.retry_policy
|
980
|
-
|
955
|
+
|
956
|
+
options.apply_defaults timeout: @config.timeout,
|
957
|
+
metadata: @config.metadata,
|
981
958
|
retry_policy: @config.retry_policy
|
982
959
|
|
983
960
|
@cluster_manager_stub.call_rpc :set_monitoring_service, request, options: options do |response, operation|
|
@@ -1059,7 +1036,9 @@ module Google
|
|
1059
1036
|
options.apply_defaults timeout: @config.rpcs.set_addons_config.timeout,
|
1060
1037
|
metadata: metadata,
|
1061
1038
|
retry_policy: @config.rpcs.set_addons_config.retry_policy
|
1062
|
-
|
1039
|
+
|
1040
|
+
options.apply_defaults timeout: @config.timeout,
|
1041
|
+
metadata: @config.metadata,
|
1063
1042
|
retry_policy: @config.retry_policy
|
1064
1043
|
|
1065
1044
|
@cluster_manager_stub.call_rpc :set_addons_config, request, options: options do |response, operation|
|
@@ -1076,6 +1055,8 @@ module Google
|
|
1076
1055
|
# [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
|
1077
1056
|
# instead.
|
1078
1057
|
#
|
1058
|
+
# @deprecated This method is deprecated and may be removed in the next major version update.
|
1059
|
+
#
|
1079
1060
|
# @overload set_locations(request, options = nil)
|
1080
1061
|
# Pass arguments to `set_locations` via a request object, either of type
|
1081
1062
|
# {::Google::Cloud::Container::V1beta1::SetLocationsRequest} or an equivalent Hash.
|
@@ -1149,7 +1130,9 @@ module Google
|
|
1149
1130
|
options.apply_defaults timeout: @config.rpcs.set_locations.timeout,
|
1150
1131
|
metadata: metadata,
|
1151
1132
|
retry_policy: @config.rpcs.set_locations.retry_policy
|
1152
|
-
|
1133
|
+
|
1134
|
+
options.apply_defaults timeout: @config.timeout,
|
1135
|
+
metadata: @config.metadata,
|
1153
1136
|
retry_policy: @config.retry_policy
|
1154
1137
|
|
1155
1138
|
@cluster_manager_stub.call_rpc :set_locations, request, options: options do |response, operation|
|
@@ -1239,7 +1222,9 @@ module Google
|
|
1239
1222
|
options.apply_defaults timeout: @config.rpcs.update_master.timeout,
|
1240
1223
|
metadata: metadata,
|
1241
1224
|
retry_policy: @config.rpcs.update_master.retry_policy
|
1242
|
-
|
1225
|
+
|
1226
|
+
options.apply_defaults timeout: @config.timeout,
|
1227
|
+
metadata: @config.metadata,
|
1243
1228
|
retry_policy: @config.retry_policy
|
1244
1229
|
|
1245
1230
|
@cluster_manager_stub.call_rpc :update_master, request, options: options do |response, operation|
|
@@ -1324,7 +1309,9 @@ module Google
|
|
1324
1309
|
options.apply_defaults timeout: @config.rpcs.set_master_auth.timeout,
|
1325
1310
|
metadata: metadata,
|
1326
1311
|
retry_policy: @config.rpcs.set_master_auth.retry_policy
|
1327
|
-
|
1312
|
+
|
1313
|
+
options.apply_defaults timeout: @config.timeout,
|
1314
|
+
metadata: @config.metadata,
|
1328
1315
|
retry_policy: @config.retry_policy
|
1329
1316
|
|
1330
1317
|
@cluster_manager_stub.call_rpc :set_master_auth, request, options: options do |response, operation|
|
@@ -1411,7 +1398,9 @@ module Google
|
|
1411
1398
|
options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout,
|
1412
1399
|
metadata: metadata,
|
1413
1400
|
retry_policy: @config.rpcs.delete_cluster.retry_policy
|
1414
|
-
|
1401
|
+
|
1402
|
+
options.apply_defaults timeout: @config.timeout,
|
1403
|
+
metadata: @config.metadata,
|
1415
1404
|
retry_policy: @config.retry_policy
|
1416
1405
|
|
1417
1406
|
@cluster_manager_stub.call_rpc :delete_cluster, request, options: options do |response, operation|
|
@@ -1488,7 +1477,9 @@ module Google
|
|
1488
1477
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
1489
1478
|
metadata: metadata,
|
1490
1479
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
1491
|
-
|
1480
|
+
|
1481
|
+
options.apply_defaults timeout: @config.timeout,
|
1482
|
+
metadata: @config.metadata,
|
1492
1483
|
retry_policy: @config.retry_policy
|
1493
1484
|
|
1494
1485
|
@cluster_manager_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -1567,7 +1558,9 @@ module Google
|
|
1567
1558
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
1568
1559
|
metadata: metadata,
|
1569
1560
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
1570
|
-
|
1561
|
+
|
1562
|
+
options.apply_defaults timeout: @config.timeout,
|
1563
|
+
metadata: @config.metadata,
|
1571
1564
|
retry_policy: @config.retry_policy
|
1572
1565
|
|
1573
1566
|
@cluster_manager_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -1646,7 +1639,9 @@ module Google
|
|
1646
1639
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
1647
1640
|
metadata: metadata,
|
1648
1641
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
1649
|
-
|
1642
|
+
|
1643
|
+
options.apply_defaults timeout: @config.timeout,
|
1644
|
+
metadata: @config.metadata,
|
1650
1645
|
retry_policy: @config.retry_policy
|
1651
1646
|
|
1652
1647
|
@cluster_manager_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -1722,7 +1717,9 @@ module Google
|
|
1722
1717
|
options.apply_defaults timeout: @config.rpcs.get_server_config.timeout,
|
1723
1718
|
metadata: metadata,
|
1724
1719
|
retry_policy: @config.rpcs.get_server_config.retry_policy
|
1725
|
-
|
1720
|
+
|
1721
|
+
options.apply_defaults timeout: @config.timeout,
|
1722
|
+
metadata: @config.metadata,
|
1726
1723
|
retry_policy: @config.retry_policy
|
1727
1724
|
|
1728
1725
|
@cluster_manager_stub.call_rpc :get_server_config, request, options: options do |response, operation|
|
@@ -1801,7 +1798,9 @@ module Google
|
|
1801
1798
|
options.apply_defaults timeout: @config.rpcs.list_node_pools.timeout,
|
1802
1799
|
metadata: metadata,
|
1803
1800
|
retry_policy: @config.rpcs.list_node_pools.retry_policy
|
1804
|
-
|
1801
|
+
|
1802
|
+
options.apply_defaults timeout: @config.timeout,
|
1803
|
+
metadata: @config.metadata,
|
1805
1804
|
retry_policy: @config.retry_policy
|
1806
1805
|
|
1807
1806
|
@cluster_manager_stub.call_rpc :list_node_pools, request, options: options do |response, operation|
|
@@ -1871,7 +1870,9 @@ module Google
|
|
1871
1870
|
options.apply_defaults timeout: @config.rpcs.get_json_web_keys.timeout,
|
1872
1871
|
metadata: metadata,
|
1873
1872
|
retry_policy: @config.rpcs.get_json_web_keys.retry_policy
|
1874
|
-
|
1873
|
+
|
1874
|
+
options.apply_defaults timeout: @config.timeout,
|
1875
|
+
metadata: @config.metadata,
|
1875
1876
|
retry_policy: @config.retry_policy
|
1876
1877
|
|
1877
1878
|
@cluster_manager_stub.call_rpc :get_json_web_keys, request, options: options do |response, operation|
|
@@ -1954,7 +1955,9 @@ module Google
|
|
1954
1955
|
options.apply_defaults timeout: @config.rpcs.get_node_pool.timeout,
|
1955
1956
|
metadata: metadata,
|
1956
1957
|
retry_policy: @config.rpcs.get_node_pool.retry_policy
|
1957
|
-
|
1958
|
+
|
1959
|
+
options.apply_defaults timeout: @config.timeout,
|
1960
|
+
metadata: @config.metadata,
|
1958
1961
|
retry_policy: @config.retry_policy
|
1959
1962
|
|
1960
1963
|
@cluster_manager_stub.call_rpc :get_node_pool, request, options: options do |response, operation|
|
@@ -2036,7 +2039,9 @@ module Google
|
|
2036
2039
|
options.apply_defaults timeout: @config.rpcs.create_node_pool.timeout,
|
2037
2040
|
metadata: metadata,
|
2038
2041
|
retry_policy: @config.rpcs.create_node_pool.retry_policy
|
2039
|
-
|
2042
|
+
|
2043
|
+
options.apply_defaults timeout: @config.timeout,
|
2044
|
+
metadata: @config.metadata,
|
2040
2045
|
retry_policy: @config.retry_policy
|
2041
2046
|
|
2042
2047
|
@cluster_manager_stub.call_rpc :create_node_pool, request, options: options do |response, operation|
|
@@ -2119,7 +2124,9 @@ module Google
|
|
2119
2124
|
options.apply_defaults timeout: @config.rpcs.delete_node_pool.timeout,
|
2120
2125
|
metadata: metadata,
|
2121
2126
|
retry_policy: @config.rpcs.delete_node_pool.retry_policy
|
2122
|
-
|
2127
|
+
|
2128
|
+
options.apply_defaults timeout: @config.timeout,
|
2129
|
+
metadata: @config.metadata,
|
2123
2130
|
retry_policy: @config.retry_policy
|
2124
2131
|
|
2125
2132
|
@cluster_manager_stub.call_rpc :delete_node_pool, request, options: options do |response, operation|
|
@@ -2203,7 +2210,9 @@ module Google
|
|
2203
2210
|
options.apply_defaults timeout: @config.rpcs.rollback_node_pool_upgrade.timeout,
|
2204
2211
|
metadata: metadata,
|
2205
2212
|
retry_policy: @config.rpcs.rollback_node_pool_upgrade.retry_policy
|
2206
|
-
|
2213
|
+
|
2214
|
+
options.apply_defaults timeout: @config.timeout,
|
2215
|
+
metadata: @config.metadata,
|
2207
2216
|
retry_policy: @config.retry_policy
|
2208
2217
|
|
2209
2218
|
@cluster_manager_stub.call_rpc :rollback_node_pool_upgrade, request, options: options do |response, operation|
|
@@ -2288,7 +2297,9 @@ module Google
|
|
2288
2297
|
options.apply_defaults timeout: @config.rpcs.set_node_pool_management.timeout,
|
2289
2298
|
metadata: metadata,
|
2290
2299
|
retry_policy: @config.rpcs.set_node_pool_management.retry_policy
|
2291
|
-
|
2300
|
+
|
2301
|
+
options.apply_defaults timeout: @config.timeout,
|
2302
|
+
metadata: @config.metadata,
|
2292
2303
|
retry_policy: @config.retry_policy
|
2293
2304
|
|
2294
2305
|
@cluster_manager_stub.call_rpc :set_node_pool_management, request, options: options do |response, operation|
|
@@ -2376,7 +2387,9 @@ module Google
|
|
2376
2387
|
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
2377
2388
|
metadata: metadata,
|
2378
2389
|
retry_policy: @config.rpcs.set_labels.retry_policy
|
2379
|
-
|
2390
|
+
|
2391
|
+
options.apply_defaults timeout: @config.timeout,
|
2392
|
+
metadata: @config.metadata,
|
2380
2393
|
retry_policy: @config.retry_policy
|
2381
2394
|
|
2382
2395
|
@cluster_manager_stub.call_rpc :set_labels, request, options: options do |response, operation|
|
@@ -2457,7 +2470,9 @@ module Google
|
|
2457
2470
|
options.apply_defaults timeout: @config.rpcs.set_legacy_abac.timeout,
|
2458
2471
|
metadata: metadata,
|
2459
2472
|
retry_policy: @config.rpcs.set_legacy_abac.retry_policy
|
2460
|
-
|
2473
|
+
|
2474
|
+
options.apply_defaults timeout: @config.timeout,
|
2475
|
+
metadata: @config.metadata,
|
2461
2476
|
retry_policy: @config.retry_policy
|
2462
2477
|
|
2463
2478
|
@cluster_manager_stub.call_rpc :set_legacy_abac, request, options: options do |response, operation|
|
@@ -2538,7 +2553,9 @@ module Google
|
|
2538
2553
|
options.apply_defaults timeout: @config.rpcs.start_ip_rotation.timeout,
|
2539
2554
|
metadata: metadata,
|
2540
2555
|
retry_policy: @config.rpcs.start_ip_rotation.retry_policy
|
2541
|
-
|
2556
|
+
|
2557
|
+
options.apply_defaults timeout: @config.timeout,
|
2558
|
+
metadata: @config.metadata,
|
2542
2559
|
retry_policy: @config.retry_policy
|
2543
2560
|
|
2544
2561
|
@cluster_manager_stub.call_rpc :start_ip_rotation, request, options: options do |response, operation|
|
@@ -2617,7 +2634,9 @@ module Google
|
|
2617
2634
|
options.apply_defaults timeout: @config.rpcs.complete_ip_rotation.timeout,
|
2618
2635
|
metadata: metadata,
|
2619
2636
|
retry_policy: @config.rpcs.complete_ip_rotation.retry_policy
|
2620
|
-
|
2637
|
+
|
2638
|
+
options.apply_defaults timeout: @config.timeout,
|
2639
|
+
metadata: @config.metadata,
|
2621
2640
|
retry_policy: @config.retry_policy
|
2622
2641
|
|
2623
2642
|
@cluster_manager_stub.call_rpc :complete_ip_rotation, request, options: options do |response, operation|
|
@@ -2702,7 +2721,9 @@ module Google
|
|
2702
2721
|
options.apply_defaults timeout: @config.rpcs.set_node_pool_size.timeout,
|
2703
2722
|
metadata: metadata,
|
2704
2723
|
retry_policy: @config.rpcs.set_node_pool_size.retry_policy
|
2705
|
-
|
2724
|
+
|
2725
|
+
options.apply_defaults timeout: @config.timeout,
|
2726
|
+
metadata: @config.metadata,
|
2706
2727
|
retry_policy: @config.retry_policy
|
2707
2728
|
|
2708
2729
|
@cluster_manager_stub.call_rpc :set_node_pool_size, request, options: options do |response, operation|
|
@@ -2783,7 +2804,9 @@ module Google
|
|
2783
2804
|
options.apply_defaults timeout: @config.rpcs.set_network_policy.timeout,
|
2784
2805
|
metadata: metadata,
|
2785
2806
|
retry_policy: @config.rpcs.set_network_policy.retry_policy
|
2786
|
-
|
2807
|
+
|
2808
|
+
options.apply_defaults timeout: @config.timeout,
|
2809
|
+
metadata: @config.metadata,
|
2787
2810
|
retry_policy: @config.retry_policy
|
2788
2811
|
|
2789
2812
|
@cluster_manager_stub.call_rpc :set_network_policy, request, options: options do |response, operation|
|
@@ -2863,7 +2886,9 @@ module Google
|
|
2863
2886
|
options.apply_defaults timeout: @config.rpcs.set_maintenance_policy.timeout,
|
2864
2887
|
metadata: metadata,
|
2865
2888
|
retry_policy: @config.rpcs.set_maintenance_policy.retry_policy
|
2866
|
-
|
2889
|
+
|
2890
|
+
options.apply_defaults timeout: @config.timeout,
|
2891
|
+
metadata: @config.metadata,
|
2867
2892
|
retry_policy: @config.retry_policy
|
2868
2893
|
|
2869
2894
|
@cluster_manager_stub.call_rpc :set_maintenance_policy, request, options: options do |response, operation|
|
@@ -2943,7 +2968,9 @@ module Google
|
|
2943
2968
|
options.apply_defaults timeout: @config.rpcs.list_usable_subnetworks.timeout,
|
2944
2969
|
metadata: metadata,
|
2945
2970
|
retry_policy: @config.rpcs.list_usable_subnetworks.retry_policy
|
2946
|
-
|
2971
|
+
|
2972
|
+
options.apply_defaults timeout: @config.timeout,
|
2973
|
+
metadata: @config.metadata,
|
2947
2974
|
retry_policy: @config.retry_policy
|
2948
2975
|
|
2949
2976
|
@cluster_manager_stub.call_rpc :list_usable_subnetworks, request, options: options do |response, operation|
|
@@ -3011,7 +3038,9 @@ module Google
|
|
3011
3038
|
options.apply_defaults timeout: @config.rpcs.list_locations.timeout,
|
3012
3039
|
metadata: metadata,
|
3013
3040
|
retry_policy: @config.rpcs.list_locations.retry_policy
|
3014
|
-
|
3041
|
+
|
3042
|
+
options.apply_defaults timeout: @config.timeout,
|
3043
|
+
metadata: @config.metadata,
|
3015
3044
|
retry_policy: @config.retry_policy
|
3016
3045
|
|
3017
3046
|
@cluster_manager_stub.call_rpc :list_locations, request, options: options do |response, operation|
|
@@ -3035,22 +3064,21 @@ module Google
|
|
3035
3064
|
# Configuration can be applied globally to all clients, or to a single client
|
3036
3065
|
# on construction.
|
3037
3066
|
#
|
3038
|
-
#
|
3039
|
-
#
|
3040
|
-
#
|
3041
|
-
# to 20 seconds,
|
3042
|
-
#
|
3043
|
-
#
|
3044
|
-
#
|
3045
|
-
#
|
3046
|
-
#
|
3047
|
-
#
|
3048
|
-
#
|
3049
|
-
#
|
3050
|
-
#
|
3051
|
-
#
|
3052
|
-
#
|
3053
|
-
# end
|
3067
|
+
# @example
|
3068
|
+
#
|
3069
|
+
# # Modify the global config, setting the timeout for
|
3070
|
+
# # list_clusters to 20 seconds,
|
3071
|
+
# # and all remaining timeouts to 10 seconds.
|
3072
|
+
# ::Google::Cloud::Container::V1beta1::ClusterManager::Client.configure do |config|
|
3073
|
+
# config.timeout = 10.0
|
3074
|
+
# config.rpcs.list_clusters.timeout = 20.0
|
3075
|
+
# end
|
3076
|
+
#
|
3077
|
+
# # Apply the above configuration only to a new client.
|
3078
|
+
# client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new do |config|
|
3079
|
+
# config.timeout = 10.0
|
3080
|
+
# config.rpcs.list_clusters.timeout = 20.0
|
3081
|
+
# end
|
3054
3082
|
#
|
3055
3083
|
# @!attribute [rw] endpoint
|
3056
3084
|
# The hostname or hostname:port of the service endpoint.
|
@@ -312,6 +312,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
312
312
|
optional :desired_workload_identity_config, :message, 47, "google.container.v1beta1.WorkloadIdentityConfig"
|
313
313
|
optional :desired_shielded_nodes, :message, 48, "google.container.v1beta1.ShieldedNodes"
|
314
314
|
optional :desired_master, :message, 52, "google.container.v1beta1.Master"
|
315
|
+
optional :desired_authenticator_groups_config, :message, 63, "google.container.v1beta1.AuthenticatorGroupsConfig"
|
315
316
|
end
|
316
317
|
add_message "google.container.v1beta1.Operation" do
|
317
318
|
optional :name, :string, 1
|
@@ -656,6 +657,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
656
657
|
optional :disk_type, :string, 7
|
657
658
|
optional :shielded_instance_config, :message, 8, "google.container.v1beta1.ShieldedInstanceConfig"
|
658
659
|
optional :boot_disk_kms_key, :string, 9
|
660
|
+
optional :image_type, :string, 10
|
659
661
|
end
|
660
662
|
add_message "google.container.v1beta1.ResourceLimit" do
|
661
663
|
optional :resource_type, :string, 1
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -1427,6 +1427,10 @@ module Google
|
|
1427
1427
|
# @!attribute [rw] desired_master
|
1428
1428
|
# @return [::Google::Cloud::Container::V1beta1::Master]
|
1429
1429
|
# Configuration for master components.
|
1430
|
+
# @!attribute [rw] desired_authenticator_groups_config
|
1431
|
+
# @return [::Google::Cloud::Container::V1beta1::AuthenticatorGroupsConfig]
|
1432
|
+
# AuthenticatorGroupsConfig specifies the config for the cluster security
|
1433
|
+
# groups settings.
|
1430
1434
|
class ClusterUpdate
|
1431
1435
|
include ::Google::Protobuf::MessageExts
|
1432
1436
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -2848,6 +2852,9 @@ module Google
|
|
2848
2852
|
# For more information about protecting resources with Cloud KMS Keys please
|
2849
2853
|
# see:
|
2850
2854
|
# https://cloud.google.com/compute/docs/disks/customer-managed-encryption
|
2855
|
+
# @!attribute [rw] image_type
|
2856
|
+
# @return [::String]
|
2857
|
+
# The image type to use for node created by NodeAutoprovisioning.
|
2851
2858
|
class AutoprovisioningNodePoolDefaults
|
2852
2859
|
include ::Google::Protobuf::MessageExts
|
2853
2860
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -3735,7 +3742,7 @@ module Google
|
|
3735
3742
|
|
3736
3743
|
# Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
|
3737
3744
|
# Dataplane V2
|
3738
|
-
# documentation](https://cloud.google.com/kubernetes-
|
3745
|
+
# documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
|
3739
3746
|
# for more.
|
3740
3747
|
ADVANCED_DATAPATH = 2
|
3741
3748
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-container-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.7'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
207
|
- !ruby/object:Gem::Version
|
202
208
|
version: '0'
|
203
209
|
requirements: []
|
204
|
-
rubygems_version: 3.2.
|
210
|
+
rubygems_version: 3.2.17
|
205
211
|
signing_key:
|
206
212
|
specification_version: 4
|
207
213
|
summary: API Client library for the Kubernetes Engine V1beta1 API
|