google-cloud-container 2.46.0__tar.gz → 2.47.0__tar.gz

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 (55) hide show
  1. {google-cloud-container-2.46.0/google_cloud_container.egg-info → google-cloud-container-2.47.0}/PKG-INFO +1 -1
  2. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container/__init__.py +2 -0
  3. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container/gapic_version.py +1 -1
  4. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1/__init__.py +2 -0
  5. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1/gapic_metadata.json +175 -0
  6. {google-cloud-container-2.46.0/google/cloud/container_v1beta1 → google-cloud-container-2.47.0/google/cloud/container_v1}/gapic_version.py +1 -1
  7. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1/services/cluster_manager/async_client.py +13 -1
  8. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1/services/cluster_manager/client.py +15 -1
  9. {google-cloud-container-2.46.0/google/cloud/container_v1beta1 → google-cloud-container-2.47.0/google/cloud/container_v1}/services/cluster_manager/transports/__init__.py +4 -0
  10. google-cloud-container-2.47.0/google/cloud/container_v1/services/cluster_manager/transports/rest.py +4698 -0
  11. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1/types/__init__.py +2 -0
  12. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1/types/cluster_service.py +266 -0
  13. {google-cloud-container-2.46.0/google/cloud/container_v1 → google-cloud-container-2.47.0/google/cloud/container_v1beta1}/gapic_version.py +1 -1
  14. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0/google_cloud_container.egg-info}/PKG-INFO +1 -1
  15. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google_cloud_container.egg-info/SOURCES.txt +1 -0
  16. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/tests/unit/gapic/container_v1/test_cluster_manager.py +9532 -124
  17. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/tests/unit/gapic/container_v1beta1/test_cluster_manager.py +3 -3
  18. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/LICENSE +0 -0
  19. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/MANIFEST.in +0 -0
  20. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/README.rst +0 -0
  21. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container/py.typed +0 -0
  22. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1/py.typed +0 -0
  23. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1/services/__init__.py +0 -0
  24. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1/services/cluster_manager/__init__.py +0 -0
  25. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1/services/cluster_manager/pagers.py +0 -0
  26. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1/services/cluster_manager/transports/base.py +0 -0
  27. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1/services/cluster_manager/transports/grpc.py +0 -0
  28. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1/services/cluster_manager/transports/grpc_asyncio.py +0 -0
  29. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1beta1/__init__.py +0 -0
  30. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1beta1/gapic_metadata.json +0 -0
  31. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1beta1/py.typed +0 -0
  32. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1beta1/services/__init__.py +0 -0
  33. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1beta1/services/cluster_manager/__init__.py +0 -0
  34. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1beta1/services/cluster_manager/async_client.py +0 -0
  35. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1beta1/services/cluster_manager/client.py +0 -0
  36. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1beta1/services/cluster_manager/pagers.py +0 -0
  37. {google-cloud-container-2.46.0/google/cloud/container_v1 → google-cloud-container-2.47.0/google/cloud/container_v1beta1}/services/cluster_manager/transports/__init__.py +0 -0
  38. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/base.py +0 -0
  39. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/grpc.py +0 -0
  40. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/grpc_asyncio.py +0 -0
  41. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1beta1/types/__init__.py +0 -0
  42. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google/cloud/container_v1beta1/types/cluster_service.py +0 -0
  43. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google_cloud_container.egg-info/dependency_links.txt +0 -0
  44. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google_cloud_container.egg-info/not-zip-safe +0 -0
  45. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google_cloud_container.egg-info/requires.txt +0 -0
  46. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/google_cloud_container.egg-info/top_level.txt +0 -0
  47. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/setup.cfg +0 -0
  48. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/setup.py +0 -0
  49. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/tests/__init__.py +0 -0
  50. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/tests/system/__init__.py +0 -0
  51. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/tests/system/smoke_test.py +0 -0
  52. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/tests/unit/__init__.py +0 -0
  53. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/tests/unit/gapic/__init__.py +0 -0
  54. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/tests/unit/gapic/container_v1/__init__.py +0 -0
  55. {google-cloud-container-2.46.0 → google-cloud-container-2.47.0}/tests/unit/gapic/container_v1beta1/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-cloud-container
3
- Version: 2.46.0
3
+ Version: 2.47.0
4
4
  Summary: Google Cloud Container API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-container
6
6
  Author: Google LLC
