Skip to content

Commit

Permalink
chore: Update gapic-generator-python to v1.8.5 (#320)
Browse files Browse the repository at this point in the history
* feat: enable "rest" transport in Python for services supporting numeric enums

PiperOrigin-RevId: 508143576

Source-Link: googleapis/googleapis@7a702a9

Source-Link: googleapis/googleapis-gen@6ad1279
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: googleapis/googleapis-gen@1907294
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 <vchudnov@google.com>
  • Loading branch information
3 people authored Feb 28, 2023
1 parent 4e4eb43 commit 335b09f
Show file tree
Hide file tree
Showing 16 changed files with 8,154 additions and 188 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,51 @@
]
}
}
},
"rest": {
"libraryClient": "CloudSchedulerClient",
"rpcs": {
"CreateJob": {
"methods": [
"create_job"
]
},
"DeleteJob": {
"methods": [
"delete_job"
]
},
"GetJob": {
"methods": [
"get_job"
]
},
"ListJobs": {
"methods": [
"list_jobs"
]
},
"PauseJob": {
"methods": [
"pause_job"
]
},
"ResumeJob": {
"methods": [
"resume_job"
]
},
"RunJob": {
"methods": [
"run_job"
]
},
"UpdateJob": {
"methods": [
"update_job"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, CloudSchedulerTransport
from .transports.grpc import CloudSchedulerGrpcTransport
from .transports.grpc_asyncio import CloudSchedulerGrpcAsyncIOTransport
from .transports.rest import CloudSchedulerRestTransport


class CloudSchedulerClientMeta(type):
Expand All @@ -75,6 +76,7 @@ class CloudSchedulerClientMeta(type):
) # type: Dict[str, Type[CloudSchedulerTransport]]
_transport_registry["grpc"] = CloudSchedulerGrpcTransport
_transport_registry["grpc_asyncio"] = CloudSchedulerGrpcAsyncIOTransport
_transport_registry["rest"] = CloudSchedulerRestTransport

def get_transport_class(
cls,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@
from .base import CloudSchedulerTransport
from .grpc import CloudSchedulerGrpcTransport
from .grpc_asyncio import CloudSchedulerGrpcAsyncIOTransport
from .rest import CloudSchedulerRestInterceptor, CloudSchedulerRestTransport

# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[CloudSchedulerTransport]]
_transport_registry["grpc"] = CloudSchedulerGrpcTransport
_transport_registry["grpc_asyncio"] = CloudSchedulerGrpcAsyncIOTransport
_transport_registry["rest"] = CloudSchedulerRestTransport

__all__ = (
"CloudSchedulerTransport",
"CloudSchedulerGrpcTransport",
"CloudSchedulerGrpcAsyncIOTransport",
"CloudSchedulerRestTransport",
"CloudSchedulerRestInterceptor",
)
Loading

0 comments on commit 335b09f

Please sign in to comment.