google-apis-container_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2709 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module ContainerV1beta1
23
+ # Kubernetes Engine API
24
+ #
25
+ # Builds and manages container-based applications, powered by the open source
26
+ # Kubernetes technology.
27
+ #
28
+ # @example
29
+ # require 'google/apis/container_v1beta1'
30
+ #
31
+ # Container = Google::Apis::ContainerV1beta1 # Alias the module
32
+ # service = Container::ContainerService.new
33
+ #
34
+ # @see https://cloud.google.com/container-engine/
35
+ class ContainerService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://container.googleapis.com/', '',
48
+ client_name: 'google-apis-container_v1beta1',
49
+ client_version: Google::Apis::ContainerV1beta1::GEM_VERSION)
50
+ @batch_path = 'batch'
51
+ end
52
+
53
+ # Lists subnetworks that can be used for creating clusters in a project.
54
+ # @param [String] parent
55
+ # Required. The parent project where subnetworks are usable. Specified in the
56
+ # format `projects/*`.
57
+ # @param [String] filter
58
+ # Filtering currently only supports equality on the networkProjectId and must be
59
+ # in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` is the
60
+ # project which owns the listed subnetworks. This defaults to the parent project
61
+ # ID.
62
+ # @param [Fixnum] page_size
63
+ # The max number of results per page that should be returned. If the number of
64
+ # available results is larger than `page_size`, a `next_page_token` is returned
65
+ # which can be used to get the next page of results in subsequent requests.
66
+ # Acceptable values are 0 to 500, inclusive. (Default: 500)
67
+ # @param [String] page_token
68
+ # Specifies a page token to use. Set this to the nextPageToken returned by
69
+ # previous list requests to get the next page of results.
70
+ # @param [String] fields
71
+ # Selector specifying which fields to include in a partial response.
72
+ # @param [String] quota_user
73
+ # Available to use for quota purposes for server-side applications. Can be any
74
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
75
+ # @param [Google::Apis::RequestOptions] options
76
+ # Request-specific options
77
+ #
78
+ # @yield [result, err] Result & error if block supplied
79
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListUsableSubnetworksResponse] parsed result object
80
+ # @yieldparam err [StandardError] error object if request failed
81
+ #
82
+ # @return [Google::Apis::ContainerV1beta1::ListUsableSubnetworksResponse]
83
+ #
84
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
85
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
86
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
87
+ def list_project_aggregated_usable_subnetworks(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
88
+ command = make_simple_command(:get, 'v1beta1/{+parent}/aggregated/usableSubnetworks', options)
89
+ command.response_representation = Google::Apis::ContainerV1beta1::ListUsableSubnetworksResponse::Representation
90
+ command.response_class = Google::Apis::ContainerV1beta1::ListUsableSubnetworksResponse
91
+ command.params['parent'] = parent unless parent.nil?
92
+ command.query['filter'] = filter unless filter.nil?
93
+ command.query['pageSize'] = page_size unless page_size.nil?
94
+ command.query['pageToken'] = page_token unless page_token.nil?
95
+ command.query['fields'] = fields unless fields.nil?
96
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
97
+ execute_or_queue_command(command, &block)
98
+ end
99
+
100
+ # Returns configuration info about the Google Kubernetes Engine service.
101
+ # @param [String] name
102
+ # The name (project and location) of the server config to get, specified in the
103
+ # format `projects/*/locations/*`.
104
+ # @param [String] project_id
105
+ # Required. Deprecated. The Google Developers Console [project ID or project
106
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
107
+ # deprecated and replaced by the name field.
108
+ # @param [String] zone
109
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
110
+ # cloud.google.com/compute/docs/zones#available) to return operations for. This
111
+ # field has been deprecated and replaced by the name field.
112
+ # @param [String] fields
113
+ # Selector specifying which fields to include in a partial response.
114
+ # @param [String] quota_user
115
+ # Available to use for quota purposes for server-side applications. Can be any
116
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
117
+ # @param [Google::Apis::RequestOptions] options
118
+ # Request-specific options
119
+ #
120
+ # @yield [result, err] Result & error if block supplied
121
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ServerConfig] parsed result object
122
+ # @yieldparam err [StandardError] error object if request failed
123
+ #
124
+ # @return [Google::Apis::ContainerV1beta1::ServerConfig]
125
+ #
126
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
127
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
128
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
129
+ def get_project_location_server_config(name, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
130
+ command = make_simple_command(:get, 'v1beta1/{+name}/serverConfig', options)
131
+ command.response_representation = Google::Apis::ContainerV1beta1::ServerConfig::Representation
132
+ command.response_class = Google::Apis::ContainerV1beta1::ServerConfig
133
+ command.params['name'] = name unless name.nil?
134
+ command.query['projectId'] = project_id unless project_id.nil?
135
+ command.query['zone'] = zone unless zone.nil?
136
+ command.query['fields'] = fields unless fields.nil?
137
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
138
+ execute_or_queue_command(command, &block)
139
+ end
140
+
141
+ # Fetches locations that offer Google Kubernetes Engine.
142
+ # @param [String] parent
143
+ # Required. Contains the name of the resource requested. Specified in the format
144
+ # `projects/*`.
145
+ # @param [String] fields
146
+ # Selector specifying which fields to include in a partial response.
147
+ # @param [String] quota_user
148
+ # Available to use for quota purposes for server-side applications. Can be any
149
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
150
+ # @param [Google::Apis::RequestOptions] options
151
+ # Request-specific options
152
+ #
153
+ # @yield [result, err] Result & error if block supplied
154
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListLocationsResponse] parsed result object
155
+ # @yieldparam err [StandardError] error object if request failed
156
+ #
157
+ # @return [Google::Apis::ContainerV1beta1::ListLocationsResponse]
158
+ #
159
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
160
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
161
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
162
+ def list_project_locations(parent, fields: nil, quota_user: nil, options: nil, &block)
163
+ command = make_simple_command(:get, 'v1beta1/{+parent}/locations', options)
164
+ command.response_representation = Google::Apis::ContainerV1beta1::ListLocationsResponse::Representation
165
+ command.response_class = Google::Apis::ContainerV1beta1::ListLocationsResponse
166
+ command.params['parent'] = parent unless parent.nil?
167
+ command.query['fields'] = fields unless fields.nil?
168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
169
+ execute_or_queue_command(command, &block)
170
+ end
171
+
172
+ # Completes master IP rotation.
173
+ # @param [String] name
174
+ # The name (project, location, cluster id) of the cluster to complete IP
175
+ # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
176
+ # @param [Google::Apis::ContainerV1beta1::CompleteIpRotationRequest] complete_ip_rotation_request_object
177
+ # @param [String] fields
178
+ # Selector specifying which fields to include in a partial response.
179
+ # @param [String] quota_user
180
+ # Available to use for quota purposes for server-side applications. Can be any
181
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
182
+ # @param [Google::Apis::RequestOptions] options
183
+ # Request-specific options
184
+ #
185
+ # @yield [result, err] Result & error if block supplied
186
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
187
+ # @yieldparam err [StandardError] error object if request failed
188
+ #
189
+ # @return [Google::Apis::ContainerV1beta1::Operation]
190
+ #
191
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
192
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
193
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
194
+ def complete_project_location_cluster_ip_rotation(name, complete_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
195
+ command = make_simple_command(:post, 'v1beta1/{+name}:completeIpRotation', options)
196
+ command.request_representation = Google::Apis::ContainerV1beta1::CompleteIpRotationRequest::Representation
197
+ command.request_object = complete_ip_rotation_request_object
198
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
199
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
200
+ command.params['name'] = name unless name.nil?
201
+ command.query['fields'] = fields unless fields.nil?
202
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
203
+ execute_or_queue_command(command, &block)
204
+ end
205
+
206
+ # Creates a cluster, consisting of the specified number and type of Google
207
+ # Compute Engine instances. By default, the cluster is created in the project's [
208
+ # default network](https://cloud.google.com/compute/docs/networks-and-firewalls#
209
+ # networks). One firewall is added for the cluster. After cluster creation, the
210
+ # Kubelet creates routes for each node to allow the containers on that node to
211
+ # communicate with all other instances in the cluster. Finally, an entry is
212
+ # added to the project's global metadata indicating which CIDR range the cluster
213
+ # is using.
214
+ # @param [String] parent
215
+ # The parent (project and location) where the cluster will be created. Specified
216
+ # in the format `projects/*/locations/*`.
217
+ # @param [Google::Apis::ContainerV1beta1::CreateClusterRequest] create_cluster_request_object
218
+ # @param [String] fields
219
+ # Selector specifying which fields to include in a partial response.
220
+ # @param [String] quota_user
221
+ # Available to use for quota purposes for server-side applications. Can be any
222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
223
+ # @param [Google::Apis::RequestOptions] options
224
+ # Request-specific options
225
+ #
226
+ # @yield [result, err] Result & error if block supplied
227
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
228
+ # @yieldparam err [StandardError] error object if request failed
229
+ #
230
+ # @return [Google::Apis::ContainerV1beta1::Operation]
231
+ #
232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
235
+ def create_project_location_cluster(parent, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
236
+ command = make_simple_command(:post, 'v1beta1/{+parent}/clusters', options)
237
+ command.request_representation = Google::Apis::ContainerV1beta1::CreateClusterRequest::Representation
238
+ command.request_object = create_cluster_request_object
239
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
240
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
241
+ command.params['parent'] = parent unless parent.nil?
242
+ command.query['fields'] = fields unless fields.nil?
243
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
244
+ execute_or_queue_command(command, &block)
245
+ end
246
+
247
+ # Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
248
+ # Firewalls and routes that were configured during cluster creation are also
249
+ # deleted. Other Google Compute Engine resources that might be in use by the
250
+ # cluster, such as load balancer resources, are not deleted if they weren't
251
+ # present when the cluster was initially created.
252
+ # @param [String] name
253
+ # The name (project, location, cluster) of the cluster to delete. Specified in
254
+ # the format `projects/*/locations/*/clusters/*`.
255
+ # @param [String] cluster_id
256
+ # Required. Deprecated. The name of the cluster to delete. This field has been
257
+ # deprecated and replaced by the name field.
258
+ # @param [String] project_id
259
+ # Required. Deprecated. The Google Developers Console [project ID or project
260
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
261
+ # deprecated and replaced by the name field.
262
+ # @param [String] zone
263
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
264
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
265
+ # This field has been deprecated and replaced by the name field.
266
+ # @param [String] fields
267
+ # Selector specifying which fields to include in a partial response.
268
+ # @param [String] quota_user
269
+ # Available to use for quota purposes for server-side applications. Can be any
270
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
271
+ # @param [Google::Apis::RequestOptions] options
272
+ # Request-specific options
273
+ #
274
+ # @yield [result, err] Result & error if block supplied
275
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
276
+ # @yieldparam err [StandardError] error object if request failed
277
+ #
278
+ # @return [Google::Apis::ContainerV1beta1::Operation]
279
+ #
280
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
281
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
282
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
283
+ def delete_project_location_cluster(name, cluster_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
284
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
285
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
286
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
287
+ command.params['name'] = name unless name.nil?
288
+ command.query['clusterId'] = cluster_id unless cluster_id.nil?
289
+ command.query['projectId'] = project_id unless project_id.nil?
290
+ command.query['zone'] = zone unless zone.nil?
291
+ command.query['fields'] = fields unless fields.nil?
292
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
293
+ execute_or_queue_command(command, &block)
294
+ end
295
+
296
+ # Gets the details for a specific cluster.
297
+ # @param [String] name
298
+ # The name (project, location, cluster) of the cluster to retrieve. Specified in
299
+ # the format `projects/*/locations/*/clusters/*`.
300
+ # @param [String] cluster_id
301
+ # Required. Deprecated. The name of the cluster to retrieve. This field has been
302
+ # deprecated and replaced by the name field.
303
+ # @param [String] project_id
304
+ # Required. Deprecated. The Google Developers Console [project ID or project
305
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
306
+ # deprecated and replaced by the name field.
307
+ # @param [String] zone
308
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
309
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
310
+ # This field has been deprecated and replaced by the name field.
311
+ # @param [String] fields
312
+ # Selector specifying which fields to include in a partial response.
313
+ # @param [String] quota_user
314
+ # Available to use for quota purposes for server-side applications. Can be any
315
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
316
+ # @param [Google::Apis::RequestOptions] options
317
+ # Request-specific options
318
+ #
319
+ # @yield [result, err] Result & error if block supplied
320
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Cluster] parsed result object
321
+ # @yieldparam err [StandardError] error object if request failed
322
+ #
323
+ # @return [Google::Apis::ContainerV1beta1::Cluster]
324
+ #
325
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
326
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
327
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
328
+ def get_project_location_cluster(name, cluster_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
329
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
330
+ command.response_representation = Google::Apis::ContainerV1beta1::Cluster::Representation
331
+ command.response_class = Google::Apis::ContainerV1beta1::Cluster
332
+ command.params['name'] = name unless name.nil?
333
+ command.query['clusterId'] = cluster_id unless cluster_id.nil?
334
+ command.query['projectId'] = project_id unless project_id.nil?
335
+ command.query['zone'] = zone unless zone.nil?
336
+ command.query['fields'] = fields unless fields.nil?
337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
338
+ execute_or_queue_command(command, &block)
339
+ end
340
+
341
+ # Gets the public component of the cluster signing keys in JSON Web Key format.
342
+ # This API is not yet intended for general use, and is not available for all
343
+ # clusters.
344
+ # @param [String] parent
345
+ # The cluster (project, location, cluster id) to get keys for. Specified in the
346
+ # format `projects/*/locations/*/clusters/*`.
347
+ # @param [String] fields
348
+ # Selector specifying which fields to include in a partial response.
349
+ # @param [String] quota_user
350
+ # Available to use for quota purposes for server-side applications. Can be any
351
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
352
+ # @param [Google::Apis::RequestOptions] options
353
+ # Request-specific options
354
+ #
355
+ # @yield [result, err] Result & error if block supplied
356
+ # @yieldparam result [Google::Apis::ContainerV1beta1::GetJsonWebKeysResponse] parsed result object
357
+ # @yieldparam err [StandardError] error object if request failed
358
+ #
359
+ # @return [Google::Apis::ContainerV1beta1::GetJsonWebKeysResponse]
360
+ #
361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
364
+ def get_project_location_cluster_jwks(parent, fields: nil, quota_user: nil, options: nil, &block)
365
+ command = make_simple_command(:get, 'v1beta1/{+parent}/jwks', options)
366
+ command.response_representation = Google::Apis::ContainerV1beta1::GetJsonWebKeysResponse::Representation
367
+ command.response_class = Google::Apis::ContainerV1beta1::GetJsonWebKeysResponse
368
+ command.params['parent'] = parent unless parent.nil?
369
+ command.query['fields'] = fields unless fields.nil?
370
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
371
+ execute_or_queue_command(command, &block)
372
+ end
373
+
374
+ # Lists all clusters owned by a project in either the specified zone or all
375
+ # zones.
376
+ # @param [String] parent
377
+ # The parent (project and location) where the clusters will be listed. Specified
378
+ # in the format `projects/*/locations/*`. Location "-" matches all zones and all
379
+ # regions.
380
+ # @param [String] project_id
381
+ # Required. Deprecated. The Google Developers Console [project ID or project
382
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
383
+ # deprecated and replaced by the parent field.
384
+ # @param [String] zone
385
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
386
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides,
387
+ # or "-" for all zones. This field has been deprecated and replaced by the
388
+ # parent field.
389
+ # @param [String] fields
390
+ # Selector specifying which fields to include in a partial response.
391
+ # @param [String] quota_user
392
+ # Available to use for quota purposes for server-side applications. Can be any
393
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
394
+ # @param [Google::Apis::RequestOptions] options
395
+ # Request-specific options
396
+ #
397
+ # @yield [result, err] Result & error if block supplied
398
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListClustersResponse] parsed result object
399
+ # @yieldparam err [StandardError] error object if request failed
400
+ #
401
+ # @return [Google::Apis::ContainerV1beta1::ListClustersResponse]
402
+ #
403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
406
+ def list_project_location_clusters(parent, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
407
+ command = make_simple_command(:get, 'v1beta1/{+parent}/clusters', options)
408
+ command.response_representation = Google::Apis::ContainerV1beta1::ListClustersResponse::Representation
409
+ command.response_class = Google::Apis::ContainerV1beta1::ListClustersResponse
410
+ command.params['parent'] = parent unless parent.nil?
411
+ command.query['projectId'] = project_id unless project_id.nil?
412
+ command.query['zone'] = zone unless zone.nil?
413
+ command.query['fields'] = fields unless fields.nil?
414
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
415
+ execute_or_queue_command(command, &block)
416
+ end
417
+
418
+ # Sets the addons for a specific cluster.
419
+ # @param [String] name
420
+ # The name (project, location, cluster) of the cluster to set addons. Specified
421
+ # in the format `projects/*/locations/*/clusters/*`.
422
+ # @param [Google::Apis::ContainerV1beta1::SetAddonsConfigRequest] set_addons_config_request_object
423
+ # @param [String] fields
424
+ # Selector specifying which fields to include in a partial response.
425
+ # @param [String] quota_user
426
+ # Available to use for quota purposes for server-side applications. Can be any
427
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
428
+ # @param [Google::Apis::RequestOptions] options
429
+ # Request-specific options
430
+ #
431
+ # @yield [result, err] Result & error if block supplied
432
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
433
+ # @yieldparam err [StandardError] error object if request failed
434
+ #
435
+ # @return [Google::Apis::ContainerV1beta1::Operation]
436
+ #
437
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
438
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
439
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
440
+ def set_cluster_addons_config(name, set_addons_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
441
+ command = make_simple_command(:post, 'v1beta1/{+name}:setAddons', options)
442
+ command.request_representation = Google::Apis::ContainerV1beta1::SetAddonsConfigRequest::Representation
443
+ command.request_object = set_addons_config_request_object
444
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
445
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
446
+ command.params['name'] = name unless name.nil?
447
+ command.query['fields'] = fields unless fields.nil?
448
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
449
+ execute_or_queue_command(command, &block)
450
+ end
451
+
452
+ # Enables or disables the ABAC authorization mechanism on a cluster.
453
+ # @param [String] name
454
+ # The name (project, location, cluster id) of the cluster to set legacy abac.
455
+ # Specified in the format `projects/*/locations/*/clusters/*`.
456
+ # @param [Google::Apis::ContainerV1beta1::SetLegacyAbacRequest] set_legacy_abac_request_object
457
+ # @param [String] fields
458
+ # Selector specifying which fields to include in a partial response.
459
+ # @param [String] quota_user
460
+ # Available to use for quota purposes for server-side applications. Can be any
461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
462
+ # @param [Google::Apis::RequestOptions] options
463
+ # Request-specific options
464
+ #
465
+ # @yield [result, err] Result & error if block supplied
466
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
467
+ # @yieldparam err [StandardError] error object if request failed
468
+ #
469
+ # @return [Google::Apis::ContainerV1beta1::Operation]
470
+ #
471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
474
+ def set_cluster_legacy_abac(name, set_legacy_abac_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
475
+ command = make_simple_command(:post, 'v1beta1/{+name}:setLegacyAbac', options)
476
+ command.request_representation = Google::Apis::ContainerV1beta1::SetLegacyAbacRequest::Representation
477
+ command.request_object = set_legacy_abac_request_object
478
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
479
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
480
+ command.params['name'] = name unless name.nil?
481
+ command.query['fields'] = fields unless fields.nil?
482
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
483
+ execute_or_queue_command(command, &block)
484
+ end
485
+
486
+ # Sets the locations for a specific cluster. Deprecated. Use [projects.locations.
487
+ # clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/
488
+ # rest/v1beta1/projects.locations.clusters/update) instead.
489
+ # @param [String] name
490
+ # The name (project, location, cluster) of the cluster to set locations.
491
+ # Specified in the format `projects/*/locations/*/clusters/*`.
492
+ # @param [Google::Apis::ContainerV1beta1::SetLocationsRequest] set_locations_request_object
493
+ # @param [String] fields
494
+ # Selector specifying which fields to include in a partial response.
495
+ # @param [String] quota_user
496
+ # Available to use for quota purposes for server-side applications. Can be any
497
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
498
+ # @param [Google::Apis::RequestOptions] options
499
+ # Request-specific options
500
+ #
501
+ # @yield [result, err] Result & error if block supplied
502
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
503
+ # @yieldparam err [StandardError] error object if request failed
504
+ #
505
+ # @return [Google::Apis::ContainerV1beta1::Operation]
506
+ #
507
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
508
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
509
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
510
+ def set_cluster_locations(name, set_locations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
511
+ command = make_simple_command(:post, 'v1beta1/{+name}:setLocations', options)
512
+ command.request_representation = Google::Apis::ContainerV1beta1::SetLocationsRequest::Representation
513
+ command.request_object = set_locations_request_object
514
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
515
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
516
+ command.params['name'] = name unless name.nil?
517
+ command.query['fields'] = fields unless fields.nil?
518
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
519
+ execute_or_queue_command(command, &block)
520
+ end
521
+
522
+ # Sets the logging service for a specific cluster.
523
+ # @param [String] name
524
+ # The name (project, location, cluster) of the cluster to set logging. Specified
525
+ # in the format `projects/*/locations/*/clusters/*`.
526
+ # @param [Google::Apis::ContainerV1beta1::SetLoggingServiceRequest] set_logging_service_request_object
527
+ # @param [String] fields
528
+ # Selector specifying which fields to include in a partial response.
529
+ # @param [String] quota_user
530
+ # Available to use for quota purposes for server-side applications. Can be any
531
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
532
+ # @param [Google::Apis::RequestOptions] options
533
+ # Request-specific options
534
+ #
535
+ # @yield [result, err] Result & error if block supplied
536
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
537
+ # @yieldparam err [StandardError] error object if request failed
538
+ #
539
+ # @return [Google::Apis::ContainerV1beta1::Operation]
540
+ #
541
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
542
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
543
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
544
+ def set_cluster_logging_service(name, set_logging_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
545
+ command = make_simple_command(:post, 'v1beta1/{+name}:setLogging', options)
546
+ command.request_representation = Google::Apis::ContainerV1beta1::SetLoggingServiceRequest::Representation
547
+ command.request_object = set_logging_service_request_object
548
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
549
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
550
+ command.params['name'] = name unless name.nil?
551
+ command.query['fields'] = fields unless fields.nil?
552
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
553
+ execute_or_queue_command(command, &block)
554
+ end
555
+
556
+ # Sets the maintenance policy for a cluster.
557
+ # @param [String] name
558
+ # The name (project, location, cluster id) of the cluster to set maintenance
559
+ # policy. Specified in the format `projects/*/locations/*/clusters/*`.
560
+ # @param [Google::Apis::ContainerV1beta1::SetMaintenancePolicyRequest] set_maintenance_policy_request_object
561
+ # @param [String] fields
562
+ # Selector specifying which fields to include in a partial response.
563
+ # @param [String] quota_user
564
+ # Available to use for quota purposes for server-side applications. Can be any
565
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
566
+ # @param [Google::Apis::RequestOptions] options
567
+ # Request-specific options
568
+ #
569
+ # @yield [result, err] Result & error if block supplied
570
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
571
+ # @yieldparam err [StandardError] error object if request failed
572
+ #
573
+ # @return [Google::Apis::ContainerV1beta1::Operation]
574
+ #
575
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
576
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
577
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
578
+ def set_project_location_cluster_maintenance_policy(name, set_maintenance_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
579
+ command = make_simple_command(:post, 'v1beta1/{+name}:setMaintenancePolicy', options)
580
+ command.request_representation = Google::Apis::ContainerV1beta1::SetMaintenancePolicyRequest::Representation
581
+ command.request_object = set_maintenance_policy_request_object
582
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
583
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
584
+ command.params['name'] = name unless name.nil?
585
+ command.query['fields'] = fields unless fields.nil?
586
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
587
+ execute_or_queue_command(command, &block)
588
+ end
589
+
590
+ # Sets master auth materials. Currently supports changing the admin password or
591
+ # a specific cluster, either via password generation or explicitly setting the
592
+ # password.
593
+ # @param [String] name
594
+ # The name (project, location, cluster) of the cluster to set auth. Specified in
595
+ # the format `projects/*/locations/*/clusters/*`.
596
+ # @param [Google::Apis::ContainerV1beta1::SetMasterAuthRequest] set_master_auth_request_object
597
+ # @param [String] fields
598
+ # Selector specifying which fields to include in a partial response.
599
+ # @param [String] quota_user
600
+ # Available to use for quota purposes for server-side applications. Can be any
601
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
602
+ # @param [Google::Apis::RequestOptions] options
603
+ # Request-specific options
604
+ #
605
+ # @yield [result, err] Result & error if block supplied
606
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
607
+ # @yieldparam err [StandardError] error object if request failed
608
+ #
609
+ # @return [Google::Apis::ContainerV1beta1::Operation]
610
+ #
611
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
612
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
613
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
614
+ def set_project_location_cluster_master_auth(name, set_master_auth_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
615
+ command = make_simple_command(:post, 'v1beta1/{+name}:setMasterAuth', options)
616
+ command.request_representation = Google::Apis::ContainerV1beta1::SetMasterAuthRequest::Representation
617
+ command.request_object = set_master_auth_request_object
618
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
619
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
620
+ command.params['name'] = name unless name.nil?
621
+ command.query['fields'] = fields unless fields.nil?
622
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
623
+ execute_or_queue_command(command, &block)
624
+ end
625
+
626
+ # Sets the monitoring service for a specific cluster.
627
+ # @param [String] name
628
+ # The name (project, location, cluster) of the cluster to set monitoring.
629
+ # Specified in the format `projects/*/locations/*/clusters/*`.
630
+ # @param [Google::Apis::ContainerV1beta1::SetMonitoringServiceRequest] set_monitoring_service_request_object
631
+ # @param [String] fields
632
+ # Selector specifying which fields to include in a partial response.
633
+ # @param [String] quota_user
634
+ # Available to use for quota purposes for server-side applications. Can be any
635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
636
+ # @param [Google::Apis::RequestOptions] options
637
+ # Request-specific options
638
+ #
639
+ # @yield [result, err] Result & error if block supplied
640
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
641
+ # @yieldparam err [StandardError] error object if request failed
642
+ #
643
+ # @return [Google::Apis::ContainerV1beta1::Operation]
644
+ #
645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
648
+ def set_cluster_monitoring_service(name, set_monitoring_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
649
+ command = make_simple_command(:post, 'v1beta1/{+name}:setMonitoring', options)
650
+ command.request_representation = Google::Apis::ContainerV1beta1::SetMonitoringServiceRequest::Representation
651
+ command.request_object = set_monitoring_service_request_object
652
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
653
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
654
+ command.params['name'] = name unless name.nil?
655
+ command.query['fields'] = fields unless fields.nil?
656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
657
+ execute_or_queue_command(command, &block)
658
+ end
659
+
660
+ # Enables or disables Network Policy for a cluster.
661
+ # @param [String] name
662
+ # The name (project, location, cluster id) of the cluster to set networking
663
+ # policy. Specified in the format `projects/*/locations/*/clusters/*`.
664
+ # @param [Google::Apis::ContainerV1beta1::SetNetworkPolicyRequest] set_network_policy_request_object
665
+ # @param [String] fields
666
+ # Selector specifying which fields to include in a partial response.
667
+ # @param [String] quota_user
668
+ # Available to use for quota purposes for server-side applications. Can be any
669
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
670
+ # @param [Google::Apis::RequestOptions] options
671
+ # Request-specific options
672
+ #
673
+ # @yield [result, err] Result & error if block supplied
674
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
675
+ # @yieldparam err [StandardError] error object if request failed
676
+ #
677
+ # @return [Google::Apis::ContainerV1beta1::Operation]
678
+ #
679
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
680
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
681
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
682
+ def set_project_location_cluster_network_policy(name, set_network_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
683
+ command = make_simple_command(:post, 'v1beta1/{+name}:setNetworkPolicy', options)
684
+ command.request_representation = Google::Apis::ContainerV1beta1::SetNetworkPolicyRequest::Representation
685
+ command.request_object = set_network_policy_request_object
686
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
687
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
688
+ command.params['name'] = name unless name.nil?
689
+ command.query['fields'] = fields unless fields.nil?
690
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
691
+ execute_or_queue_command(command, &block)
692
+ end
693
+
694
+ # Sets labels on a cluster.
695
+ # @param [String] name
696
+ # The name (project, location, cluster id) of the cluster to set labels.
697
+ # Specified in the format `projects/*/locations/*/clusters/*`.
698
+ # @param [Google::Apis::ContainerV1beta1::SetLabelsRequest] set_labels_request_object
699
+ # @param [String] fields
700
+ # Selector specifying which fields to include in a partial response.
701
+ # @param [String] quota_user
702
+ # Available to use for quota purposes for server-side applications. Can be any
703
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
704
+ # @param [Google::Apis::RequestOptions] options
705
+ # Request-specific options
706
+ #
707
+ # @yield [result, err] Result & error if block supplied
708
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
709
+ # @yieldparam err [StandardError] error object if request failed
710
+ #
711
+ # @return [Google::Apis::ContainerV1beta1::Operation]
712
+ #
713
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
714
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
715
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
716
+ def set_project_location_cluster_resource_labels(name, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
717
+ command = make_simple_command(:post, 'v1beta1/{+name}:setResourceLabels', options)
718
+ command.request_representation = Google::Apis::ContainerV1beta1::SetLabelsRequest::Representation
719
+ command.request_object = set_labels_request_object
720
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
721
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
722
+ command.params['name'] = name unless name.nil?
723
+ command.query['fields'] = fields unless fields.nil?
724
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
725
+ execute_or_queue_command(command, &block)
726
+ end
727
+
728
+ # Starts master IP rotation.
729
+ # @param [String] name
730
+ # The name (project, location, cluster id) of the cluster to start IP rotation.
731
+ # Specified in the format `projects/*/locations/*/clusters/*`.
732
+ # @param [Google::Apis::ContainerV1beta1::StartIpRotationRequest] start_ip_rotation_request_object
733
+ # @param [String] fields
734
+ # Selector specifying which fields to include in a partial response.
735
+ # @param [String] quota_user
736
+ # Available to use for quota purposes for server-side applications. Can be any
737
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
738
+ # @param [Google::Apis::RequestOptions] options
739
+ # Request-specific options
740
+ #
741
+ # @yield [result, err] Result & error if block supplied
742
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
743
+ # @yieldparam err [StandardError] error object if request failed
744
+ #
745
+ # @return [Google::Apis::ContainerV1beta1::Operation]
746
+ #
747
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
748
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
749
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
750
+ def start_project_location_cluster_ip_rotation(name, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
751
+ command = make_simple_command(:post, 'v1beta1/{+name}:startIpRotation', options)
752
+ command.request_representation = Google::Apis::ContainerV1beta1::StartIpRotationRequest::Representation
753
+ command.request_object = start_ip_rotation_request_object
754
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
755
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
756
+ command.params['name'] = name unless name.nil?
757
+ command.query['fields'] = fields unless fields.nil?
758
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
759
+ execute_or_queue_command(command, &block)
760
+ end
761
+
762
+ # Updates the settings for a specific cluster.
763
+ # @param [String] name
764
+ # The name (project, location, cluster) of the cluster to update. Specified in
765
+ # the format `projects/*/locations/*/clusters/*`.
766
+ # @param [Google::Apis::ContainerV1beta1::UpdateClusterRequest] update_cluster_request_object
767
+ # @param [String] fields
768
+ # Selector specifying which fields to include in a partial response.
769
+ # @param [String] quota_user
770
+ # Available to use for quota purposes for server-side applications. Can be any
771
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
772
+ # @param [Google::Apis::RequestOptions] options
773
+ # Request-specific options
774
+ #
775
+ # @yield [result, err] Result & error if block supplied
776
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
777
+ # @yieldparam err [StandardError] error object if request failed
778
+ #
779
+ # @return [Google::Apis::ContainerV1beta1::Operation]
780
+ #
781
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
782
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
783
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
784
+ def update_project_location_cluster(name, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
785
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
786
+ command.request_representation = Google::Apis::ContainerV1beta1::UpdateClusterRequest::Representation
787
+ command.request_object = update_cluster_request_object
788
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
789
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
790
+ command.params['name'] = name unless name.nil?
791
+ command.query['fields'] = fields unless fields.nil?
792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
793
+ execute_or_queue_command(command, &block)
794
+ end
795
+
796
+ # Updates the master for a specific cluster.
797
+ # @param [String] name
798
+ # The name (project, location, cluster) of the cluster to update. Specified in
799
+ # the format `projects/*/locations/*/clusters/*`.
800
+ # @param [Google::Apis::ContainerV1beta1::UpdateMasterRequest] update_master_request_object
801
+ # @param [String] fields
802
+ # Selector specifying which fields to include in a partial response.
803
+ # @param [String] quota_user
804
+ # Available to use for quota purposes for server-side applications. Can be any
805
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
806
+ # @param [Google::Apis::RequestOptions] options
807
+ # Request-specific options
808
+ #
809
+ # @yield [result, err] Result & error if block supplied
810
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
811
+ # @yieldparam err [StandardError] error object if request failed
812
+ #
813
+ # @return [Google::Apis::ContainerV1beta1::Operation]
814
+ #
815
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
816
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
817
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
818
+ def update_cluster_master(name, update_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
819
+ command = make_simple_command(:post, 'v1beta1/{+name}:updateMaster', options)
820
+ command.request_representation = Google::Apis::ContainerV1beta1::UpdateMasterRequest::Representation
821
+ command.request_object = update_master_request_object
822
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
823
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
824
+ command.params['name'] = name unless name.nil?
825
+ command.query['fields'] = fields unless fields.nil?
826
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
827
+ execute_or_queue_command(command, &block)
828
+ end
829
+
830
+ # Creates a node pool for a cluster.
831
+ # @param [String] parent
832
+ # The parent (project, location, cluster id) where the node pool will be created.
833
+ # Specified in the format `projects/*/locations/*/clusters/*`.
834
+ # @param [Google::Apis::ContainerV1beta1::CreateNodePoolRequest] create_node_pool_request_object
835
+ # @param [String] fields
836
+ # Selector specifying which fields to include in a partial response.
837
+ # @param [String] quota_user
838
+ # Available to use for quota purposes for server-side applications. Can be any
839
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
840
+ # @param [Google::Apis::RequestOptions] options
841
+ # Request-specific options
842
+ #
843
+ # @yield [result, err] Result & error if block supplied
844
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
845
+ # @yieldparam err [StandardError] error object if request failed
846
+ #
847
+ # @return [Google::Apis::ContainerV1beta1::Operation]
848
+ #
849
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
850
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
851
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
852
+ def create_project_location_cluster_node_pool(parent, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
853
+ command = make_simple_command(:post, 'v1beta1/{+parent}/nodePools', options)
854
+ command.request_representation = Google::Apis::ContainerV1beta1::CreateNodePoolRequest::Representation
855
+ command.request_object = create_node_pool_request_object
856
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
857
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
858
+ command.params['parent'] = parent unless parent.nil?
859
+ command.query['fields'] = fields unless fields.nil?
860
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
861
+ execute_or_queue_command(command, &block)
862
+ end
863
+
864
+ # Deletes a node pool from a cluster.
865
+ # @param [String] name
866
+ # The name (project, location, cluster, node pool id) of the node pool to delete.
867
+ # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
868
+ # @param [String] cluster_id
869
+ # Required. Deprecated. The name of the cluster. This field has been deprecated
870
+ # and replaced by the name field.
871
+ # @param [String] node_pool_id
872
+ # Required. Deprecated. The name of the node pool to delete. This field has been
873
+ # deprecated and replaced by the name field.
874
+ # @param [String] project_id
875
+ # Required. Deprecated. The Google Developers Console [project ID or project
876
+ # number](https://developers.google.com/console/help/new/#projectnumber). This
877
+ # field has been deprecated and replaced by the name field.
878
+ # @param [String] zone
879
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
880
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
881
+ # This field has been deprecated and replaced by the name field.
882
+ # @param [String] fields
883
+ # Selector specifying which fields to include in a partial response.
884
+ # @param [String] quota_user
885
+ # Available to use for quota purposes for server-side applications. Can be any
886
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
887
+ # @param [Google::Apis::RequestOptions] options
888
+ # Request-specific options
889
+ #
890
+ # @yield [result, err] Result & error if block supplied
891
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
892
+ # @yieldparam err [StandardError] error object if request failed
893
+ #
894
+ # @return [Google::Apis::ContainerV1beta1::Operation]
895
+ #
896
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
897
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
898
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
899
+ def delete_project_location_cluster_node_pool(name, cluster_id: nil, node_pool_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
900
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
901
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
902
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
903
+ command.params['name'] = name unless name.nil?
904
+ command.query['clusterId'] = cluster_id unless cluster_id.nil?
905
+ command.query['nodePoolId'] = node_pool_id unless node_pool_id.nil?
906
+ command.query['projectId'] = project_id unless project_id.nil?
907
+ command.query['zone'] = zone unless zone.nil?
908
+ command.query['fields'] = fields unless fields.nil?
909
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
910
+ execute_or_queue_command(command, &block)
911
+ end
912
+
913
+ # Retrieves the requested node pool.
914
+ # @param [String] name
915
+ # The name (project, location, cluster, node pool id) of the node pool to get.
916
+ # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
917
+ # @param [String] cluster_id
918
+ # Required. Deprecated. The name of the cluster. This field has been deprecated
919
+ # and replaced by the name field.
920
+ # @param [String] node_pool_id
921
+ # Required. Deprecated. The name of the node pool. This field has been
922
+ # deprecated and replaced by the name field.
923
+ # @param [String] project_id
924
+ # Required. Deprecated. The Google Developers Console [project ID or project
925
+ # number](https://developers.google.com/console/help/new/#projectnumber). This
926
+ # field has been deprecated and replaced by the name field.
927
+ # @param [String] zone
928
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
929
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
930
+ # This field has been deprecated and replaced by the name field.
931
+ # @param [String] fields
932
+ # Selector specifying which fields to include in a partial response.
933
+ # @param [String] quota_user
934
+ # Available to use for quota purposes for server-side applications. Can be any
935
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
936
+ # @param [Google::Apis::RequestOptions] options
937
+ # Request-specific options
938
+ #
939
+ # @yield [result, err] Result & error if block supplied
940
+ # @yieldparam result [Google::Apis::ContainerV1beta1::NodePool] parsed result object
941
+ # @yieldparam err [StandardError] error object if request failed
942
+ #
943
+ # @return [Google::Apis::ContainerV1beta1::NodePool]
944
+ #
945
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
946
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
947
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
948
+ def get_project_location_cluster_node_pool(name, cluster_id: nil, node_pool_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
949
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
950
+ command.response_representation = Google::Apis::ContainerV1beta1::NodePool::Representation
951
+ command.response_class = Google::Apis::ContainerV1beta1::NodePool
952
+ command.params['name'] = name unless name.nil?
953
+ command.query['clusterId'] = cluster_id unless cluster_id.nil?
954
+ command.query['nodePoolId'] = node_pool_id unless node_pool_id.nil?
955
+ command.query['projectId'] = project_id unless project_id.nil?
956
+ command.query['zone'] = zone unless zone.nil?
957
+ command.query['fields'] = fields unless fields.nil?
958
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
959
+ execute_or_queue_command(command, &block)
960
+ end
961
+
962
+ # Lists the node pools for a cluster.
963
+ # @param [String] parent
964
+ # The parent (project, location, cluster id) where the node pools will be listed.
965
+ # Specified in the format `projects/*/locations/*/clusters/*`.
966
+ # @param [String] cluster_id
967
+ # Required. Deprecated. The name of the cluster. This field has been deprecated
968
+ # and replaced by the parent field.
969
+ # @param [String] project_id
970
+ # Required. Deprecated. The Google Developers Console [project ID or project
971
+ # number](https://developers.google.com/console/help/new/#projectnumber). This
972
+ # field has been deprecated and replaced by the parent field.
973
+ # @param [String] zone
974
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
975
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
976
+ # This field has been deprecated and replaced by the parent field.
977
+ # @param [String] fields
978
+ # Selector specifying which fields to include in a partial response.
979
+ # @param [String] quota_user
980
+ # Available to use for quota purposes for server-side applications. Can be any
981
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
982
+ # @param [Google::Apis::RequestOptions] options
983
+ # Request-specific options
984
+ #
985
+ # @yield [result, err] Result & error if block supplied
986
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListNodePoolsResponse] parsed result object
987
+ # @yieldparam err [StandardError] error object if request failed
988
+ #
989
+ # @return [Google::Apis::ContainerV1beta1::ListNodePoolsResponse]
990
+ #
991
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
992
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
993
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
994
+ def list_project_location_cluster_node_pools(parent, cluster_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
995
+ command = make_simple_command(:get, 'v1beta1/{+parent}/nodePools', options)
996
+ command.response_representation = Google::Apis::ContainerV1beta1::ListNodePoolsResponse::Representation
997
+ command.response_class = Google::Apis::ContainerV1beta1::ListNodePoolsResponse
998
+ command.params['parent'] = parent unless parent.nil?
999
+ command.query['clusterId'] = cluster_id unless cluster_id.nil?
1000
+ command.query['projectId'] = project_id unless project_id.nil?
1001
+ command.query['zone'] = zone unless zone.nil?
1002
+ command.query['fields'] = fields unless fields.nil?
1003
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1004
+ execute_or_queue_command(command, &block)
1005
+ end
1006
+
1007
+ # Rolls back a previously Aborted or Failed NodePool upgrade. This makes no
1008
+ # changes if the last upgrade successfully completed.
1009
+ # @param [String] name
1010
+ # The name (project, location, cluster, node pool id) of the node poll to
1011
+ # rollback upgrade. Specified in the format `projects/*/locations/*/clusters/*/
1012
+ # nodePools/*`.
1013
+ # @param [Google::Apis::ContainerV1beta1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
1014
+ # @param [String] fields
1015
+ # Selector specifying which fields to include in a partial response.
1016
+ # @param [String] quota_user
1017
+ # Available to use for quota purposes for server-side applications. Can be any
1018
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1019
+ # @param [Google::Apis::RequestOptions] options
1020
+ # Request-specific options
1021
+ #
1022
+ # @yield [result, err] Result & error if block supplied
1023
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1024
+ # @yieldparam err [StandardError] error object if request failed
1025
+ #
1026
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1027
+ #
1028
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1029
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1030
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1031
+ def rollback_project_location_cluster_node_pool(name, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1032
+ command = make_simple_command(:post, 'v1beta1/{+name}:rollback', options)
1033
+ command.request_representation = Google::Apis::ContainerV1beta1::RollbackNodePoolUpgradeRequest::Representation
1034
+ command.request_object = rollback_node_pool_upgrade_request_object
1035
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1036
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1037
+ command.params['name'] = name unless name.nil?
1038
+ command.query['fields'] = fields unless fields.nil?
1039
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1040
+ execute_or_queue_command(command, &block)
1041
+ end
1042
+
1043
+ # Sets the autoscaling settings of a specific node pool.
1044
+ # @param [String] name
1045
+ # The name (project, location, cluster, node pool) of the node pool to set
1046
+ # autoscaler settings. Specified in the format `projects/*/locations/*/clusters/*
1047
+ # /nodePools/*`.
1048
+ # @param [Google::Apis::ContainerV1beta1::SetNodePoolAutoscalingRequest] set_node_pool_autoscaling_request_object
1049
+ # @param [String] fields
1050
+ # Selector specifying which fields to include in a partial response.
1051
+ # @param [String] quota_user
1052
+ # Available to use for quota purposes for server-side applications. Can be any
1053
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1054
+ # @param [Google::Apis::RequestOptions] options
1055
+ # Request-specific options
1056
+ #
1057
+ # @yield [result, err] Result & error if block supplied
1058
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1059
+ # @yieldparam err [StandardError] error object if request failed
1060
+ #
1061
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1062
+ #
1063
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1064
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1065
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1066
+ def set_project_location_cluster_node_pool_autoscaling(name, set_node_pool_autoscaling_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1067
+ command = make_simple_command(:post, 'v1beta1/{+name}:setAutoscaling', options)
1068
+ command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolAutoscalingRequest::Representation
1069
+ command.request_object = set_node_pool_autoscaling_request_object
1070
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1071
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1072
+ command.params['name'] = name unless name.nil?
1073
+ command.query['fields'] = fields unless fields.nil?
1074
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1075
+ execute_or_queue_command(command, &block)
1076
+ end
1077
+
1078
+ # Sets the NodeManagement options for a node pool.
1079
+ # @param [String] name
1080
+ # The name (project, location, cluster, node pool id) of the node pool to set
1081
+ # management properties. Specified in the format `projects/*/locations/*/
1082
+ # clusters/*/nodePools/*`.
1083
+ # @param [Google::Apis::ContainerV1beta1::SetNodePoolManagementRequest] set_node_pool_management_request_object
1084
+ # @param [String] fields
1085
+ # Selector specifying which fields to include in a partial response.
1086
+ # @param [String] quota_user
1087
+ # Available to use for quota purposes for server-side applications. Can be any
1088
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1089
+ # @param [Google::Apis::RequestOptions] options
1090
+ # Request-specific options
1091
+ #
1092
+ # @yield [result, err] Result & error if block supplied
1093
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1094
+ # @yieldparam err [StandardError] error object if request failed
1095
+ #
1096
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1097
+ #
1098
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1099
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1100
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1101
+ def set_project_location_cluster_node_pool_management(name, set_node_pool_management_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1102
+ command = make_simple_command(:post, 'v1beta1/{+name}:setManagement', options)
1103
+ command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolManagementRequest::Representation
1104
+ command.request_object = set_node_pool_management_request_object
1105
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1106
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1107
+ command.params['name'] = name unless name.nil?
1108
+ command.query['fields'] = fields unless fields.nil?
1109
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1110
+ execute_or_queue_command(command, &block)
1111
+ end
1112
+
1113
+ # SetNodePoolSizeRequest sets the size of a node pool. The new size will be used
1114
+ # for all replicas, including future replicas created by modifying NodePool.
1115
+ # locations.
1116
+ # @param [String] name
1117
+ # The name (project, location, cluster, node pool id) of the node pool to set
1118
+ # size. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1119
+ # @param [Google::Apis::ContainerV1beta1::SetNodePoolSizeRequest] set_node_pool_size_request_object
1120
+ # @param [String] fields
1121
+ # Selector specifying which fields to include in a partial response.
1122
+ # @param [String] quota_user
1123
+ # Available to use for quota purposes for server-side applications. Can be any
1124
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1125
+ # @param [Google::Apis::RequestOptions] options
1126
+ # Request-specific options
1127
+ #
1128
+ # @yield [result, err] Result & error if block supplied
1129
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1130
+ # @yieldparam err [StandardError] error object if request failed
1131
+ #
1132
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1133
+ #
1134
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1135
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1136
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1137
+ def set_project_location_cluster_node_pool_size(name, set_node_pool_size_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1138
+ command = make_simple_command(:post, 'v1beta1/{+name}:setSize', options)
1139
+ command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolSizeRequest::Representation
1140
+ command.request_object = set_node_pool_size_request_object
1141
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1142
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1143
+ command.params['name'] = name unless name.nil?
1144
+ command.query['fields'] = fields unless fields.nil?
1145
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1146
+ execute_or_queue_command(command, &block)
1147
+ end
1148
+
1149
+ # Updates the version and/or image type of a specific node pool.
1150
+ # @param [String] name
1151
+ # The name (project, location, cluster, node pool) of the node pool to update.
1152
+ # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
1153
+ # @param [Google::Apis::ContainerV1beta1::UpdateNodePoolRequest] update_node_pool_request_object
1154
+ # @param [String] fields
1155
+ # Selector specifying which fields to include in a partial response.
1156
+ # @param [String] quota_user
1157
+ # Available to use for quota purposes for server-side applications. Can be any
1158
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1159
+ # @param [Google::Apis::RequestOptions] options
1160
+ # Request-specific options
1161
+ #
1162
+ # @yield [result, err] Result & error if block supplied
1163
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1164
+ # @yieldparam err [StandardError] error object if request failed
1165
+ #
1166
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1167
+ #
1168
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1169
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1170
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1171
+ def update_project_location_cluster_node_pool(name, update_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1172
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
1173
+ command.request_representation = Google::Apis::ContainerV1beta1::UpdateNodePoolRequest::Representation
1174
+ command.request_object = update_node_pool_request_object
1175
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1176
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1177
+ command.params['name'] = name unless name.nil?
1178
+ command.query['fields'] = fields unless fields.nil?
1179
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1180
+ execute_or_queue_command(command, &block)
1181
+ end
1182
+
1183
+ # Gets the OIDC discovery document for the cluster. See the [OpenID Connect
1184
+ # Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-
1185
+ # 1_0.html) for details. This API is not yet intended for general use, and is
1186
+ # not available for all clusters.
1187
+ # @param [String] parent
1188
+ # The cluster (project, location, cluster id) to get the discovery document for.
1189
+ # Specified in the format `projects/*/locations/*/clusters/*`.
1190
+ # @param [String] fields
1191
+ # Selector specifying which fields to include in a partial response.
1192
+ # @param [String] quota_user
1193
+ # Available to use for quota purposes for server-side applications. Can be any
1194
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1195
+ # @param [Google::Apis::RequestOptions] options
1196
+ # Request-specific options
1197
+ #
1198
+ # @yield [result, err] Result & error if block supplied
1199
+ # @yieldparam result [Google::Apis::ContainerV1beta1::GetOpenIdConfigResponse] parsed result object
1200
+ # @yieldparam err [StandardError] error object if request failed
1201
+ #
1202
+ # @return [Google::Apis::ContainerV1beta1::GetOpenIdConfigResponse]
1203
+ #
1204
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1205
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1206
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1207
+ def get_project_location_cluster_well_known_openid_configuration(parent, fields: nil, quota_user: nil, options: nil, &block)
1208
+ command = make_simple_command(:get, 'v1beta1/{+parent}/.well-known/openid-configuration', options)
1209
+ command.response_representation = Google::Apis::ContainerV1beta1::GetOpenIdConfigResponse::Representation
1210
+ command.response_class = Google::Apis::ContainerV1beta1::GetOpenIdConfigResponse
1211
+ command.params['parent'] = parent unless parent.nil?
1212
+ command.query['fields'] = fields unless fields.nil?
1213
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1214
+ execute_or_queue_command(command, &block)
1215
+ end
1216
+
1217
+ # Cancels the specified operation.
1218
+ # @param [String] name
1219
+ # The name (project, location, operation id) of the operation to cancel.
1220
+ # Specified in the format `projects/*/locations/*/operations/*`.
1221
+ # @param [Google::Apis::ContainerV1beta1::CancelOperationRequest] cancel_operation_request_object
1222
+ # @param [String] fields
1223
+ # Selector specifying which fields to include in a partial response.
1224
+ # @param [String] quota_user
1225
+ # Available to use for quota purposes for server-side applications. Can be any
1226
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1227
+ # @param [Google::Apis::RequestOptions] options
1228
+ # Request-specific options
1229
+ #
1230
+ # @yield [result, err] Result & error if block supplied
1231
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Empty] parsed result object
1232
+ # @yieldparam err [StandardError] error object if request failed
1233
+ #
1234
+ # @return [Google::Apis::ContainerV1beta1::Empty]
1235
+ #
1236
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1237
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1238
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1239
+ def cancel_project_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1240
+ command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
1241
+ command.request_representation = Google::Apis::ContainerV1beta1::CancelOperationRequest::Representation
1242
+ command.request_object = cancel_operation_request_object
1243
+ command.response_representation = Google::Apis::ContainerV1beta1::Empty::Representation
1244
+ command.response_class = Google::Apis::ContainerV1beta1::Empty
1245
+ command.params['name'] = name unless name.nil?
1246
+ command.query['fields'] = fields unless fields.nil?
1247
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1248
+ execute_or_queue_command(command, &block)
1249
+ end
1250
+
1251
+ # Gets the specified operation.
1252
+ # @param [String] name
1253
+ # The name (project, location, operation id) of the operation to get. Specified
1254
+ # in the format `projects/*/locations/*/operations/*`.
1255
+ # @param [String] operation_id
1256
+ # Required. Deprecated. The server-assigned `name` of the operation. This field
1257
+ # has been deprecated and replaced by the name field.
1258
+ # @param [String] project_id
1259
+ # Required. Deprecated. The Google Developers Console [project ID or project
1260
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1261
+ # deprecated and replaced by the name field.
1262
+ # @param [String] zone
1263
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1264
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
1265
+ # This field has been deprecated and replaced by the name field.
1266
+ # @param [String] fields
1267
+ # Selector specifying which fields to include in a partial response.
1268
+ # @param [String] quota_user
1269
+ # Available to use for quota purposes for server-side applications. Can be any
1270
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1271
+ # @param [Google::Apis::RequestOptions] options
1272
+ # Request-specific options
1273
+ #
1274
+ # @yield [result, err] Result & error if block supplied
1275
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1276
+ # @yieldparam err [StandardError] error object if request failed
1277
+ #
1278
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1279
+ #
1280
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1281
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1282
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1283
+ def get_project_location_operation(name, operation_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
1284
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1285
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1286
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1287
+ command.params['name'] = name unless name.nil?
1288
+ command.query['operationId'] = operation_id unless operation_id.nil?
1289
+ command.query['projectId'] = project_id unless project_id.nil?
1290
+ command.query['zone'] = zone unless zone.nil?
1291
+ command.query['fields'] = fields unless fields.nil?
1292
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1293
+ execute_or_queue_command(command, &block)
1294
+ end
1295
+
1296
+ # Lists all operations in a project in the specified zone or all zones.
1297
+ # @param [String] parent
1298
+ # The parent (project and location) where the operations will be listed.
1299
+ # Specified in the format `projects/*/locations/*`. Location "-" matches all
1300
+ # zones and all regions.
1301
+ # @param [String] project_id
1302
+ # Required. Deprecated. The Google Developers Console [project ID or project
1303
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1304
+ # deprecated and replaced by the parent field.
1305
+ # @param [String] zone
1306
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1307
+ # cloud.google.com/compute/docs/zones#available) to return operations for, or `-`
1308
+ # for all zones. This field has been deprecated and replaced by the parent
1309
+ # field.
1310
+ # @param [String] fields
1311
+ # Selector specifying which fields to include in a partial response.
1312
+ # @param [String] quota_user
1313
+ # Available to use for quota purposes for server-side applications. Can be any
1314
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1315
+ # @param [Google::Apis::RequestOptions] options
1316
+ # Request-specific options
1317
+ #
1318
+ # @yield [result, err] Result & error if block supplied
1319
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListOperationsResponse] parsed result object
1320
+ # @yieldparam err [StandardError] error object if request failed
1321
+ #
1322
+ # @return [Google::Apis::ContainerV1beta1::ListOperationsResponse]
1323
+ #
1324
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1325
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1326
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1327
+ def list_project_location_operations(parent, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
1328
+ command = make_simple_command(:get, 'v1beta1/{+parent}/operations', options)
1329
+ command.response_representation = Google::Apis::ContainerV1beta1::ListOperationsResponse::Representation
1330
+ command.response_class = Google::Apis::ContainerV1beta1::ListOperationsResponse
1331
+ command.params['parent'] = parent unless parent.nil?
1332
+ command.query['projectId'] = project_id unless project_id.nil?
1333
+ command.query['zone'] = zone unless zone.nil?
1334
+ command.query['fields'] = fields unless fields.nil?
1335
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1336
+ execute_or_queue_command(command, &block)
1337
+ end
1338
+
1339
+ # Returns configuration info about the Google Kubernetes Engine service.
1340
+ # @param [String] project_id
1341
+ # Required. Deprecated. The Google Developers Console [project ID or project
1342
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1343
+ # deprecated and replaced by the name field.
1344
+ # @param [String] zone
1345
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1346
+ # cloud.google.com/compute/docs/zones#available) to return operations for. This
1347
+ # field has been deprecated and replaced by the name field.
1348
+ # @param [String] name
1349
+ # The name (project and location) of the server config to get, specified in the
1350
+ # format `projects/*/locations/*`.
1351
+ # @param [String] fields
1352
+ # Selector specifying which fields to include in a partial response.
1353
+ # @param [String] quota_user
1354
+ # Available to use for quota purposes for server-side applications. Can be any
1355
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1356
+ # @param [Google::Apis::RequestOptions] options
1357
+ # Request-specific options
1358
+ #
1359
+ # @yield [result, err] Result & error if block supplied
1360
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ServerConfig] parsed result object
1361
+ # @yieldparam err [StandardError] error object if request failed
1362
+ #
1363
+ # @return [Google::Apis::ContainerV1beta1::ServerConfig]
1364
+ #
1365
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1366
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1367
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1368
+ def get_project_zone_serverconfig(project_id, zone, name: nil, fields: nil, quota_user: nil, options: nil, &block)
1369
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/serverconfig', options)
1370
+ command.response_representation = Google::Apis::ContainerV1beta1::ServerConfig::Representation
1371
+ command.response_class = Google::Apis::ContainerV1beta1::ServerConfig
1372
+ command.params['projectId'] = project_id unless project_id.nil?
1373
+ command.params['zone'] = zone unless zone.nil?
1374
+ command.query['name'] = name unless name.nil?
1375
+ command.query['fields'] = fields unless fields.nil?
1376
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1377
+ execute_or_queue_command(command, &block)
1378
+ end
1379
+
1380
+ # Sets the addons for a specific cluster.
1381
+ # @param [String] project_id
1382
+ # Required. Deprecated. The Google Developers Console [project ID or project
1383
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1384
+ # deprecated and replaced by the name field.
1385
+ # @param [String] zone
1386
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1387
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
1388
+ # This field has been deprecated and replaced by the name field.
1389
+ # @param [String] cluster_id
1390
+ # Required. Deprecated. The name of the cluster to upgrade. This field has been
1391
+ # deprecated and replaced by the name field.
1392
+ # @param [Google::Apis::ContainerV1beta1::SetAddonsConfigRequest] set_addons_config_request_object
1393
+ # @param [String] fields
1394
+ # Selector specifying which fields to include in a partial response.
1395
+ # @param [String] quota_user
1396
+ # Available to use for quota purposes for server-side applications. Can be any
1397
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1398
+ # @param [Google::Apis::RequestOptions] options
1399
+ # Request-specific options
1400
+ #
1401
+ # @yield [result, err] Result & error if block supplied
1402
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1403
+ # @yieldparam err [StandardError] error object if request failed
1404
+ #
1405
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1406
+ #
1407
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1408
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1409
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1410
+ def addons_project_zone_cluster(project_id, zone, cluster_id, set_addons_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1411
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons', options)
1412
+ command.request_representation = Google::Apis::ContainerV1beta1::SetAddonsConfigRequest::Representation
1413
+ command.request_object = set_addons_config_request_object
1414
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1415
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1416
+ command.params['projectId'] = project_id unless project_id.nil?
1417
+ command.params['zone'] = zone unless zone.nil?
1418
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1419
+ command.query['fields'] = fields unless fields.nil?
1420
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1421
+ execute_or_queue_command(command, &block)
1422
+ end
1423
+
1424
+ # Completes master IP rotation.
1425
+ # @param [String] project_id
1426
+ # Required. Deprecated. The Google Developers Console [project ID or project
1427
+ # number](https://developers.google.com/console/help/new/#projectnumber). This
1428
+ # field has been deprecated and replaced by the name field.
1429
+ # @param [String] zone
1430
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1431
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
1432
+ # This field has been deprecated and replaced by the name field.
1433
+ # @param [String] cluster_id
1434
+ # Required. Deprecated. The name of the cluster. This field has been deprecated
1435
+ # and replaced by the name field.
1436
+ # @param [Google::Apis::ContainerV1beta1::CompleteIpRotationRequest] complete_ip_rotation_request_object
1437
+ # @param [String] fields
1438
+ # Selector specifying which fields to include in a partial response.
1439
+ # @param [String] quota_user
1440
+ # Available to use for quota purposes for server-side applications. Can be any
1441
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1442
+ # @param [Google::Apis::RequestOptions] options
1443
+ # Request-specific options
1444
+ #
1445
+ # @yield [result, err] Result & error if block supplied
1446
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1447
+ # @yieldparam err [StandardError] error object if request failed
1448
+ #
1449
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1450
+ #
1451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1454
+ def complete_project_zone_cluster_ip_rotation(project_id, zone, cluster_id, complete_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1455
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation', options)
1456
+ command.request_representation = Google::Apis::ContainerV1beta1::CompleteIpRotationRequest::Representation
1457
+ command.request_object = complete_ip_rotation_request_object
1458
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1459
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1460
+ command.params['projectId'] = project_id unless project_id.nil?
1461
+ command.params['zone'] = zone unless zone.nil?
1462
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1463
+ command.query['fields'] = fields unless fields.nil?
1464
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1465
+ execute_or_queue_command(command, &block)
1466
+ end
1467
+
1468
+ # Creates a cluster, consisting of the specified number and type of Google
1469
+ # Compute Engine instances. By default, the cluster is created in the project's [
1470
+ # default network](https://cloud.google.com/compute/docs/networks-and-firewalls#
1471
+ # networks). One firewall is added for the cluster. After cluster creation, the
1472
+ # Kubelet creates routes for each node to allow the containers on that node to
1473
+ # communicate with all other instances in the cluster. Finally, an entry is
1474
+ # added to the project's global metadata indicating which CIDR range the cluster
1475
+ # is using.
1476
+ # @param [String] project_id
1477
+ # Required. Deprecated. The Google Developers Console [project ID or project
1478
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1479
+ # deprecated and replaced by the parent field.
1480
+ # @param [String] zone
1481
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1482
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
1483
+ # This field has been deprecated and replaced by the parent field.
1484
+ # @param [Google::Apis::ContainerV1beta1::CreateClusterRequest] create_cluster_request_object
1485
+ # @param [String] fields
1486
+ # Selector specifying which fields to include in a partial response.
1487
+ # @param [String] quota_user
1488
+ # Available to use for quota purposes for server-side applications. Can be any
1489
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1490
+ # @param [Google::Apis::RequestOptions] options
1491
+ # Request-specific options
1492
+ #
1493
+ # @yield [result, err] Result & error if block supplied
1494
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1495
+ # @yieldparam err [StandardError] error object if request failed
1496
+ #
1497
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1498
+ #
1499
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1500
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1501
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1502
+ def create_cluster(project_id, zone, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1503
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters', options)
1504
+ command.request_representation = Google::Apis::ContainerV1beta1::CreateClusterRequest::Representation
1505
+ command.request_object = create_cluster_request_object
1506
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1507
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1508
+ command.params['projectId'] = project_id unless project_id.nil?
1509
+ command.params['zone'] = zone unless zone.nil?
1510
+ command.query['fields'] = fields unless fields.nil?
1511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1512
+ execute_or_queue_command(command, &block)
1513
+ end
1514
+
1515
+ # Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
1516
+ # Firewalls and routes that were configured during cluster creation are also
1517
+ # deleted. Other Google Compute Engine resources that might be in use by the
1518
+ # cluster, such as load balancer resources, are not deleted if they weren't
1519
+ # present when the cluster was initially created.
1520
+ # @param [String] project_id
1521
+ # Required. Deprecated. The Google Developers Console [project ID or project
1522
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1523
+ # deprecated and replaced by the name field.
1524
+ # @param [String] zone
1525
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1526
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
1527
+ # This field has been deprecated and replaced by the name field.
1528
+ # @param [String] cluster_id
1529
+ # Required. Deprecated. The name of the cluster to delete. This field has been
1530
+ # deprecated and replaced by the name field.
1531
+ # @param [String] name
1532
+ # The name (project, location, cluster) of the cluster to delete. Specified in
1533
+ # the format `projects/*/locations/*/clusters/*`.
1534
+ # @param [String] fields
1535
+ # Selector specifying which fields to include in a partial response.
1536
+ # @param [String] quota_user
1537
+ # Available to use for quota purposes for server-side applications. Can be any
1538
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1539
+ # @param [Google::Apis::RequestOptions] options
1540
+ # Request-specific options
1541
+ #
1542
+ # @yield [result, err] Result & error if block supplied
1543
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1544
+ # @yieldparam err [StandardError] error object if request failed
1545
+ #
1546
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1547
+ #
1548
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1549
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1550
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1551
+ def delete_zone_cluster(project_id, zone, cluster_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
1552
+ command = make_simple_command(:delete, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
1553
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1554
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1555
+ command.params['projectId'] = project_id unless project_id.nil?
1556
+ command.params['zone'] = zone unless zone.nil?
1557
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1558
+ command.query['name'] = name unless name.nil?
1559
+ command.query['fields'] = fields unless fields.nil?
1560
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1561
+ execute_or_queue_command(command, &block)
1562
+ end
1563
+
1564
+ # Gets the details for a specific cluster.
1565
+ # @param [String] project_id
1566
+ # Required. Deprecated. The Google Developers Console [project ID or project
1567
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1568
+ # deprecated and replaced by the name field.
1569
+ # @param [String] zone
1570
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1571
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
1572
+ # This field has been deprecated and replaced by the name field.
1573
+ # @param [String] cluster_id
1574
+ # Required. Deprecated. The name of the cluster to retrieve. This field has been
1575
+ # deprecated and replaced by the name field.
1576
+ # @param [String] name
1577
+ # The name (project, location, cluster) of the cluster to retrieve. Specified in
1578
+ # the format `projects/*/locations/*/clusters/*`.
1579
+ # @param [String] fields
1580
+ # Selector specifying which fields to include in a partial response.
1581
+ # @param [String] quota_user
1582
+ # Available to use for quota purposes for server-side applications. Can be any
1583
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1584
+ # @param [Google::Apis::RequestOptions] options
1585
+ # Request-specific options
1586
+ #
1587
+ # @yield [result, err] Result & error if block supplied
1588
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Cluster] parsed result object
1589
+ # @yieldparam err [StandardError] error object if request failed
1590
+ #
1591
+ # @return [Google::Apis::ContainerV1beta1::Cluster]
1592
+ #
1593
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1594
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1595
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1596
+ def get_zone_cluster(project_id, zone, cluster_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
1597
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
1598
+ command.response_representation = Google::Apis::ContainerV1beta1::Cluster::Representation
1599
+ command.response_class = Google::Apis::ContainerV1beta1::Cluster
1600
+ command.params['projectId'] = project_id unless project_id.nil?
1601
+ command.params['zone'] = zone unless zone.nil?
1602
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1603
+ command.query['name'] = name unless name.nil?
1604
+ command.query['fields'] = fields unless fields.nil?
1605
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1606
+ execute_or_queue_command(command, &block)
1607
+ end
1608
+
1609
+ # Enables or disables the ABAC authorization mechanism on a cluster.
1610
+ # @param [String] project_id
1611
+ # Required. Deprecated. The Google Developers Console [project ID or project
1612
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1613
+ # deprecated and replaced by the name field.
1614
+ # @param [String] zone
1615
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1616
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
1617
+ # This field has been deprecated and replaced by the name field.
1618
+ # @param [String] cluster_id
1619
+ # Required. Deprecated. The name of the cluster to update. This field has been
1620
+ # deprecated and replaced by the name field.
1621
+ # @param [Google::Apis::ContainerV1beta1::SetLegacyAbacRequest] set_legacy_abac_request_object
1622
+ # @param [String] fields
1623
+ # Selector specifying which fields to include in a partial response.
1624
+ # @param [String] quota_user
1625
+ # Available to use for quota purposes for server-side applications. Can be any
1626
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1627
+ # @param [Google::Apis::RequestOptions] options
1628
+ # Request-specific options
1629
+ #
1630
+ # @yield [result, err] Result & error if block supplied
1631
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1632
+ # @yieldparam err [StandardError] error object if request failed
1633
+ #
1634
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1635
+ #
1636
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1637
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1638
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1639
+ def legacy_project_zone_cluster_abac(project_id, zone, cluster_id, set_legacy_abac_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1640
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac', options)
1641
+ command.request_representation = Google::Apis::ContainerV1beta1::SetLegacyAbacRequest::Representation
1642
+ command.request_object = set_legacy_abac_request_object
1643
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1644
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1645
+ command.params['projectId'] = project_id unless project_id.nil?
1646
+ command.params['zone'] = zone unless zone.nil?
1647
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1648
+ command.query['fields'] = fields unless fields.nil?
1649
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1650
+ execute_or_queue_command(command, &block)
1651
+ end
1652
+
1653
+ # Lists all clusters owned by a project in either the specified zone or all
1654
+ # zones.
1655
+ # @param [String] project_id
1656
+ # Required. Deprecated. The Google Developers Console [project ID or project
1657
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1658
+ # deprecated and replaced by the parent field.
1659
+ # @param [String] zone
1660
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1661
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides,
1662
+ # or "-" for all zones. This field has been deprecated and replaced by the
1663
+ # parent field.
1664
+ # @param [String] parent
1665
+ # The parent (project and location) where the clusters will be listed. Specified
1666
+ # in the format `projects/*/locations/*`. Location "-" matches all zones and all
1667
+ # regions.
1668
+ # @param [String] fields
1669
+ # Selector specifying which fields to include in a partial response.
1670
+ # @param [String] quota_user
1671
+ # Available to use for quota purposes for server-side applications. Can be any
1672
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1673
+ # @param [Google::Apis::RequestOptions] options
1674
+ # Request-specific options
1675
+ #
1676
+ # @yield [result, err] Result & error if block supplied
1677
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListClustersResponse] parsed result object
1678
+ # @yieldparam err [StandardError] error object if request failed
1679
+ #
1680
+ # @return [Google::Apis::ContainerV1beta1::ListClustersResponse]
1681
+ #
1682
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1683
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1684
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1685
+ def list_zone_clusters(project_id, zone, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1686
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/clusters', options)
1687
+ command.response_representation = Google::Apis::ContainerV1beta1::ListClustersResponse::Representation
1688
+ command.response_class = Google::Apis::ContainerV1beta1::ListClustersResponse
1689
+ command.params['projectId'] = project_id unless project_id.nil?
1690
+ command.params['zone'] = zone unless zone.nil?
1691
+ command.query['parent'] = parent unless parent.nil?
1692
+ command.query['fields'] = fields unless fields.nil?
1693
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1694
+ execute_or_queue_command(command, &block)
1695
+ end
1696
+
1697
+ # Sets the locations for a specific cluster. Deprecated. Use [projects.locations.
1698
+ # clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/
1699
+ # rest/v1beta1/projects.locations.clusters/update) instead.
1700
+ # @param [String] project_id
1701
+ # Required. Deprecated. The Google Developers Console [project ID or project
1702
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1703
+ # deprecated and replaced by the name field.
1704
+ # @param [String] zone
1705
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1706
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
1707
+ # This field has been deprecated and replaced by the name field.
1708
+ # @param [String] cluster_id
1709
+ # Required. Deprecated. The name of the cluster to upgrade. This field has been
1710
+ # deprecated and replaced by the name field.
1711
+ # @param [Google::Apis::ContainerV1beta1::SetLocationsRequest] set_locations_request_object
1712
+ # @param [String] fields
1713
+ # Selector specifying which fields to include in a partial response.
1714
+ # @param [String] quota_user
1715
+ # Available to use for quota purposes for server-side applications. Can be any
1716
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1717
+ # @param [Google::Apis::RequestOptions] options
1718
+ # Request-specific options
1719
+ #
1720
+ # @yield [result, err] Result & error if block supplied
1721
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1722
+ # @yieldparam err [StandardError] error object if request failed
1723
+ #
1724
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1725
+ #
1726
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1727
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1728
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1729
+ def locations_project_zone_cluster(project_id, zone, cluster_id, set_locations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1730
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations', options)
1731
+ command.request_representation = Google::Apis::ContainerV1beta1::SetLocationsRequest::Representation
1732
+ command.request_object = set_locations_request_object
1733
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1734
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1735
+ command.params['projectId'] = project_id unless project_id.nil?
1736
+ command.params['zone'] = zone unless zone.nil?
1737
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1738
+ command.query['fields'] = fields unless fields.nil?
1739
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1740
+ execute_or_queue_command(command, &block)
1741
+ end
1742
+
1743
+ # Sets the logging service for a specific cluster.
1744
+ # @param [String] project_id
1745
+ # Required. Deprecated. The Google Developers Console [project ID or project
1746
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1747
+ # deprecated and replaced by the name field.
1748
+ # @param [String] zone
1749
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1750
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
1751
+ # This field has been deprecated and replaced by the name field.
1752
+ # @param [String] cluster_id
1753
+ # Required. Deprecated. The name of the cluster to upgrade. This field has been
1754
+ # deprecated and replaced by the name field.
1755
+ # @param [Google::Apis::ContainerV1beta1::SetLoggingServiceRequest] set_logging_service_request_object
1756
+ # @param [String] fields
1757
+ # Selector specifying which fields to include in a partial response.
1758
+ # @param [String] quota_user
1759
+ # Available to use for quota purposes for server-side applications. Can be any
1760
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1761
+ # @param [Google::Apis::RequestOptions] options
1762
+ # Request-specific options
1763
+ #
1764
+ # @yield [result, err] Result & error if block supplied
1765
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1766
+ # @yieldparam err [StandardError] error object if request failed
1767
+ #
1768
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1769
+ #
1770
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1771
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1772
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1773
+ def logging_project_zone_cluster(project_id, zone, cluster_id, set_logging_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1774
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging', options)
1775
+ command.request_representation = Google::Apis::ContainerV1beta1::SetLoggingServiceRequest::Representation
1776
+ command.request_object = set_logging_service_request_object
1777
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1778
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1779
+ command.params['projectId'] = project_id unless project_id.nil?
1780
+ command.params['zone'] = zone unless zone.nil?
1781
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1782
+ command.query['fields'] = fields unless fields.nil?
1783
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1784
+ execute_or_queue_command(command, &block)
1785
+ end
1786
+
1787
+ # Updates the master for a specific cluster.
1788
+ # @param [String] project_id
1789
+ # Required. Deprecated. The Google Developers Console [project ID or project
1790
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1791
+ # deprecated and replaced by the name field.
1792
+ # @param [String] zone
1793
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1794
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
1795
+ # This field has been deprecated and replaced by the name field.
1796
+ # @param [String] cluster_id
1797
+ # Required. Deprecated. The name of the cluster to upgrade. This field has been
1798
+ # deprecated and replaced by the name field.
1799
+ # @param [Google::Apis::ContainerV1beta1::UpdateMasterRequest] update_master_request_object
1800
+ # @param [String] fields
1801
+ # Selector specifying which fields to include in a partial response.
1802
+ # @param [String] quota_user
1803
+ # Available to use for quota purposes for server-side applications. Can be any
1804
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1805
+ # @param [Google::Apis::RequestOptions] options
1806
+ # Request-specific options
1807
+ #
1808
+ # @yield [result, err] Result & error if block supplied
1809
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1810
+ # @yieldparam err [StandardError] error object if request failed
1811
+ #
1812
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1813
+ #
1814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1817
+ def master_project_zone_cluster(project_id, zone, cluster_id, update_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1818
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master', options)
1819
+ command.request_representation = Google::Apis::ContainerV1beta1::UpdateMasterRequest::Representation
1820
+ command.request_object = update_master_request_object
1821
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1822
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1823
+ command.params['projectId'] = project_id unless project_id.nil?
1824
+ command.params['zone'] = zone unless zone.nil?
1825
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1826
+ command.query['fields'] = fields unless fields.nil?
1827
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1828
+ execute_or_queue_command(command, &block)
1829
+ end
1830
+
1831
+ # Sets the monitoring service for a specific cluster.
1832
+ # @param [String] project_id
1833
+ # Required. Deprecated. The Google Developers Console [project ID or project
1834
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1835
+ # deprecated and replaced by the name field.
1836
+ # @param [String] zone
1837
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1838
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
1839
+ # This field has been deprecated and replaced by the name field.
1840
+ # @param [String] cluster_id
1841
+ # Required. Deprecated. The name of the cluster to upgrade. This field has been
1842
+ # deprecated and replaced by the name field.
1843
+ # @param [Google::Apis::ContainerV1beta1::SetMonitoringServiceRequest] set_monitoring_service_request_object
1844
+ # @param [String] fields
1845
+ # Selector specifying which fields to include in a partial response.
1846
+ # @param [String] quota_user
1847
+ # Available to use for quota purposes for server-side applications. Can be any
1848
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1849
+ # @param [Google::Apis::RequestOptions] options
1850
+ # Request-specific options
1851
+ #
1852
+ # @yield [result, err] Result & error if block supplied
1853
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1854
+ # @yieldparam err [StandardError] error object if request failed
1855
+ #
1856
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1857
+ #
1858
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1859
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1860
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1861
+ def monitoring_project_zone_cluster(project_id, zone, cluster_id, set_monitoring_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1862
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring', options)
1863
+ command.request_representation = Google::Apis::ContainerV1beta1::SetMonitoringServiceRequest::Representation
1864
+ command.request_object = set_monitoring_service_request_object
1865
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1866
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1867
+ command.params['projectId'] = project_id unless project_id.nil?
1868
+ command.params['zone'] = zone unless zone.nil?
1869
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1870
+ command.query['fields'] = fields unless fields.nil?
1871
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1872
+ execute_or_queue_command(command, &block)
1873
+ end
1874
+
1875
+ # Sets labels on a cluster.
1876
+ # @param [String] project_id
1877
+ # Required. Deprecated. The Google Developers Console [project ID or project
1878
+ # number](https://developers.google.com/console/help/new/#projectnumber). This
1879
+ # field has been deprecated and replaced by the name field.
1880
+ # @param [String] zone
1881
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1882
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
1883
+ # This field has been deprecated and replaced by the name field.
1884
+ # @param [String] cluster_id
1885
+ # Required. Deprecated. The name of the cluster. This field has been deprecated
1886
+ # and replaced by the name field.
1887
+ # @param [Google::Apis::ContainerV1beta1::SetLabelsRequest] set_labels_request_object
1888
+ # @param [String] fields
1889
+ # Selector specifying which fields to include in a partial response.
1890
+ # @param [String] quota_user
1891
+ # Available to use for quota purposes for server-side applications. Can be any
1892
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1893
+ # @param [Google::Apis::RequestOptions] options
1894
+ # Request-specific options
1895
+ #
1896
+ # @yield [result, err] Result & error if block supplied
1897
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1898
+ # @yieldparam err [StandardError] error object if request failed
1899
+ #
1900
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1901
+ #
1902
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1903
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1904
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1905
+ def resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1906
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
1907
+ command.request_representation = Google::Apis::ContainerV1beta1::SetLabelsRequest::Representation
1908
+ command.request_object = set_labels_request_object
1909
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1910
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1911
+ command.params['projectId'] = project_id unless project_id.nil?
1912
+ command.params['zone'] = zone unless zone.nil?
1913
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1914
+ command.query['fields'] = fields unless fields.nil?
1915
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1916
+ execute_or_queue_command(command, &block)
1917
+ end
1918
+
1919
+ # Sets the maintenance policy for a cluster.
1920
+ # @param [String] project_id
1921
+ # Required. The Google Developers Console [project ID or project number](https://
1922
+ # support.google.com/cloud/answer/6158840).
1923
+ # @param [String] zone
1924
+ # Required. The name of the Google Compute Engine [zone](https://cloud.google.
1925
+ # com/compute/docs/zones#available) in which the cluster resides.
1926
+ # @param [String] cluster_id
1927
+ # Required. The name of the cluster to update.
1928
+ # @param [Google::Apis::ContainerV1beta1::SetMaintenancePolicyRequest] set_maintenance_policy_request_object
1929
+ # @param [String] fields
1930
+ # Selector specifying which fields to include in a partial response.
1931
+ # @param [String] quota_user
1932
+ # Available to use for quota purposes for server-side applications. Can be any
1933
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1934
+ # @param [Google::Apis::RequestOptions] options
1935
+ # Request-specific options
1936
+ #
1937
+ # @yield [result, err] Result & error if block supplied
1938
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1939
+ # @yieldparam err [StandardError] error object if request failed
1940
+ #
1941
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1942
+ #
1943
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1944
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1945
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1946
+ def set_project_zone_cluster_maintenance_policy(project_id, zone, cluster_id, set_maintenance_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1947
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy', options)
1948
+ command.request_representation = Google::Apis::ContainerV1beta1::SetMaintenancePolicyRequest::Representation
1949
+ command.request_object = set_maintenance_policy_request_object
1950
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1951
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1952
+ command.params['projectId'] = project_id unless project_id.nil?
1953
+ command.params['zone'] = zone unless zone.nil?
1954
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1955
+ command.query['fields'] = fields unless fields.nil?
1956
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1957
+ execute_or_queue_command(command, &block)
1958
+ end
1959
+
1960
+ # Sets master auth materials. Currently supports changing the admin password or
1961
+ # a specific cluster, either via password generation or explicitly setting the
1962
+ # password.
1963
+ # @param [String] project_id
1964
+ # Required. Deprecated. The Google Developers Console [project ID or project
1965
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
1966
+ # deprecated and replaced by the name field.
1967
+ # @param [String] zone
1968
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
1969
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
1970
+ # This field has been deprecated and replaced by the name field.
1971
+ # @param [String] cluster_id
1972
+ # Required. Deprecated. The name of the cluster to upgrade. This field has been
1973
+ # deprecated and replaced by the name field.
1974
+ # @param [Google::Apis::ContainerV1beta1::SetMasterAuthRequest] set_master_auth_request_object
1975
+ # @param [String] fields
1976
+ # Selector specifying which fields to include in a partial response.
1977
+ # @param [String] quota_user
1978
+ # Available to use for quota purposes for server-side applications. Can be any
1979
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1980
+ # @param [Google::Apis::RequestOptions] options
1981
+ # Request-specific options
1982
+ #
1983
+ # @yield [result, err] Result & error if block supplied
1984
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1985
+ # @yieldparam err [StandardError] error object if request failed
1986
+ #
1987
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1988
+ #
1989
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1990
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1991
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1992
+ def set_project_zone_cluster_master_auth(project_id, zone, cluster_id, set_master_auth_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1993
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth', options)
1994
+ command.request_representation = Google::Apis::ContainerV1beta1::SetMasterAuthRequest::Representation
1995
+ command.request_object = set_master_auth_request_object
1996
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1997
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1998
+ command.params['projectId'] = project_id unless project_id.nil?
1999
+ command.params['zone'] = zone unless zone.nil?
2000
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2001
+ command.query['fields'] = fields unless fields.nil?
2002
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2003
+ execute_or_queue_command(command, &block)
2004
+ end
2005
+
2006
+ # Enables or disables Network Policy for a cluster.
2007
+ # @param [String] project_id
2008
+ # Required. Deprecated. The Google Developers Console [project ID or project
2009
+ # number](https://developers.google.com/console/help/new/#projectnumber). This
2010
+ # field has been deprecated and replaced by the name field.
2011
+ # @param [String] zone
2012
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2013
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2014
+ # This field has been deprecated and replaced by the name field.
2015
+ # @param [String] cluster_id
2016
+ # Required. Deprecated. The name of the cluster. This field has been deprecated
2017
+ # and replaced by the name field.
2018
+ # @param [Google::Apis::ContainerV1beta1::SetNetworkPolicyRequest] set_network_policy_request_object
2019
+ # @param [String] fields
2020
+ # Selector specifying which fields to include in a partial response.
2021
+ # @param [String] quota_user
2022
+ # Available to use for quota purposes for server-side applications. Can be any
2023
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2024
+ # @param [Google::Apis::RequestOptions] options
2025
+ # Request-specific options
2026
+ #
2027
+ # @yield [result, err] Result & error if block supplied
2028
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
2029
+ # @yieldparam err [StandardError] error object if request failed
2030
+ #
2031
+ # @return [Google::Apis::ContainerV1beta1::Operation]
2032
+ #
2033
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2034
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2035
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2036
+ def set_project_zone_cluster_network_policy(project_id, zone, cluster_id, set_network_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2037
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy', options)
2038
+ command.request_representation = Google::Apis::ContainerV1beta1::SetNetworkPolicyRequest::Representation
2039
+ command.request_object = set_network_policy_request_object
2040
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
2041
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
2042
+ command.params['projectId'] = project_id unless project_id.nil?
2043
+ command.params['zone'] = zone unless zone.nil?
2044
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2045
+ command.query['fields'] = fields unless fields.nil?
2046
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2047
+ execute_or_queue_command(command, &block)
2048
+ end
2049
+
2050
+ # Starts master IP rotation.
2051
+ # @param [String] project_id
2052
+ # Required. Deprecated. The Google Developers Console [project ID or project
2053
+ # number](https://developers.google.com/console/help/new/#projectnumber). This
2054
+ # field has been deprecated and replaced by the name field.
2055
+ # @param [String] zone
2056
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2057
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2058
+ # This field has been deprecated and replaced by the name field.
2059
+ # @param [String] cluster_id
2060
+ # Required. Deprecated. The name of the cluster. This field has been deprecated
2061
+ # and replaced by the name field.
2062
+ # @param [Google::Apis::ContainerV1beta1::StartIpRotationRequest] start_ip_rotation_request_object
2063
+ # @param [String] fields
2064
+ # Selector specifying which fields to include in a partial response.
2065
+ # @param [String] quota_user
2066
+ # Available to use for quota purposes for server-side applications. Can be any
2067
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2068
+ # @param [Google::Apis::RequestOptions] options
2069
+ # Request-specific options
2070
+ #
2071
+ # @yield [result, err] Result & error if block supplied
2072
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
2073
+ # @yieldparam err [StandardError] error object if request failed
2074
+ #
2075
+ # @return [Google::Apis::ContainerV1beta1::Operation]
2076
+ #
2077
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2078
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2079
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2080
+ def start_project_zone_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2081
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options)
2082
+ command.request_representation = Google::Apis::ContainerV1beta1::StartIpRotationRequest::Representation
2083
+ command.request_object = start_ip_rotation_request_object
2084
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
2085
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
2086
+ command.params['projectId'] = project_id unless project_id.nil?
2087
+ command.params['zone'] = zone unless zone.nil?
2088
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2089
+ command.query['fields'] = fields unless fields.nil?
2090
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2091
+ execute_or_queue_command(command, &block)
2092
+ end
2093
+
2094
+ # Updates the settings for a specific cluster.
2095
+ # @param [String] project_id
2096
+ # Required. Deprecated. The Google Developers Console [project ID or project
2097
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
2098
+ # deprecated and replaced by the name field.
2099
+ # @param [String] zone
2100
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2101
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2102
+ # This field has been deprecated and replaced by the name field.
2103
+ # @param [String] cluster_id
2104
+ # Required. Deprecated. The name of the cluster to upgrade. This field has been
2105
+ # deprecated and replaced by the name field.
2106
+ # @param [Google::Apis::ContainerV1beta1::UpdateClusterRequest] update_cluster_request_object
2107
+ # @param [String] fields
2108
+ # Selector specifying which fields to include in a partial response.
2109
+ # @param [String] quota_user
2110
+ # Available to use for quota purposes for server-side applications. Can be any
2111
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2112
+ # @param [Google::Apis::RequestOptions] options
2113
+ # Request-specific options
2114
+ #
2115
+ # @yield [result, err] Result & error if block supplied
2116
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
2117
+ # @yieldparam err [StandardError] error object if request failed
2118
+ #
2119
+ # @return [Google::Apis::ContainerV1beta1::Operation]
2120
+ #
2121
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2122
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2123
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2124
+ def update_project_zone_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2125
+ command = make_simple_command(:put, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
2126
+ command.request_representation = Google::Apis::ContainerV1beta1::UpdateClusterRequest::Representation
2127
+ command.request_object = update_cluster_request_object
2128
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
2129
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
2130
+ command.params['projectId'] = project_id unless project_id.nil?
2131
+ command.params['zone'] = zone unless zone.nil?
2132
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2133
+ command.query['fields'] = fields unless fields.nil?
2134
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2135
+ execute_or_queue_command(command, &block)
2136
+ end
2137
+
2138
+ # Sets the autoscaling settings of a specific node pool.
2139
+ # @param [String] project_id
2140
+ # Required. Deprecated. The Google Developers Console [project ID or project
2141
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
2142
+ # deprecated and replaced by the name field.
2143
+ # @param [String] zone
2144
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2145
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2146
+ # This field has been deprecated and replaced by the name field.
2147
+ # @param [String] cluster_id
2148
+ # Required. Deprecated. The name of the cluster to upgrade. This field has been
2149
+ # deprecated and replaced by the name field.
2150
+ # @param [String] node_pool_id
2151
+ # Required. Deprecated. The name of the node pool to upgrade. This field has
2152
+ # been deprecated and replaced by the name field.
2153
+ # @param [Google::Apis::ContainerV1beta1::SetNodePoolAutoscalingRequest] set_node_pool_autoscaling_request_object
2154
+ # @param [String] fields
2155
+ # Selector specifying which fields to include in a partial response.
2156
+ # @param [String] quota_user
2157
+ # Available to use for quota purposes for server-side applications. Can be any
2158
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2159
+ # @param [Google::Apis::RequestOptions] options
2160
+ # Request-specific options
2161
+ #
2162
+ # @yield [result, err] Result & error if block supplied
2163
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
2164
+ # @yieldparam err [StandardError] error object if request failed
2165
+ #
2166
+ # @return [Google::Apis::ContainerV1beta1::Operation]
2167
+ #
2168
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2169
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2170
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2171
+ def autoscaling_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, set_node_pool_autoscaling_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2172
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling', options)
2173
+ command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolAutoscalingRequest::Representation
2174
+ command.request_object = set_node_pool_autoscaling_request_object
2175
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
2176
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
2177
+ command.params['projectId'] = project_id unless project_id.nil?
2178
+ command.params['zone'] = zone unless zone.nil?
2179
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2180
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
2181
+ command.query['fields'] = fields unless fields.nil?
2182
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2183
+ execute_or_queue_command(command, &block)
2184
+ end
2185
+
2186
+ # Creates a node pool for a cluster.
2187
+ # @param [String] project_id
2188
+ # Required. Deprecated. The Google Developers Console [project ID or project
2189
+ # number](https://developers.google.com/console/help/new/#projectnumber). This
2190
+ # field has been deprecated and replaced by the parent field.
2191
+ # @param [String] zone
2192
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2193
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2194
+ # This field has been deprecated and replaced by the parent field.
2195
+ # @param [String] cluster_id
2196
+ # Required. Deprecated. The name of the cluster. This field has been deprecated
2197
+ # and replaced by the parent field.
2198
+ # @param [Google::Apis::ContainerV1beta1::CreateNodePoolRequest] create_node_pool_request_object
2199
+ # @param [String] fields
2200
+ # Selector specifying which fields to include in a partial response.
2201
+ # @param [String] quota_user
2202
+ # Available to use for quota purposes for server-side applications. Can be any
2203
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2204
+ # @param [Google::Apis::RequestOptions] options
2205
+ # Request-specific options
2206
+ #
2207
+ # @yield [result, err] Result & error if block supplied
2208
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
2209
+ # @yieldparam err [StandardError] error object if request failed
2210
+ #
2211
+ # @return [Google::Apis::ContainerV1beta1::Operation]
2212
+ #
2213
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2214
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2215
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2216
+ def create_project_zone_cluster_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2217
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
2218
+ command.request_representation = Google::Apis::ContainerV1beta1::CreateNodePoolRequest::Representation
2219
+ command.request_object = create_node_pool_request_object
2220
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
2221
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
2222
+ command.params['projectId'] = project_id unless project_id.nil?
2223
+ command.params['zone'] = zone unless zone.nil?
2224
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2225
+ command.query['fields'] = fields unless fields.nil?
2226
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2227
+ execute_or_queue_command(command, &block)
2228
+ end
2229
+
2230
+ # Deletes a node pool from a cluster.
2231
+ # @param [String] project_id
2232
+ # Required. Deprecated. The Google Developers Console [project ID or project
2233
+ # number](https://developers.google.com/console/help/new/#projectnumber). This
2234
+ # field has been deprecated and replaced by the name field.
2235
+ # @param [String] zone
2236
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2237
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2238
+ # This field has been deprecated and replaced by the name field.
2239
+ # @param [String] cluster_id
2240
+ # Required. Deprecated. The name of the cluster. This field has been deprecated
2241
+ # and replaced by the name field.
2242
+ # @param [String] node_pool_id
2243
+ # Required. Deprecated. The name of the node pool to delete. This field has been
2244
+ # deprecated and replaced by the name field.
2245
+ # @param [String] name
2246
+ # The name (project, location, cluster, node pool id) of the node pool to delete.
2247
+ # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
2248
+ # @param [String] fields
2249
+ # Selector specifying which fields to include in a partial response.
2250
+ # @param [String] quota_user
2251
+ # Available to use for quota purposes for server-side applications. Can be any
2252
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2253
+ # @param [Google::Apis::RequestOptions] options
2254
+ # Request-specific options
2255
+ #
2256
+ # @yield [result, err] Result & error if block supplied
2257
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
2258
+ # @yieldparam err [StandardError] error object if request failed
2259
+ #
2260
+ # @return [Google::Apis::ContainerV1beta1::Operation]
2261
+ #
2262
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2263
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2264
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2265
+ def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
2266
+ command = make_simple_command(:delete, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
2267
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
2268
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
2269
+ command.params['projectId'] = project_id unless project_id.nil?
2270
+ command.params['zone'] = zone unless zone.nil?
2271
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2272
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
2273
+ command.query['name'] = name unless name.nil?
2274
+ command.query['fields'] = fields unless fields.nil?
2275
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2276
+ execute_or_queue_command(command, &block)
2277
+ end
2278
+
2279
+ # Retrieves the requested node pool.
2280
+ # @param [String] project_id
2281
+ # Required. Deprecated. The Google Developers Console [project ID or project
2282
+ # number](https://developers.google.com/console/help/new/#projectnumber). This
2283
+ # field has been deprecated and replaced by the name field.
2284
+ # @param [String] zone
2285
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2286
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2287
+ # This field has been deprecated and replaced by the name field.
2288
+ # @param [String] cluster_id
2289
+ # Required. Deprecated. The name of the cluster. This field has been deprecated
2290
+ # and replaced by the name field.
2291
+ # @param [String] node_pool_id
2292
+ # Required. Deprecated. The name of the node pool. This field has been
2293
+ # deprecated and replaced by the name field.
2294
+ # @param [String] name
2295
+ # The name (project, location, cluster, node pool id) of the node pool to get.
2296
+ # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
2297
+ # @param [String] fields
2298
+ # Selector specifying which fields to include in a partial response.
2299
+ # @param [String] quota_user
2300
+ # Available to use for quota purposes for server-side applications. Can be any
2301
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2302
+ # @param [Google::Apis::RequestOptions] options
2303
+ # Request-specific options
2304
+ #
2305
+ # @yield [result, err] Result & error if block supplied
2306
+ # @yieldparam result [Google::Apis::ContainerV1beta1::NodePool] parsed result object
2307
+ # @yieldparam err [StandardError] error object if request failed
2308
+ #
2309
+ # @return [Google::Apis::ContainerV1beta1::NodePool]
2310
+ #
2311
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2312
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2313
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2314
+ def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
2315
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
2316
+ command.response_representation = Google::Apis::ContainerV1beta1::NodePool::Representation
2317
+ command.response_class = Google::Apis::ContainerV1beta1::NodePool
2318
+ command.params['projectId'] = project_id unless project_id.nil?
2319
+ command.params['zone'] = zone unless zone.nil?
2320
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2321
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
2322
+ command.query['name'] = name unless name.nil?
2323
+ command.query['fields'] = fields unless fields.nil?
2324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2325
+ execute_or_queue_command(command, &block)
2326
+ end
2327
+
2328
+ # Lists the node pools for a cluster.
2329
+ # @param [String] project_id
2330
+ # Required. Deprecated. The Google Developers Console [project ID or project
2331
+ # number](https://developers.google.com/console/help/new/#projectnumber). This
2332
+ # field has been deprecated and replaced by the parent field.
2333
+ # @param [String] zone
2334
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2335
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2336
+ # This field has been deprecated and replaced by the parent field.
2337
+ # @param [String] cluster_id
2338
+ # Required. Deprecated. The name of the cluster. This field has been deprecated
2339
+ # and replaced by the parent field.
2340
+ # @param [String] parent
2341
+ # The parent (project, location, cluster id) where the node pools will be listed.
2342
+ # Specified in the format `projects/*/locations/*/clusters/*`.
2343
+ # @param [String] fields
2344
+ # Selector specifying which fields to include in a partial response.
2345
+ # @param [String] quota_user
2346
+ # Available to use for quota purposes for server-side applications. Can be any
2347
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2348
+ # @param [Google::Apis::RequestOptions] options
2349
+ # Request-specific options
2350
+ #
2351
+ # @yield [result, err] Result & error if block supplied
2352
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListNodePoolsResponse] parsed result object
2353
+ # @yieldparam err [StandardError] error object if request failed
2354
+ #
2355
+ # @return [Google::Apis::ContainerV1beta1::ListNodePoolsResponse]
2356
+ #
2357
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2358
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2359
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2360
+ def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
2361
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
2362
+ command.response_representation = Google::Apis::ContainerV1beta1::ListNodePoolsResponse::Representation
2363
+ command.response_class = Google::Apis::ContainerV1beta1::ListNodePoolsResponse
2364
+ command.params['projectId'] = project_id unless project_id.nil?
2365
+ command.params['zone'] = zone unless zone.nil?
2366
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2367
+ command.query['parent'] = parent unless parent.nil?
2368
+ command.query['fields'] = fields unless fields.nil?
2369
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2370
+ execute_or_queue_command(command, &block)
2371
+ end
2372
+
2373
+ # Rolls back a previously Aborted or Failed NodePool upgrade. This makes no
2374
+ # changes if the last upgrade successfully completed.
2375
+ # @param [String] project_id
2376
+ # Required. Deprecated. The Google Developers Console [project ID or project
2377
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
2378
+ # deprecated and replaced by the name field.
2379
+ # @param [String] zone
2380
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2381
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2382
+ # This field has been deprecated and replaced by the name field.
2383
+ # @param [String] cluster_id
2384
+ # Required. Deprecated. The name of the cluster to rollback. This field has been
2385
+ # deprecated and replaced by the name field.
2386
+ # @param [String] node_pool_id
2387
+ # Required. Deprecated. The name of the node pool to rollback. This field has
2388
+ # been deprecated and replaced by the name field.
2389
+ # @param [Google::Apis::ContainerV1beta1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
2390
+ # @param [String] fields
2391
+ # Selector specifying which fields to include in a partial response.
2392
+ # @param [String] quota_user
2393
+ # Available to use for quota purposes for server-side applications. Can be any
2394
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2395
+ # @param [Google::Apis::RequestOptions] options
2396
+ # Request-specific options
2397
+ #
2398
+ # @yield [result, err] Result & error if block supplied
2399
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
2400
+ # @yieldparam err [StandardError] error object if request failed
2401
+ #
2402
+ # @return [Google::Apis::ContainerV1beta1::Operation]
2403
+ #
2404
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2405
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2406
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2407
+ def rollback_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2408
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
2409
+ command.request_representation = Google::Apis::ContainerV1beta1::RollbackNodePoolUpgradeRequest::Representation
2410
+ command.request_object = rollback_node_pool_upgrade_request_object
2411
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
2412
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
2413
+ command.params['projectId'] = project_id unless project_id.nil?
2414
+ command.params['zone'] = zone unless zone.nil?
2415
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2416
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
2417
+ command.query['fields'] = fields unless fields.nil?
2418
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2419
+ execute_or_queue_command(command, &block)
2420
+ end
2421
+
2422
+ # Sets the NodeManagement options for a node pool.
2423
+ # @param [String] project_id
2424
+ # Required. Deprecated. The Google Developers Console [project ID or project
2425
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
2426
+ # deprecated and replaced by the name field.
2427
+ # @param [String] zone
2428
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2429
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2430
+ # This field has been deprecated and replaced by the name field.
2431
+ # @param [String] cluster_id
2432
+ # Required. Deprecated. The name of the cluster to update. This field has been
2433
+ # deprecated and replaced by the name field.
2434
+ # @param [String] node_pool_id
2435
+ # Required. Deprecated. The name of the node pool to update. This field has been
2436
+ # deprecated and replaced by the name field.
2437
+ # @param [Google::Apis::ContainerV1beta1::SetNodePoolManagementRequest] set_node_pool_management_request_object
2438
+ # @param [String] fields
2439
+ # Selector specifying which fields to include in a partial response.
2440
+ # @param [String] quota_user
2441
+ # Available to use for quota purposes for server-side applications. Can be any
2442
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2443
+ # @param [Google::Apis::RequestOptions] options
2444
+ # Request-specific options
2445
+ #
2446
+ # @yield [result, err] Result & error if block supplied
2447
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
2448
+ # @yieldparam err [StandardError] error object if request failed
2449
+ #
2450
+ # @return [Google::Apis::ContainerV1beta1::Operation]
2451
+ #
2452
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2453
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2454
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2455
+ def set_project_zone_cluster_node_pool_management(project_id, zone, cluster_id, node_pool_id, set_node_pool_management_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2456
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement', options)
2457
+ command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolManagementRequest::Representation
2458
+ command.request_object = set_node_pool_management_request_object
2459
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
2460
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
2461
+ command.params['projectId'] = project_id unless project_id.nil?
2462
+ command.params['zone'] = zone unless zone.nil?
2463
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2464
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
2465
+ command.query['fields'] = fields unless fields.nil?
2466
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2467
+ execute_or_queue_command(command, &block)
2468
+ end
2469
+
2470
+ # SetNodePoolSizeRequest sets the size of a node pool. The new size will be used
2471
+ # for all replicas, including future replicas created by modifying NodePool.
2472
+ # locations.
2473
+ # @param [String] project_id
2474
+ # Required. Deprecated. The Google Developers Console [project ID or project
2475
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
2476
+ # deprecated and replaced by the name field.
2477
+ # @param [String] zone
2478
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2479
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2480
+ # This field has been deprecated and replaced by the name field.
2481
+ # @param [String] cluster_id
2482
+ # Required. Deprecated. The name of the cluster to update. This field has been
2483
+ # deprecated and replaced by the name field.
2484
+ # @param [String] node_pool_id
2485
+ # Required. Deprecated. The name of the node pool to update. This field has been
2486
+ # deprecated and replaced by the name field.
2487
+ # @param [Google::Apis::ContainerV1beta1::SetNodePoolSizeRequest] set_node_pool_size_request_object
2488
+ # @param [String] fields
2489
+ # Selector specifying which fields to include in a partial response.
2490
+ # @param [String] quota_user
2491
+ # Available to use for quota purposes for server-side applications. Can be any
2492
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2493
+ # @param [Google::Apis::RequestOptions] options
2494
+ # Request-specific options
2495
+ #
2496
+ # @yield [result, err] Result & error if block supplied
2497
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
2498
+ # @yieldparam err [StandardError] error object if request failed
2499
+ #
2500
+ # @return [Google::Apis::ContainerV1beta1::Operation]
2501
+ #
2502
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2503
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2504
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2505
+ def set_project_zone_cluster_node_pool_size(project_id, zone, cluster_id, node_pool_id, set_node_pool_size_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2506
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize', options)
2507
+ command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolSizeRequest::Representation
2508
+ command.request_object = set_node_pool_size_request_object
2509
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
2510
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
2511
+ command.params['projectId'] = project_id unless project_id.nil?
2512
+ command.params['zone'] = zone unless zone.nil?
2513
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2514
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
2515
+ command.query['fields'] = fields unless fields.nil?
2516
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2517
+ execute_or_queue_command(command, &block)
2518
+ end
2519
+
2520
+ # Updates the version and/or image type of a specific node pool.
2521
+ # @param [String] project_id
2522
+ # Required. Deprecated. The Google Developers Console [project ID or project
2523
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
2524
+ # deprecated and replaced by the name field.
2525
+ # @param [String] zone
2526
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2527
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2528
+ # This field has been deprecated and replaced by the name field.
2529
+ # @param [String] cluster_id
2530
+ # Required. Deprecated. The name of the cluster to upgrade. This field has been
2531
+ # deprecated and replaced by the name field.
2532
+ # @param [String] node_pool_id
2533
+ # Required. Deprecated. The name of the node pool to upgrade. This field has
2534
+ # been deprecated and replaced by the name field.
2535
+ # @param [Google::Apis::ContainerV1beta1::UpdateNodePoolRequest] update_node_pool_request_object
2536
+ # @param [String] fields
2537
+ # Selector specifying which fields to include in a partial response.
2538
+ # @param [String] quota_user
2539
+ # Available to use for quota purposes for server-side applications. Can be any
2540
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2541
+ # @param [Google::Apis::RequestOptions] options
2542
+ # Request-specific options
2543
+ #
2544
+ # @yield [result, err] Result & error if block supplied
2545
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
2546
+ # @yieldparam err [StandardError] error object if request failed
2547
+ #
2548
+ # @return [Google::Apis::ContainerV1beta1::Operation]
2549
+ #
2550
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2551
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2552
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2553
+ def update_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, update_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2554
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update', options)
2555
+ command.request_representation = Google::Apis::ContainerV1beta1::UpdateNodePoolRequest::Representation
2556
+ command.request_object = update_node_pool_request_object
2557
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
2558
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
2559
+ command.params['projectId'] = project_id unless project_id.nil?
2560
+ command.params['zone'] = zone unless zone.nil?
2561
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2562
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
2563
+ command.query['fields'] = fields unless fields.nil?
2564
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2565
+ execute_or_queue_command(command, &block)
2566
+ end
2567
+
2568
+ # Cancels the specified operation.
2569
+ # @param [String] project_id
2570
+ # Required. Deprecated. The Google Developers Console [project ID or project
2571
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
2572
+ # deprecated and replaced by the name field.
2573
+ # @param [String] zone
2574
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2575
+ # cloud.google.com/compute/docs/zones#available) in which the operation resides.
2576
+ # This field has been deprecated and replaced by the name field.
2577
+ # @param [String] operation_id
2578
+ # Required. Deprecated. The server-assigned `name` of the operation. This field
2579
+ # has been deprecated and replaced by the name field.
2580
+ # @param [Google::Apis::ContainerV1beta1::CancelOperationRequest] cancel_operation_request_object
2581
+ # @param [String] fields
2582
+ # Selector specifying which fields to include in a partial response.
2583
+ # @param [String] quota_user
2584
+ # Available to use for quota purposes for server-side applications. Can be any
2585
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2586
+ # @param [Google::Apis::RequestOptions] options
2587
+ # Request-specific options
2588
+ #
2589
+ # @yield [result, err] Result & error if block supplied
2590
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Empty] parsed result object
2591
+ # @yieldparam err [StandardError] error object if request failed
2592
+ #
2593
+ # @return [Google::Apis::ContainerV1beta1::Empty]
2594
+ #
2595
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2596
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2597
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2598
+ def cancel_project_zone_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2599
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
2600
+ command.request_representation = Google::Apis::ContainerV1beta1::CancelOperationRequest::Representation
2601
+ command.request_object = cancel_operation_request_object
2602
+ command.response_representation = Google::Apis::ContainerV1beta1::Empty::Representation
2603
+ command.response_class = Google::Apis::ContainerV1beta1::Empty
2604
+ command.params['projectId'] = project_id unless project_id.nil?
2605
+ command.params['zone'] = zone unless zone.nil?
2606
+ command.params['operationId'] = operation_id unless operation_id.nil?
2607
+ command.query['fields'] = fields unless fields.nil?
2608
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2609
+ execute_or_queue_command(command, &block)
2610
+ end
2611
+
2612
+ # Gets the specified operation.
2613
+ # @param [String] project_id
2614
+ # Required. Deprecated. The Google Developers Console [project ID or project
2615
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
2616
+ # deprecated and replaced by the name field.
2617
+ # @param [String] zone
2618
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2619
+ # cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2620
+ # This field has been deprecated and replaced by the name field.
2621
+ # @param [String] operation_id
2622
+ # Required. Deprecated. The server-assigned `name` of the operation. This field
2623
+ # has been deprecated and replaced by the name field.
2624
+ # @param [String] name
2625
+ # The name (project, location, operation id) of the operation to get. Specified
2626
+ # in the format `projects/*/locations/*/operations/*`.
2627
+ # @param [String] fields
2628
+ # Selector specifying which fields to include in a partial response.
2629
+ # @param [String] quota_user
2630
+ # Available to use for quota purposes for server-side applications. Can be any
2631
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2632
+ # @param [Google::Apis::RequestOptions] options
2633
+ # Request-specific options
2634
+ #
2635
+ # @yield [result, err] Result & error if block supplied
2636
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
2637
+ # @yieldparam err [StandardError] error object if request failed
2638
+ #
2639
+ # @return [Google::Apis::ContainerV1beta1::Operation]
2640
+ #
2641
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2642
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2643
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2644
+ def get_zone_operation(project_id, zone, operation_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
2645
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
2646
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
2647
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
2648
+ command.params['projectId'] = project_id unless project_id.nil?
2649
+ command.params['zone'] = zone unless zone.nil?
2650
+ command.params['operationId'] = operation_id unless operation_id.nil?
2651
+ command.query['name'] = name unless name.nil?
2652
+ command.query['fields'] = fields unless fields.nil?
2653
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2654
+ execute_or_queue_command(command, &block)
2655
+ end
2656
+
2657
+ # Lists all operations in a project in the specified zone or all zones.
2658
+ # @param [String] project_id
2659
+ # Required. Deprecated. The Google Developers Console [project ID or project
2660
+ # number](https://support.google.com/cloud/answer/6158840). This field has been
2661
+ # deprecated and replaced by the parent field.
2662
+ # @param [String] zone
2663
+ # Required. Deprecated. The name of the Google Compute Engine [zone](https://
2664
+ # cloud.google.com/compute/docs/zones#available) to return operations for, or `-`
2665
+ # for all zones. This field has been deprecated and replaced by the parent
2666
+ # field.
2667
+ # @param [String] parent
2668
+ # The parent (project and location) where the operations will be listed.
2669
+ # Specified in the format `projects/*/locations/*`. Location "-" matches all
2670
+ # zones and all regions.
2671
+ # @param [String] fields
2672
+ # Selector specifying which fields to include in a partial response.
2673
+ # @param [String] quota_user
2674
+ # Available to use for quota purposes for server-side applications. Can be any
2675
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2676
+ # @param [Google::Apis::RequestOptions] options
2677
+ # Request-specific options
2678
+ #
2679
+ # @yield [result, err] Result & error if block supplied
2680
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListOperationsResponse] parsed result object
2681
+ # @yieldparam err [StandardError] error object if request failed
2682
+ #
2683
+ # @return [Google::Apis::ContainerV1beta1::ListOperationsResponse]
2684
+ #
2685
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2686
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2687
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2688
+ def list_zone_operations(project_id, zone, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
2689
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/operations', options)
2690
+ command.response_representation = Google::Apis::ContainerV1beta1::ListOperationsResponse::Representation
2691
+ command.response_class = Google::Apis::ContainerV1beta1::ListOperationsResponse
2692
+ command.params['projectId'] = project_id unless project_id.nil?
2693
+ command.params['zone'] = zone unless zone.nil?
2694
+ command.query['parent'] = parent unless parent.nil?
2695
+ command.query['fields'] = fields unless fields.nil?
2696
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2697
+ execute_or_queue_command(command, &block)
2698
+ end
2699
+
2700
+ protected
2701
+
2702
+ def apply_command_defaults(command)
2703
+ command.query['key'] = key unless key.nil?
2704
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2705
+ end
2706
+ end
2707
+ end
2708
+ end
2709
+ end