google-cloud-container 2.56.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. google/cloud/container/__init__.py +393 -0
  2. google/cloud/container/gapic_version.py +16 -0
  3. google/cloud/container/py.typed +2 -0
  4. google/cloud/container_v1/__init__.py +388 -0
  5. google/cloud/container_v1/gapic_metadata.json +538 -0
  6. google/cloud/container_v1/gapic_version.py +16 -0
  7. google/cloud/container_v1/py.typed +2 -0
  8. google/cloud/container_v1/services/__init__.py +15 -0
  9. google/cloud/container_v1/services/cluster_manager/__init__.py +22 -0
  10. google/cloud/container_v1/services/cluster_manager/async_client.py +4985 -0
  11. google/cloud/container_v1/services/cluster_manager/client.py +5367 -0
  12. google/cloud/container_v1/services/cluster_manager/pagers.py +199 -0
  13. google/cloud/container_v1/services/cluster_manager/transports/__init__.py +36 -0
  14. google/cloud/container_v1/services/cluster_manager/transports/base.py +732 -0
  15. google/cloud/container_v1/services/cluster_manager/transports/grpc.py +1293 -0
  16. google/cloud/container_v1/services/cluster_manager/transports/grpc_asyncio.py +1619 -0
  17. google/cloud/container_v1/services/cluster_manager/transports/rest.py +7531 -0
  18. google/cloud/container_v1/services/cluster_manager/transports/rest_base.py +1796 -0
  19. google/cloud/container_v1/types/__init__.py +380 -0
  20. google/cloud/container_v1/types/cluster_service.py +10647 -0
  21. google/cloud/container_v1beta1/__init__.py +408 -0
  22. google/cloud/container_v1beta1/gapic_metadata.json +373 -0
  23. google/cloud/container_v1beta1/gapic_version.py +16 -0
  24. google/cloud/container_v1beta1/py.typed +2 -0
  25. google/cloud/container_v1beta1/services/__init__.py +15 -0
  26. google/cloud/container_v1beta1/services/cluster_manager/__init__.py +22 -0
  27. google/cloud/container_v1beta1/services/cluster_manager/async_client.py +5127 -0
  28. google/cloud/container_v1beta1/services/cluster_manager/client.py +5458 -0
  29. google/cloud/container_v1beta1/services/cluster_manager/pagers.py +199 -0
  30. google/cloud/container_v1beta1/services/cluster_manager/transports/__init__.py +32 -0
  31. google/cloud/container_v1beta1/services/cluster_manager/transports/base.py +769 -0
  32. google/cloud/container_v1beta1/services/cluster_manager/transports/grpc.py +1322 -0
  33. google/cloud/container_v1beta1/services/cluster_manager/transports/grpc_asyncio.py +1674 -0
  34. google/cloud/container_v1beta1/types/__init__.py +400 -0
  35. google/cloud/container_v1beta1/types/cluster_service.py +11054 -0
  36. google_cloud_container-2.56.1.dist-info/LICENSE +202 -0
  37. google_cloud_container-2.56.1.dist-info/METADATA +228 -0
  38. google_cloud_container-2.56.1.dist-info/RECORD +40 -0
  39. google_cloud_container-2.56.1.dist-info/WHEEL +5 -0
  40. google_cloud_container-2.56.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,732 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2024 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ import abc
