Skip to content

Commit

Permalink
feat: enable "rest" transport in Python for services supporting numer…
Browse files Browse the repository at this point in the history
…ic enums (#109)

* 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

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Feb 9, 2023
1 parent e10e254 commit acb72ec
Show file tree
Hide file tree
Showing 5 changed files with 12,394 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,131 @@
]
}
}
},
"rest": {
"libraryClient": "CertificateManagerClient",
"rpcs": {
"CreateCertificate": {
"methods": [
"create_certificate"
]
},
"CreateCertificateIssuanceConfig": {
"methods": [
"create_certificate_issuance_config"
]
},
"CreateCertificateMap": {
"methods": [
"create_certificate_map"
]
},
"CreateCertificateMapEntry": {
"methods": [
"create_certificate_map_entry"
]
},
"CreateDnsAuthorization": {
"methods": [
"create_dns_authorization"
]
},
"DeleteCertificate": {
"methods": [
"delete_certificate"
]
},
"DeleteCertificateIssuanceConfig": {
"methods": [
"delete_certificate_issuance_config"
]
},
"DeleteCertificateMap": {
"methods": [
"delete_certificate_map"
]
},
"DeleteCertificateMapEntry": {
"methods": [
"delete_certificate_map_entry"
]
},
"DeleteDnsAuthorization": {
"methods": [
"delete_dns_authorization"
]
},
"GetCertificate": {
"methods": [
"get_certificate"
]
},
"GetCertificateIssuanceConfig": {
"methods": [
"get_certificate_issuance_config"
]
},
"GetCertificateMap": {
"methods": [
"get_certificate_map"
]
},
"GetCertificateMapEntry": {
"methods": [
"get_certificate_map_entry"
]
},
"GetDnsAuthorization": {
"methods": [
"get_dns_authorization"
]
},
"ListCertificateIssuanceConfigs": {
"methods": [
"list_certificate_issuance_configs"
]
},
"ListCertificateMapEntries": {
"methods": [
"list_certificate_map_entries"
]
},
"ListCertificateMaps": {
"methods": [
"list_certificate_maps"
]
},
"ListCertificates": {
"methods": [
"list_certificates"
]
},
"ListDnsAuthorizations": {
"methods": [
"list_dns_authorizations"
]
},
"UpdateCertificate": {
"methods": [
"update_certificate"
]
},
"UpdateCertificateMap": {
"methods": [
"update_certificate_map"
]
},
"UpdateCertificateMapEntry": {
"methods": [
"update_certificate_map_entry"
]
},
"UpdateDnsAuthorization": {
"methods": [
"update_dns_authorization"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, CertificateManagerTransport
from .transports.grpc import CertificateManagerGrpcTransport
from .transports.grpc_asyncio import CertificateManagerGrpcAsyncIOTransport
from .transports.rest import CertificateManagerRestTransport


class CertificateManagerClientMeta(type):
Expand All @@ -80,6 +81,7 @@ class CertificateManagerClientMeta(type):
) # type: Dict[str, Type[CertificateManagerTransport]]
_transport_registry["grpc"] = CertificateManagerGrpcTransport
_transport_registry["grpc_asyncio"] = CertificateManagerGrpcAsyncIOTransport
_transport_registry["rest"] = CertificateManagerRestTransport

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 CertificateManagerTransport
from .grpc import CertificateManagerGrpcTransport
from .grpc_asyncio import CertificateManagerGrpcAsyncIOTransport
from .rest import CertificateManagerRestInterceptor, CertificateManagerRestTransport

# Compile a registry of transports.
_transport_registry = (
OrderedDict()
) # type: Dict[str, Type[CertificateManagerTransport]]
_transport_registry["grpc"] = CertificateManagerGrpcTransport
_transport_registry["grpc_asyncio"] = CertificateManagerGrpcAsyncIOTransport
_transport_registry["rest"] = CertificateManagerRestTransport

__all__ = (
"CertificateManagerTransport",
"CertificateManagerGrpcTransport",
"CertificateManagerGrpcAsyncIOTransport",
"CertificateManagerRestTransport",
"CertificateManagerRestInterceptor",
)
Loading

0 comments on commit acb72ec

Please sign in to comment.