Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit 5233d61

Browse files
feat: Add support for python 3.11 (#156)
* feat: Add support for python 3.11 chore: Update gapic-generator-python to v1.8.0 PiperOrigin-RevId: 500768693 Source-Link: googleapis/googleapis@190b612 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7bf29a414b9ecac3170f0b65bdc2a95705c0ef1a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2JmMjlhNDE0YjllY2FjMzE3MGYwYjY1YmRjMmE5NTcwNWMwZWYxYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 67751f4 commit 5233d61

10 files changed

Lines changed: 599 additions & 6026 deletions

File tree

‎google/cloud/network_security_v1/services/network_security/async_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def get_mtls_endpoint_and_cert_source(
168168
The API endpoint is determined in the following order:
169169
(1) if `client_options.api_endpoint` if provided, use the provided one.
170170
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
171-
default mTLS endpoint; if the environment variabel is "never", use the default API
171+
default mTLS endpoint; if the environment variable is "never", use the default API
172172
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
173173
use the default API endpoint.
174174

‎google/cloud/network_security_v1/services/network_security/client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def get_mtls_endpoint_and_cert_source(
358358
The API endpoint is determined in the following order:
359359
(1) if `client_options.api_endpoint` if provided, use the provided one.
360360
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
361-
default mTLS endpoint; if the environment variabel is "never", use the default API
361+
default mTLS endpoint; if the environment variable is "never", use the default API
362362
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
363363
use the default API endpoint.
364364

‎google/cloud/network_security_v1beta1/gapic_metadata.json‎

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -166,86 +166,6 @@
166166
]
167167
}
168168
}
169-
},
170-
"rest": {
171-
"libraryClient": "NetworkSecurityClient",
172-
"rpcs": {
173-
"CreateAuthorizationPolicy": {
174-
"methods": [
175-
"create_authorization_policy"
176-
]
177-
},
178-
"CreateClientTlsPolicy": {
179-
"methods": [
180-
"create_client_tls_policy"
181-
]
182-
},
183-
"CreateServerTlsPolicy": {
184-
"methods": [
185-
"create_server_tls_policy"
186-
]
187-
},
188-
"DeleteAuthorizationPolicy": {
189-
"methods": [
190-
"delete_authorization_policy"
191-
]
192-
},
193-
"DeleteClientTlsPolicy": {
194-
"methods": [
195-
"delete_client_tls_policy"
196-
]
197-
},
198-
"DeleteServerTlsPolicy": {
199-
"methods": [
200-
"delete_server_tls_policy"
201-
]
202-
},
203-
"GetAuthorizationPolicy": {
204-
"methods": [
205-
"get_authorization_policy"
206-
]
207-
},
208-
"GetClientTlsPolicy": {
209-
"methods": [
210-
"get_client_tls_policy"
211-
]
212-
},
213-
"GetServerTlsPolicy": {
214-
"methods": [
215-
"get_server_tls_policy"
216-
]
217-
},
218-
"ListAuthorizationPolicies": {
219-
"methods": [
220-
"list_authorization_policies"
221-
]
222-
},
223-
"ListClientTlsPolicies": {
224-
"methods": [
225-
"list_client_tls_policies"
226-
]
227-
},
228-
"ListServerTlsPolicies": {
229-
"methods": [
230-
"list_server_tls_policies"
231-
]
232-
},
233-
"UpdateAuthorizationPolicy": {
234-
"methods": [
235-
"update_authorization_policy"
236-
]
237-
},
238-
"UpdateClientTlsPolicy": {
239-
"methods": [
240-
"update_client_tls_policy"
241-
]
242-
},
243-
"UpdateServerTlsPolicy": {
244-
"methods": [
245-
"update_server_tls_policy"
246-
]
247-
}
248-
}
249169
}
250170
}
251171
}

‎google/cloud/network_security_v1beta1/services/network_security/async_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def get_mtls_endpoint_and_cert_source(
172172
The API endpoint is determined in the following order:
173173
(1) if `client_options.api_endpoint` if provided, use the provided one.
174174
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
175-
default mTLS endpoint; if the environment variabel is "never", use the default API
175+
default mTLS endpoint; if the environment variable is "never", use the default API
176176
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
177177
use the default API endpoint.
178178

‎google/cloud/network_security_v1beta1/services/network_security/client.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
from .transports.base import DEFAULT_CLIENT_INFO, NetworkSecurityTransport
7676
from .transports.grpc import NetworkSecurityGrpcTransport
7777
from .transports.grpc_asyncio import NetworkSecurityGrpcAsyncIOTransport
78-
from .transports.rest import NetworkSecurityRestTransport
7978

8079

8180
class NetworkSecurityClientMeta(type):
@@ -91,7 +90,6 @@ class NetworkSecurityClientMeta(type):
9190
) # type: Dict[str, Type[NetworkSecurityTransport]]
9291
_transport_registry["grpc"] = NetworkSecurityGrpcTransport
9392
_transport_registry["grpc_asyncio"] = NetworkSecurityGrpcAsyncIOTransport
94-
_transport_registry["rest"] = NetworkSecurityRestTransport
9593

9694
def get_transport_class(
9795
cls,
@@ -362,7 +360,7 @@ def get_mtls_endpoint_and_cert_source(
362360
The API endpoint is determined in the following order:
363361
(1) if `client_options.api_endpoint` if provided, use the provided one.
364362
(2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
365-
default mTLS endpoint; if the environment variabel is "never", use the default API
363+
default mTLS endpoint; if the environment variable is "never", use the default API
366364
endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
367365
use the default API endpoint.
368366

‎google/cloud/network_security_v1beta1/services/network_security/transports/__init__.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,14 @@
1919
from .base import NetworkSecurityTransport
2020
from .grpc import NetworkSecurityGrpcTransport
2121
from .grpc_asyncio import NetworkSecurityGrpcAsyncIOTransport
22-
from .rest import NetworkSecurityRestInterceptor, NetworkSecurityRestTransport
2322

2423
# Compile a registry of transports.
2524
_transport_registry = OrderedDict() # type: Dict[str, Type[NetworkSecurityTransport]]
2625
_transport_registry["grpc"] = NetworkSecurityGrpcTransport
2726
_transport_registry["grpc_asyncio"] = NetworkSecurityGrpcAsyncIOTransport
28-
_transport_registry["rest"] = NetworkSecurityRestTransport
2927

3028
__all__ = (
3129
"NetworkSecurityTransport",
3230
"NetworkSecurityGrpcTransport",
3331
"NetworkSecurityGrpcAsyncIOTransport",
34-
"NetworkSecurityRestTransport",
35-
"NetworkSecurityRestInterceptor",
3632
)

‎samples/generated_samples/snippet_metadata_google.cloud.networksecurity.v1.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-network-security",
11-
"version": "0.8.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

‎samples/generated_samples/snippet_metadata_google.cloud.networksecurity.v1beta1.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-network-security",
11-
"version": "0.8.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

‎testing/constraints-3.12.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# -*- coding: utf-8 -*-
2+
# This constraints file is required for unit tests.
3+
# List all library dependencies and extras in this file.
4+
google-api-core
5+
proto-plus
6+
protobuf

0 commit comments

Comments
 (0)