17
+ from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
18
+
19
+ import google.api_core
20
+ from google.api_core import exceptions as core_exceptions
21
+ from google.api_core import gapic_v1
22
+ from google.api_core import retry as retries
23
+ import google.auth # type: ignore
24
+ from google.auth import credentials as ga_credentials # type: ignore
25
+ from google.oauth2 import service_account # type: ignore
26
+ from google.protobuf import empty_pb2 # type: ignore
27
+
28
+ from google.cloud.container_v1 import gapic_version as package_version
29
+ from google.cloud.container_v1.types import cluster_service
30
+
31
+ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
32
+ gapic_version=package_version.__version__
33
+ )
34
+
35
+
36
+ class ClusterManagerTransport(abc.ABC):
37
+ """Abstract transport class for ClusterManager."""
38
+
39
+ AUTH_SCOPES = ("https://www.googleapis.com/auth/cloud-platform",)
40
+
41
+ DEFAULT_HOST: str = "container.googleapis.com"
42
+
43
+ def __init__(
44
+ self,
45
+ *,
46
+ host: str = DEFAULT_HOST,
47
+ credentials: Optional[ga_credentials.Credentials] = None,
48
+ credentials_file: Optional[str] = None,
49
+ scopes: Optional[Sequence[str]] = None,
50
+ quota_project_id: Optional[str] = None,
51
+ client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
52
+ always_use_jwt_access: Optional[bool] = False,
53
+ api_audience: Optional[str] = None,
54
+ **kwargs,
55
+ ) -> None:
56
+ """Instantiate the transport.
57
+
58
+ Args:
59
+ host (Optional[str]):
60
+ The hostname to connect to (default: 'container.googleapis.com').
61
+ credentials (Optional[google.auth.credentials.Credentials]): The
62
+ authorization credentials to attach to requests. These
63
+ credentials identify the application to the service; if none
64
+ are specified, the client will attempt to ascertain the
65
+ credentials from the environment.
66
+ credentials_file (Optional[str]): A file with credentials that can
67
+ be loaded with :func:`google.auth.load_credentials_from_file`.
68
+ This argument is mutually exclusive with credentials.
69
+ scopes (Optional[Sequence[str]]): A list of scopes.
70
+ quota_project_id (Optional[str]): An optional project to use for billing
71
+ and quota.
72
+ client_info (google.api_core.gapic_v1.client_info.ClientInfo):
73
+ The client info used to send a user-agent string along with
74
+ API requests. If ``None``, then default info will be used.
75
+ Generally, you only need to set this if you're developing
76
+ your own client library.
77
+ always_use_jwt_access (Optional[bool]): Whether self signed JWT should
78
+ be used for service account credentials.
79
+ """
80
+
81
+ scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
82
+
83
+ # Save the scopes.
84
+ self._scopes = scopes
85
+ if not hasattr(self, "_ignore_credentials"):
86
+ self._ignore_credentials: bool = False
87
+
88
+ # If no credentials are provided, then determine the appropriate
89
+ # defaults.
90
+ if credentials and credentials_file:
91
+ raise core_exceptions.DuplicateCredentialArgs(
92
+ "'credentials_file' and 'credentials' are mutually exclusive"
93
+ )
94
+
95
+ if credentials_file is not None:
96
+ credentials, _ = google.auth.load_credentials_from_file(
97
+ credentials_file, **scopes_kwargs, quota_project_id=quota_project_id
98
+ )
99
+ elif credentials is None and not self._ignore_credentials:
100
+ credentials, _ = google.auth.default(
101
+ **scopes_kwargs, quota_project_id=quota_project_id
102
+ )
103
+ # Don't apply audience if the credentials file passed from user.
104
+ if hasattr(credentials, "with_gdch_audience"):
105
+ credentials = credentials.with_gdch_audience(
106
+ api_audience if api_audience else host
107
+ )
108
+
109
+ # If the credentials are service account credentials, then always try to use self signed JWT.
110
+ if (
111
+ always_use_jwt_access
112
+ and isinstance(credentials, service_account.Credentials)
113
+ and hasattr(service_account.Credentials, "with_always_use_jwt_access")
114
+ ):
115
+ credentials = credentials.with_always_use_jwt_access(True)
116
+
117
+ # Save the credentials.
118
+ self._credentials = credentials
119
+
120
+ # Save the hostname. Default to port 443 (HTTPS) if none is specified.
121
+ if ":" not in host:
122
+ host += ":443"
123
+ self._host = host
124
+
125
+ @property
126
+ def host(self):
127
+ return self._host
128
+
129
+ def _prep_wrapped_messages(self, client_info):
130
+ # Precompute the wrapped methods.
131
+ self._wrapped_methods = {
132
+ self.list_clusters: gapic_v1.method.wrap_method(
133
+ self.list_clusters,
134
+ default_retry=retries.Retry(
135
+ initial=0.1,
136
+ maximum=60.0,
137
+ multiplier=1.3,
138
+ predicate=retries.if_exception_type(
139
+ core_exceptions.DeadlineExceeded,
140
+ core_exceptions.ServiceUnavailable,
141
+ ),
142
+ deadline=20.0,
143
+ ),
144
+ default_timeout=20.0,
145
+ client_info=client_info,
146
+ ),
147
+ self.get_cluster: gapic_v1.method.wrap_method(
148
+ self.get_cluster,
149
+ default_retry=retries.Retry(
150
+ initial=0.1,
151
+ maximum=60.0,
152
+ multiplier=1.3,
153
+ predicate=retries.if_exception_type(
154
+ core_exceptions.DeadlineExceeded,
155
+ core_exceptions.ServiceUnavailable,
156
+ ),
157
+ deadline=20.0,
158
+ ),
159
+ default_timeout=20.0,
160
+ client_info=client_info,
161
+ ),
162
+ self.create_cluster: gapic_v1.method.wrap_method(
163
+ self.create_cluster,
164
+ default_timeout=45.0,
165
+ client_info=client_info,
166
+ ),
167
+ self.update_cluster: gapic_v1.method.wrap_method(
168
+ self.update_cluster,
169
+ default_timeout=45.0,
170
+ client_info=client_info,
171
+ ),
172
+ self.update_node_pool: gapic_v1.method.wrap_method(
173
+ self.update_node_pool,
174
+ default_timeout=45.0,
175
+ client_info=client_info,
176
+ ),
177
+ self.set_node_pool_autoscaling: gapic_v1.method.wrap_method(
178
+ self.set_node_pool_autoscaling,
179
+ default_timeout=45.0,
180
+ client_info=client_info,
181
+ ),
182
+ self.set_logging_service: gapic_v1.method.wrap_method(
183
+ self.set_logging_service,
184
+ default_timeout=45.0,
185
+ client_info=client_info,
186
+ ),
187
+ self.set_monitoring_service: gapic_v1.method.wrap_method(
188
+ self.set_monitoring_service,
189
+ default_timeout=45.0,
190
+ client_info=client_info,
191
+ ),
192
+ self.set_addons_config: gapic_v1.method.wrap_method(
193
+ self.set_addons_config,
194
+ default_timeout=45.0,
195
+ client_info=client_info,
196
+ ),
197
+ self.set_locations: gapic_v1.method.wrap_method(
198
+ self.set_locations,
199
+ default_timeout=45.0,
200
+ client_info=client_info,
201
+ ),
202
+ self.update_master: gapic_v1.method.wrap_method(
203
+ self.update_master,
204
+ default_timeout=45.0,
205
+ client_info=client_info,
206
+ ),
207
+ self.set_master_auth: gapic_v1.method.wrap_method(
208
+ self.set_master_auth,
209
+ default_timeout=45.0,
210
+ client_info=client_info,
211
+ ),
212
+ self.delete_cluster: gapic_v1.method.wrap_method(
213
+ self.delete_cluster,
214
+ default_retry=retries.Retry(
215
+ initial=0.1,
216
+ maximum=60.0,
217
+ multiplier=1.3,
218
+ predicate=retries.if_exception_type(
219
+ core_exceptions.DeadlineExceeded,
220
+ core_exceptions.ServiceUnavailable,
221
+ ),
222
+ deadline=20.0,
223
+ ),
224
+ default_timeout=20.0,
225
+ client_info=client_info,
226
+ ),
227
+ self.list_operations: gapic_v1.method.wrap_method(
228
+ self.list_operations,
229
+ default_retry=retries.Retry(
230
+ initial=0.1,
231
+ maximum=60.0,
232
+ multiplier=1.3,
233
+ predicate=retries.if_exception_type(
234
+ core_exceptions.DeadlineExceeded,
235
+ core_exceptions.ServiceUnavailable,
236
+ ),
237
+ deadline=20.0,
238
+ ),
239
+ default_timeout=20.0,
240
+ client_info=client_info,
241
+ ),
242
+ self.get_operation: gapic_v1.method.wrap_method(
243
+ self.get_operation,
244
+ default_retry=retries.Retry(
245
+ initial=0.1,
246
+ maximum=60.0,
247
+ multiplier=1.3,
248
+ predicate=retries.if_exception_type(
249
+ core_exceptions.DeadlineExceeded,
250
+ core_exceptions.ServiceUnavailable,
251
+ ),
252
+ deadline=20.0,
253
+ ),
254
+ default_timeout=20.0,
255
+ client_info=client_info,
256
+ ),
257
+ self.cancel_operation: gapic_v1.method.wrap_method(
258
+ self.cancel_operation,
259
+ default_timeout=45.0,
260
+ client_info=client_info,
261
+ ),
262
+ self.get_server_config: gapic_v1.method.wrap_method(
263
+ self.get_server_config,
264
+ default_retry=retries.Retry(
265
+ initial=0.1,
266
+ maximum=60.0,
267
+ multiplier=1.3,
268
+ predicate=retries.if_exception_type(
269
+ core_exceptions.DeadlineExceeded,
270
+ core_exceptions.ServiceUnavailable,
271
+ ),
272
+ deadline=20.0,
273
+ ),
274
+ default_timeout=20.0,
275
+ client_info=client_info,
276
+ ),
277
+ self.get_json_web_keys: gapic_v1.method.wrap_method(
278
+ self.get_json_web_keys,
279
+ default_timeout=None,
280
+ client_info=client_info,
281
+ ),
282
+ self.list_node_pools: gapic_v1.method.wrap_method(
283
+ self.list_node_pools,
284
+ default_retry=retries.Retry(
285
+ initial=0.1,
286
+ maximum=60.0,
287
+ multiplier=1.3,
288
+ predicate=retries.if_exception_type(
289
+ core_exceptions.DeadlineExceeded,
290
+ core_exceptions.ServiceUnavailable,
291
+ ),
292
+ deadline=20.0,
293
+ ),
294
+ default_timeout=20.0,
295
+ client_info=client_info,
296
+ ),
297
+ self.get_node_pool: gapic_v1.method.wrap_method(
298
+ self.get_node_pool,
299
+ default_retry=retries.Retry(
300
+ initial=0.1,
301
+ maximum=60.0,
302
+ multiplier=1.3,
303
+ predicate=retries.if_exception_type(
304
+ core_exceptions.DeadlineExceeded,
305
+ core_exceptions.ServiceUnavailable,
306
+ ),
307
+ deadline=20.0,
308
+ ),
309
+ default_timeout=20.0,
310
+ client_info=client_info,
311
+ ),
312
+ self.create_node_pool: gapic_v1.method.wrap_method(
313
+ self.create_node_pool,
314
+ default_timeout=45.0,
315
+ client_info=client_info,
316
+ ),
317
+ self.delete_node_pool: gapic_v1.method.wrap_method(
318
+ self.delete_node_pool,
319
+ default_retry=retries.Retry(
320
+ initial=0.1,
321
+ maximum=60.0,
322
+ multiplier=1.3,
323
+ predicate=retries.if_exception_type(
324
+ core_exceptions.DeadlineExceeded,
325
+ core_exceptions.ServiceUnavailable,
326
+ ),
327
+ deadline=20.0,
328
+ ),
329
+ default_timeout=20.0,
330
+ client_info=client_info,
331
+ ),
332
+ self.complete_node_pool_upgrade: gapic_v1.method.wrap_method(
333
+ self.complete_node_pool_upgrade,
334
+ default_timeout=None,
335
+ client_info=client_info,
336
+ ),
337
+ self.rollback_node_pool_upgrade: gapic_v1.method.wrap_method(
338
+ self.rollback_node_pool_upgrade,
339
+ default_timeout=45.0,
340
+ client_info=client_info,
341
+ ),
342
+ self.set_node_pool_management: gapic_v1.method.wrap_method(
343
+ self.set_node_pool_management,
344
+ default_timeout=45.0,
345
+ client_info=client_info,
346
+ ),
347
+ self.set_labels: gapic_v1.method.wrap_method(
348
+ self.set_labels,
349
+ default_timeout=45.0,
350
+ client_info=client_info,
351
+ ),
352
+ self.set_legacy_abac: gapic_v1.method.wrap_method(
353
+ self.set_legacy_abac,
354
+ default_timeout=45.0,
355
+ client_info=client_info,
356
+ ),
357
+ self.start_ip_rotation: gapic_v1.method.wrap_method(
358
+ self.start_ip_rotation,
359
+ default_timeout=45.0,
360
+ client_info=client_info,
361
+ ),
362
+ self.complete_ip_rotation: gapic_v1.method.wrap_method(
363
+ self.complete_ip_rotation,
364
+ default_timeout=45.0,
365
+ client_info=client_info,
366
+ ),
367
+ self.set_node_pool_size: gapic_v1.method.wrap_method(
368
+ self.set_node_pool_size,
369
+ default_timeout=45.0,
370
+ client_info=client_info,
371
+ ),
372
+ self.set_network_policy: gapic_v1.method.wrap_method(
373
+ self.set_network_policy,
374
+ default_timeout=45.0,
375
+ client_info=client_info,
376
+ ),
377
+ self.set_maintenance_policy: gapic_v1.method.wrap_method(
378
+ self.set_maintenance_policy,
379
+ default_timeout=45.0,
380
+ client_info=client_info,
381
+ ),
382
+ self.list_usable_subnetworks: gapic_v1.method.wrap_method(
383
+ self.list_usable_subnetworks,
384
+ default_timeout=None,
385
+ client_info=client_info,
386
+ ),
387
+ self.check_autopilot_compatibility: gapic_v1.method.wrap_method(
388
+ self.check_autopilot_compatibility,
389
+ default_timeout=None,
390
+ client_info=client_info,
391
+ ),
392
+ }
393
+
394
+ def close(self):
395
+ """Closes resources associated with the transport.
396
+
397
+ .. warning::
398
+ Only call this method if the transport is NOT shared
399
+ with other clients - this may cause errors in other clients!
400
+ """
401
+ raise NotImplementedError()
402
+
403
+ @property
404
+ def list_clusters(
405
+ self,
406
+ ) -> Callable[
407
+ [cluster_service.ListClustersRequest],
408
+ Union[
409
+ cluster_service.ListClustersResponse,
410
+ Awaitable[cluster_service.ListClustersResponse],
411
+ ],
412
+ ]:
413
+ raise NotImplementedError()
414
+
415
+ @property
416
+ def get_cluster(
417
+ self,
418
+ ) -> Callable[
419
+ [cluster_service.GetClusterRequest],
420
+ Union[cluster_service.Cluster, Awaitable[cluster_service.Cluster]],
421
+ ]:
422
+ raise NotImplementedError()
423
+
424
+ @property
425
+ def create_cluster(
426
+ self,
427
+ ) -> Callable[
428
+ [cluster_service.CreateClusterRequest],
429
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
430
+ ]:
431
+ raise NotImplementedError()
432
+
433
+ @property
434
+ def update_cluster(
435
+ self,
436
+ ) -> Callable[
437
+ [cluster_service.UpdateClusterRequest],
438
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
439
+ ]:
440
+ raise NotImplementedError()
441
+
442
+ @property
443
+ def update_node_pool(
444
+ self,
445
+ ) -> Callable[
446
+ [cluster_service.UpdateNodePoolRequest],
447
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
448
+ ]:
449
+ raise NotImplementedError()
450
+
451
+ @property
452
+ def set_node_pool_autoscaling(
453
+ self,
454
+ ) -> Callable[
455
+ [cluster_service.SetNodePoolAutoscalingRequest],
456
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
457
+ ]:
458
+ raise NotImplementedError()
459
+
460
+ @property
461
+ def set_logging_service(
462
+ self,
463
+ ) -> Callable[
464
+ [cluster_service.SetLoggingServiceRequest],
465
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
466
+ ]:
467
+ raise NotImplementedError()
468
+
469
+ @property
470
+ def set_monitoring_service(
471
+ self,
472
+ ) -> Callable[
473
+ [cluster_service.SetMonitoringServiceRequest],
474
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
475
+ ]:
476
+ raise NotImplementedError()
477
+
478
+ @property
479
+ def set_addons_config(
480
+ self,
481
+ ) -> Callable[
482
+ [cluster_service.SetAddonsConfigRequest],
483
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
484
+ ]:
485
+ raise NotImplementedError()
486
+
487
+ @property
488
+ def set_locations(
489
+ self,
490
+ ) -> Callable[
491
+ [cluster_service.SetLocationsRequest],
492
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
493
+ ]:
494
+ raise NotImplementedError()
495
+
496
+ @property
497
+ def update_master(
498
+ self,
499
+ ) -> Callable[
500
+ [cluster_service.UpdateMasterRequest],
501
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
502
+ ]:
503
+ raise NotImplementedError()
504
+
505
+ @property
506
+ def set_master_auth(
507
+ self,
508
+ ) -> Callable[
509
+ [cluster_service.SetMasterAuthRequest],
510
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
511
+ ]:
512
+ raise NotImplementedError()
513
+
514
+ @property
515
+ def delete_cluster(
516
+ self,
517
+ ) -> Callable[
518
+ [cluster_service.DeleteClusterRequest],
519
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
520
+ ]:
521
+ raise NotImplementedError()
522
+
523
+ @property
524
+ def list_operations(
525
+ self,
526
+ ) -> Callable[
527
+ [cluster_service.ListOperationsRequest],
528
+ Union[
529
+ cluster_service.ListOperationsResponse,
530
+ Awaitable[cluster_service.ListOperationsResponse],
531
+ ],
532
+ ]:
533
+ raise NotImplementedError()
534
+
535
+ @property
536
+ def get_operation(
537
+ self,
538
+ ) -> Callable[
539
+ [cluster_service.GetOperationRequest],
540
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
541
+ ]:
542
+ raise NotImplementedError()
543
+
544
+ @property
545
+ def cancel_operation(
546
+ self,
547
+ ) -> Callable[
548
+ [cluster_service.CancelOperationRequest],
549
+ Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
550
+ ]:
551
+ raise NotImplementedError()
552
+
553
+ @property
554
+ def get_server_config(
555
+ self,
556
+ ) -> Callable[
557
+ [cluster_service.GetServerConfigRequest],
558
+ Union[cluster_service.ServerConfig, Awaitable[cluster_service.ServerConfig]],
559
+ ]:
560
+ raise NotImplementedError()
561
+
562
+ @property
563
+ def get_json_web_keys(
564
+ self,
565
+ ) -> Callable[
566
+ [cluster_service.GetJSONWebKeysRequest],
567
+ Union[
568
+ cluster_service.GetJSONWebKeysResponse,
569
+ Awaitable[cluster_service.GetJSONWebKeysResponse],
570
+ ],
571
+ ]:
572
+ raise NotImplementedError()
573
+
574
+ @property
575
+ def list_node_pools(
576
+ self,
577
+ ) -> Callable[
578
+ [cluster_service.ListNodePoolsRequest],
579
+ Union[
580
+ cluster_service.ListNodePoolsResponse,
581
+ Awaitable[cluster_service.ListNodePoolsResponse],
582
+ ],
583
+ ]:
584
+ raise NotImplementedError()
585
+
586
+ @property
587
+ def get_node_pool(
588
+ self,
589
+ ) -> Callable[
590
+ [cluster_service.GetNodePoolRequest],
591
+ Union[cluster_service.NodePool, Awaitable[cluster_service.NodePool]],
592
+ ]:
593
+ raise NotImplementedError()
594
+
595
+ @property
596
+ def create_node_pool(
597
+ self,
598
+ ) -> Callable[
599
+ [cluster_service.CreateNodePoolRequest],
600
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
601
+ ]:
602
+ raise NotImplementedError()
603
+
604
+ @property
605
+ def delete_node_pool(
606
+ self,
607
+ ) -> Callable[
608
+ [cluster_service.DeleteNodePoolRequest],
609
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
610
+ ]:
611
+ raise NotImplementedError()
612
+
613
+ @property
614
+ def complete_node_pool_upgrade(
615
+ self,
616
+ ) -> Callable[
617
+ [cluster_service.CompleteNodePoolUpgradeRequest],
618
+ Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
619
+ ]:
620
+ raise NotImplementedError()
621
+
622
+ @property
623
+ def rollback_node_pool_upgrade(
624
+ self,
625
+ ) -> Callable[
626
+ [cluster_service.RollbackNodePoolUpgradeRequest],
627
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
628
+ ]:
629
+ raise NotImplementedError()
630
+
631
+ @property
632
+ def set_node_pool_management(
633
+ self,
634
+ ) -> Callable[
635
+ [cluster_service.SetNodePoolManagementRequest],
636
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
637
+ ]:
638
+ raise NotImplementedError()
639
+
640
+ @property
641
+ def set_labels(
642
+ self,
643
+ ) -> Callable[
644
+ [cluster_service.SetLabelsRequest],
645
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
646
+ ]:
647
+ raise NotImplementedError()
648
+
649
+ @property
650
+ def set_legacy_abac(
651
+ self,
652
+ ) -> Callable[
653
+ [cluster_service.SetLegacyAbacRequest],
654
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
655
+ ]:
656
+ raise NotImplementedError()
657
+
658
+ @property
659
+ def start_ip_rotation(
660
+ self,
661
+ ) -> Callable[
662
+ [cluster_service.StartIPRotationRequest],
663
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
664
+ ]:
665
+ raise NotImplementedError()
666
+
667
+ @property
668
+ def complete_ip_rotation(
669
+ self,
670
+ ) -> Callable[
671
+ [cluster_service.CompleteIPRotationRequest],
672
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
673
+ ]:
674
+ raise NotImplementedError()
675
+
676
+ @property
677
+ def set_node_pool_size(
678
+ self,
679
+ ) -> Callable[
680
+ [cluster_service.SetNodePoolSizeRequest],
681
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
682
+ ]:
683
+ raise NotImplementedError()
684
+
685
+ @property
686
+ def set_network_policy(
687
+ self,
688
+ ) -> Callable[
689
+ [cluster_service.SetNetworkPolicyRequest],
690
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
691
+ ]:
692
+ raise NotImplementedError()
693
+
694
+ @property
695
+ def set_maintenance_policy(
696
+ self,
697
+ ) -> Callable[
698
+ [cluster_service.SetMaintenancePolicyRequest],
699
+ Union[cluster_service.Operation, Awaitable[cluster_service.Operation]],
700
+ ]:
701
+ raise NotImplementedError()
702
+
703
+ @property
704
+ def list_usable_subnetworks(
705
+ self,
706
+ ) -> Callable[
707
+ [cluster_service.ListUsableSubnetworksRequest],
708
+ Union[
709
+ cluster_service.ListUsableSubnetworksResponse,
710
+ Awaitable[cluster_service.ListUsableSubnetworksResponse],
711
+ ],
712
+ ]:
713
+ raise NotImplementedError()
714
+
715
+ @property
716
+ def check_autopilot_compatibility(
717
+ self,
718
+ ) -> Callable[
719
+ [cluster_service.CheckAutopilotCompatibilityRequest],
720
+ Union[
721
+ cluster_service.CheckAutopilotCompatibilityResponse,
722
+ Awaitable[cluster_service.CheckAutopilotCompatibilityResponse],
723
+ ],
724
+ ]:
725
+ raise NotImplementedError()
726
+
727
+ @property
728
+ def kind(self) -> str:
729
+ raise NotImplementedError()
730
+
731
+
732
+ __all__ = ("ClusterManagerTransport",)