google-cloud-container 2.51.0__tar.gz → 2.53.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.
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/MANIFEST.in +1 -1
- {google_cloud_container-2.51.0/google_cloud_container.egg-info → google_cloud_container-2.53.0}/PKG-INFO +3 -1
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container/__init__.py +12 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container/gapic_version.py +1 -1
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/__init__.py +12 -0
- {google_cloud_container-2.51.0/google/cloud/container_v1beta1 → google_cloud_container-2.53.0/google/cloud/container_v1}/gapic_version.py +1 -1
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/services/cluster_manager/async_client.py +6 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/services/cluster_manager/client.py +48 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/services/cluster_manager/transports/grpc_asyncio.py +47 -34
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/services/cluster_manager/transports/rest.py +1515 -1379
- google_cloud_container-2.53.0/google/cloud/container_v1/services/cluster_manager/transports/rest_base.py +1796 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/types/__init__.py +12 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/types/cluster_service.py +608 -22
- {google_cloud_container-2.51.0/google/cloud/container_v1 → google_cloud_container-2.53.0/google/cloud/container_v1beta1}/gapic_version.py +1 -1
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/grpc_asyncio.py +48 -35
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0/google_cloud_container.egg-info}/PKG-INFO +3 -1
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google_cloud_container.egg-info/SOURCES.txt +1 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google_cloud_container.egg-info/requires.txt +3 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/setup.py +4 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/tests/unit/gapic/container_v1/test_cluster_manager.py +8246 -7475
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/tests/unit/gapic/container_v1beta1/test_cluster_manager.py +2349 -2107
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/LICENSE +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/README.rst +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container/py.typed +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/gapic_metadata.json +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/py.typed +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/services/__init__.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/services/cluster_manager/__init__.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/services/cluster_manager/pagers.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/services/cluster_manager/transports/__init__.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/services/cluster_manager/transports/base.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1/services/cluster_manager/transports/grpc.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/__init__.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/gapic_metadata.json +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/py.typed +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/services/__init__.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/services/cluster_manager/__init__.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/services/cluster_manager/async_client.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/services/cluster_manager/client.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/services/cluster_manager/pagers.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/__init__.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/base.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/grpc.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/types/__init__.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container_v1beta1/types/cluster_service.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google_cloud_container.egg-info/dependency_links.txt +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google_cloud_container.egg-info/not-zip-safe +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google_cloud_container.egg-info/top_level.txt +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/setup.cfg +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/tests/__init__.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/tests/system/__init__.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/tests/system/smoke_test.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/tests/unit/__init__.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/tests/unit/gapic/__init__.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/tests/unit/gapic/container_v1/__init__.py +0 -0
- {google_cloud_container-2.51.0 → google_cloud_container-2.53.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.
|
|
3
|
+
Version: 2.53.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
|
|
@@ -18,6 +18,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
22
|
Classifier: Operating System :: OS Independent
|
|
22
23
|
Classifier: Topic :: Internet
|
|
23
24
|
Requires-Python: >=3.7
|
|
@@ -25,6 +26,7 @@ License-File: LICENSE
|
|
|
25
26
|
Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.1
|
|
26
27
|
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0dev,>=2.14.1
|
|
27
28
|
Requires-Dist: proto-plus<2.0.0dev,>=1.22.3
|
|
29
|
+
Requires-Dist: proto-plus<2.0.0dev,>=1.25.0; python_version >= "3.13"
|
|
28
30
|
Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<6.0.0dev,>=3.20.2
|
|
29
31
|
|
|
30
32
|
Python Client for Kubernetes Engine
|
{google_cloud_container-2.51.0 → google_cloud_container-2.53.0}/google/cloud/container/__init__.py
RENAMED
|
@@ -50,9 +50,11 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
50
50
|
ClusterUpdate,
|
|
51
51
|
CompleteIPRotationRequest,
|
|
52
52
|
CompleteNodePoolUpgradeRequest,
|
|
53
|
+
CompliancePostureConfig,
|
|
53
54
|
ConfidentialNodes,
|
|
54
55
|
ConfigConnectorConfig,
|
|
55
56
|
ContainerdConfig,
|
|
57
|
+
ControlPlaneEndpointsConfig,
|
|
56
58
|
CostManagementConfig,
|
|
57
59
|
CreateClusterRequest,
|
|
58
60
|
CreateNodePoolRequest,
|
|
@@ -140,6 +142,7 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
140
142
|
NotificationConfig,
|
|
141
143
|
Operation,
|
|
142
144
|
OperationProgress,
|
|
145
|
+
ParallelstoreCsiDriverConfig,
|
|
143
146
|
PodCIDROverprovisionConfig,
|
|
144
147
|
PrivateClusterConfig,
|
|
145
148
|
PrivateClusterMasterGlobalAccessConfig,
|
|
@@ -148,6 +151,7 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
148
151
|
RayClusterLoggingConfig,
|
|
149
152
|
RayClusterMonitoringConfig,
|
|
150
153
|
RayOperatorConfig,
|
|
154
|
+
RBACBindingConfig,
|
|
151
155
|
RecurringTimeWindow,
|
|
152
156
|
ReleaseChannel,
|
|
153
157
|
ReservationAffinity,
|
|
@@ -159,6 +163,7 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
159
163
|
SandboxConfig,
|
|
160
164
|
SecondaryBootDisk,
|
|
161
165
|
SecondaryBootDiskUpdateStrategy,
|
|
166
|
+
SecretManagerConfig,
|
|
162
167
|
SecurityBulletinEvent,
|
|
163
168
|
SecurityPostureConfig,
|
|
164
169
|
ServerConfig,
|
|
@@ -191,6 +196,7 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
191
196
|
UpgradeResourceType,
|
|
192
197
|
UsableSubnetwork,
|
|
193
198
|
UsableSubnetworkSecondaryRange,
|
|
199
|
+
UserManagedKeysConfig,
|
|
194
200
|
VerticalPodAutoscaling,
|
|
195
201
|
VirtualNIC,
|
|
196
202
|
WindowsNodeConfig,
|
|
@@ -227,9 +233,11 @@ __all__ = (
|
|
|
227
233
|
"ClusterUpdate",
|
|
228
234
|
"CompleteIPRotationRequest",
|
|
229
235
|
"CompleteNodePoolUpgradeRequest",
|
|
236
|
+
"CompliancePostureConfig",
|
|
230
237
|
"ConfidentialNodes",
|
|
231
238
|
"ConfigConnectorConfig",
|
|
232
239
|
"ContainerdConfig",
|
|
240
|
+
"ControlPlaneEndpointsConfig",
|
|
233
241
|
"CostManagementConfig",
|
|
234
242
|
"CreateClusterRequest",
|
|
235
243
|
"CreateNodePoolRequest",
|
|
@@ -313,6 +321,7 @@ __all__ = (
|
|
|
313
321
|
"NotificationConfig",
|
|
314
322
|
"Operation",
|
|
315
323
|
"OperationProgress",
|
|
324
|
+
"ParallelstoreCsiDriverConfig",
|
|
316
325
|
"PodCIDROverprovisionConfig",
|
|
317
326
|
"PrivateClusterConfig",
|
|
318
327
|
"PrivateClusterMasterGlobalAccessConfig",
|
|
@@ -320,6 +329,7 @@ __all__ = (
|
|
|
320
329
|
"RayClusterLoggingConfig",
|
|
321
330
|
"RayClusterMonitoringConfig",
|
|
322
331
|
"RayOperatorConfig",
|
|
332
|
+
"RBACBindingConfig",
|
|
323
333
|
"RecurringTimeWindow",
|
|
324
334
|
"ReleaseChannel",
|
|
325
335
|
"ReservationAffinity",
|
|
@@ -331,6 +341,7 @@ __all__ = (
|
|
|
331
341
|
"SandboxConfig",
|
|
332
342
|
"SecondaryBootDisk",
|
|
333
343
|
"SecondaryBootDiskUpdateStrategy",
|
|
344
|
+
"SecretManagerConfig",
|
|
334
345
|
"SecurityBulletinEvent",
|
|
335
346
|
"SecurityPostureConfig",
|
|
336
347
|
"ServerConfig",
|
|
@@ -361,6 +372,7 @@ __all__ = (
|
|
|
361
372
|
"UpgradeEvent",
|
|
362
373
|
"UsableSubnetwork",
|
|
363
374
|
"UsableSubnetworkSecondaryRange",
|
|
375
|
+
"UserManagedKeysConfig",
|
|
364
376
|
"VerticalPodAutoscaling",
|
|
365
377
|
"VirtualNIC",
|
|
366
378
|
"WindowsNodeConfig",
|
|
@@ -45,9 +45,11 @@ from .types.cluster_service import (
|
|
|
45
45
|
ClusterUpdate,
|
|
46
46
|
CompleteIPRotationRequest,
|
|
47
47
|
CompleteNodePoolUpgradeRequest,
|
|
48
|
+
CompliancePostureConfig,
|
|
48
49
|
ConfidentialNodes,
|
|
49
50
|
ConfigConnectorConfig,
|
|
50
51
|
ContainerdConfig,
|
|
52
|
+
ControlPlaneEndpointsConfig,
|
|
51
53
|
CostManagementConfig,
|
|
52
54
|
CreateClusterRequest,
|
|
53
55
|
CreateNodePoolRequest,
|
|
@@ -135,6 +137,7 @@ from .types.cluster_service import (
|
|
|
135
137
|
NotificationConfig,
|
|
136
138
|
Operation,
|
|
137
139
|
OperationProgress,
|
|
140
|
+
ParallelstoreCsiDriverConfig,
|
|
138
141
|
PodCIDROverprovisionConfig,
|
|
139
142
|
PrivateClusterConfig,
|
|
140
143
|
PrivateClusterMasterGlobalAccessConfig,
|
|
@@ -143,6 +146,7 @@ from .types.cluster_service import (
|
|
|
143
146
|
RayClusterLoggingConfig,
|
|
144
147
|
RayClusterMonitoringConfig,
|
|
145
148
|
RayOperatorConfig,
|
|
149
|
+
RBACBindingConfig,
|
|
146
150
|
RecurringTimeWindow,
|
|
147
151
|
ReleaseChannel,
|
|
148
152
|
ReservationAffinity,
|
|
@@ -154,6 +158,7 @@ from .types.cluster_service import (
|
|
|
154
158
|
SandboxConfig,
|
|
155
159
|
SecondaryBootDisk,
|
|
156
160
|
SecondaryBootDiskUpdateStrategy,
|
|
161
|
+
SecretManagerConfig,
|
|
157
162
|
SecurityBulletinEvent,
|
|
158
163
|
SecurityPostureConfig,
|
|
159
164
|
ServerConfig,
|
|
@@ -186,6 +191,7 @@ from .types.cluster_service import (
|
|
|
186
191
|
UpgradeResourceType,
|
|
187
192
|
UsableSubnetwork,
|
|
188
193
|
UsableSubnetworkSecondaryRange,
|
|
194
|
+
UserManagedKeysConfig,
|
|
189
195
|
VerticalPodAutoscaling,
|
|
190
196
|
VirtualNIC,
|
|
191
197
|
WindowsNodeConfig,
|
|
@@ -222,9 +228,11 @@ __all__ = (
|
|
|
222
228
|
"ClusterUpdate",
|
|
223
229
|
"CompleteIPRotationRequest",
|
|
224
230
|
"CompleteNodePoolUpgradeRequest",
|
|
231
|
+
"CompliancePostureConfig",
|
|
225
232
|
"ConfidentialNodes",
|
|
226
233
|
"ConfigConnectorConfig",
|
|
227
234
|
"ContainerdConfig",
|
|
235
|
+
"ControlPlaneEndpointsConfig",
|
|
228
236
|
"CostManagementConfig",
|
|
229
237
|
"CreateClusterRequest",
|
|
230
238
|
"CreateNodePoolRequest",
|
|
@@ -312,10 +320,12 @@ __all__ = (
|
|
|
312
320
|
"NotificationConfig",
|
|
313
321
|
"Operation",
|
|
314
322
|
"OperationProgress",
|
|
323
|
+
"ParallelstoreCsiDriverConfig",
|
|
315
324
|
"PodCIDROverprovisionConfig",
|
|
316
325
|
"PrivateClusterConfig",
|
|
317
326
|
"PrivateClusterMasterGlobalAccessConfig",
|
|
318
327
|
"PrivateIPv6GoogleAccess",
|
|
328
|
+
"RBACBindingConfig",
|
|
319
329
|
"RangeInfo",
|
|
320
330
|
"RayClusterLoggingConfig",
|
|
321
331
|
"RayClusterMonitoringConfig",
|
|
@@ -331,6 +341,7 @@ __all__ = (
|
|
|
331
341
|
"SandboxConfig",
|
|
332
342
|
"SecondaryBootDisk",
|
|
333
343
|
"SecondaryBootDiskUpdateStrategy",
|
|
344
|
+
"SecretManagerConfig",
|
|
334
345
|
"SecurityBulletinEvent",
|
|
335
346
|
"SecurityPostureConfig",
|
|
336
347
|
"ServerConfig",
|
|
@@ -363,6 +374,7 @@ __all__ = (
|
|
|
363
374
|
"UpgradeResourceType",
|
|
364
375
|
"UsableSubnetwork",
|
|
365
376
|
"UsableSubnetworkSecondaryRange",
|
|
377
|
+
"UserManagedKeysConfig",
|
|
366
378
|
"VerticalPodAutoscaling",
|
|
367
379
|
"VirtualNIC",
|
|
368
380
|
"WindowsNodeConfig",
|
|
@@ -65,6 +65,12 @@ class ClusterManagerAsyncClient:
|
|
|
65
65
|
_DEFAULT_ENDPOINT_TEMPLATE = ClusterManagerClient._DEFAULT_ENDPOINT_TEMPLATE
|
|
66
66
|
_DEFAULT_UNIVERSE = ClusterManagerClient._DEFAULT_UNIVERSE
|
|
67
67
|
|
|
68
|
+
ca_pool_path = staticmethod(ClusterManagerClient.ca_pool_path)
|
|
69
|
+
parse_ca_pool_path = staticmethod(ClusterManagerClient.parse_ca_pool_path)
|
|
70
|
+
crypto_key_version_path = staticmethod(ClusterManagerClient.crypto_key_version_path)
|
|
71
|
+
parse_crypto_key_version_path = staticmethod(
|
|
72
|
+
ClusterManagerClient.parse_crypto_key_version_path
|
|
73
|
+
)
|
|
68
74
|
topic_path = staticmethod(ClusterManagerClient.topic_path)
|
|
69
75
|
parse_topic_path = staticmethod(ClusterManagerClient.parse_topic_path)
|
|
70
76
|
common_billing_account_path = staticmethod(
|
|
@@ -185,6 +185,54 @@ class ClusterManagerClient(metaclass=ClusterManagerClientMeta):
|
|
|
185
185
|
"""
|
|
186
186
|
return self._transport
|
|
187
187
|
|
|
188
|
+
@staticmethod
|
|
189
|
+
def ca_pool_path(
|
|
190
|
+
project: str,
|
|
191
|
+
location: str,
|
|
192
|
+
ca_pool: str,
|
|
193
|
+
) -> str:
|
|
194
|
+
"""Returns a fully-qualified ca_pool string."""
|
|
195
|
+
return "projects/{project}/locations/{location}/caPools/{ca_pool}".format(
|
|
196
|
+
project=project,
|
|
197
|
+
location=location,
|
|
198
|
+
ca_pool=ca_pool,
|
|
199
|
+
)
|
|
200
|
+
|
|
201
|
+
@staticmethod
|
|
202
|
+
def parse_ca_pool_path(path: str) -> Dict[str, str]:
|
|
203
|
+
"""Parses a ca_pool path into its component segments."""
|
|
204
|
+
m = re.match(
|
|
205
|
+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/caPools/(?P<ca_pool>.+?)$",
|
|
206
|
+
path,
|
|
207
|
+
)
|
|
208
|
+
return m.groupdict() if m else {}
|
|
209
|
+
|
|
210
|
+
@staticmethod
|
|
211
|
+
def crypto_key_version_path(
|
|
212
|
+
project: str,
|
|
213
|
+
location: str,
|
|
214
|
+
key_ring: str,
|
|
215
|
+
crypto_key: str,
|
|
216
|
+
crypto_key_version: str,
|
|
217
|
+
) -> str:
|
|
218
|
+
"""Returns a fully-qualified crypto_key_version string."""
|
|
219
|
+
return "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}".format(
|
|
220
|
+
project=project,
|
|
221
|
+
location=location,
|
|
222
|
+
key_ring=key_ring,
|
|
223
|
+
crypto_key=crypto_key,
|
|
224
|
+
crypto_key_version=crypto_key_version,
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
@staticmethod
|
|
228
|
+
def parse_crypto_key_version_path(path: str) -> Dict[str, str]:
|
|
229
|
+
"""Parses a crypto_key_version path into its component segments."""
|
|
230
|
+
m = re.match(
|
|
231
|
+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/keyRings/(?P<key_ring>.+?)/cryptoKeys/(?P<crypto_key>.+?)/cryptoKeyVersions/(?P<crypto_key_version>.+?)$",
|
|
232
|
+
path,
|
|
233
|
+
)
|
|
234
|
+
return m.groupdict() if m else {}
|
|
235
|
+
|
|
188
236
|
@staticmethod
|
|
189
237
|
def topic_path(
|
|
190
238
|
project: str,
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
+
import inspect
|
|
16
17
|
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union
|
|
17
18
|
import warnings
|
|
18
19
|
|
|
@@ -227,6 +228,9 @@ class ClusterManagerGrpcAsyncIOTransport(ClusterManagerTransport):
|
|
|
227
228
|
)
|
|
228
229
|
|
|
229
230
|
# Wrap messages. This must be done after self._grpc_channel exists
|
|
231
|
+
self._wrap_with_kind = (
|
|
232
|
+
"kind" in inspect.signature(gapic_v1.method_async.wrap_method).parameters
|
|
233
|
+
)
|
|
230
234
|
self._prep_wrapped_messages(client_info)
|
|
231
235
|
|
|
232
236
|
@property
|
|
@@ -1248,7 +1252,7 @@ class ClusterManagerGrpcAsyncIOTransport(ClusterManagerTransport):
|
|
|
1248
1252
|
def _prep_wrapped_messages(self, client_info):
|
|
1249
1253
|
"""Precompute the wrapped methods, overriding the base class method to use async wrappers."""
|
|
1250
1254
|
self._wrapped_methods = {
|
|
1251
|
-
self.list_clusters:
|
|
1255
|
+
self.list_clusters: self._wrap_method(
|
|
1252
1256
|
self.list_clusters,
|
|
1253
1257
|
default_retry=retries.AsyncRetry(
|
|
1254
1258
|
initial=0.1,
|
|
@@ -1263,7 +1267,7 @@ class ClusterManagerGrpcAsyncIOTransport(ClusterManagerTransport):
|
|
|
1263
1267
|
default_timeout=20.0,
|
|
1264
1268
|
client_info=client_info,
|
|
1265
1269
|
),
|
|
1266
|
-
self.get_cluster:
|
|
1270
|
+
self.get_cluster: self._wrap_method(
|
|
1267
1271
|
self.get_cluster,
|
|
1268
1272
|
default_retry=retries.AsyncRetry(
|
|
1269
1273
|
initial=0.1,
|
|
@@ -1278,57 +1282,57 @@ class ClusterManagerGrpcAsyncIOTransport(ClusterManagerTransport):
|
|
|
1278
1282
|
default_timeout=20.0,
|
|
1279
1283
|
client_info=client_info,
|
|
1280
1284
|
),
|
|
1281
|
-
self.create_cluster:
|
|
1285
|
+
self.create_cluster: self._wrap_method(
|
|
1282
1286
|
self.create_cluster,
|
|
1283
1287
|
default_timeout=45.0,
|
|
1284
1288
|
client_info=client_info,
|
|
1285
1289
|
),
|
|
1286
|
-
self.update_cluster:
|
|
1290
|
+
self.update_cluster: self._wrap_method(
|
|
1287
1291
|
self.update_cluster,
|
|
1288
1292
|
default_timeout=45.0,
|
|
1289
1293
|
client_info=client_info,
|
|
1290
1294
|
),
|
|
1291
|
-
self.update_node_pool:
|
|
1295
|
+
self.update_node_pool: self._wrap_method(
|
|
1292
1296
|
self.update_node_pool,
|
|
1293
1297
|
default_timeout=45.0,
|
|
1294
1298
|
client_info=client_info,
|
|
1295
1299
|
),
|
|
1296
|
-
self.set_node_pool_autoscaling:
|
|
1300
|
+
self.set_node_pool_autoscaling: self._wrap_method(
|
|
1297
1301
|
self.set_node_pool_autoscaling,
|
|
1298
1302
|
default_timeout=45.0,
|
|
1299
1303
|
client_info=client_info,
|
|
1300
1304
|
),
|
|
1301
|
-
self.set_logging_service:
|
|
1305
|
+
self.set_logging_service: self._wrap_method(
|
|
1302
1306
|
self.set_logging_service,
|
|
1303
1307
|
default_timeout=45.0,
|
|
1304
1308
|
client_info=client_info,
|
|
1305
1309
|
),
|
|
1306
|
-
self.set_monitoring_service:
|
|
1310
|
+
self.set_monitoring_service: self._wrap_method(
|
|
1307
1311
|
self.set_monitoring_service,
|
|
1308
1312
|
default_timeout=45.0,
|
|
1309
1313
|
client_info=client_info,
|
|
1310
1314
|
),
|
|
1311
|
-
self.set_addons_config:
|
|
1315
|
+
self.set_addons_config: self._wrap_method(
|
|
1312
1316
|
self.set_addons_config,
|
|
1313
1317
|
default_timeout=45.0,
|
|
1314
1318
|
client_info=client_info,
|
|
1315
1319
|
),
|
|
1316
|
-
self.set_locations:
|
|
1320
|
+
self.set_locations: self._wrap_method(
|
|
1317
1321
|
self.set_locations,
|
|
1318
1322
|
default_timeout=45.0,
|
|
1319
1323
|
client_info=client_info,
|
|
1320
1324
|
),
|
|
1321
|
-
self.update_master:
|
|
1325
|
+
self.update_master: self._wrap_method(
|
|
1322
1326
|
self.update_master,
|
|
1323
1327
|
default_timeout=45.0,
|
|
1324
1328
|
client_info=client_info,
|
|
1325
1329
|
),
|
|
1326
|
-
self.set_master_auth:
|
|
1330
|
+
self.set_master_auth: self._wrap_method(
|
|
1327
1331
|
self.set_master_auth,
|
|
1328
1332
|
default_timeout=45.0,
|
|
1329
1333
|
client_info=client_info,
|
|
1330
1334
|
),
|
|
1331
|
-
self.delete_cluster:
|
|
1335
|
+
self.delete_cluster: self._wrap_method(
|
|
1332
1336
|
self.delete_cluster,
|
|
1333
1337
|
default_retry=retries.AsyncRetry(
|
|
1334
1338
|
initial=0.1,
|
|
@@ -1343,7 +1347,7 @@ class ClusterManagerGrpcAsyncIOTransport(ClusterManagerTransport):
|
|
|
1343
1347
|
default_timeout=20.0,
|
|
1344
1348
|
client_info=client_info,
|
|
1345
1349
|
),
|
|
1346
|
-
self.list_operations:
|
|
1350
|
+
self.list_operations: self._wrap_method(
|
|
1347
1351
|
self.list_operations,
|
|
1348
1352
|
default_retry=retries.AsyncRetry(
|
|
1349
1353
|
initial=0.1,
|
|
@@ -1358,7 +1362,7 @@ class ClusterManagerGrpcAsyncIOTransport(ClusterManagerTransport):
|
|
|
1358
1362
|
default_timeout=20.0,
|
|
1359
1363
|
client_info=client_info,
|
|
1360
1364
|
),
|
|
1361
|
-
self.get_operation:
|
|
1365
|
+
self.get_operation: self._wrap_method(
|
|
1362
1366
|
self.get_operation,
|
|
1363
1367
|
default_retry=retries.AsyncRetry(
|
|
1364
1368
|
initial=0.1,
|
|
@@ -1373,12 +1377,12 @@ class ClusterManagerGrpcAsyncIOTransport(ClusterManagerTransport):
|
|
|
1373
1377
|
default_timeout=20.0,
|
|
1374
1378
|
client_info=client_info,
|
|
1375
1379
|
),
|
|
1376
|
-
self.cancel_operation:
|
|
1380
|
+
self.cancel_operation: self._wrap_method(
|
|
1377
1381
|
self.cancel_operation,
|
|
1378
1382
|
default_timeout=45.0,
|
|
1379
1383
|
client_info=client_info,
|
|
1380
1384
|
),
|
|
1381
|
-
self.get_server_config:
|
|
1385
|
+
self.get_server_config: self._wrap_method(
|
|
1382
1386
|
self.get_server_config,
|
|
1383
1387
|
default_retry=retries.AsyncRetry(
|
|
1384
1388
|
initial=0.1,
|
|
@@ -1393,12 +1397,12 @@ class ClusterManagerGrpcAsyncIOTransport(ClusterManagerTransport):
|
|
|
1393
1397
|
default_timeout=20.0,
|
|
1394
1398
|
client_info=client_info,
|
|
1395
1399
|
),
|
|
1396
|
-
self.get_json_web_keys:
|
|
1400
|
+
self.get_json_web_keys: self._wrap_method(
|
|
1397
1401
|
self.get_json_web_keys,
|
|
1398
1402
|
default_timeout=None,
|
|
1399
1403
|
client_info=client_info,
|
|
1400
1404
|
),
|
|
1401
|
-
self.list_node_pools:
|
|
1405
|
+
self.list_node_pools: self._wrap_method(
|
|
1402
1406
|
self.list_node_pools,
|
|
1403
1407
|
default_retry=retries.AsyncRetry(
|
|
1404
1408
|
initial=0.1,
|
|
@@ -1413,7 +1417,7 @@ class ClusterManagerGrpcAsyncIOTransport(ClusterManagerTransport):
|
|
|
1413
1417
|
default_timeout=20.0,
|
|
1414
1418
|
client_info=client_info,
|
|
1415
1419
|
),
|
|
1416
|
-
self.get_node_pool:
|
|
1420
|
+
self.get_node_pool: self._wrap_method(
|
|
1417
1421
|
self.get_node_pool,
|
|
1418
1422
|
default_retry=retries.AsyncRetry(
|
|
1419
1423
|
initial=0.1,
|
|
@@ -1428,12 +1432,12 @@ class ClusterManagerGrpcAsyncIOTransport(ClusterManagerTransport):
|
|
|
1428
1432
|
default_timeout=20.0,
|
|
1429
1433
|
client_info=client_info,
|
|
1430
1434
|
),
|
|
1431
|
-
self.create_node_pool:
|
|
1435
|
+
self.create_node_pool: self._wrap_method(
|
|
1432
1436
|
self.create_node_pool,
|
|
1433
1437
|
default_timeout=45.0,
|
|
1434
1438
|
client_info=client_info,
|
|
1435
1439
|
),
|
|
1436
|
-
self.delete_node_pool:
|
|
1440
|
+
self.delete_node_pool: self._wrap_method(
|
|
1437
1441
|
self.delete_node_pool,
|
|
1438
1442
|
default_retry=retries.AsyncRetry(
|
|
1439
1443
|
initial=0.1,
|
|
@@ -1448,70 +1452,79 @@ class ClusterManagerGrpcAsyncIOTransport(ClusterManagerTransport):
|
|
|
1448
1452
|
default_timeout=20.0,
|
|
1449
1453
|
client_info=client_info,
|
|
1450
1454
|
),
|
|
1451
|
-
self.complete_node_pool_upgrade:
|
|
1455
|
+
self.complete_node_pool_upgrade: self._wrap_method(
|
|
1452
1456
|
self.complete_node_pool_upgrade,
|
|
1453
1457
|
default_timeout=None,
|
|
1454
1458
|
client_info=client_info,
|
|
1455
1459
|
),
|
|
1456
|
-
self.rollback_node_pool_upgrade:
|
|
1460
|
+
self.rollback_node_pool_upgrade: self._wrap_method(
|
|
1457
1461
|
self.rollback_node_pool_upgrade,
|
|
1458
1462
|
default_timeout=45.0,
|
|
1459
1463
|
client_info=client_info,
|
|
1460
1464
|
),
|
|
1461
|
-
self.set_node_pool_management:
|
|
1465
|
+
self.set_node_pool_management: self._wrap_method(
|
|
1462
1466
|
self.set_node_pool_management,
|
|
1463
1467
|
default_timeout=45.0,
|
|
1464
1468
|
client_info=client_info,
|
|
1465
1469
|
),
|
|
1466
|
-
self.set_labels:
|
|
1470
|
+
self.set_labels: self._wrap_method(
|
|
1467
1471
|
self.set_labels,
|
|
1468
1472
|
default_timeout=45.0,
|
|
1469
1473
|
client_info=client_info,
|
|
1470
1474
|
),
|
|
1471
|
-
self.set_legacy_abac:
|
|
1475
|
+
self.set_legacy_abac: self._wrap_method(
|
|
1472
1476
|
self.set_legacy_abac,
|
|
1473
1477
|
default_timeout=45.0,
|
|
1474
1478
|
client_info=client_info,
|
|
1475
1479
|
),
|
|
1476
|
-
self.start_ip_rotation:
|
|
1480
|
+
self.start_ip_rotation: self._wrap_method(
|
|
1477
1481
|
self.start_ip_rotation,
|
|
1478
1482
|
default_timeout=45.0,
|
|
1479
1483
|
client_info=client_info,
|
|
1480
1484
|
),
|
|
1481
|
-
self.complete_ip_rotation:
|
|
1485
|
+
self.complete_ip_rotation: self._wrap_method(
|
|
1482
1486
|
self.complete_ip_rotation,
|
|
1483
1487
|
default_timeout=45.0,
|
|
1484
1488
|
client_info=client_info,
|
|
1485
1489
|
),
|
|
1486
|
-
self.set_node_pool_size:
|
|
1490
|
+
self.set_node_pool_size: self._wrap_method(
|
|
1487
1491
|
self.set_node_pool_size,
|
|
1488
1492
|
default_timeout=45.0,
|
|
1489
1493
|
client_info=client_info,
|
|
1490
1494
|
),
|
|
1491
|
-
self.set_network_policy:
|
|
1495
|
+
self.set_network_policy: self._wrap_method(
|
|
1492
1496
|
self.set_network_policy,
|
|
1493
1497
|
default_timeout=45.0,
|
|
1494
1498
|
client_info=client_info,
|
|
1495
1499
|
),
|
|
1496
|
-
self.set_maintenance_policy:
|
|
1500
|
+
self.set_maintenance_policy: self._wrap_method(
|
|
1497
1501
|
self.set_maintenance_policy,
|
|
1498
1502
|
default_timeout=45.0,
|
|
1499
1503
|
client_info=client_info,
|
|
1500
1504
|
),
|
|
1501
|
-
self.list_usable_subnetworks:
|
|
1505
|
+
self.list_usable_subnetworks: self._wrap_method(
|
|
1502
1506
|
self.list_usable_subnetworks,
|
|
1503
1507
|
default_timeout=None,
|
|
1504
1508
|
client_info=client_info,
|
|
1505
1509
|
),
|
|
1506
|
-
self.check_autopilot_compatibility:
|
|
1510
|
+
self.check_autopilot_compatibility: self._wrap_method(
|
|
1507
1511
|
self.check_autopilot_compatibility,
|
|
1508
1512
|
default_timeout=None,
|
|
1509
1513
|
client_info=client_info,
|
|
1510
1514
|
),
|
|
1511
1515
|
}
|
|
1512
1516
|
|
|
1517
|
+
def _wrap_method(self, func, *args, **kwargs):
|
|
1518
|
+
if self._wrap_with_kind: # pragma: NO COVER
|
|
1519
|
+
kwargs["kind"] = self.kind
|
|
1520
|
+
return gapic_v1.method_async.wrap_method(func, *args, **kwargs)
|
|
1521
|
+
|
|
1513
1522
|
def close(self):
|
|
1514
1523
|
return self.grpc_channel.close()
|
|
1515
1524
|
|
|
1525
|
+
@property
|
|
1526
|
+
def kind(self) -> str:
|
|
1527
|
+
return "grpc_asyncio"
|
|
1528
|
+
|
|
1516
1529
|
|
|
1517
1530
|
__all__ = ("ClusterManagerGrpcAsyncIOTransport",)
|