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

Commit

Permalink
chore: Update gapic-generator-python to v1.8.5 (#399)
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: 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 <vchudnov@google.com>
  • Loading branch information
3 people authored Feb 28, 2023
1 parent b1af6e9 commit 10c02e5
Show file tree
Hide file tree
Showing 14 changed files with 13,482 additions and 185 deletions.
80 changes: 80 additions & 0 deletions google/cloud/secretmanager_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,86 @@
]
}
}
},
"rest": {
"libraryClient": "SecretManagerServiceClient",
"rpcs": {
"AccessSecretVersion": {
"methods": [
"access_secret_version"
]
},
"AddSecretVersion": {
"methods": [
"add_secret_version"
]
},
"CreateSecret": {
"methods": [
"create_secret"
]
},
"DeleteSecret": {
"methods": [
"delete_secret"
]
},
"DestroySecretVersion": {
"methods": [
"destroy_secret_version"
]
},
"DisableSecretVersion": {
"methods": [
"disable_secret_version"
]
},
"EnableSecretVersion": {
"methods": [
"enable_secret_version"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"GetSecret": {
"methods": [
"get_secret"
]
},
"GetSecretVersion": {
"methods": [
"get_secret_version"
]
},
"ListSecretVersions": {
"methods": [
"list_secret_versions"
]
},
"ListSecrets": {
"methods": [
"list_secrets"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateSecret": {
"methods": [
"update_secret"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, SecretManagerServiceTransport
from .transports.grpc import SecretManagerServiceGrpcTransport
from .transports.grpc_asyncio import SecretManagerServiceGrpcAsyncIOTransport
from .transports.rest import SecretManagerServiceRestTransport


class SecretManagerServiceClientMeta(type):
Expand All @@ -73,6 +74,7 @@ class SecretManagerServiceClientMeta(type):
) # type: Dict[str, Type[SecretManagerServiceTransport]]
_transport_registry["grpc"] = SecretManagerServiceGrpcTransport
_transport_registry["grpc_asyncio"] = SecretManagerServiceGrpcAsyncIOTransport
_transport_registry["rest"] = SecretManagerServiceRestTransport

def get_transport_class(
cls,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,20 @@
from .base import SecretManagerServiceTransport
from .grpc import SecretManagerServiceGrpcTransport
from .grpc_asyncio import SecretManagerServiceGrpcAsyncIOTransport
from .rest import SecretManagerServiceRestInterceptor, SecretManagerServiceRestTransport

# Compile a registry of transports.
_transport_registry = (
OrderedDict()
) # type: Dict[str, Type[SecretManagerServiceTransport]]
_transport_registry["grpc"] = SecretManagerServiceGrpcTransport
_transport_registry["grpc_asyncio"] = SecretManagerServiceGrpcAsyncIOTransport
_transport_registry["rest"] = SecretManagerServiceRestTransport

__all__ = (
"SecretManagerServiceTransport",
"SecretManagerServiceGrpcTransport",
"SecretManagerServiceGrpcAsyncIOTransport",
"SecretManagerServiceRestTransport",
"SecretManagerServiceRestInterceptor",
)
Loading

0 comments on commit 10c02e5

Please sign in to comment.