google-apis-container_v1 0.1.0

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