google-cloud-beyondcorp-clientgateways 0.4.2__tar.gz → 0.4.4rc0__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-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/MANIFEST.in +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2/google_cloud_beyondcorp_clientgateways.egg-info → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/PKG-INFO +21 -15
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/README.rst +14 -13
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways/__init__.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways/gapic_version.py +2 -2
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/__init__.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/gapic_version.py +2 -2
- {google-cloud-beyondcorp-clientgateways-0.4.2/tests/unit → google-cloud-beyondcorp-clientgateways-0.4.4rc0/google/cloud/beyondcorp_clientgateways_v1/services}/__init__.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/__init__.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/async_client.py +27 -27
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/client.py +2 -2
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/pagers.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/__init__.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/base.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/grpc.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/grpc_asyncio.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/rest.py +1 -11
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/types/__init__.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/types/client_gateways_service.py +5 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0/google_cloud_beyondcorp_clientgateways.egg-info}/PKG-INFO +21 -15
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google_cloud_beyondcorp_clientgateways.egg-info/SOURCES.txt +0 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google_cloud_beyondcorp_clientgateways.egg-info/requires.txt +1 -4
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/setup.py +11 -11
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/tests/__init__.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2/tests/unit/gapic → google-cloud-beyondcorp-clientgateways-0.4.4rc0/tests/unit}/__init__.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.2/google/cloud/beyondcorp_clientgateways_v1/services → google-cloud-beyondcorp-clientgateways-0.4.4rc0/tests/unit/gapic}/__init__.py +1 -1
- google-cloud-beyondcorp-clientgateways-0.4.4rc0/tests/unit/gapic/beyondcorp_clientgateways_v1/__init__.py +15 -0
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/tests/unit/gapic/beyondcorp_clientgateways_v1/test_client_gateways_service.py +94 -27
- google-cloud-beyondcorp-clientgateways-0.4.2/google_cloud_beyondcorp_clientgateways.egg-info/namespace_packages.txt +0 -2
- google-cloud-beyondcorp-clientgateways-0.4.2/tests/unit/gapic/beyondcorp_clientgateways_v1/__init__.py +0 -15
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/LICENSE +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways/py.typed +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/gapic_metadata.json +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google/cloud/beyondcorp_clientgateways_v1/py.typed +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google_cloud_beyondcorp_clientgateways.egg-info/dependency_links.txt +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google_cloud_beyondcorp_clientgateways.egg-info/not-zip-safe +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/google_cloud_beyondcorp_clientgateways.egg-info/top_level.txt +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.2 → google-cloud-beyondcorp-clientgateways-0.4.4rc0}/setup.cfg +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-beyondcorp-clientgateways
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.4rc0
|
|
4
4
|
Summary: Google Cloud Beyondcorp Clientgateways API client library
|
|
5
|
-
Home-page: https://github.com/googleapis/google-cloud-python
|
|
5
|
+
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-beyondcorp-clientgateways
|
|
6
6
|
Author: Google LLC
|
|
7
7
|
Author-email: googleapis-packages@google.com
|
|
8
8
|
License: Apache 2.0
|
|
@@ -17,10 +17,15 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
21
|
Classifier: Operating System :: OS Independent
|
|
21
22
|
Classifier: Topic :: Internet
|
|
22
23
|
Requires-Python: >=3.7
|
|
23
24
|
License-File: LICENSE
|
|
25
|
+
Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0
|
|
26
|
+
Requires-Dist: proto-plus<2.0.0dev,>=1.22.3
|
|
27
|
+
Requires-Dist: protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5
|
|
28
|
+
Requires-Dist: grpc-google-iam-v1<1.0.0dev,>=0.12.4
|
|
24
29
|
|
|
25
30
|
Python Client for BeyondCorp ClientGateways
|
|
26
31
|
===========================================
|
|
@@ -60,21 +65,24 @@ In order to use this library, you first need to go through the following steps:
|
|
|
60
65
|
Installation
|
|
61
66
|
~~~~~~~~~~~~
|
|
62
67
|
|
|
63
|
-
Install this library in a `
|
|
64
|
-
|
|
65
|
-
|
|
68
|
+
Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
|
|
69
|
+
creates isolated Python environments. These isolated environments can have separate
|
|
70
|
+
versions of Python packages, which allows you to isolate one project's dependencies
|
|
71
|
+
from the dependencies of other projects.
|
|
66
72
|
|
|
67
|
-
With `
|
|
73
|
+
With `venv`_, it's possible to install this library without needing system
|
|
68
74
|
install permissions, and without clashing with the installed system
|
|
69
75
|
dependencies.
|
|
70
76
|
|
|
71
|
-
.. _`
|
|
77
|
+
.. _`venv`: https://docs.python.org/3/library/venv.html
|
|
72
78
|
|
|
73
79
|
|
|
74
80
|
Code samples and snippets
|
|
75
81
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
76
82
|
|
|
77
|
-
Code samples and snippets live in the `samples/` folder.
|
|
83
|
+
Code samples and snippets live in the `samples/`_ folder.
|
|
84
|
+
|
|
85
|
+
.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-beyondcorp-clientgateways/samples
|
|
78
86
|
|
|
79
87
|
|
|
80
88
|
Supported Python Versions
|
|
@@ -101,10 +109,9 @@ Mac/Linux
|
|
|
101
109
|
|
|
102
110
|
.. code-block:: console
|
|
103
111
|
|
|
104
|
-
|
|
105
|
-
virtualenv <your-env>
|
|
112
|
+
python3 -m venv <your-env>
|
|
106
113
|
source <your-env>/bin/activate
|
|
107
|
-
|
|
114
|
+
pip install google-cloud-beyondcorp-clientgateways
|
|
108
115
|
|
|
109
116
|
|
|
110
117
|
Windows
|
|
@@ -112,10 +119,9 @@ Windows
|
|
|
112
119
|
|
|
113
120
|
.. code-block:: console
|
|
114
121
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
<your-env>\Scripts\pip.exe install google-cloud-beyondcorp-clientgateways
|
|
122
|
+
py -m venv <your-env>
|
|
123
|
+
.\<your-env>\Scripts\activate
|
|
124
|
+
pip install google-cloud-beyondcorp-clientgateways
|
|
119
125
|
|
|
120
126
|
Next Steps
|
|
121
127
|
~~~~~~~~~~
|
|
@@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps:
|
|
|
36
36
|
Installation
|
|
37
37
|
~~~~~~~~~~~~
|
|
38
38
|
|
|
39
|
-
Install this library in a `
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
|
|
40
|
+
creates isolated Python environments. These isolated environments can have separate
|
|
41
|
+
versions of Python packages, which allows you to isolate one project's dependencies
|
|
42
|
+
from the dependencies of other projects.
|
|
42
43
|
|
|
43
|
-
With `
|
|
44
|
+
With `venv`_, it's possible to install this library without needing system
|
|
44
45
|
install permissions, and without clashing with the installed system
|
|
45
46
|
dependencies.
|
|
46
47
|
|
|
47
|
-
.. _`
|
|
48
|
+
.. _`venv`: https://docs.python.org/3/library/venv.html
|
|
48
49
|
|
|
49
50
|
|
|
50
51
|
Code samples and snippets
|
|
51
52
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
52
53
|
|
|
53
|
-
Code samples and snippets live in the `samples/` folder.
|
|
54
|
+
Code samples and snippets live in the `samples/`_ folder.
|
|
55
|
+
|
|
56
|
+
.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-beyondcorp-clientgateways/samples
|
|
54
57
|
|
|
55
58
|
|
|
56
59
|
Supported Python Versions
|
|
@@ -77,10 +80,9 @@ Mac/Linux
|
|
|
77
80
|
|
|
78
81
|
.. code-block:: console
|
|
79
82
|
|
|
80
|
-
|
|
81
|
-
virtualenv <your-env>
|
|
83
|
+
python3 -m venv <your-env>
|
|
82
84
|
source <your-env>/bin/activate
|
|
83
|
-
|
|
85
|
+
pip install google-cloud-beyondcorp-clientgateways
|
|
84
86
|
|
|
85
87
|
|
|
86
88
|
Windows
|
|
@@ -88,10 +90,9 @@ Windows
|
|
|
88
90
|
|
|
89
91
|
.. code-block:: console
|
|
90
92
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
<your-env>\Scripts\pip.exe install google-cloud-beyondcorp-clientgateways
|
|
93
|
+
py -m venv <your-env>
|
|
94
|
+
.\<your-env>\Scripts\activate
|
|
95
|
+
pip install google-cloud-beyondcorp-clientgateways
|
|
95
96
|
|
|
96
97
|
Next Steps
|
|
97
98
|
~~~~~~~~~~
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2023 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.4.
|
|
16
|
+
__version__ = "0.4.4rc0" # {x-release-please-version}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2023 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.4.
|
|
16
|
+
__version__ = "0.4.4rc0" # {x-release-please-version}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2023 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.
|
|
@@ -30,7 +30,7 @@ from typing import (
|
|
|
30
30
|
|
|
31
31
|
from google.api_core import exceptions as core_exceptions
|
|
32
32
|
from google.api_core import gapic_v1
|
|
33
|
-
from google.api_core import
|
|
33
|
+
from google.api_core import retry_async as retries
|
|
34
34
|
from google.api_core.client_options import ClientOptions
|
|
35
35
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
36
36
|
from google.oauth2 import service_account # type: ignore
|
|
@@ -38,16 +38,16 @@ from google.oauth2 import service_account # type: ignore
|
|
|
38
38
|
from google.cloud.beyondcorp_clientgateways_v1 import gapic_version as package_version
|
|
39
39
|
|
|
40
40
|
try:
|
|
41
|
-
OptionalRetry = Union[retries.
|
|
41
|
+
OptionalRetry = Union[retries.AsyncRetry, gapic_v1.method._MethodDefault]
|
|
42
42
|
except AttributeError: # pragma: NO COVER
|
|
43
|
-
OptionalRetry = Union[retries.
|
|
43
|
+
OptionalRetry = Union[retries.AsyncRetry, object] # type: ignore
|
|
44
44
|
|
|
45
45
|
from google.api_core import operation # type: ignore
|
|
46
46
|
from google.api_core import operation_async # type: ignore
|
|
47
47
|
from google.cloud.location import locations_pb2 # type: ignore
|
|
48
48
|
from google.iam.v1 import iam_policy_pb2 # type: ignore
|
|
49
49
|
from google.iam.v1 import policy_pb2 # type: ignore
|
|
50
|
-
from google.longrunning import operations_pb2
|
|
50
|
+
from google.longrunning import operations_pb2 # type: ignore
|
|
51
51
|
from google.protobuf import empty_pb2 # type: ignore
|
|
52
52
|
from google.protobuf import timestamp_pb2 # type: ignore
|
|
53
53
|
|
|
@@ -292,7 +292,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
292
292
|
This corresponds to the ``parent`` field
|
|
293
293
|
on the ``request`` instance; if ``request`` is provided, this
|
|
294
294
|
should not be set.
|
|
295
|
-
retry (google.api_core.
|
|
295
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
296
296
|
should be retried.
|
|
297
297
|
timeout (float): The timeout for this request.
|
|
298
298
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -405,7 +405,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
405
405
|
This corresponds to the ``name`` field
|
|
406
406
|
on the ``request`` instance; if ``request`` is provided, this
|
|
407
407
|
should not be set.
|
|
408
|
-
retry (google.api_core.
|
|
408
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
409
409
|
should be retried.
|
|
410
410
|
timeout (float): The timeout for this request.
|
|
411
411
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -533,7 +533,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
533
533
|
This corresponds to the ``client_gateway_id`` field
|
|
534
534
|
on the ``request`` instance; if ``request`` is provided, this
|
|
535
535
|
should not be set.
|
|
536
|
-
retry (google.api_core.
|
|
536
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
537
537
|
should be retried.
|
|
538
538
|
timeout (float): The timeout for this request.
|
|
539
539
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -653,7 +653,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
653
653
|
This corresponds to the ``name`` field
|
|
654
654
|
on the ``request`` instance; if ``request`` is provided, this
|
|
655
655
|
should not be set.
|
|
656
|
-
retry (google.api_core.
|
|
656
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
657
657
|
should be retried.
|
|
658
658
|
timeout (float): The timeout for this request.
|
|
659
659
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -739,7 +739,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
739
739
|
request (:class:`~.operations_pb2.ListOperationsRequest`):
|
|
740
740
|
The request object. Request message for
|
|
741
741
|
`ListOperations` method.
|
|
742
|
-
retry (google.api_core.
|
|
742
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
|
|
743
743
|
if any, should be retried.
|
|
744
744
|
timeout (float): The timeout for this request.
|
|
745
745
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -756,7 +756,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
756
756
|
|
|
757
757
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
758
758
|
# and friendly error handling.
|
|
759
|
-
rpc = gapic_v1.
|
|
759
|
+
rpc = gapic_v1.method_async.wrap_method(
|
|
760
760
|
self._client._transport.list_operations,
|
|
761
761
|
default_timeout=None,
|
|
762
762
|
client_info=DEFAULT_CLIENT_INFO,
|
|
@@ -793,7 +793,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
793
793
|
request (:class:`~.operations_pb2.GetOperationRequest`):
|
|
794
794
|
The request object. Request message for
|
|
795
795
|
`GetOperation` method.
|
|
796
|
-
retry (google.api_core.
|
|
796
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
|
|
797
797
|
if any, should be retried.
|
|
798
798
|
timeout (float): The timeout for this request.
|
|
799
799
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -810,7 +810,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
810
810
|
|
|
811
811
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
812
812
|
# and friendly error handling.
|
|
813
|
-
rpc = gapic_v1.
|
|
813
|
+
rpc = gapic_v1.method_async.wrap_method(
|
|
814
814
|
self._client._transport.get_operation,
|
|
815
815
|
default_timeout=None,
|
|
816
816
|
client_info=DEFAULT_CLIENT_INFO,
|
|
@@ -852,7 +852,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
852
852
|
request (:class:`~.operations_pb2.DeleteOperationRequest`):
|
|
853
853
|
The request object. Request message for
|
|
854
854
|
`DeleteOperation` method.
|
|
855
|
-
retry (google.api_core.
|
|
855
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
|
|
856
856
|
if any, should be retried.
|
|
857
857
|
timeout (float): The timeout for this request.
|
|
858
858
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -868,7 +868,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
868
868
|
|
|
869
869
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
870
870
|
# and friendly error handling.
|
|
871
|
-
rpc = gapic_v1.
|
|
871
|
+
rpc = gapic_v1.method_async.wrap_method(
|
|
872
872
|
self._client._transport.delete_operation,
|
|
873
873
|
default_timeout=None,
|
|
874
874
|
client_info=DEFAULT_CLIENT_INFO,
|
|
@@ -906,7 +906,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
906
906
|
request (:class:`~.operations_pb2.CancelOperationRequest`):
|
|
907
907
|
The request object. Request message for
|
|
908
908
|
`CancelOperation` method.
|
|
909
|
-
retry (google.api_core.
|
|
909
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
|
|
910
910
|
if any, should be retried.
|
|
911
911
|
timeout (float): The timeout for this request.
|
|
912
912
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -922,7 +922,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
922
922
|
|
|
923
923
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
924
924
|
# and friendly error handling.
|
|
925
|
-
rpc = gapic_v1.
|
|
925
|
+
rpc = gapic_v1.method_async.wrap_method(
|
|
926
926
|
self._client._transport.cancel_operation,
|
|
927
927
|
default_timeout=None,
|
|
928
928
|
client_info=DEFAULT_CLIENT_INFO,
|
|
@@ -958,7 +958,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
958
958
|
request (:class:`~.iam_policy_pb2.SetIamPolicyRequest`):
|
|
959
959
|
The request object. Request message for `SetIamPolicy`
|
|
960
960
|
method.
|
|
961
|
-
retry (google.api_core.
|
|
961
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
|
|
962
962
|
should be retried.
|
|
963
963
|
timeout (float): The timeout for this request.
|
|
964
964
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -1039,7 +1039,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1039
1039
|
|
|
1040
1040
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1041
1041
|
# and friendly error handling.
|
|
1042
|
-
rpc = gapic_v1.
|
|
1042
|
+
rpc = gapic_v1.method_async.wrap_method(
|
|
1043
1043
|
self._client._transport.set_iam_policy,
|
|
1044
1044
|
default_timeout=None,
|
|
1045
1045
|
client_info=DEFAULT_CLIENT_INFO,
|
|
@@ -1079,7 +1079,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1079
1079
|
request (:class:`~.iam_policy_pb2.GetIamPolicyRequest`):
|
|
1080
1080
|
The request object. Request message for `GetIamPolicy`
|
|
1081
1081
|
method.
|
|
1082
|
-
retry (google.api_core.
|
|
1082
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if
|
|
1083
1083
|
any, should be retried.
|
|
1084
1084
|
timeout (float): The timeout for this request.
|
|
1085
1085
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -1160,7 +1160,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1160
1160
|
|
|
1161
1161
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1162
1162
|
# and friendly error handling.
|
|
1163
|
-
rpc = gapic_v1.
|
|
1163
|
+
rpc = gapic_v1.method_async.wrap_method(
|
|
1164
1164
|
self._client._transport.get_iam_policy,
|
|
1165
1165
|
default_timeout=None,
|
|
1166
1166
|
client_info=DEFAULT_CLIENT_INFO,
|
|
@@ -1201,7 +1201,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1201
1201
|
request (:class:`~.iam_policy_pb2.TestIamPermissionsRequest`):
|
|
1202
1202
|
The request object. Request message for
|
|
1203
1203
|
`TestIamPermissions` method.
|
|
1204
|
-
retry (google.api_core.
|
|
1204
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
|
|
1205
1205
|
if any, should be retried.
|
|
1206
1206
|
timeout (float): The timeout for this request.
|
|
1207
1207
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -1219,7 +1219,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1219
1219
|
|
|
1220
1220
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1221
1221
|
# and friendly error handling.
|
|
1222
|
-
rpc = gapic_v1.
|
|
1222
|
+
rpc = gapic_v1.method_async.wrap_method(
|
|
1223
1223
|
self._client._transport.test_iam_permissions,
|
|
1224
1224
|
default_timeout=None,
|
|
1225
1225
|
client_info=DEFAULT_CLIENT_INFO,
|
|
@@ -1256,7 +1256,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1256
1256
|
request (:class:`~.location_pb2.GetLocationRequest`):
|
|
1257
1257
|
The request object. Request message for
|
|
1258
1258
|
`GetLocation` method.
|
|
1259
|
-
retry (google.api_core.
|
|
1259
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
|
|
1260
1260
|
if any, should be retried.
|
|
1261
1261
|
timeout (float): The timeout for this request.
|
|
1262
1262
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -1273,7 +1273,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1273
1273
|
|
|
1274
1274
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1275
1275
|
# and friendly error handling.
|
|
1276
|
-
rpc = gapic_v1.
|
|
1276
|
+
rpc = gapic_v1.method_async.wrap_method(
|
|
1277
1277
|
self._client._transport.get_location,
|
|
1278
1278
|
default_timeout=None,
|
|
1279
1279
|
client_info=DEFAULT_CLIENT_INFO,
|
|
@@ -1310,7 +1310,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1310
1310
|
request (:class:`~.location_pb2.ListLocationsRequest`):
|
|
1311
1311
|
The request object. Request message for
|
|
1312
1312
|
`ListLocations` method.
|
|
1313
|
-
retry (google.api_core.
|
|
1313
|
+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
|
|
1314
1314
|
if any, should be retried.
|
|
1315
1315
|
timeout (float): The timeout for this request.
|
|
1316
1316
|
metadata (Sequence[Tuple[str, str]]): Strings which should be
|
|
@@ -1327,7 +1327,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1327
1327
|
|
|
1328
1328
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1329
1329
|
# and friendly error handling.
|
|
1330
|
-
rpc = gapic_v1.
|
|
1330
|
+
rpc = gapic_v1.method_async.wrap_method(
|
|
1331
1331
|
self._client._transport.list_locations,
|
|
1332
1332
|
default_timeout=None,
|
|
1333
1333
|
client_info=DEFAULT_CLIENT_INFO,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2023 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.
|
|
@@ -51,7 +51,7 @@ from google.api_core import operation_async # type: ignore
|
|
|
51
51
|
from google.cloud.location import locations_pb2 # type: ignore
|
|
52
52
|
from google.iam.v1 import iam_policy_pb2 # type: ignore
|
|
53
53
|
from google.iam.v1 import policy_pb2 # type: ignore
|
|
54
|
-
from google.longrunning import operations_pb2
|
|
54
|
+
from google.longrunning import operations_pb2 # type: ignore
|
|
55
55
|
from google.protobuf import empty_pb2 # type: ignore
|
|
56
56
|
from google.protobuf import timestamp_pb2 # type: ignore
|
|
57
57
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2023 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.
|
|
@@ -35,7 +35,6 @@ from google.auth.transport.requests import AuthorizedSession # type: ignore
|
|
|
35
35
|
from google.cloud.location import locations_pb2 # type: ignore
|
|
36
36
|
from google.iam.v1 import iam_policy_pb2 # type: ignore
|
|
37
37
|
from google.iam.v1 import policy_pb2 # type: ignore
|
|
38
|
-
from google.longrunning import operations_pb2
|
|
39
38
|
from google.protobuf import json_format
|
|
40
39
|
import grpc # type: ignore
|
|
41
40
|
from requests import __version__ as requests_version
|
|
@@ -996,7 +995,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
|
|
|
996
995
|
timeout: Optional[float] = None,
|
|
997
996
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
998
997
|
) -> locations_pb2.Location:
|
|
999
|
-
|
|
1000
998
|
r"""Call the get location method over HTTP.
|
|
1001
999
|
|
|
1002
1000
|
Args:
|
|
@@ -1063,7 +1061,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
|
|
|
1063
1061
|
timeout: Optional[float] = None,
|
|
1064
1062
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1065
1063
|
) -> locations_pb2.ListLocationsResponse:
|
|
1066
|
-
|
|
1067
1064
|
r"""Call the list locations method over HTTP.
|
|
1068
1065
|
|
|
1069
1066
|
Args:
|
|
@@ -1130,7 +1127,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
|
|
|
1130
1127
|
timeout: Optional[float] = None,
|
|
1131
1128
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1132
1129
|
) -> policy_pb2.Policy:
|
|
1133
|
-
|
|
1134
1130
|
r"""Call the get iam policy method over HTTP.
|
|
1135
1131
|
|
|
1136
1132
|
Args:
|
|
@@ -1213,7 +1209,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
|
|
|
1213
1209
|
timeout: Optional[float] = None,
|
|
1214
1210
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1215
1211
|
) -> policy_pb2.Policy:
|
|
1216
|
-
|
|
1217
1212
|
r"""Call the set iam policy method over HTTP.
|
|
1218
1213
|
|
|
1219
1214
|
Args:
|
|
@@ -1303,7 +1298,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
|
|
|
1303
1298
|
timeout: Optional[float] = None,
|
|
1304
1299
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1305
1300
|
) -> iam_policy_pb2.TestIamPermissionsResponse:
|
|
1306
|
-
|
|
1307
1301
|
r"""Call the test iam permissions method over HTTP.
|
|
1308
1302
|
|
|
1309
1303
|
Args:
|
|
@@ -1395,7 +1389,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
|
|
|
1395
1389
|
timeout: Optional[float] = None,
|
|
1396
1390
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1397
1391
|
) -> None:
|
|
1398
|
-
|
|
1399
1392
|
r"""Call the cancel operation method over HTTP.
|
|
1400
1393
|
|
|
1401
1394
|
Args:
|
|
@@ -1461,7 +1454,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
|
|
|
1461
1454
|
timeout: Optional[float] = None,
|
|
1462
1455
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1463
1456
|
) -> None:
|
|
1464
|
-
|
|
1465
1457
|
r"""Call the delete operation method over HTTP.
|
|
1466
1458
|
|
|
1467
1459
|
Args:
|
|
@@ -1524,7 +1516,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
|
|
|
1524
1516
|
timeout: Optional[float] = None,
|
|
1525
1517
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1526
1518
|
) -> operations_pb2.Operation:
|
|
1527
|
-
|
|
1528
1519
|
r"""Call the get operation method over HTTP.
|
|
1529
1520
|
|
|
1530
1521
|
Args:
|
|
@@ -1591,7 +1582,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
|
|
|
1591
1582
|
timeout: Optional[float] = None,
|
|
1592
1583
|
metadata: Sequence[Tuple[str, str]] = (),
|
|
1593
1584
|
) -> operations_pb2.ListOperationsResponse:
|
|
1594
|
-
|
|
1595
1585
|
r"""Call the list operations method over HTTP.
|
|
1596
1586
|
|
|
1597
1587
|
Args:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2023 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.
|
|
@@ -228,6 +228,7 @@ class CreateClientGatewayRequest(proto.Message):
|
|
|
228
228
|
know to ignore the request if it has already
|
|
229
229
|
been completed. The server will guarantee that
|
|
230
230
|
for at least 60 minutes since the first request.
|
|
231
|
+
|
|
231
232
|
For example, consider a situation where you make
|
|
232
233
|
an initial request and t he request times out.
|
|
233
234
|
If you make the request again with the same
|
|
@@ -236,6 +237,7 @@ class CreateClientGatewayRequest(proto.Message):
|
|
|
236
237
|
and if so, will ignore the second request. This
|
|
237
238
|
prevents clients from accidentally creating
|
|
238
239
|
duplicate commitments.
|
|
240
|
+
|
|
239
241
|
The request ID must be a valid UUID with the
|
|
240
242
|
exception that zero UUID is not supported
|
|
241
243
|
(00000000-0000-0000-0000-000000000000).
|
|
@@ -281,6 +283,7 @@ class DeleteClientGatewayRequest(proto.Message):
|
|
|
281
283
|
know to ignore the request if it has already
|
|
282
284
|
been completed. The server will guarantee that
|
|
283
285
|
for at least 60 minutes after the first request.
|
|
286
|
+
|
|
284
287
|
For example, consider a situation where you make
|
|
285
288
|
an initial request and t he request times out.
|
|
286
289
|
If you make the request again with the same
|
|
@@ -289,6 +292,7 @@ class DeleteClientGatewayRequest(proto.Message):
|
|
|
289
292
|
and if so, will ignore the second request. This
|
|
290
293
|
prevents clients from accidentally creating
|
|
291
294
|
duplicate commitments.
|
|
295
|
+
|
|
292
296
|
The request ID must be a valid UUID with the
|
|
293
297
|
exception that zero UUID is not supported
|
|
294
298
|
(00000000-0000-0000-0000-000000000000).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-beyondcorp-clientgateways
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.4rc0
|
|
4
4
|
Summary: Google Cloud Beyondcorp Clientgateways API client library
|
|
5
|
-
Home-page: https://github.com/googleapis/google-cloud-python
|
|
5
|
+
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-beyondcorp-clientgateways
|
|
6
6
|
Author: Google LLC
|
|
7
7
|
Author-email: googleapis-packages@google.com
|
|
8
8
|
License: Apache 2.0
|
|
@@ -17,10 +17,15 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
21
|
Classifier: Operating System :: OS Independent
|
|
21
22
|
Classifier: Topic :: Internet
|
|
22
23
|
Requires-Python: >=3.7
|
|
23
24
|
License-File: LICENSE
|
|
25
|
+
Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0
|
|
26
|
+
Requires-Dist: proto-plus<2.0.0dev,>=1.22.3
|
|
27
|
+
Requires-Dist: protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5
|
|
28
|
+
Requires-Dist: grpc-google-iam-v1<1.0.0dev,>=0.12.4
|
|
24
29
|
|
|
25
30
|
Python Client for BeyondCorp ClientGateways
|
|
26
31
|
===========================================
|
|
@@ -60,21 +65,24 @@ In order to use this library, you first need to go through the following steps:
|
|
|
60
65
|
Installation
|
|
61
66
|
~~~~~~~~~~~~
|
|
62
67
|
|
|
63
|
-
Install this library in a `
|
|
64
|
-
|
|
65
|
-
|
|
68
|
+
Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
|
|
69
|
+
creates isolated Python environments. These isolated environments can have separate
|
|
70
|
+
versions of Python packages, which allows you to isolate one project's dependencies
|
|
71
|
+
from the dependencies of other projects.
|
|
66
72
|
|
|
67
|
-
With `
|
|
73
|
+
With `venv`_, it's possible to install this library without needing system
|
|
68
74
|
install permissions, and without clashing with the installed system
|
|
69
75
|
dependencies.
|
|
70
76
|
|
|
71
|
-
.. _`
|
|
77
|
+
.. _`venv`: https://docs.python.org/3/library/venv.html
|
|
72
78
|
|
|
73
79
|
|
|
74
80
|
Code samples and snippets
|
|
75
81
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
76
82
|
|
|
77
|
-
Code samples and snippets live in the `samples/` folder.
|
|
83
|
+
Code samples and snippets live in the `samples/`_ folder.
|
|
84
|
+
|
|
85
|
+
.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-beyondcorp-clientgateways/samples
|
|
78
86
|
|
|
79
87
|
|
|
80
88
|
Supported Python Versions
|
|
@@ -101,10 +109,9 @@ Mac/Linux
|
|
|
101
109
|
|
|
102
110
|
.. code-block:: console
|
|
103
111
|
|
|
104
|
-
|
|
105
|
-
virtualenv <your-env>
|
|
112
|
+
python3 -m venv <your-env>
|
|
106
113
|
source <your-env>/bin/activate
|
|
107
|
-
|
|
114
|
+
pip install google-cloud-beyondcorp-clientgateways
|
|
108
115
|
|
|
109
116
|
|
|
110
117
|
Windows
|
|
@@ -112,10 +119,9 @@ Windows
|
|
|
112
119
|
|
|
113
120
|
.. code-block:: console
|
|
114
121
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
<your-env>\Scripts\pip.exe install google-cloud-beyondcorp-clientgateways
|
|
122
|
+
py -m venv <your-env>
|
|
123
|
+
.\<your-env>\Scripts\activate
|
|
124
|
+
pip install google-cloud-beyondcorp-clientgateways
|
|
119
125
|
|
|
120
126
|
Next Steps
|
|
121
127
|
~~~~~~~~~~
|
|
@@ -25,7 +25,6 @@ google/cloud/beyondcorp_clientgateways_v1/types/client_gateways_service.py
|
|
|
25
25
|
google_cloud_beyondcorp_clientgateways.egg-info/PKG-INFO
|
|
26
26
|
google_cloud_beyondcorp_clientgateways.egg-info/SOURCES.txt
|
|
27
27
|
google_cloud_beyondcorp_clientgateways.egg-info/dependency_links.txt
|
|
28
|
-
google_cloud_beyondcorp_clientgateways.egg-info/namespace_packages.txt
|
|
29
28
|
google_cloud_beyondcorp_clientgateways.egg-info/not-zip-safe
|
|
30
29
|
google_cloud_beyondcorp_clientgateways.egg-info/requires.txt
|
|
31
30
|
google_cloud_beyondcorp_clientgateways.egg-info/top_level.txt
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0
|
|
2
|
-
proto-plus<2.0.0dev,>=1.22.
|
|
2
|
+
proto-plus<2.0.0dev,>=1.22.3
|
|
3
3
|
protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5
|
|
4
4
|
grpc-google-iam-v1<1.0.0dev,>=0.12.4
|
|
5
|
-
|
|
6
|
-
[:python_version >= "3.11"]
|
|
7
|
-
proto-plus<2.0.0dev,>=1.22.2
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2023 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.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
#
|
|
16
16
|
import io
|
|
17
17
|
import os
|
|
18
|
+
import re
|
|
18
19
|
|
|
19
20
|
import setuptools # type: ignore
|
|
20
21
|
|
|
@@ -25,14 +26,16 @@ name = "google-cloud-beyondcorp-clientgateways"
|
|
|
25
26
|
|
|
26
27
|
description = "Google Cloud Beyondcorp Clientgateways API client library"
|
|
27
28
|
|
|
28
|
-
version =
|
|
29
|
+
version = None
|
|
30
|
+
|
|
29
31
|
with open(
|
|
30
32
|
os.path.join(
|
|
31
33
|
package_root, "google/cloud/beyondcorp_clientgateways/gapic_version.py"
|
|
32
34
|
)
|
|
33
35
|
) as fp:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
version_candidates = re.findall(r"(?<=\")\d+.\d+.\d+rc\d+", fp.read())
|
|
37
|
+
assert len(version_candidates) == 1
|
|
38
|
+
version = version_candidates[0]
|
|
36
39
|
|
|
37
40
|
if version[0] == "0":
|
|
38
41
|
release_status = "Development Status :: 4 - Beta"
|
|
@@ -41,12 +44,11 @@ else:
|
|
|
41
44
|
|
|
42
45
|
dependencies = [
|
|
43
46
|
"google-api-core[grpc] >= 1.34.0, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
|
|
44
|
-
"proto-plus >= 1.22.
|
|
45
|
-
"proto-plus >= 1.22.2, <2.0.0dev; python_version>='3.11'",
|
|
47
|
+
"proto-plus >= 1.22.3, <2.0.0dev",
|
|
46
48
|
"protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
|
|
47
49
|
"grpc-google-iam-v1 >= 0.12.4, <1.0.0dev",
|
|
48
50
|
]
|
|
49
|
-
url = "https://github.com/googleapis/google-cloud-python"
|
|
51
|
+
url = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-beyondcorp-clientgateways"
|
|
50
52
|
|
|
51
53
|
package_root = os.path.abspath(os.path.dirname(__file__))
|
|
52
54
|
|
|
@@ -56,12 +58,10 @@ with io.open(readme_filename, encoding="utf-8") as readme_file:
|
|
|
56
58
|
|
|
57
59
|
packages = [
|
|
58
60
|
package
|
|
59
|
-
for package in setuptools.
|
|
61
|
+
for package in setuptools.find_namespace_packages()
|
|
60
62
|
if package.startswith("google")
|
|
61
63
|
]
|
|
62
64
|
|
|
63
|
-
namespaces = ["google", "google.cloud"]
|
|
64
|
-
|
|
65
65
|
setuptools.setup(
|
|
66
66
|
name=name,
|
|
67
67
|
version=version,
|
|
@@ -82,13 +82,13 @@ setuptools.setup(
|
|
|
82
82
|
"Programming Language :: Python :: 3.9",
|
|
83
83
|
"Programming Language :: Python :: 3.10",
|
|
84
84
|
"Programming Language :: Python :: 3.11",
|
|
85
|
+
"Programming Language :: Python :: 3.12",
|
|
85
86
|
"Operating System :: OS Independent",
|
|
86
87
|
"Topic :: Internet",
|
|
87
88
|
],
|
|
88
89
|
platforms="Posix; MacOS X; Windows",
|
|
89
90
|
packages=packages,
|
|
90
91
|
python_requires=">=3.7",
|
|
91
|
-
namespace_packages=namespaces,
|
|
92
92
|
install_requires=dependencies,
|
|
93
93
|
include_package_data=True,
|
|
94
94
|
zip_safe=False,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2023 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
|
+
#
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2023 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.
|
|
@@ -45,7 +45,7 @@ from google.cloud.location import locations_pb2
|
|
|
45
45
|
from google.iam.v1 import iam_policy_pb2 # type: ignore
|
|
46
46
|
from google.iam.v1 import options_pb2 # type: ignore
|
|
47
47
|
from google.iam.v1 import policy_pb2 # type: ignore
|
|
48
|
-
from google.longrunning import operations_pb2
|
|
48
|
+
from google.longrunning import operations_pb2 # type: ignore
|
|
49
49
|
from google.oauth2 import service_account
|
|
50
50
|
from google.protobuf import empty_pb2 # type: ignore
|
|
51
51
|
from google.protobuf import json_format
|
|
@@ -2006,10 +2006,11 @@ def test_list_client_gateways_rest(request_type):
|
|
|
2006
2006
|
# Wrap the value into a proper Response obj
|
|
2007
2007
|
response_value = Response()
|
|
2008
2008
|
response_value.status_code = 200
|
|
2009
|
-
|
|
2009
|
+
# Convert return value to protobuf type
|
|
2010
|
+
return_value = client_gateways_service.ListClientGatewaysResponse.pb(
|
|
2010
2011
|
return_value
|
|
2011
2012
|
)
|
|
2012
|
-
json_return_value = json_format.MessageToJson(
|
|
2013
|
+
json_return_value = json_format.MessageToJson(return_value)
|
|
2013
2014
|
|
|
2014
2015
|
response_value._content = json_return_value.encode("UTF-8")
|
|
2015
2016
|
req.return_value = response_value
|
|
@@ -2094,10 +2095,11 @@ def test_list_client_gateways_rest_required_fields(
|
|
|
2094
2095
|
response_value = Response()
|
|
2095
2096
|
response_value.status_code = 200
|
|
2096
2097
|
|
|
2097
|
-
|
|
2098
|
+
# Convert return value to protobuf type
|
|
2099
|
+
return_value = client_gateways_service.ListClientGatewaysResponse.pb(
|
|
2098
2100
|
return_value
|
|
2099
2101
|
)
|
|
2100
|
-
json_return_value = json_format.MessageToJson(
|
|
2102
|
+
json_return_value = json_format.MessageToJson(return_value)
|
|
2101
2103
|
|
|
2102
2104
|
response_value._content = json_return_value.encode("UTF-8")
|
|
2103
2105
|
req.return_value = response_value
|
|
@@ -2235,10 +2237,11 @@ def test_list_client_gateways_rest_flattened():
|
|
|
2235
2237
|
# Wrap the value into a proper Response obj
|
|
2236
2238
|
response_value = Response()
|
|
2237
2239
|
response_value.status_code = 200
|
|
2238
|
-
|
|
2240
|
+
# Convert return value to protobuf type
|
|
2241
|
+
return_value = client_gateways_service.ListClientGatewaysResponse.pb(
|
|
2239
2242
|
return_value
|
|
2240
2243
|
)
|
|
2241
|
-
json_return_value = json_format.MessageToJson(
|
|
2244
|
+
json_return_value = json_format.MessageToJson(return_value)
|
|
2242
2245
|
response_value._content = json_return_value.encode("UTF-8")
|
|
2243
2246
|
req.return_value = response_value
|
|
2244
2247
|
|
|
@@ -2366,8 +2369,9 @@ def test_get_client_gateway_rest(request_type):
|
|
|
2366
2369
|
# Wrap the value into a proper Response obj
|
|
2367
2370
|
response_value = Response()
|
|
2368
2371
|
response_value.status_code = 200
|
|
2369
|
-
|
|
2370
|
-
|
|
2372
|
+
# Convert return value to protobuf type
|
|
2373
|
+
return_value = client_gateways_service.ClientGateway.pb(return_value)
|
|
2374
|
+
json_return_value = json_format.MessageToJson(return_value)
|
|
2371
2375
|
|
|
2372
2376
|
response_value._content = json_return_value.encode("UTF-8")
|
|
2373
2377
|
req.return_value = response_value
|
|
@@ -2445,8 +2449,9 @@ def test_get_client_gateway_rest_required_fields(
|
|
|
2445
2449
|
response_value = Response()
|
|
2446
2450
|
response_value.status_code = 200
|
|
2447
2451
|
|
|
2448
|
-
|
|
2449
|
-
|
|
2452
|
+
# Convert return value to protobuf type
|
|
2453
|
+
return_value = client_gateways_service.ClientGateway.pb(return_value)
|
|
2454
|
+
json_return_value = json_format.MessageToJson(return_value)
|
|
2450
2455
|
|
|
2451
2456
|
response_value._content = json_return_value.encode("UTF-8")
|
|
2452
2457
|
req.return_value = response_value
|
|
@@ -2574,8 +2579,9 @@ def test_get_client_gateway_rest_flattened():
|
|
|
2574
2579
|
# Wrap the value into a proper Response obj
|
|
2575
2580
|
response_value = Response()
|
|
2576
2581
|
response_value.status_code = 200
|
|
2577
|
-
|
|
2578
|
-
|
|
2582
|
+
# Convert return value to protobuf type
|
|
2583
|
+
return_value = client_gateways_service.ClientGateway.pb(return_value)
|
|
2584
|
+
json_return_value = json_format.MessageToJson(return_value)
|
|
2579
2585
|
response_value._content = json_return_value.encode("UTF-8")
|
|
2580
2586
|
req.return_value = response_value
|
|
2581
2587
|
|
|
@@ -2636,6 +2642,75 @@ def test_create_client_gateway_rest(request_type):
|
|
|
2636
2642
|
"id": "id_value",
|
|
2637
2643
|
"client_connector_service": "client_connector_service_value",
|
|
2638
2644
|
}
|
|
2645
|
+
# The version of a generated dependency at test runtime may differ from the version used during generation.
|
|
2646
|
+
# Delete any fields which are not present in the current runtime dependency
|
|
2647
|
+
# See https://github.com/googleapis/gapic-generator-python/issues/1748
|
|
2648
|
+
|
|
2649
|
+
# Determine if the message type is proto-plus or protobuf
|
|
2650
|
+
test_field = client_gateways_service.CreateClientGatewayRequest.meta.fields[
|
|
2651
|
+
"client_gateway"
|
|
2652
|
+
]
|
|
2653
|
+
|
|
2654
|
+
def get_message_fields(field):
|
|
2655
|
+
# Given a field which is a message (composite type), return a list with
|
|
2656
|
+
# all the fields of the message.
|
|
2657
|
+
# If the field is not a composite type, return an empty list.
|
|
2658
|
+
message_fields = []
|
|
2659
|
+
|
|
2660
|
+
if hasattr(field, "message") and field.message:
|
|
2661
|
+
is_field_type_proto_plus_type = not hasattr(field.message, "DESCRIPTOR")
|
|
2662
|
+
|
|
2663
|
+
if is_field_type_proto_plus_type:
|
|
2664
|
+
message_fields = field.message.meta.fields.values()
|
|
2665
|
+
# Add `# pragma: NO COVER` because there may not be any `*_pb2` field types
|
|
2666
|
+
else: # pragma: NO COVER
|
|
2667
|
+
message_fields = field.message.DESCRIPTOR.fields
|
|
2668
|
+
return message_fields
|
|
2669
|
+
|
|
2670
|
+
runtime_nested_fields = [
|
|
2671
|
+
(field.name, nested_field.name)
|
|
2672
|
+
for field in get_message_fields(test_field)
|
|
2673
|
+
for nested_field in get_message_fields(field)
|
|
2674
|
+
]
|
|
2675
|
+
|
|
2676
|
+
subfields_not_in_runtime = []
|
|
2677
|
+
|
|
2678
|
+
# For each item in the sample request, create a list of sub fields which are not present at runtime
|
|
2679
|
+
# Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime
|
|
2680
|
+
for field, value in request_init["client_gateway"].items(): # pragma: NO COVER
|
|
2681
|
+
result = None
|
|
2682
|
+
is_repeated = False
|
|
2683
|
+
# For repeated fields
|
|
2684
|
+
if isinstance(value, list) and len(value):
|
|
2685
|
+
is_repeated = True
|
|
2686
|
+
result = value[0]
|
|
2687
|
+
# For fields where the type is another message
|
|
2688
|
+
if isinstance(value, dict):
|
|
2689
|
+
result = value
|
|
2690
|
+
|
|
2691
|
+
if result and hasattr(result, "keys"):
|
|
2692
|
+
for subfield in result.keys():
|
|
2693
|
+
if (field, subfield) not in runtime_nested_fields:
|
|
2694
|
+
subfields_not_in_runtime.append(
|
|
2695
|
+
{
|
|
2696
|
+
"field": field,
|
|
2697
|
+
"subfield": subfield,
|
|
2698
|
+
"is_repeated": is_repeated,
|
|
2699
|
+
}
|
|
2700
|
+
)
|
|
2701
|
+
|
|
2702
|
+
# Remove fields from the sample request which are not present in the runtime version of the dependency
|
|
2703
|
+
# Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime
|
|
2704
|
+
for subfield_to_delete in subfields_not_in_runtime: # pragma: NO COVER
|
|
2705
|
+
field = subfield_to_delete.get("field")
|
|
2706
|
+
field_repeated = subfield_to_delete.get("is_repeated")
|
|
2707
|
+
subfield = subfield_to_delete.get("subfield")
|
|
2708
|
+
if subfield:
|
|
2709
|
+
if field_repeated:
|
|
2710
|
+
for i in range(0, len(request_init["client_gateway"][field])):
|
|
2711
|
+
del request_init["client_gateway"][field][i][subfield]
|
|
2712
|
+
else:
|
|
2713
|
+
del request_init["client_gateway"][field][subfield]
|
|
2639
2714
|
request = request_type(**request_init)
|
|
2640
2715
|
|
|
2641
2716
|
# Mock the http request call within the method and fake a response.
|
|
@@ -2833,14 +2908,6 @@ def test_create_client_gateway_rest_bad_request(
|
|
|
2833
2908
|
|
|
2834
2909
|
# send a request that will satisfy transcoding
|
|
2835
2910
|
request_init = {"parent": "projects/sample1/locations/sample2"}
|
|
2836
|
-
request_init["client_gateway"] = {
|
|
2837
|
-
"name": "name_value",
|
|
2838
|
-
"create_time": {"seconds": 751, "nanos": 543},
|
|
2839
|
-
"update_time": {},
|
|
2840
|
-
"state": 1,
|
|
2841
|
-
"id": "id_value",
|
|
2842
|
-
"client_connector_service": "client_connector_service_value",
|
|
2843
|
-
}
|
|
2844
2911
|
request = request_type(**request_init)
|
|
2845
2912
|
|
|
2846
2913
|
# Mock the http request call within the method and fake a BadRequest error.
|
|
@@ -4533,7 +4600,7 @@ def test_delete_operation(transport: str = "grpc"):
|
|
|
4533
4600
|
|
|
4534
4601
|
|
|
4535
4602
|
@pytest.mark.asyncio
|
|
4536
|
-
async def test_delete_operation_async(transport: str = "
|
|
4603
|
+
async def test_delete_operation_async(transport: str = "grpc_asyncio"):
|
|
4537
4604
|
client = ClientGatewaysServiceAsyncClient(
|
|
4538
4605
|
credentials=ga_credentials.AnonymousCredentials(),
|
|
4539
4606
|
transport=transport,
|
|
@@ -4672,7 +4739,7 @@ def test_cancel_operation(transport: str = "grpc"):
|
|
|
4672
4739
|
|
|
4673
4740
|
|
|
4674
4741
|
@pytest.mark.asyncio
|
|
4675
|
-
async def test_cancel_operation_async(transport: str = "
|
|
4742
|
+
async def test_cancel_operation_async(transport: str = "grpc_asyncio"):
|
|
4676
4743
|
client = ClientGatewaysServiceAsyncClient(
|
|
4677
4744
|
credentials=ga_credentials.AnonymousCredentials(),
|
|
4678
4745
|
transport=transport,
|
|
@@ -4811,7 +4878,7 @@ def test_get_operation(transport: str = "grpc"):
|
|
|
4811
4878
|
|
|
4812
4879
|
|
|
4813
4880
|
@pytest.mark.asyncio
|
|
4814
|
-
async def test_get_operation_async(transport: str = "
|
|
4881
|
+
async def test_get_operation_async(transport: str = "grpc_asyncio"):
|
|
4815
4882
|
client = ClientGatewaysServiceAsyncClient(
|
|
4816
4883
|
credentials=ga_credentials.AnonymousCredentials(),
|
|
4817
4884
|
transport=transport,
|
|
@@ -4956,7 +5023,7 @@ def test_list_operations(transport: str = "grpc"):
|
|
|
4956
5023
|
|
|
4957
5024
|
|
|
4958
5025
|
@pytest.mark.asyncio
|
|
4959
|
-
async def test_list_operations_async(transport: str = "
|
|
5026
|
+
async def test_list_operations_async(transport: str = "grpc_asyncio"):
|
|
4960
5027
|
client = ClientGatewaysServiceAsyncClient(
|
|
4961
5028
|
credentials=ga_credentials.AnonymousCredentials(),
|
|
4962
5029
|
transport=transport,
|
|
@@ -5101,7 +5168,7 @@ def test_list_locations(transport: str = "grpc"):
|
|
|
5101
5168
|
|
|
5102
5169
|
|
|
5103
5170
|
@pytest.mark.asyncio
|
|
5104
|
-
async def test_list_locations_async(transport: str = "
|
|
5171
|
+
async def test_list_locations_async(transport: str = "grpc_asyncio"):
|
|
5105
5172
|
client = ClientGatewaysServiceAsyncClient(
|
|
5106
5173
|
credentials=ga_credentials.AnonymousCredentials(),
|
|
5107
5174
|
transport=transport,
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright 2022 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
|
-
#
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|