@@ -52,6 +52,7 @@ from google.cloud.container_v1.types.cluster_service import (
52
52
  CompleteNodePoolUpgradeRequest,
53
53
  ConfidentialNodes,
54
54
  ConfigConnectorConfig,
55
+ ContainerdConfig,
55
56
  CostManagementConfig,
56
57
  CreateClusterRequest,
57
58
  CreateNodePoolRequest,
@@ -225,6 +226,7 @@ __all__ = (
225
226
  "CompleteNodePoolUpgradeRequest",
226
227
  "ConfidentialNodes",
227
228
  "ConfigConnectorConfig",
229
+ "ContainerdConfig",
228
230
  "CostManagementConfig",
229
231
  "CreateClusterRequest",
230
232
  "CreateNodePoolRequest",
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "2.46.0" # {x-release-please-version}
16
+ __version__ = "2.47.0" # {x-release-please-version}
@@ -47,6 +47,7 @@ from .types.cluster_service import (
47
47
  CompleteNodePoolUpgradeRequest,
48
48
  ConfidentialNodes,
49
49
  ConfigConnectorConfig,
50
+ ContainerdConfig,
50
51
  CostManagementConfig,
51
52
  CreateClusterRequest,
52
53
  CreateNodePoolRequest,
@@ -220,6 +221,7 @@ __all__ = (
220
221
  "CompleteNodePoolUpgradeRequest",
221
222
  "ConfidentialNodes",
222
223
  "ConfigConnectorConfig",
224
+ "ContainerdConfig",
223
225
  "CostManagementConfig",
224
226
  "CreateClusterRequest",
225
227
  "CreateNodePoolRequest",
@@ -356,6 +356,181 @@
356
356
  ]
357
357
  }
358
358
  }
359
+ },
360
+ "rest": {
361
+ "libraryClient": "ClusterManagerClient",
362
+ "rpcs": {
363
+ "CancelOperation": {
364
+ "methods": [
365
+ "cancel_operation"
366
+ ]
367
+ },
368
+ "CheckAutopilotCompatibility": {
369
+ "methods": [
370
+ "check_autopilot_compatibility"
371
+ ]
372
+ },
373
+ "CompleteIPRotation": {
374
+ "methods": [
375
+ "complete_ip_rotation"
376
+ ]
377
+ },
378
+ "CompleteNodePoolUpgrade": {
379
+ "methods": [
380
+ "complete_node_pool_upgrade"
381
+ ]
382
+ },
383
+ "CreateCluster": {
384
+ "methods": [
385
+ "create_cluster"
386
+ ]
387
+ },
388
+ "CreateNodePool": {
389
+ "methods": [
390
+ "create_node_pool"
391
+ ]
392
+ },
393
+ "DeleteCluster": {
394
+ "methods": [
395
+ "delete_cluster"
396
+ ]
397
+ },
398
+ "DeleteNodePool": {
399
+ "methods": [
400
+ "delete_node_pool"
401
+ ]
402
+ },
403
+ "GetCluster": {
404
+ "methods": [
405
+ "get_cluster"
406
+ ]
407
+ },
408
+ "GetJSONWebKeys": {
409
+ "methods": [
410
+ "get_json_web_keys"
411
+ ]
412
+ },
413
+ "GetNodePool": {
414
+ "methods": [
415
+ "get_node_pool"
416
+ ]
417
+ },
418
+ "GetOperation": {
419
+ "methods": [
420
+ "get_operation"
421
+ ]
422
+ },
423
+ "GetServerConfig": {
424
+ "methods": [
425
+ "get_server_config"
426
+ ]
427
+ },
428
+ "ListClusters": {
429
+ "methods": [
430
+ "list_clusters"
431
+ ]
432
+ },
433
+ "ListNodePools": {
434
+ "methods": [
435
+ "list_node_pools"
436
+ ]
437
+ },
438
+ "ListOperations": {
439
+ "methods": [
440
+ "list_operations"
441
+ ]
442
+ },
443
+ "ListUsableSubnetworks": {
444
+ "methods": [
445
+ "list_usable_subnetworks"
446
+ ]
447
+ },
448
+ "RollbackNodePoolUpgrade": {
449
+ "methods": [
450
+ "rollback_node_pool_upgrade"
451
+ ]
452
+ },
453
+ "SetAddonsConfig": {
454
+ "methods": [
455
+ "set_addons_config"
456
+ ]
457
+ },
458
+ "SetLabels": {
459
+ "methods": [
460
+ "set_labels"
461
+ ]
462
+ },
463
+ "SetLegacyAbac": {
464
+ "methods": [
465
+ "set_legacy_abac"
466
+ ]
467
+ },
468
+ "SetLocations": {
469
+ "methods": [
470
+ "set_locations"
471
+ ]
472
+ },
473
+ "SetLoggingService": {
474
+ "methods": [
475
+ "set_logging_service"
476
+ ]
477
+ },
478
+ "SetMaintenancePolicy": {
479
+ "methods": [
480
+ "set_maintenance_policy"
481
+ ]
482
+ },
483
+ "SetMasterAuth": {
484
+ "methods": [
485
+ "set_master_auth"
486
+ ]
487
+ },
488
+ "SetMonitoringService": {
489
+ "methods": [
490
+ "set_monitoring_service"
491
+ ]
492
+ },
493
+ "SetNetworkPolicy": {
494
+ "methods": [
495
+ "set_network_policy"
496
+ ]
497
+ },
498
+ "SetNodePoolAutoscaling": {
499
+ "methods": [
500
+ "set_node_pool_autoscaling"
501
+ ]
502
+ },
503
+ "SetNodePoolManagement": {
504
+ "methods": [
505
+ "set_node_pool_management"
506
+ ]
507
+ },
508
+ "SetNodePoolSize": {
509
+ "methods": [
510
+ "set_node_pool_size"
511
+ ]
512
+ },
513
+ "StartIPRotation": {
514
+ "methods": [
515
+ "start_ip_rotation"
516
+ ]
517
+ },
518
+ "UpdateCluster": {
519
+ "methods": [
520
+ "update_cluster"
521
+ ]
522
+ },
523
+ "UpdateMaster": {
524
+ "methods": [
525
+ "update_master"
526
+ ]
527
+ },
528
+ "UpdateNodePool": {
529
+ "methods": [
530
+ "update_node_pool"
531
+ ]
532
+ }
533
+ }
359
534
  }
