google-cloud-cloudcontrolspartner 0.2.2__tar.gz → 0.2.4__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.2/google_cloud_cloudcontrolspartner.egg-info → google_cloud_cloudcontrolspartner-0.2.4}/PKG-INFO +1 -1
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner/gapic_version.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.2/google/cloud/cloudcontrolspartner_v1beta → google_cloud_cloudcontrolspartner-0.2.4/google/cloud/cloudcontrolspartner_v1}/gapic_version.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/async_client.py +72 -24
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/client.py +77 -24
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/pagers.py +30 -18
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/grpc.py +96 -10
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/grpc_asyncio.py +95 -10
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/rest.py +483 -41
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/async_client.py +42 -6
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/client.py +47 -6
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/pagers.py +10 -6
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/grpc.py +90 -4
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/grpc_asyncio.py +89 -4
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/rest.py +127 -11
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/__init__.py +6 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/gapic_metadata.json +45 -0
- {google_cloud_cloudcontrolspartner-0.2.2/google/cloud/cloudcontrolspartner_v1 → google_cloud_cloudcontrolspartner-0.2.4/google/cloud/cloudcontrolspartner_v1beta}/gapic_version.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/async_client.py +423 -24
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/client.py +419 -24
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/pagers.py +30 -18
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/base.py +43 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/grpc.py +175 -10
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/grpc_asyncio.py +189 -10
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/rest.py +999 -41
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/rest_base.py +164 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/async_client.py +42 -6
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/client.py +47 -6
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/pagers.py +10 -6
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/grpc.py +90 -4
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/grpc_asyncio.py +89 -4
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/rest.py +127 -11
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/types/__init__.py +6 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/types/core.py +4 -3
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/types/customers.py +82 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/types/partners.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4/google_cloud_cloudcontrolspartner.egg-info}/PKG-INFO +1 -1
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/tests/unit/gapic/cloudcontrolspartner_v1/test_cloud_controls_partner_core.py +40 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/tests/unit/gapic/cloudcontrolspartner_v1/test_cloud_controls_partner_monitoring.py +10 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/tests/unit/gapic/cloudcontrolspartner_v1beta/test_cloud_controls_partner_core.py +3869 -1504
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/tests/unit/gapic/cloudcontrolspartner_v1beta/test_cloud_controls_partner_monitoring.py +10 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/LICENSE +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/MANIFEST.in +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/README.rst +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner/py.typed +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/gapic_metadata.json +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/py.typed +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/rest_base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/rest_base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/types/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/types/access_approval_requests.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/types/completion_state.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/types/core.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/types/customer_workloads.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/types/customers.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/types/ekm_connections.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/types/monitoring.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/types/partner_permissions.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/types/partners.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1/types/violations.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/py.typed +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/rest_base.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/types/access_approval_requests.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/types/completion_state.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/types/customer_workloads.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/types/ekm_connections.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/types/monitoring.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/types/partner_permissions.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google/cloud/cloudcontrolspartner_v1beta/types/violations.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google_cloud_cloudcontrolspartner.egg-info/SOURCES.txt +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google_cloud_cloudcontrolspartner.egg-info/dependency_links.txt +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google_cloud_cloudcontrolspartner.egg-info/not-zip-safe +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google_cloud_cloudcontrolspartner.egg-info/requires.txt +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/google_cloud_cloudcontrolspartner.egg-info/top_level.txt +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/setup.cfg +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/setup.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/tests/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/tests/unit/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/tests/unit/gapic/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/tests/unit/gapic/cloudcontrolspartner_v1/__init__.py +0 -0
- {google_cloud_cloudcontrolspartner-0.2.2 → google_cloud_cloudcontrolspartner-0.2.4}/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.4
|
|
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 (
|
|
@@ -715,6 +725,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
715
725
|
# Initialize the universe domain validation.
|
|
716
726
|
self._is_universe_domain_valid = False
|
|
717
727
|
|
|
728
|
+
if CLIENT_LOGGING_SUPPORTED: # pragma: NO COVER
|
|
729
|
+
# Setup logging.
|
|
730
|
+
client_logging.initialize_logging()
|
|
731
|
+
|
|
718
732
|
api_key_value = getattr(self._client_options, "api_key", None)
|
|
719
733
|
if api_key_value and credentials:
|
|
720
734
|
raise ValueError(
|
|
@@ -781,6 +795,29 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
781
795
|
api_audience=self._client_options.api_audience,
|
|
782
796
|
)
|
|
783
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
|
+
|
|
784
821
|
def get_workload(
|
|
785
822
|
self,
|
|
786
823
|
request: Optional[Union[customer_workloads.GetWorkloadRequest, dict]] = None,
|
|
@@ -788,7 +825,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
788
825
|
name: Optional[str] = None,
|
|
789
826
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
790
827
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
791
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
828
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
792
829
|
) -> customer_workloads.Workload:
|
|
793
830
|
r"""Gets details of a single workload
|
|
794
831
|
|
|
@@ -832,8 +869,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
832
869
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
833
870
|
should be retried.
|
|
834
871
|
timeout (float): The timeout for this request.
|
|
835
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
836
|
-
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`.
|
|
837
876
|
|
|
838
877
|
Returns:
|
|
839
878
|
google.cloud.cloudcontrolspartner_v1.types.Workload:
|
|
@@ -892,7 +931,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
892
931
|
parent: Optional[str] = None,
|
|
893
932
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
894
933
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
895
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
934
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
896
935
|
) -> pagers.ListWorkloadsPager:
|
|
897
936
|
r"""Lists customer workloads for a given customer org id
|
|
898
937
|
|
|
@@ -936,8 +975,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
936
975
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
937
976
|
should be retried.
|
|
938
977
|
timeout (float): The timeout for this request.
|
|
939
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
940
|
-
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`.
|
|
941
982
|
|
|
942
983
|
Returns:
|
|
943
984
|
google.cloud.cloudcontrolspartner_v1.services.cloud_controls_partner_core.pagers.ListWorkloadsPager:
|
|
@@ -1009,7 +1050,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1009
1050
|
name: Optional[str] = None,
|
|
1010
1051
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1011
1052
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1012
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1053
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1013
1054
|
) -> customers.Customer:
|
|
1014
1055
|
r"""Gets details of a single customer
|
|
1015
1056
|
|
|
@@ -1052,8 +1093,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1052
1093
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
1053
1094
|
should be retried.
|
|
1054
1095
|
timeout (float): The timeout for this request.
|
|
1055
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1056
|
-
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`.
|
|
1057
1100
|
|
|
1058
1101
|
Returns:
|
|
1059
1102
|
google.cloud.cloudcontrolspartner_v1.types.Customer:
|
|
@@ -1111,7 +1154,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1111
1154
|
parent: Optional[str] = None,
|
|
1112
1155
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1113
1156
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1114
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1157
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1115
1158
|
) -> pagers.ListCustomersPager:
|
|
1116
1159
|
r"""Lists customers of a partner identified by its Google
|
|
1117
1160
|
Cloud organization ID
|
|
@@ -1156,8 +1199,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1156
1199
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
1157
1200
|
should be retried.
|
|
1158
1201
|
timeout (float): The timeout for this request.
|
|
1159
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1160
|
-
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`.
|
|
1161
1206
|
|
|
1162
1207
|
Returns:
|
|
1163
1208
|
google.cloud.cloudcontrolspartner_v1.services.cloud_controls_partner_core.pagers.ListCustomersPager:
|
|
@@ -1229,7 +1274,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1229
1274
|
name: Optional[str] = None,
|
|
1230
1275
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1231
1276
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1232
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1277
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1233
1278
|
) -> ekm_connections.EkmConnections:
|
|
1234
1279
|
r"""Gets the EKM connections associated with a workload
|
|
1235
1280
|
|
|
@@ -1273,8 +1318,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1273
1318
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
1274
1319
|
should be retried.
|
|
1275
1320
|
timeout (float): The timeout for this request.
|
|
1276
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1277
|
-
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`.
|
|
1278
1325
|
|
|
1279
1326
|
Returns:
|
|
1280
1327
|
google.cloud.cloudcontrolspartner_v1.types.EkmConnections:
|
|
@@ -1334,7 +1381,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1334
1381
|
name: Optional[str] = None,
|
|
1335
1382
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1336
1383
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1337
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1384
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1338
1385
|
) -> partner_permissions.PartnerPermissions:
|
|
1339
1386
|
r"""Gets the partner permissions granted for a workload
|
|
1340
1387
|
|
|
@@ -1378,8 +1425,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1378
1425
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
1379
1426
|
should be retried.
|
|
1380
1427
|
timeout (float): The timeout for this request.
|
|
1381
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1382
|
-
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`.
|
|
1383
1432
|
|
|
1384
1433
|
Returns:
|
|
1385
1434
|
google.cloud.cloudcontrolspartner_v1.types.PartnerPermissions:
|
|
@@ -1439,7 +1488,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1439
1488
|
parent: Optional[str] = None,
|
|
1440
1489
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1441
1490
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1442
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1491
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1443
1492
|
) -> pagers.ListAccessApprovalRequestsPager:
|
|
1444
1493
|
r"""Deprecated: Only returns access approval requests
|
|
1445
1494
|
directly associated with an assured workload folder.
|
|
@@ -1485,8 +1534,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1485
1534
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
1486
1535
|
should be retried.
|
|
1487
1536
|
timeout (float): The timeout for this request.
|
|
1488
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1489
|
-
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`.
|
|
1490
1541
|
|
|
1491
1542
|
Returns:
|
|
1492
1543
|
google.cloud.cloudcontrolspartner_v1.services.cloud_controls_partner_core.pagers.ListAccessApprovalRequestsPager:
|
|
@@ -1569,7 +1620,7 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1569
1620
|
name: Optional[str] = None,
|
|
1570
1621
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1571
1622
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1572
|
-
metadata: Sequence[Tuple[str, str]] = (),
|
|
1623
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1573
1624
|
) -> partners.Partner:
|
|
1574
1625
|
r"""Get details of a Partner.
|
|
1575
1626
|
|
|
@@ -1612,8 +1663,10 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
|
|
|
1612
1663
|
retry (google.api_core.retry.Retry): Designation of what errors, if any,
|
|
1613
1664
|
should be retried.
|
|
1614
1665
|
timeout (float): The timeout for this request.
|
|
1615
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
1616
|
-
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`.
|
|
1617
1670
|
|
|
1618
1671
|
Returns:
|
|
1619
1672
|
google.cloud.cloudcontrolspartner_v1.types.Partner:
|
|
@@ -71,7 +71,7 @@ class ListWorkloadsPager:
|
|
|
71
71
|
*,
|
|
72
72
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
73
73
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
74
|
-
metadata: Sequence[Tuple[str, str]] = ()
|
|
74
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
|
|
75
75
|
):
|
|
76
76
|
"""Instantiate the pager.
|
|
77
77
|
|
|
@@ -85,8 +85,10 @@ class ListWorkloadsPager:
|
|
|
85
85
|
retry (google.api_core.retry.Retry): Designation of what errors,
|
|
86
86
|
if any, should be retried.
|
|
87
87
|
timeout (float): The timeout for this request.
|
|
88
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
89
|
-
sent along with the request as metadata.
|
|
88
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
89
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
90
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
91
|
+
be of type `bytes`.
|
|
90
92
|
"""
|
|
91
93
|
self._method = method
|
|
92
94
|
self._request = customer_workloads.ListWorkloadsRequest(request)
|
|
@@ -145,7 +147,7 @@ class ListWorkloadsAsyncPager:
|
|
|
145
147
|
*,
|
|
146
148
|
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
|
|
147
149
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
148
|
-
metadata: Sequence[Tuple[str, str]] = ()
|
|
150
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
|
|
149
151
|
):
|
|
150
152
|
"""Instantiates the pager.
|
|
151
153
|
|
|
@@ -159,8 +161,10 @@ class ListWorkloadsAsyncPager:
|
|
|
159
161
|
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
|
|
160
162
|
if any, should be retried.
|
|
161
163
|
timeout (float): The timeout for this request.
|
|
162
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
163
|
-
sent along with the request as metadata.
|
|
164
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
165
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
166
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
167
|
+
be of type `bytes`.
|
|
164
168
|
"""
|
|
165
169
|
self._method = method
|
|
166
170
|
self._request = customer_workloads.ListWorkloadsRequest(request)
|
|
@@ -223,7 +227,7 @@ class ListCustomersPager:
|
|
|
223
227
|
*,
|
|
224
228
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
225
229
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
226
|
-
metadata: Sequence[Tuple[str, str]] = ()
|
|
230
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
|
|
227
231
|
):
|
|
228
232
|
"""Instantiate the pager.
|
|
229
233
|
|
|
@@ -237,8 +241,10 @@ class ListCustomersPager:
|
|
|
237
241
|
retry (google.api_core.retry.Retry): Designation of what errors,
|
|
238
242
|
if any, should be retried.
|
|
239
243
|
timeout (float): The timeout for this request.
|
|
240
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
241
|
-
sent along with the request as metadata.
|
|
244
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
245
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
246
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
247
|
+
be of type `bytes`.
|
|
242
248
|
"""
|
|
243
249
|
self._method = method
|
|
244
250
|
self._request = customers.ListCustomersRequest(request)
|
|
@@ -297,7 +303,7 @@ class ListCustomersAsyncPager:
|
|
|
297
303
|
*,
|
|
298
304
|
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
|
|
299
305
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
300
|
-
metadata: Sequence[Tuple[str, str]] = ()
|
|
306
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
|
|
301
307
|
):
|
|
302
308
|
"""Instantiates the pager.
|
|
303
309
|
|
|
@@ -311,8 +317,10 @@ class ListCustomersAsyncPager:
|
|
|
311
317
|
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
|
|
312
318
|
if any, should be retried.
|
|
313
319
|
timeout (float): The timeout for this request.
|
|
314
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
315
|
-
sent along with the request as metadata.
|
|
320
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
321
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
322
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
323
|
+
be of type `bytes`.
|
|
316
324
|
"""
|
|
317
325
|
self._method = method
|
|
318
326
|
self._request = customers.ListCustomersRequest(request)
|
|
@@ -377,7 +385,7 @@ class ListAccessApprovalRequestsPager:
|
|
|
377
385
|
*,
|
|
378
386
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
379
387
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
380
|
-
metadata: Sequence[Tuple[str, str]] = ()
|
|
388
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
|
|
381
389
|
):
|
|
382
390
|
"""Instantiate the pager.
|
|
383
391
|
|
|
@@ -391,8 +399,10 @@ class ListAccessApprovalRequestsPager:
|
|
|
391
399
|
retry (google.api_core.retry.Retry): Designation of what errors,
|
|
392
400
|
if any, should be retried.
|
|
393
401
|
timeout (float): The timeout for this request.
|
|
394
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
395
|
-
sent along with the request as metadata.
|
|
402
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
403
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
404
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
405
|
+
be of type `bytes`.
|
|
396
406
|
"""
|
|
397
407
|
self._method = method
|
|
398
408
|
self._request = access_approval_requests.ListAccessApprovalRequestsRequest(
|
|
@@ -457,7 +467,7 @@ class ListAccessApprovalRequestsAsyncPager:
|
|
|
457
467
|
*,
|
|
458
468
|
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
|
|
459
469
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
460
|
-
metadata: Sequence[Tuple[str, str]] = ()
|
|
470
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
|
|
461
471
|
):
|
|
462
472
|
"""Instantiates the pager.
|
|
463
473
|
|
|
@@ -471,8 +481,10 @@ class ListAccessApprovalRequestsAsyncPager:
|
|
|
471
481
|
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
|
|
472
482
|
if any, should be retried.
|
|
473
483
|
timeout (float): The timeout for this request.
|
|
474
|
-
metadata (Sequence[Tuple[str, str]]):
|
|
475
|
-
sent along with the request as metadata.
|
|
484
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
485
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
486
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
487
|
+
be of type `bytes`.
|
|
476
488
|
"""
|
|
477
489
|
self._method = method
|
|
478
490
|
self._request = access_approval_requests.ListAccessApprovalRequestsRequest(
|