Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions google/cloud/functions_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,66 @@
]
}
}
},
"rest": {
"libraryClient": "CloudFunctionsServiceClient",
"rpcs": {
"CallFunction": {
"methods": [
"call_function"
]
},
"CreateFunction": {
"methods": [
"create_function"
]
},
"DeleteFunction": {
"methods": [
"delete_function"
]
},
"GenerateDownloadUrl": {
"methods": [
"generate_download_url"
]
},
"GenerateUploadUrl": {
"methods": [
"generate_upload_url"
]
},
"GetFunction": {
"methods": [
"get_function"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"ListFunctions": {
"methods": [
"list_functions"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateFunction": {
"methods": [
"update_function"
]
}
}
}
}
}
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, CloudFunctionsServiceTransport
from .transports.grpc import CloudFunctionsServiceGrpcTransport
from .transports.grpc_asyncio import CloudFunctionsServiceGrpcAsyncIOTransport
from .transports.rest import CloudFunctionsServiceRestTransport


class CloudFunctionsServiceClientMeta(type):
Expand All @@ -75,6 +76,7 @@ class CloudFunctionsServiceClientMeta(type):
) # type: Dict[str, Type[CloudFunctionsServiceTransport]]
_transport_registry["grpc"] = CloudFunctionsServiceGrpcTransport
_transport_registry["grpc_asyncio"] = CloudFunctionsServiceGrpcAsyncIOTransport
_transport_registry["rest"] = CloudFunctionsServiceRestTransport

def get_transport_class(
cls,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,23 @@
from .base import CloudFunctionsServiceTransport
from .grpc import CloudFunctionsServiceGrpcTransport
from .grpc_asyncio import CloudFunctionsServiceGrpcAsyncIOTransport
from .rest import (
CloudFunctionsServiceRestInterceptor,
CloudFunctionsServiceRestTransport,
)

# Compile a registry of transports.
_transport_registry = (
OrderedDict()
) # type: Dict[str, Type[CloudFunctionsServiceTransport]]
_transport_registry["grpc"] = CloudFunctionsServiceGrpcTransport
_transport_registry["grpc_asyncio"] = CloudFunctionsServiceGrpcAsyncIOTransport
_transport_registry["rest"] = CloudFunctionsServiceRestTransport

__all__ = (
"CloudFunctionsServiceTransport",
"CloudFunctionsServiceGrpcTransport",
"CloudFunctionsServiceGrpcAsyncIOTransport",
"CloudFunctionsServiceRestTransport",
"CloudFunctionsServiceRestInterceptor",
)
Loading