360
535
  }
361
536
  }
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "2.46.0" # {x-release-please-version}
16
+ __version__ = "2.47.0" # {x-release-please-version}
@@ -2109,6 +2109,7 @@ class ClusterManagerAsyncClient:
2109
2109
  *,
2110
2110
  project_id: Optional[str] = None,
2111
2111
  zone: Optional[str] = None,
2112
+ parent: Optional[str] = None,
2112
2113
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
2113
2114
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2114
2115
  metadata: Sequence[Tuple[str, str]] = (),
@@ -2165,6 +2166,15 @@ class ClusterManagerAsyncClient:
2165
2166
  This corresponds to the ``zone`` field
2166
2167
  on the ``request`` instance; if ``request`` is provided, this
2167
2168
  should not be set.
2169
+ parent (:class:`str`):
2170
+ The parent (project and location) where the operations
2171
+ will be listed. Specified in the format
2172
+ ``projects/*/locations/*``. Location "-" matches all
2173
+ zones and all regions.
2174
+
2175
+ This corresponds to the ``parent`` field
2176
+ on the ``request`` instance; if ``request`` is provided, this
2177
+ should not be set.
2168
2178
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
2169
2179
  should be retried.
2170
2180
  timeout (float): The timeout for this request.
@@ -2180,7 +2190,7 @@ class ClusterManagerAsyncClient:
2180
2190
  # Create or coerce a protobuf request object.
2181
2191
  # - Quick check: If we got a request object, we should *not* have
2182
2192
  # gotten any keyword arguments that map to the request.
2183
- has_flattened_params = any([project_id, zone])
2193
+ has_flattened_params = any([project_id, zone, parent])
2184
2194
  if request is not None and has_flattened_params:
2185
2195
  raise ValueError(
2186
2196
  "If the `request` argument is set, then none of "
@@ -2198,6 +2208,8 @@ class ClusterManagerAsyncClient:
2198
2208
  request.project_id = project_id
2199
2209
  if zone is not None:
2200
2210
  request.zone = zone
2211
+ if parent is not None:
2212
+ request.parent = parent
2201
2213
 
2202
2214
  # Wrap the RPC method; this adds retry and timeout information,
2203
2215
  # and friendly error handling.
@@ -56,6 +56,7 @@ from google.cloud.container_v1.types import cluster_service
56
56
  from .transports.base import DEFAULT_CLIENT_INFO, ClusterManagerTransport
57
57
  from .transports.grpc import ClusterManagerGrpcTransport
58
58
  from .transports.grpc_asyncio import ClusterManagerGrpcAsyncIOTransport
59
+ from .transports.rest import ClusterManagerRestTransport
59
60
 
60
61
 
61
62
  class ClusterManagerClientMeta(type):
@@ -71,6 +72,7 @@ class ClusterManagerClientMeta(type):
71
72
  ) # type: Dict[str, Type[ClusterManagerTransport]]
72
73
  _transport_registry["grpc"] = ClusterManagerGrpcTransport
73
74
  _transport_registry["grpc_asyncio"] = ClusterManagerGrpcAsyncIOTransport
75
+ _transport_registry["rest"] = ClusterManagerRestTransport
74
76
 
75
77
  def get_transport_class(
76
78
  cls,
@@ -2487,6 +2489,7 @@ class ClusterManagerClient(metaclass=ClusterManagerClientMeta):
2487
2489
  *,
2488
2490
  project_id: Optional[str] = None,
2489
2491
  zone: Optional[str] = None,
2492
+ parent: Optional[str] = None,
2490
2493
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
2491
2494
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2492
2495
  metadata: Sequence[Tuple[str, str]] = (),
@@ -2543,6 +2546,15 @@ class ClusterManagerClient(metaclass=ClusterManagerClientMeta):
2543
2546
  This corresponds to the ``zone`` field
2544
2547
  on the ``request`` instance; if ``request`` is provided, this
2545
2548
  should not be set.
2549
+ parent (str):
2550
+ The parent (project and location) where the operations
2551
+ will be listed. Specified in the format
2552
+ ``projects/*/locations/*``. Location "-" matches all
2553
+ zones and all regions.
2554
+
2555
+ This corresponds to the ``parent`` field
2556
+ on the ``request`` instance; if ``request`` is provided, this
2557
+ should not be set.
2546
2558
  retry (google.api_core.retry.Retry): Designation of what errors, if any,
2547
2559
  should be retried.
2548
2560
  timeout (float): The timeout for this request.
@@ -2558,7 +2570,7 @@ class ClusterManagerClient(metaclass=ClusterManagerClientMeta):
2558
2570
  # Create or coerce a protobuf request object.
2559
2571
  # - Quick check: If we got a request object, we should *not* have
2560
2572
  # gotten any keyword arguments that map to the request.
2561
- has_flattened_params = any([project_id, zone])
2573
+ has_flattened_params = any([project_id, zone, parent])
2562
2574
  if request is not None and has_flattened_params:
2563
2575
  raise ValueError(
2564
2576
  "If the `request` argument is set, then none of "
@@ -2575,6 +2587,8 @@ class ClusterManagerClient(metaclass=ClusterManagerClientMeta):
2575
2587
  request.project_id = project_id
2576
2588
  if zone is not None:
2577
2589
  request.zone = zone
2590
+ if parent is not None:
2591
+ request.parent = parent
2578
2592
 
2579
2593
  # Wrap the RPC method; this adds retry and timeout information,
2580
2594
  # and friendly error handling.
@@ -19,14 +19,18 @@ from typing import Dict, Type
19
19
  from .base import ClusterManagerTransport
20
20
  from .grpc import ClusterManagerGrpcTransport
21
21
  from .grpc_asyncio import ClusterManagerGrpcAsyncIOTransport
22
+ from .rest import ClusterManagerRestInterceptor, ClusterManagerRestTransport
22
23
 
23
24
  # Compile a registry of transports.
24
25
  _transport_registry = OrderedDict() # type: Dict[str, Type[ClusterManagerTransport]]
25
26
  _transport_registry["grpc"] = ClusterManagerGrpcTransport
26
27
  _transport_registry["grpc_asyncio"] = ClusterManagerGrpcAsyncIOTransport
28
+ _transport_registry["rest"] = ClusterManagerRestTransport
27
29
 
28
30
  __all__ = (
29
31
  "ClusterManagerTransport",
30
32
  "ClusterManagerGrpcTransport",
31
33
  "ClusterManagerGrpcAsyncIOTransport",
34
+ "ClusterManagerRestTransport",
35
+ "ClusterManagerRestInterceptor",
32
36
  )