google-cloud-cloudcontrolspartner 0.2.1__tar.gz → 0.2.3__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_cloudcontrolspartner-0.2.1/google_cloud_cloudcontrolspartner.egg-info → google_cloud_cloudcontrolspartner-0.2.3}/PKG-INFO +1 -1
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner/gapic_version.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.1/google/cloud/cloudcontrolspartner_v1beta → google_cloud_cloudcontrolspartner-0.2.3/google/cloud/cloudcontrolspartner_v1}/gapic_version.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/async_client.py +72 -24
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/client.py +80 -61
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/pagers.py +30 -18
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/grpc.py +96 -10
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/grpc_asyncio.py +95 -10
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/rest.py +483 -41
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/async_client.py +42 -6
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/client.py +50 -43
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/pagers.py +10 -6
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/grpc.py +90 -4
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/grpc_asyncio.py +89 -4
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/rest.py +127 -11
- {google_cloud_cloudcontrolspartner-0.2.1/google/cloud/cloudcontrolspartner_v1 → google_cloud_cloudcontrolspartner-0.2.3/google/cloud/cloudcontrolspartner_v1beta}/gapic_version.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/async_client.py +72 -24
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/client.py +80 -61
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/pagers.py +30 -18
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/grpc.py +96 -10
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/grpc_asyncio.py +95 -10
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/rest.py +483 -41
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/async_client.py +42 -6
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/client.py +50 -43
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/pagers.py +10 -6
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/grpc.py +90 -4
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/grpc_asyncio.py +89 -4
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/rest.py +127 -11
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3/google_cloud_cloudcontrolspartner.egg-info}/PKG-INFO +1 -1
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/tests/unit/gapic/cloudcontrolspartner_v1/test_cloud_controls_partner_core.py +40 -88
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/tests/unit/gapic/cloudcontrolspartner_v1/test_cloud_controls_partner_monitoring.py +10 -88
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/tests/unit/gapic/cloudcontrolspartner_v1beta/test_cloud_controls_partner_core.py +40 -88
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/tests/unit/gapic/cloudcontrolspartner_v1beta/test_cloud_controls_partner_monitoring.py +10 -88
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/LICENSE +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/MANIFEST.in +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/README.rst +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner/py.typed +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/gapic_metadata.json +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/py.typed +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/rest_base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/rest_base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/types/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/types/access_approval_requests.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/types/completion_state.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/types/core.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/types/customer_workloads.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/types/customers.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/types/ekm_connections.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/types/monitoring.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/types/partner_permissions.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/types/partners.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1/types/violations.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/gapic_metadata.json +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/py.typed +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/rest_base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/rest_base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/types/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/types/access_approval_requests.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/types/completion_state.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/types/core.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/types/customer_workloads.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/types/customers.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/types/ekm_connections.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/types/monitoring.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/types/partner_permissions.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/types/partners.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google/cloud/cloudcontrolspartner_v1beta/types/violations.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google_cloud_cloudcontrolspartner.egg-info/SOURCES.txt +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google_cloud_cloudcontrolspartner.egg-info/dependency_links.txt +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google_cloud_cloudcontrolspartner.egg-info/not-zip-safe +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google_cloud_cloudcontrolspartner.egg-info/requires.txt +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/google_cloud_cloudcontrolspartner.egg-info/top_level.txt +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/setup.cfg +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/setup.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/tests/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/tests/unit/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/tests/unit/gapic/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/tests/unit/gapic/cloudcontrolspartner_v1/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.3}/tests/unit/gapic/cloudcontrolspartner_v1beta/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-cloudcontrolspartner
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Google Cloud Cloudcontrolspartner API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-cloudcontrolspartner
|
|
6
6
|
Author: Google LLC
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
16
|
from collections import OrderedDict
|
|
17
|
+
import logging as std_logging
|
|
17
18
|
import re
|
|
18
19
|
from typing import (
|
|
19
20
|
Callable,
|
|
@@ -61,6 +62,15 @@ from .client import CloudControlsPartnerCoreClient
|
|
|
61
62
|
from .transports.base import DEFAULT_CLIENT_INFO, CloudControlsPartnerCoreTransport
|
|
62
63
|
from .transports.grpc_asyncio import CloudControlsPartnerCoreGrpcAsyncIOTransport
|
|
63
64
|
|
|
65
|
+
try:
|
|
66
|
+
from google.api_core import client_logging # type: ignore
|
|
67
|
+
|
|
68
|
+
CLIENT_LOGGING_SUPPORTED = True # pragma: NO COVER
|
|
69
|
+
except ImportError: # pragma: NO COVER
|
|
70
|
+
CLIENT_LOGGING_SUPPORTED = False
|
|
71
|
+
|
|
72
|
+
_LOGGER = std_logging.getLogger(__name__)
|
|
73
|
+
|
|
64
74
|
|
|
65
75
|
class CloudControlsPartnerCoreAsyncClient:
|
|
66
76
|
"""Service describing handlers for resources"""
|
|
@@ -302,6 +312,28 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
302
312
|
client_info=client_info,
|
|
303
313
|
)
|
|
304
314
|
|
|
315
|
+
if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor(
|
|
316
|
+
std_logging.DEBUG
|
|
317
|
+
): # pragma: NO COVER
|
|
318
|
+
_LOGGER.debug(
|
|
319
|
+
"Created client `google.cloud.cloudcontrolspartner_v1.CloudControlsPartnerCoreAsyncClient`.",
|
|
320
|
+
extra={
|
|
321
|
+
"serviceName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore",
|
|
322
|
+
"universeDomain": getattr(
|
|
323
|
+
self._client._transport._credentials, "universe_domain", ""
|
|
324
|
+
),
|
|
325
|
+
"credentialsType": f"{type(self._client._transport._credentials).__module__}.{type(self._client._transport._credentials).__qualname__}",
|
|
326
|
+
"credentialsInfo": getattr(
|
|
327
|
+
self.transport._credentials, "get_cred_info", lambda: None
|
|
328
|
+
)(),
|
|
329
|
+
}
|
|
330
|
+
if hasattr(self._client._transport, "_credentials")
|
|
331
|
+
else {
|
|
332
|
+
"serviceName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore",
|
|
333
|
+
"credentialsType": None,
|
|
334
|
+
},
|
|
335
|
+
)
|
|
336
|
+
|
|
305
337
|
async def get_workload(
|
|
306
338
|
self,
|
|
307
339
|
request: Optional[Union[customer_workloads.GetWorkloadRequest, dict]] = None,
|
|
@@ -309,7 +341,7 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
309
341
|
name: Optional[str] = None,
|
|
310
342
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
311
343
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
312
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
344
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
313
345
|
) -> customer_workloads.Workload:
|
|
314
346
|
r"""Gets details of a single workload
|
|
315
347
|
|
|
@@ -353,8 +385,10 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
353
385
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
354
386
|
should be retried.
|
|
355
387
|
timeout (float): The timeout for this request.
|
|
356
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
357
|
-
sent along with the request as metadata.
|
|
388
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
389
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
390
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
391
|
+
be of type `bytes`.
|
|
358
392
|
|
|
359
393
|
Returns:
|
|
360
394
|
google.cloud.cloudcontrolspartner_v1.types.Workload:
|
|
@@ -416,7 +450,7 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
416
450
|
parent: Optional[str] = None,
|
|
417
451
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
418
452
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
419
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
453
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
420
454
|
) -> pagers.ListWorkloadsAsyncPager:
|
|
421
455
|
r"""Lists customer workloads for a given customer org id
|
|
422
456
|
|
|
@@ -460,8 +494,10 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
460
494
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
461
495
|
should be retried.
|
|
462
496
|
timeout (float): The timeout for this request.
|
|
463
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
464
|
-
sent along with the request as metadata.
|
|
497
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
498
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
499
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
500
|
+
be of type `bytes`.
|
|
465
501
|
|
|
466
502
|
Returns:
|
|
467
503
|
google.cloud.cloudcontrolspartner_v1.services.cloud_controls_partner_core.pagers.ListWorkloadsAsyncPager:
|
|
@@ -536,7 +572,7 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
536
572
|
name: Optional[str] = None,
|
|
537
573
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
538
574
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
539
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
575
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
540
576
|
) -> customers.Customer:
|
|
541
577
|
r"""Gets details of a single customer
|
|
542
578
|
|
|
@@ -579,8 +615,10 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
579
615
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
580
616
|
should be retried.
|
|
581
617
|
timeout (float): The timeout for this request.
|
|
582
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
583
|
-
sent along with the request as metadata.
|
|
618
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
619
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
620
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
621
|
+
be of type `bytes`.
|
|
584
622
|
|
|
585
623
|
Returns:
|
|
586
624
|
google.cloud.cloudcontrolspartner_v1.types.Customer:
|
|
@@ -641,7 +679,7 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
641
679
|
parent: Optional[str] = None,
|
|
642
680
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
643
681
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
644
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
682
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
645
683
|
) -> pagers.ListCustomersAsyncPager:
|
|
646
684
|
r"""Lists customers of a partner identified by its Google
|
|
647
685
|
Cloud organization ID
|
|
@@ -686,8 +724,10 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
686
724
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
687
725
|
should be retried.
|
|
688
726
|
timeout (float): The timeout for this request.
|
|
689
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
690
|
-
sent along with the request as metadata.
|
|
727
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
728
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
729
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
730
|
+
be of type `bytes`.
|
|
691
731
|
|
|
692
732
|
Returns:
|
|
693
733
|
google.cloud.cloudcontrolspartner_v1.services.cloud_controls_partner_core.pagers.ListCustomersAsyncPager:
|
|
@@ -762,7 +802,7 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
762
802
|
name: Optional[str] = None,
|
|
763
803
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
764
804
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
765
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
805
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
766
806
|
) -> ekm_connections.EkmConnections:
|
|
767
807
|
r"""Gets the EKM connections associated with a workload
|
|
768
808
|
|
|
@@ -806,8 +846,10 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
806
846
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
807
847
|
should be retried.
|
|
808
848
|
timeout (float): The timeout for this request.
|
|
809
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
810
|
-
sent along with the request as metadata.
|
|
849
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
850
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
851
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
852
|
+
be of type `bytes`.
|
|
811
853
|
|
|
812
854
|
Returns:
|
|
813
855
|
google.cloud.cloudcontrolspartner_v1.types.EkmConnections:
|
|
@@ -870,7 +912,7 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
870
912
|
name: Optional[str] = None,
|
|
871
913
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
872
914
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
873
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
915
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
874
916
|
) -> partner_permissions.PartnerPermissions:
|
|
875
917
|
r"""Gets the partner permissions granted for a workload
|
|
876
918
|
|
|
@@ -914,8 +956,10 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
914
956
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
915
957
|
should be retried.
|
|
916
958
|
timeout (float): The timeout for this request.
|
|
917
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
918
|
-
sent along with the request as metadata.
|
|
959
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
960
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
961
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
962
|
+
be of type `bytes`.
|
|
919
963
|
|
|
920
964
|
Returns:
|
|
921
965
|
google.cloud.cloudcontrolspartner_v1.types.PartnerPermissions:
|
|
@@ -978,7 +1022,7 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
978
1022
|
parent: Optional[str] = None,
|
|
979
1023
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
980
1024
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
981
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1025
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
982
1026
|
) -> pagers.ListAccessApprovalRequestsAsyncPager:
|
|
983
1027
|
r"""Deprecated: Only returns access approval requests
|
|
984
1028
|
directly associated with an assured workload folder.
|
|
@@ -1024,8 +1068,10 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
1024
1068
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1025
1069
|
should be retried.
|
|
1026
1070
|
timeout (float): The timeout for this request.
|
|
1027
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1028
|
-
sent along with the request as metadata.
|
|
1071
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
1072
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
1073
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
1074
|
+
be of type `bytes`.
|
|
1029
1075
|
|
|
1030
1076
|
Returns:
|
|
1031
1077
|
google.cloud.cloudcontrolspartner_v1.services.cloud_controls_partner_core.pagers.ListAccessApprovalRequestsAsyncPager:
|
|
@@ -1109,7 +1155,7 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
1109
1155
|
name: Optional[str] = None,
|
|
1110
1156
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1111
1157
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1112
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1158
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1113
1159
|
) -> partners.Partner:
|
|
1114
1160
|
r"""Get details of a Partner.
|
|
1115
1161
|
|
|
@@ -1152,8 +1198,10 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
1152
1198
|
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1153
1199
|
should be retried.
|
|
1154
1200
|
timeout (float): The timeout for this request.
|
|
1155
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1156
|
-
sent along with the request as metadata.
|
|
1201
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
1202
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
1203
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
1204
|
+
be of type `bytes`.
|
|
1157
1205
|
|
|
1158
1206
|
Returns:
|
|
1159
1207
|
google.cloud.cloudcontrolspartner_v1.types.Partner:
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
16
|
from collections import OrderedDict
|
|
17
|
+
import logging as std_logging
|
|
17
18
|
import os
|
|
18
19
|
import re
|
|
19
20
|
from typing import (
|
|
@@ -48,6 +49,15 @@ try:
|
|
|
48
49
|
except AttributeError: # pragma: NO COVER
|
|
49
50
|
OptionalRetry = Union[retries.Retry, object, None] # type: ignore
|
|
50
51
|
|
|
52
|
+
try:
|
|
53
|
+
from google.api_core import client_logging # type: ignore
|
|
54
|
+
|
|
55
|
+
CLIENT_LOGGING_SUPPORTED = True # pragma: NO COVER
|
|
56
|
+
except ImportError: # pragma: NO COVER
|
|
57
|
+
CLIENT_LOGGING_SUPPORTED = False
|
|
58
|
+
|
|
59
|
+
_LOGGER = std_logging.getLogger(__name__)
|
|
60
|
+
|
|
51
61
|
from google.protobuf import timestamp_pb2 # type: ignore
|
|
52
62
|
|
|
53
63
|
from google.cloud.cloudcontrolspartner_v1.services.cloud_controls_partner_core import (
|
|
@@ -592,36 +602,6 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
592
602
|
raise ValueError("Universe Domain cannot be an empty string.")
|
|
593
603
|
return universe_domain
|
|
594
604
|
|
|
595
|
-
@staticmethod
|
|
596
|
-
def _compare_universes(
|
|
597
|
-
client_universe: str, credentials: ga_credentials.Credentials
|
|
598
|
-
) -> bool:
|
|
599
|
-
"""Returns True iff the universe domains used by the client and credentials match.
|
|
600
|
-
|
|
601
|
-
Args:
|
|
602
|
-
client_universe (str): The universe domain configured via the client options.
|
|
603
|
-
credentials (ga_credentials.Credentials): The credentials being used in the client.
|
|
604
|
-
|
|
605
|
-
Returns:
|
|
606
|
-
bool: True iff client_universe matches the universe in credentials.
|
|
607
|
-
|
|
608
|
-
Raises:
|
|
609
|
-
ValueError: when client_universe does not match the universe in credentials.
|
|
610
|
-
"""
|
|
611
|
-
|
|
612
|
-
default_universe = CloudControlsPartnerCoreClient._DEFAULT_UNIVERSE
|
|
613
|
-
credentials_universe = getattr(credentials, "universe_domain", default_universe)
|
|
614
|
-
|
|
615
|
-
if client_universe != credentials_universe:
|
|
616
|
-
raise ValueError(
|
|
617
|
-
"The configured universe domain "
|
|
618
|
-
f"({client_universe}) does not match the universe domain "
|
|
619
|
-
f"found in the credentials ({credentials_universe}). "
|
|
620
|
-
"If you haven't configured the universe domain explicitly, "
|
|
621
|
-
f"`{default_universe}` is the default."
|
|
622
|
-
)
|
|
623
|
-
return True
|
|
624
|
-
|
|
625
605
|
def _validate_universe_domain(self):
|
|
626
606
|
"""Validates client's and credentials' universe domains are consistent.
|
|
627
607
|
|
|
@@ -631,13 +611,9 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
631
611
|
Raises:
|
|
632
612
|
ValueError: If the configured universe domain is not valid.
|
|
633
613
|
"""
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
self.universe_domain, self.transport._credentials
|
|
638
|
-
)
|
|
639
|
-
)
|
|
640
|
-
return self._is_universe_domain_valid
|
|
614
|
+
|
|
615
|
+
# NOTE (b/349488459): universe validation is disabled until further notice.
|
|
616
|
+
return True
|
|
641
617
|
|
|
642
618
|
@property
|
|
643
619
|
def api_endpoint(self):
|
|
@@ -749,6 +725,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
749
725
|
# Initialize the universe domain validation.
|
|
750
726
|
self._is_universe_domain_valid = False
|
|
751
727
|
|
|
728
|
+
if CLIENT_LOGGING_SUPPORTED: # pragma: NO COVER
|
|
729
|
+
# Setup logging.
|
|
730
|
+
client_logging.initialize_logging()
|
|
731
|
+
|
|
752
732
|
api_key_value = getattr(self._client_options, "api_key", None)
|
|
753
733
|
if api_key_value and credentials:
|
|
754
734
|
raise ValueError(
|
|
@@ -815,6 +795,29 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
815
795
|
api_audience=self._client_options.api_audience,
|
|
816
796
|
)
|
|
817
797
|
|
|
798
|
+
if "async" not in str(self._transport):
|
|
799
|
+
if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor(
|
|
800
|
+
std_logging.DEBUG
|
|
801
|
+
): # pragma: NO COVER
|
|
802
|
+
_LOGGER.debug(
|
|
803
|
+
"Created client `google.cloud.cloudcontrolspartner_v1.CloudControlsPartnerCoreClient`.",
|
|
804
|
+
extra={
|
|
805
|
+
"serviceName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore",
|
|
806
|
+
"universeDomain": getattr(
|
|
807
|
+
self._transport._credentials, "universe_domain", ""
|
|
808
|
+
),
|
|
809
|
+
"credentialsType": f"{type(self._transport._credentials).__module__}.{type(self._transport._credentials).__qualname__}",
|
|
810
|
+
"credentialsInfo": getattr(
|
|
811
|
+
self.transport._credentials, "get_cred_info", lambda: None
|
|
812
|
+
)(),
|
|
813
|
+
}
|
|
814
|
+
if hasattr(self._transport, "_credentials")
|
|
815
|
+
else {
|
|
816
|
+
"serviceName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore",
|
|
817
|
+
"credentialsType": None,
|
|
818
|
+
},
|
|
819
|
+
)
|
|
820
|
+
|
|
818
821
|
def get_workload(
|
|
819
822
|
self,
|
|
820
823
|
request: Optional[Union[customer_workloads.GetWorkloadRequest, dict]] = None,
|
|
@@ -822,7 +825,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
822
825
|
name: Optional[str] = None,
|
|
823
826
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
824
827
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
825
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
828
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
826
829
|
) -> customer_workloads.Workload:
|
|
827
830
|
r"""Gets details of a single workload
|
|
828
831
|
|
|
@@ -866,8 +869,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
866
869
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
867
870
|
should be retried.
|
|
868
871
|
timeout (float): The timeout for this request.
|
|
869
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
870
|
-
sent along with the request as metadata.
|
|
872
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
873
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
874
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
875
|
+
be of type `bytes`.
|
|
871
876
|
|
|
872
877
|
Returns:
|
|
873
878
|
google.cloud.cloudcontrolspartner_v1.types.Workload:
|
|
@@ -926,7 +931,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
926
931
|
parent: Optional[str] = None,
|
|
927
932
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
928
933
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
929
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
934
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
930
935
|
) -> pagers.ListWorkloadsPager:
|
|
931
936
|
r"""Lists customer workloads for a given customer org id
|
|
932
937
|
|
|
@@ -970,8 +975,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
970
975
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
971
976
|
should be retried.
|
|
972
977
|
timeout (float): The timeout for this request.
|
|
973
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
974
|
-
sent along with the request as metadata.
|
|
978
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
979
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
980
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
981
|
+
be of type `bytes`.
|
|
975
982
|
|
|
976
983
|
Returns:
|
|
977
984
|
google.cloud.cloudcontrolspartner_v1.services.cloud_controls_partner_core.pagers.ListWorkloadsPager:
|
|
@@ -1043,7 +1050,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1043
1050
|
name: Optional[str] = None,
|
|
1044
1051
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1045
1052
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1046
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1053
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1047
1054
|
) -> customers.Customer:
|
|
1048
1055
|
r"""Gets details of a single customer
|
|
1049
1056
|
|
|
@@ -1086,8 +1093,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1086
1093
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
1087
1094
|
should be retried.
|
|
1088
1095
|
timeout (float): The timeout for this request.
|
|
1089
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1090
|
-
sent along with the request as metadata.
|
|
1096
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
1097
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
1098
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
1099
|
+
be of type `bytes`.
|
|
1091
1100
|
|
|
1092
1101
|
Returns:
|
|
1093
1102
|
google.cloud.cloudcontrolspartner_v1.types.Customer:
|
|
@@ -1145,7 +1154,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1145
1154
|
parent: Optional[str] = None,
|
|
1146
1155
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1147
1156
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1148
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1157
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1149
1158
|
) -> pagers.ListCustomersPager:
|
|
1150
1159
|
r"""Lists customers of a partner identified by its Google
|
|
1151
1160
|
Cloud organization ID
|
|
@@ -1190,8 +1199,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1190
1199
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
1191
1200
|
should be retried.
|
|
1192
1201
|
timeout (float): The timeout for this request.
|
|
1193
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1194
|
-
sent along with the request as metadata.
|
|
1202
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
1203
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
1204
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
1205
|
+
be of type `bytes`.
|
|
1195
1206
|
|
|
1196
1207
|
Returns:
|
|
1197
1208
|
google.cloud.cloudcontrolspartner_v1.services.cloud_controls_partner_core.pagers.ListCustomersPager:
|
|
@@ -1263,7 +1274,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1263
1274
|
name: Optional[str] = None,
|
|
1264
1275
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1265
1276
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1266
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1277
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1267
1278
|
) -> ekm_connections.EkmConnections:
|
|
1268
1279
|
r"""Gets the EKM connections associated with a workload
|
|
1269
1280
|
|
|
@@ -1307,8 +1318,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1307
1318
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
1308
1319
|
should be retried.
|
|
1309
1320
|
timeout (float): The timeout for this request.
|
|
1310
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1311
|
-
sent along with the request as metadata.
|
|
1321
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
1322
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
1323
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
1324
|
+
be of type `bytes`.
|
|
1312
1325
|
|
|
1313
1326
|
Returns:
|
|
1314
1327
|
google.cloud.cloudcontrolspartner_v1.types.EkmConnections:
|
|
@@ -1368,7 +1381,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1368
1381
|
name: Optional[str] = None,
|
|
1369
1382
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1370
1383
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1371
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1384
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1372
1385
|
) -> partner_permissions.PartnerPermissions:
|
|
1373
1386
|
r"""Gets the partner permissions granted for a workload
|
|
1374
1387
|
|
|
@@ -1412,8 +1425,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1412
1425
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
1413
1426
|
should be retried.
|
|
1414
1427
|
timeout (float): The timeout for this request.
|
|
1415
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1416
|
-
sent along with the request as metadata.
|
|
1428
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
1429
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
1430
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
1431
|
+
be of type `bytes`.
|
|
1417
1432
|
|
|
1418
1433
|
Returns:
|
|
1419
1434
|
google.cloud.cloudcontrolspartner_v1.types.PartnerPermissions:
|
|
@@ -1473,7 +1488,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1473
1488
|
parent: Optional[str] = None,
|
|
1474
1489
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1475
1490
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1476
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1491
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1477
1492
|
) -> pagers.ListAccessApprovalRequestsPager:
|
|
1478
1493
|
r"""Deprecated: Only returns access approval requests
|
|
1479
1494
|
directly associated with an assured workload folder.
|
|
@@ -1519,8 +1534,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1519
1534
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
1520
1535
|
should be retried.
|
|
1521
1536
|
timeout (float): The timeout for this request.
|
|
1522
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1523
|
-
sent along with the request as metadata.
|
|
1537
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
1538
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
1539
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
1540
|
+
be of type `bytes`.
|
|
1524
1541
|
|
|
1525
1542
|
Returns:
|
|
1526
1543
|
google.cloud.cloudcontrolspartner_v1.services.cloud_controls_partner_core.pagers.ListAccessApprovalRequestsPager:
|
|
@@ -1603,7 +1620,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1603
1620
|
name: Optional[str] = None,
|
|
1604
1621
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1605
1622
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1606
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1623
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1607
1624
|
) -> partners.Partner:
|
|
1608
1625
|
r"""Get details of a Partner.
|
|
1609
1626
|
|
|
@@ -1646,8 +1663,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1646
1663
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
1647
1664
|
should be retried.
|
|
1648
1665
|
timeout (float): The timeout for this request.
|
|
1649
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1650
|
-
sent along with the request as metadata.
|
|
1666
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
1667
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
1668
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
1669
|
+
be of type `bytes`.
|
|
1651
1670
|
|
|
1652
1671
|
Returns:
|
|
1653
1672
|
google.cloud.cloudcontrolspartner_v1.types.Partner:
|