google-cloud-cloudcontrolspartner 0.2.6__tar.gz → 0.2.7__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.7/MANIFEST.in +20 -0
- {google_cloud_cloudcontrolspartner-0.2.6/google_cloud_cloudcontrolspartner.egg-info → google_cloud_cloudcontrolspartner-0.2.7}/PKG-INFO +3 -3
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/README.rst +2 -2
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner/__init__.py +7 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner/gapic_version.py +2 -2
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/__init__.py +7 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/gapic_metadata.json +45 -0
- {google_cloud_cloudcontrolspartner-0.2.6/google/cloud/cloudcontrolspartner_v1beta → google_cloud_cloudcontrolspartner-0.2.7/google/cloud/cloudcontrolspartner_v1}/gapic_version.py +2 -2
- {google_cloud_cloudcontrolspartner-0.2.6/google/cloud/cloudcontrolspartner_v1beta → google_cloud_cloudcontrolspartner-0.2.7/google/cloud/cloudcontrolspartner_v1}/services/__init__.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/__init__.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/async_client.py +365 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/client.py +355 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/pagers.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6/google/cloud/cloudcontrolspartner_v1beta → google_cloud_cloudcontrolspartner-0.2.7/google/cloud/cloudcontrolspartner_v1}/services/cloud_controls_partner_core/transports/__init__.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/base.py +48 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/grpc.py +81 -3
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/grpc_asyncio.py +95 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/rest.py +575 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/rest_base.py +165 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/__init__.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/async_client.py +5 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/client.py +4 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/pagers.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/__init__.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/base.py +5 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/grpc.py +2 -3
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/grpc_asyncio.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/rest.py +5 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/rest_base.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6/google/cloud/cloudcontrolspartner_v1beta → google_cloud_cloudcontrolspartner-0.2.7/google/cloud/cloudcontrolspartner_v1}/types/__init__.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/types/access_approval_requests.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/types/completion_state.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/types/core.py +5 -4
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/types/customer_workloads.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/types/customers.py +83 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/types/ekm_connections.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/types/monitoring.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/types/partner_permissions.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/types/partners.py +2 -2
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/types/violations.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/__init__.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6/google/cloud/cloudcontrolspartner_v1 → google_cloud_cloudcontrolspartner-0.2.7/google/cloud/cloudcontrolspartner_v1beta}/gapic_version.py +2 -2
- {google_cloud_cloudcontrolspartner-0.2.6/tests → google_cloud_cloudcontrolspartner-0.2.7/google/cloud/cloudcontrolspartner_v1beta/services}/__init__.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/__init__.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/async_client.py +5 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/client.py +4 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/pagers.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6/google/cloud/cloudcontrolspartner_v1 → google_cloud_cloudcontrolspartner-0.2.7/google/cloud/cloudcontrolspartner_v1beta}/services/cloud_controls_partner_core/transports/__init__.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/base.py +5 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/grpc.py +2 -3
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/grpc_asyncio.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/rest.py +5 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/rest_base.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/__init__.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/async_client.py +5 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/client.py +4 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/pagers.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/__init__.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/base.py +5 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/grpc.py +2 -3
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/grpc_asyncio.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/rest.py +5 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/rest_base.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6/google/cloud/cloudcontrolspartner_v1 → google_cloud_cloudcontrolspartner-0.2.7/google/cloud/cloudcontrolspartner_v1beta}/types/__init__.py +7 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/types/access_approval_requests.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/types/completion_state.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/types/core.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/types/customer_workloads.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/types/customers.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/types/ekm_connections.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/types/monitoring.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/types/partner_permissions.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/types/partners.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/types/violations.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7/google_cloud_cloudcontrolspartner.egg-info}/PKG-INFO +3 -3
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/setup.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6/tests/unit → google_cloud_cloudcontrolspartner-0.2.7/tests}/__init__.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6/google/cloud/cloudcontrolspartner_v1/services → google_cloud_cloudcontrolspartner-0.2.7/tests/unit}/__init__.py +1 -1
- google_cloud_cloudcontrolspartner-0.2.7/tests/unit/gapic/__init__.py +15 -0
- google_cloud_cloudcontrolspartner-0.2.7/tests/unit/gapic/cloudcontrolspartner_v1/__init__.py +15 -0
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/tests/unit/gapic/cloudcontrolspartner_v1/test_cloud_controls_partner_core.py +3901 -1564
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/tests/unit/gapic/cloudcontrolspartner_v1/test_cloud_controls_partner_monitoring.py +1 -1
- google_cloud_cloudcontrolspartner-0.2.7/tests/unit/gapic/cloudcontrolspartner_v1beta/__init__.py +15 -0
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/tests/unit/gapic/cloudcontrolspartner_v1beta/test_cloud_controls_partner_core.py +1 -1
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/tests/unit/gapic/cloudcontrolspartner_v1beta/test_cloud_controls_partner_monitoring.py +1 -1
- google_cloud_cloudcontrolspartner-0.2.6/MANIFEST.in +0 -25
- google_cloud_cloudcontrolspartner-0.2.6/tests/unit/gapic/__init__.py +0 -15
- google_cloud_cloudcontrolspartner-0.2.6/tests/unit/gapic/cloudcontrolspartner_v1/__init__.py +0 -15
- google_cloud_cloudcontrolspartner-0.2.6/tests/unit/gapic/cloudcontrolspartner_v1beta/__init__.py +0 -15
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/LICENSE +0 -0
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner/py.typed +0 -0
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1/py.typed +0 -0
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/gapic_metadata.json +0 -0
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google/cloud/cloudcontrolspartner_v1beta/py.typed +0 -0
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google_cloud_cloudcontrolspartner.egg-info/SOURCES.txt +0 -0
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google_cloud_cloudcontrolspartner.egg-info/dependency_links.txt +0 -0
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google_cloud_cloudcontrolspartner.egg-info/not-zip-safe +0 -0
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google_cloud_cloudcontrolspartner.egg-info/requires.txt +0 -0
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/google_cloud_cloudcontrolspartner.egg-info/top_level.txt +0 -0
- {google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/setup.cfg +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
#
|
|
16
|
+
include README.rst LICENSE
|
|
17
|
+
recursive-include google *.py *.pyi *.json *.proto py.typed
|
|
18
|
+
recursive-include tests *
|
|
19
|
+
global-exclude *.py[co]
|
|
20
|
+
global-exclude __pycache__
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-cloudcontrolspartner
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
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
|
|
@@ -193,7 +193,7 @@ Code-Based Examples
|
|
|
193
193
|
|
|
194
194
|
import logging
|
|
195
195
|
|
|
196
|
-
from google.cloud
|
|
196
|
+
from google.cloud import library_v1
|
|
197
197
|
|
|
198
198
|
base_logger = logging.getLogger("google")
|
|
199
199
|
base_logger.addHandler(logging.StreamHandler())
|
|
@@ -205,7 +205,7 @@ Code-Based Examples
|
|
|
205
205
|
|
|
206
206
|
import logging
|
|
207
207
|
|
|
208
|
-
from google.cloud
|
|
208
|
+
from google.cloud import library_v1
|
|
209
209
|
|
|
210
210
|
base_logger = logging.getLogger("google.cloud.library_v1")
|
|
211
211
|
base_logger.addHandler(logging.StreamHandler())
|
{google_cloud_cloudcontrolspartner-0.2.6 → google_cloud_cloudcontrolspartner-0.2.7}/README.rst
RENAMED
|
@@ -162,7 +162,7 @@ Code-Based Examples
|
|
|
162
162
|
|
|
163
163
|
import logging
|
|
164
164
|
|
|
165
|
-
from google.cloud
|
|
165
|
+
from google.cloud import library_v1
|
|
166
166
|
|
|
167
167
|
base_logger = logging.getLogger("google")
|
|
168
168
|
base_logger.addHandler(logging.StreamHandler())
|
|
@@ -174,7 +174,7 @@ Code-Based Examples
|
|
|
174
174
|
|
|
175
175
|
import logging
|
|
176
176
|
|
|
177
|
-
from google.cloud
|
|
177
|
+
from google.cloud import library_v1
|
|
178
178
|
|
|
179
179
|
base_logger = logging.getLogger("google.cloud.library_v1")
|
|
180
180
|
base_logger.addHandler(logging.StreamHandler())
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -47,12 +47,15 @@ from google.cloud.cloudcontrolspartner_v1.types.customer_workloads import (
|
|
|
47
47
|
WorkloadOnboardingStep,
|
|
48
48
|
)
|
|
49
49
|
from google.cloud.cloudcontrolspartner_v1.types.customers import (
|
|
50
|
+
CreateCustomerRequest,
|
|
50
51
|
Customer,
|
|
51
52
|
CustomerOnboardingState,
|
|
52
53
|
CustomerOnboardingStep,
|
|
54
|
+
DeleteCustomerRequest,
|
|
53
55
|
GetCustomerRequest,
|
|
54
56
|
ListCustomersRequest,
|
|
55
57
|
ListCustomersResponse,
|
|
58
|
+
UpdateCustomerRequest,
|
|
56
59
|
)
|
|
57
60
|
from google.cloud.cloudcontrolspartner_v1.types.ekm_connections import (
|
|
58
61
|
EkmConnection,
|
|
@@ -93,12 +96,15 @@ __all__ = (
|
|
|
93
96
|
"Workload",
|
|
94
97
|
"WorkloadOnboardingState",
|
|
95
98
|
"WorkloadOnboardingStep",
|
|
99
|
+
"CreateCustomerRequest",
|
|
96
100
|
"Customer",
|
|
97
101
|
"CustomerOnboardingState",
|
|
98
102
|
"CustomerOnboardingStep",
|
|
103
|
+
"DeleteCustomerRequest",
|
|
99
104
|
"GetCustomerRequest",
|
|
100
105
|
"ListCustomersRequest",
|
|
101
106
|
"ListCustomersResponse",
|
|
107
|
+
"UpdateCustomerRequest",
|
|
102
108
|
"EkmConnection",
|
|
103
109
|
"EkmConnections",
|
|
104
110
|
"GetEkmConnectionsRequest",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
__version__ = "0.2.
|
|
16
|
+
__version__ = "0.2.7" # {x-release-please-version}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -43,12 +43,15 @@ from .types.customer_workloads import (
|
|
|
43
43
|
WorkloadOnboardingStep,
|
|
44
44
|
)
|
|
45
45
|
from .types.customers import (
|
|
46
|
+
CreateCustomerRequest,
|
|
46
47
|
Customer,
|
|
47
48
|
CustomerOnboardingState,
|
|
48
49
|
CustomerOnboardingStep,
|
|
50
|
+
DeleteCustomerRequest,
|
|
49
51
|
GetCustomerRequest,
|
|
50
52
|
ListCustomersRequest,
|
|
51
53
|
ListCustomersResponse,
|
|
54
|
+
UpdateCustomerRequest,
|
|
52
55
|
)
|
|
53
56
|
from .types.ekm_connections import (
|
|
54
57
|
EkmConnection,
|
|
@@ -72,9 +75,11 @@ __all__ = (
|
|
|
72
75
|
"CloudControlsPartnerCoreClient",
|
|
73
76
|
"CloudControlsPartnerMonitoringClient",
|
|
74
77
|
"CompletionState",
|
|
78
|
+
"CreateCustomerRequest",
|
|
75
79
|
"Customer",
|
|
76
80
|
"CustomerOnboardingState",
|
|
77
81
|
"CustomerOnboardingStep",
|
|
82
|
+
"DeleteCustomerRequest",
|
|
78
83
|
"EkmConnection",
|
|
79
84
|
"EkmConnections",
|
|
80
85
|
"EkmMetadata",
|
|
@@ -96,6 +101,7 @@ __all__ = (
|
|
|
96
101
|
"Partner",
|
|
97
102
|
"PartnerPermissions",
|
|
98
103
|
"Sku",
|
|
104
|
+
"UpdateCustomerRequest",
|
|
99
105
|
"Violation",
|
|
100
106
|
"Workload",
|
|
101
107
|
"WorkloadOnboardingState",
|
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
"grpc": {
|
|
11
11
|
"libraryClient": "CloudControlsPartnerCoreClient",
|
|
12
12
|
"rpcs": {
|
|
13
|
+
"CreateCustomer": {
|
|
14
|
+
"methods": [
|
|
15
|
+
"create_customer"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"DeleteCustomer": {
|
|
19
|
+
"methods": [
|
|
20
|
+
"delete_customer"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
13
23
|
"GetCustomer": {
|
|
14
24
|
"methods": [
|
|
15
25
|
"get_customer"
|
|
@@ -49,12 +59,27 @@
|
|
|
49
59
|
"methods": [
|
|
50
60
|
"list_workloads"
|
|
51
61
|
]
|
|
62
|
+
},
|
|
63
|
+
"UpdateCustomer": {
|
|
64
|
+
"methods": [
|
|
65
|
+
"update_customer"
|
|
66
|
+
]
|
|
52
67
|
}
|
|
53
68
|
}
|
|
54
69
|
},
|
|
55
70
|
"grpc-async": {
|
|
56
71
|
"libraryClient": "CloudControlsPartnerCoreAsyncClient",
|
|
57
72
|
"rpcs": {
|
|
73
|
+
"CreateCustomer": {
|
|
74
|
+
"methods": [
|
|
75
|
+
"create_customer"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"DeleteCustomer": {
|
|
79
|
+
"methods": [
|
|
80
|
+
"delete_customer"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
58
83
|
"GetCustomer": {
|
|
59
84
|
"methods": [
|
|
60
85
|
"get_customer"
|
|
@@ -94,12 +119,27 @@
|
|
|
94
119
|
"methods": [
|
|
95
120
|
"list_workloads"
|
|
96
121
|
]
|
|
122
|
+
},
|
|
123
|
+
"UpdateCustomer": {
|
|
124
|
+
"methods": [
|
|
125
|
+
"update_customer"
|
|
126
|
+
]
|
|
97
127
|
}
|
|
98
128
|
}
|
|
99
129
|
},
|
|
100
130
|
"rest": {
|
|
101
131
|
"libraryClient": "CloudControlsPartnerCoreClient",
|
|
102
132
|
"rpcs": {
|
|
133
|
+
"CreateCustomer": {
|
|
134
|
+
"methods": [
|
|
135
|
+
"create_customer"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"DeleteCustomer": {
|
|
139
|
+
"methods": [
|
|
140
|
+
"delete_customer"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
103
143
|
"GetCustomer": {
|
|
104
144
|
"methods": [
|
|
105
145
|
"get_customer"
|
|
@@ -139,6 +179,11 @@
|
|
|
139
179
|
"methods": [
|
|
140
180
|
"list_workloads"
|
|
141
181
|
]
|
|
182
|
+
},
|
|
183
|
+
"UpdateCustomer": {
|
|
184
|
+
"methods": [
|
|
185
|
+
"update_customer"
|
|
186
|
+
]
|
|
142
187
|
}
|
|
143
188
|
}
|
|
144
189
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
__version__ = "0.2.
|
|
16
|
+
__version__ = "0.2.7" # {x-release-please-version}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -36,6 +36,7 @@ from google.api_core import retry_async as retries
|
|
|
36
36
|
from google.api_core.client_options import ClientOptions
|
|
37
37
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
38
38
|
from google.oauth2 import service_account # type: ignore
|
|
39
|
+
import google.protobuf
|
|
39
40
|
|
|
40
41
|
from google.cloud.cloudcontrolspartner_v1 import gapic_version as package_version
|
|
41
42
|
|
|
@@ -44,6 +45,7 @@ try:
|
|
|
44
45
|
except AttributeError: # pragma: NO COVER
|
|
45
46
|
OptionalRetry = Union[retries.AsyncRetry, object, None] # type: ignore
|
|
46
47
|
|
|
48
|
+
from google.protobuf import field_mask_pb2 # type: ignore
|
|
47
49
|
from google.protobuf import timestamp_pb2 # type: ignore
|
|
48
50
|
|
|
49
51
|
from google.cloud.cloudcontrolspartner_v1.services.cloud_controls_partner_core import (
|
|
@@ -1277,6 +1279,365 @@ class CloudControlsPartnerCoreAsyncClient:
|
|
|
1277
1279
|
# Done; return the response.
|
|
1278
1280
|
return response
|
|
1279
1281
|
|
|
1282
|
+
async def create_customer(
|
|
1283
|
+
self,
|
|
1284
|
+
request: Optional[Union[customers.CreateCustomerRequest, dict]] = None,
|
|
1285
|
+
*,
|
|
1286
|
+
parent: Optional[str] = None,
|
|
1287
|
+
customer: Optional[customers.Customer] = None,
|
|
1288
|
+
customer_id: Optional[str] = None,
|
|
1289
|
+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1290
|
+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1291
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1292
|
+
) -> customers.Customer:
|
|
1293
|
+
r"""Creates a new customer.
|
|
1294
|
+
|
|
1295
|
+
.. code-block:: python
|
|
1296
|
+
|
|
1297
|
+
# This snippet has been automatically generated and should be regarded as a
|
|
1298
|
+
# code template only.
|
|
1299
|
+
# It will require modifications to work:
|
|
1300
|
+
# - It may require correct/in-range values for request initialization.
|
|
1301
|
+
# - It may require specifying regional endpoints when creating the service
|
|
1302
|
+
# client as shown in:
|
|
1303
|
+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
|
|
1304
|
+
from google.cloud import cloudcontrolspartner_v1
|
|
1305
|
+
|
|
1306
|
+
async def sample_create_customer():
|
|
1307
|
+
# Create a client
|
|
1308
|
+
client = cloudcontrolspartner_v1.CloudControlsPartnerCoreAsyncClient()
|
|
1309
|
+
|
|
1310
|
+
# Initialize request argument(s)
|
|
1311
|
+
customer = cloudcontrolspartner_v1.Customer()
|
|
1312
|
+
customer.display_name = "display_name_value"
|
|
1313
|
+
|
|
1314
|
+
request = cloudcontrolspartner_v1.CreateCustomerRequest(
|
|
1315
|
+
parent="parent_value",
|
|
1316
|
+
customer=customer,
|
|
1317
|
+
customer_id="customer_id_value",
|
|
1318
|
+
)
|
|
1319
|
+
|
|
1320
|
+
# Make the request
|
|
1321
|
+
response = await client.create_customer(request=request)
|
|
1322
|
+
|
|
1323
|
+
# Handle the response
|
|
1324
|
+
print(response)
|
|
1325
|
+
|
|
1326
|
+
Args:
|
|
1327
|
+
request (Optional[Union[google.cloud.cloudcontrolspartner_v1.types.CreateCustomerRequest, dict]]):
|
|
1328
|
+
The request object. Request to create a customer
|
|
1329
|
+
parent (:class:`str`):
|
|
1330
|
+
Required. Parent resource Format:
|
|
1331
|
+
``organizations/{organization}/locations/{location}``
|
|
1332
|
+
|
|
1333
|
+
This corresponds to the ``parent`` field
|
|
1334
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
1335
|
+
should not be set.
|
|
1336
|
+
customer (:class:`google.cloud.cloudcontrolspartner_v1.types.Customer`):
|
|
1337
|
+
Required. The customer to create.
|
|
1338
|
+
This corresponds to the ``customer`` field
|
|
1339
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
1340
|
+
should not be set.
|
|
1341
|
+
customer_id (:class:`str`):
|
|
1342
|
+
Required. The customer id to use for
|
|
1343
|
+
the customer, which will become the
|
|
1344
|
+
final component of the customer's
|
|
1345
|
+
resource name. The specified value must
|
|
1346
|
+
be a valid Google cloud organization id.
|
|
1347
|
+
|
|
1348
|
+
This corresponds to the ``customer_id`` field
|
|
1349
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
1350
|
+
should not be set.
|
|
1351
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1352
|
+
should be retried.
|
|
1353
|
+
timeout (float): The timeout for this request.
|
|
1354
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
1355
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
1356
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
1357
|
+
be of type `bytes`.
|
|
1358
|
+
|
|
1359
|
+
Returns:
|
|
1360
|
+
google.cloud.cloudcontrolspartner_v1.types.Customer:
|
|
1361
|
+
Contains metadata around a Cloud
|
|
1362
|
+
Controls Partner Customer
|
|
1363
|
+
|
|
1364
|
+
"""
|
|
1365
|
+
# Create or coerce a protobuf request object.
|
|
1366
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
1367
|
+
# gotten any keyword arguments that map to the request.
|
|
1368
|
+
flattened_params = [parent, customer, customer_id]
|
|
1369
|
+
has_flattened_params = (
|
|
1370
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
1371
|
+
)
|
|
1372
|
+
if request is not None and has_flattened_params:
|
|
1373
|
+
raise ValueError(
|
|
1374
|
+
"If the `request` argument is set, then none of "
|
|
1375
|
+
"the individual field arguments should be set."
|
|
1376
|
+
)
|
|
1377
|
+
|
|
1378
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
1379
|
+
# there are no flattened fields), or create one.
|
|
1380
|
+
if not isinstance(request, customers.CreateCustomerRequest):
|
|
1381
|
+
request = customers.CreateCustomerRequest(request)
|
|
1382
|
+
|
|
1383
|
+
# If we have keyword arguments corresponding to fields on the
|
|
1384
|
+
# request, apply these.
|
|
1385
|
+
if parent is not None:
|
|
1386
|
+
request.parent = parent
|
|
1387
|
+
if customer is not None:
|
|
1388
|
+
request.customer = customer
|
|
1389
|
+
if customer_id is not None:
|
|
1390
|
+
request.customer_id = customer_id
|
|
1391
|
+
|
|
1392
|
+
# Wrap the RPC method; this adds retry and timeout information,
|
|
1393
|
+
# and friendly error handling.
|
|
1394
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1395
|
+
self._client._transport.create_customer
|
|
1396
|
+
]
|
|
1397
|
+
|
|
1398
|
+
# Certain fields should be provided within the metadata header;
|
|
1399
|
+
# add these here.
|
|
1400
|
+
metadata = tuple(metadata) + (
|
|
1401
|
+
gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)),
|
|
1402
|
+
)
|
|
1403
|
+
|
|
1404
|
+
# Validate the universe domain.
|
|
1405
|
+
self._client._validate_universe_domain()
|
|
1406
|
+
|
|
1407
|
+
# Send the request.
|
|
1408
|
+
response = await rpc(
|
|
1409
|
+
request,
|
|
1410
|
+
retry=retry,
|
|
1411
|
+
timeout=timeout,
|
|
1412
|
+
metadata=metadata,
|
|
1413
|
+
)
|
|
1414
|
+
|
|
1415
|
+
# Done; return the response.
|
|
1416
|
+
return response
|
|
1417
|
+
|
|
1418
|
+
async def update_customer(
|
|
1419
|
+
self,
|
|
1420
|
+
request: Optional[Union[customers.UpdateCustomerRequest, dict]] = None,
|
|
1421
|
+
*,
|
|
1422
|
+
customer: Optional[customers.Customer] = None,
|
|
1423
|
+
update_mask: Optional[field_mask_pb2.FieldMask] = None,
|
|
1424
|
+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1425
|
+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1426
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1427
|
+
) -> customers.Customer:
|
|
1428
|
+
r"""Update details of a single customer
|
|
1429
|
+
|
|
1430
|
+
.. code-block:: python
|
|
1431
|
+
|
|
1432
|
+
# This snippet has been automatically generated and should be regarded as a
|
|
1433
|
+
# code template only.
|
|
1434
|
+
# It will require modifications to work:
|
|
1435
|
+
# - It may require correct/in-range values for request initialization.
|
|
1436
|
+
# - It may require specifying regional endpoints when creating the service
|
|
1437
|
+
# client as shown in:
|
|
1438
|
+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
|
|
1439
|
+
from google.cloud import cloudcontrolspartner_v1
|
|
1440
|
+
|
|
1441
|
+
async def sample_update_customer():
|
|
1442
|
+
# Create a client
|
|
1443
|
+
client = cloudcontrolspartner_v1.CloudControlsPartnerCoreAsyncClient()
|
|
1444
|
+
|
|
1445
|
+
# Initialize request argument(s)
|
|
1446
|
+
customer = cloudcontrolspartner_v1.Customer()
|
|
1447
|
+
customer.display_name = "display_name_value"
|
|
1448
|
+
|
|
1449
|
+
request = cloudcontrolspartner_v1.UpdateCustomerRequest(
|
|
1450
|
+
customer=customer,
|
|
1451
|
+
)
|
|
1452
|
+
|
|
1453
|
+
# Make the request
|
|
1454
|
+
response = await client.update_customer(request=request)
|
|
1455
|
+
|
|
1456
|
+
# Handle the response
|
|
1457
|
+
print(response)
|
|
1458
|
+
|
|
1459
|
+
Args:
|
|
1460
|
+
request (Optional[Union[google.cloud.cloudcontrolspartner_v1.types.UpdateCustomerRequest, dict]]):
|
|
1461
|
+
The request object. Request to update a customer
|
|
1462
|
+
customer (:class:`google.cloud.cloudcontrolspartner_v1.types.Customer`):
|
|
1463
|
+
Required. The customer to update Format:
|
|
1464
|
+
``organizations/{organization}/locations/{location}/customers/{customer}``
|
|
1465
|
+
|
|
1466
|
+
This corresponds to the ``customer`` field
|
|
1467
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
1468
|
+
should not be set.
|
|
1469
|
+
update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`):
|
|
1470
|
+
Optional. The list of fields to
|
|
1471
|
+
update
|
|
1472
|
+
|
|
1473
|
+
This corresponds to the ``update_mask`` field
|
|
1474
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
1475
|
+
should not be set.
|
|
1476
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1477
|
+
should be retried.
|
|
1478
|
+
timeout (float): The timeout for this request.
|
|
1479
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
1480
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
1481
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
1482
|
+
be of type `bytes`.
|
|
1483
|
+
|
|
1484
|
+
Returns:
|
|
1485
|
+
google.cloud.cloudcontrolspartner_v1.types.Customer:
|
|
1486
|
+
Contains metadata around a Cloud
|
|
1487
|
+
Controls Partner Customer
|
|
1488
|
+
|
|
1489
|
+
"""
|
|
1490
|
+
# Create or coerce a protobuf request object.
|
|
1491
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
1492
|
+
# gotten any keyword arguments that map to the request.
|
|
1493
|
+
flattened_params = [customer, update_mask]
|
|
1494
|
+
has_flattened_params = (
|
|
1495
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
1496
|
+
)
|
|
1497
|
+
if request is not None and has_flattened_params:
|
|
1498
|
+
raise ValueError(
|
|
1499
|
+
"If the `request` argument is set, then none of "
|
|
1500
|
+
"the individual field arguments should be set."
|
|
1501
|
+
)
|
|
1502
|
+
|
|
1503
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
1504
|
+
# there are no flattened fields), or create one.
|
|
1505
|
+
if not isinstance(request, customers.UpdateCustomerRequest):
|
|
1506
|
+
request = customers.UpdateCustomerRequest(request)
|
|
1507
|
+
|
|
1508
|
+
# If we have keyword arguments corresponding to fields on the
|
|
1509
|
+
# request, apply these.
|
|
1510
|
+
if customer is not None:
|
|
1511
|
+
request.customer = customer
|
|
1512
|
+
if update_mask is not None:
|
|
1513
|
+
request.update_mask = update_mask
|
|
1514
|
+
|
|
1515
|
+
# Wrap the RPC method; this adds retry and timeout information,
|
|
1516
|
+
# and friendly error handling.
|
|
1517
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1518
|
+
self._client._transport.update_customer
|
|
1519
|
+
]
|
|
1520
|
+
|
|
1521
|
+
# Certain fields should be provided within the metadata header;
|
|
1522
|
+
# add these here.
|
|
1523
|
+
metadata = tuple(metadata) + (
|
|
1524
|
+
gapic_v1.routing_header.to_grpc_metadata(
|
|
1525
|
+
(("customer.name", request.customer.name),)
|
|
1526
|
+
),
|
|
1527
|
+
)
|
|
1528
|
+
|
|
1529
|
+
# Validate the universe domain.
|
|
1530
|
+
self._client._validate_universe_domain()
|
|
1531
|
+
|
|
1532
|
+
# Send the request.
|
|
1533
|
+
response = await rpc(
|
|
1534
|
+
request,
|
|
1535
|
+
retry=retry,
|
|
1536
|
+
timeout=timeout,
|
|
1537
|
+
metadata=metadata,
|
|
1538
|
+
)
|
|
1539
|
+
|
|
1540
|
+
# Done; return the response.
|
|
1541
|
+
return response
|
|
1542
|
+
|
|
1543
|
+
async def delete_customer(
|
|
1544
|
+
self,
|
|
1545
|
+
request: Optional[Union[customers.DeleteCustomerRequest, dict]] = None,
|
|
1546
|
+
*,
|
|
1547
|
+
name: Optional[str] = None,
|
|
1548
|
+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
1549
|
+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
1550
|
+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
|
|
1551
|
+
) -> None:
|
|
1552
|
+
r"""Delete details of a single customer
|
|
1553
|
+
|
|
1554
|
+
.. code-block:: python
|
|
1555
|
+
|
|
1556
|
+
# This snippet has been automatically generated and should be regarded as a
|
|
1557
|
+
# code template only.
|
|
1558
|
+
# It will require modifications to work:
|
|
1559
|
+
# - It may require correct/in-range values for request initialization.
|
|
1560
|
+
# - It may require specifying regional endpoints when creating the service
|
|
1561
|
+
# client as shown in:
|
|
1562
|
+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
|
|
1563
|
+
from google.cloud import cloudcontrolspartner_v1
|
|
1564
|
+
|
|
1565
|
+
async def sample_delete_customer():
|
|
1566
|
+
# Create a client
|
|
1567
|
+
client = cloudcontrolspartner_v1.CloudControlsPartnerCoreAsyncClient()
|
|
1568
|
+
|
|
1569
|
+
# Initialize request argument(s)
|
|
1570
|
+
request = cloudcontrolspartner_v1.DeleteCustomerRequest(
|
|
1571
|
+
name="name_value",
|
|
1572
|
+
)
|
|
1573
|
+
|
|
1574
|
+
# Make the request
|
|
1575
|
+
await client.delete_customer(request=request)
|
|
1576
|
+
|
|
1577
|
+
Args:
|
|
1578
|
+
request (Optional[Union[google.cloud.cloudcontrolspartner_v1.types.DeleteCustomerRequest, dict]]):
|
|
1579
|
+
The request object. Message for deleting customer
|
|
1580
|
+
name (:class:`str`):
|
|
1581
|
+
Required. name of the resource to be deleted format:
|
|
1582
|
+
name=organizations/\ */locations/*/customers/\*
|
|
1583
|
+
|
|
1584
|
+
This corresponds to the ``name`` field
|
|
1585
|
+
on the ``request`` instance; if ``request`` is provided, this
|
|
1586
|
+
should not be set.
|
|
1587
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
1588
|
+
should be retried.
|
|
1589
|
+
timeout (float): The timeout for this request.
|
|
1590
|
+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
|
|
1591
|
+
sent along with the request as metadata. Normally, each value must be of type `str`,
|
|
1592
|
+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
|
|
1593
|
+
be of type `bytes`.
|
|
1594
|
+
"""
|
|
1595
|
+
# Create or coerce a protobuf request object.
|
|
1596
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
1597
|
+
# gotten any keyword arguments that map to the request.
|
|
1598
|
+
flattened_params = [name]
|
|
1599
|
+
has_flattened_params = (
|
|
1600
|
+
len([param for param in flattened_params if param is not None]) > 0
|
|
1601
|
+
)
|
|
1602
|
+
if request is not None and has_flattened_params:
|
|
1603
|
+
raise ValueError(
|
|
1604
|
+
"If the `request` argument is set, then none of "
|
|
1605
|
+
"the individual field arguments should be set."
|
|
1606
|
+
)
|
|
1607
|
+
|
|
1608
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
1609
|
+
# there are no flattened fields), or create one.
|
|
1610
|
+
if not isinstance(request, customers.DeleteCustomerRequest):
|
|
1611
|
+
request = customers.DeleteCustomerRequest(request)
|
|
1612
|
+
|
|
1613
|
+
# If we have keyword arguments corresponding to fields on the
|
|
1614
|
+
# request, apply these.
|
|
1615
|
+
if name is not None:
|
|
1616
|
+
request.name = name
|
|
1617
|
+
|
|
1618
|
+
# Wrap the RPC method; this adds retry and timeout information,
|
|
1619
|
+
# and friendly error handling.
|
|
1620
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1621
|
+
self._client._transport.delete_customer
|
|
1622
|
+
]
|
|
1623
|
+
|
|
1624
|
+
# Certain fields should be provided within the metadata header;
|
|
1625
|
+
# add these here.
|
|
1626
|
+
metadata = tuple(metadata) + (
|
|
1627
|
+
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
1628
|
+
)
|
|
1629
|
+
|
|
1630
|
+
# Validate the universe domain.
|
|
1631
|
+
self._client._validate_universe_domain()
|
|
1632
|
+
|
|
1633
|
+
# Send the request.
|
|
1634
|
+
await rpc(
|
|
1635
|
+
request,
|
|
1636
|
+
retry=retry,
|
|
1637
|
+
timeout=timeout,
|
|
1638
|
+
metadata=metadata,
|
|
1639
|
+
)
|
|
1640
|
+
|
|
1280
1641
|
async def __aenter__(self) -> "CloudControlsPartnerCoreAsyncClient":
|
|
1281
1642
|
return self
|
|
1282
1643
|
|
|
@@ -1288,5 +1649,8 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
1288
1649
|
gapic_version=package_version.__version__
|
|
1289
1650
|
)
|
|
1290
1651
|
|
|
1652
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
1653
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
1654
|
+
|
|
1291
1655
|
|
|
1292
1656
|
__all__ = ("CloudControlsPartnerCoreAsyncClient",)
|