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

Commit d1506cb

Browse files
chore: Update gapic-generator-python to v1.8.5 (#260)
* feat: enable "rest" transport in Python for services supporting numeric enums PiperOrigin-RevId: 508143576 Source-Link: googleapis/googleapis@7a702a9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6ad1279c0e7aa787ac6b66c9fd4a210692edffcd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmFkMTI3OWMwZTdhYTc4N2FjNmI2NmM5ZmQ0YTIxMDY5MmVkZmZjZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update gapic-generator-python to v1.8.5 PiperOrigin-RevId: 511892190 Source-Link: googleapis/googleapis@a45d9c0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1907294b1d8365ea24f8c5f2e059a64124c4ed3b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9 * 🦉 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> Co-authored-by: Victor Chudnovsky <[email protected]>
1 parent cf257ad commit d1506cb

File tree

28 files changed

+17765
-272
lines changed

28 files changed

+17765
-272
lines changed

google/cloud/servicedirectory_v1/gapic_metadata.json

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@
2626
]
2727
}
2828
}
29+
},
30+
"rest": {
31+
"libraryClient": "LookupServiceClient",
32+
"rpcs": {
33+
"ResolveService": {
34+
"methods": [
35+
"resolve_service"
36+
]
37+
}
38+
}
2939
}
3040
}
3141
},
@@ -220,6 +230,101 @@
220230
]
221231
}
222232
}
233+
},
234+
"rest": {
235+
"libraryClient": "RegistrationServiceClient",
236+
"rpcs": {
237+
"CreateEndpoint": {
238+
"methods": [
239+
"create_endpoint"
240+
]
241+
},
242+
"CreateNamespace": {
243+
"methods": [
244+
"create_namespace"
245+
]
246+
},
247+
"CreateService": {
248+
"methods": [
249+
"create_service"
250+
]
251+
},
252+
"DeleteEndpoint": {
253+
"methods": [
254+
"delete_endpoint"
255+
]
256+
},
257+
"DeleteNamespace": {
258+
"methods": [
259+
"delete_namespace"
260+
]
261+
},
262+
"DeleteService": {
263+
"methods": [
264+
"delete_service"
265+
]
266+
},
267+
"GetEndpoint": {
268+
"methods": [
269+
"get_endpoint"
270+
]
271+
},
272+
"GetIamPolicy": {
273+
"methods": [
274+
"get_iam_policy"
275+
]
276+
},
277+
"GetNamespace": {
278+
"methods": [
279+
"get_namespace"
280+
]
281+
},
282+
"GetService": {
283+
"methods": [
284+
"get_service"
285+
]
286+
},
287+
"ListEndpoints": {
288+
"methods": [
289+
"list_endpoints"
290+
]
291+
},
292+
"ListNamespaces": {
293+
"methods": [
294+
"list_namespaces"
295+
]
296+
},
297+
"ListServices": {
298+
"methods": [
299+
"list_services"
300+
]
301+
},
302+
"SetIamPolicy": {
303+
"methods": [
304+
"set_iam_policy"
305+
]
306+
},
307+
"TestIamPermissions": {
308+
"methods": [
309+
"test_iam_permissions"
310+
]
311+
},
312+
"UpdateEndpoint": {
313+
"methods": [
314+
"update_endpoint"
315+
]
316+
},
317+
"UpdateNamespace": {
318+
"methods": [
319+
"update_namespace"
320+
]
321+
},
322+
"UpdateService": {
323+
"methods": [
324+
"update_service"
325+
]
326+
}
327+
}
223328
}
224329
}
225330
}

google/cloud/servicedirectory_v1/services/lookup_service/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
from .transports.base import DEFAULT_CLIENT_INFO, LookupServiceTransport
5252
from .transports.grpc import LookupServiceGrpcTransport
5353
from .transports.grpc_asyncio import LookupServiceGrpcAsyncIOTransport
54+
from .transports.rest import LookupServiceRestTransport
5455

5556

5657
class LookupServiceClientMeta(type):
@@ -64,6 +65,7 @@ class LookupServiceClientMeta(type):
6465
_transport_registry = OrderedDict() # type: Dict[str, Type[LookupServiceTransport]]
6566
_transport_registry["grpc"] = LookupServiceGrpcTransport
6667
_transport_registry["grpc_asyncio"] = LookupServiceGrpcAsyncIOTransport
68+
_transport_registry["rest"] = LookupServiceRestTransport
6769

6870
def get_transport_class(
6971
cls,

google/cloud/servicedirectory_v1/services/lookup_service/transports/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@
1919
from .base import LookupServiceTransport
2020
from .grpc import LookupServiceGrpcTransport
2121
from .grpc_asyncio import LookupServiceGrpcAsyncIOTransport
22+
from .rest import LookupServiceRestInterceptor, LookupServiceRestTransport
2223

2324
# Compile a registry of transports.
2425
_transport_registry = OrderedDict() # type: Dict[str, Type[LookupServiceTransport]]
2526
_transport_registry["grpc"] = LookupServiceGrpcTransport
2627
_transport_registry["grpc_asyncio"] = LookupServiceGrpcAsyncIOTransport
28+
_transport_registry["rest"] = LookupServiceRestTransport
2729

2830
__all__ = (
2931
"LookupServiceTransport",
3032
"LookupServiceGrpcTransport",
3133
"LookupServiceGrpcAsyncIOTransport",
34+
"LookupServiceRestTransport",
35+
"LookupServiceRestInterceptor",
3236
)

0 commit comments

Comments
 (0)