Skip to content

Commit

Permalink
feat: Add support for REST transport (#28)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 474644226

Source-Link: googleapis/googleapis@f90b329

Source-Link: googleapis/googleapis-gen@4ad8763
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFkODc2M2JkZTY3NmY5MmEzZWI3MDc1M2FlMWNmZWQwZTgxMzg3ZSJ9

PiperOrigin-RevId: 474571730

Source-Link: googleapis/googleapis@5a9ee4d

Source-Link: googleapis/googleapis-gen@ceafe52
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2VhZmU1MjFmMTM3NjgwZmRlZTJmOWNhOWUxOTQ3Y2RkODI1MDcwZCJ9

fix(deps): require google-api-core>=1.33.1,>=2.8.0
fix(deps): require protobuf >= 3.20.1
  • Loading branch information
gcf-owl-bot[bot] authored Sep 16, 2022
1 parent 5e4323d commit a40af80
Show file tree
Hide file tree
Showing 20 changed files with 6,237 additions and 552 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,41 @@
]
}
}
},
"rest": {
"libraryClient": "AppConnectorsServiceClient",
"rpcs": {
"CreateAppConnector": {
"methods": [
"create_app_connector"
]
},
"DeleteAppConnector": {
"methods": [
"delete_app_connector"
]
},
"GetAppConnector": {
"methods": [
"get_app_connector"
]
},
"ListAppConnectors": {
"methods": [
"list_app_connectors"
]
},
"ReportStatus": {
"methods": [
"report_status"
]
},
"UpdateAppConnector": {
"methods": [
"update_app_connector"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
from .transports.base import AppConnectorsServiceTransport, DEFAULT_CLIENT_INFO
from .transports.grpc import AppConnectorsServiceGrpcTransport
from .transports.grpc_asyncio import AppConnectorsServiceGrpcAsyncIOTransport
from .transports.rest import AppConnectorsServiceRestTransport


class AppConnectorsServiceClientMeta(type):
Expand All @@ -69,6 +70,7 @@ class AppConnectorsServiceClientMeta(type):
) # type: Dict[str, Type[AppConnectorsServiceTransport]]
_transport_registry["grpc"] = AppConnectorsServiceGrpcTransport
_transport_registry["grpc_asyncio"] = AppConnectorsServiceGrpcAsyncIOTransport
_transport_registry["rest"] = AppConnectorsServiceRestTransport

def get_transport_class(
cls,
Expand Down Expand Up @@ -372,6 +374,9 @@ def __init__(
transport (Union[str, AppConnectorsServiceTransport]): The
transport to use. If set to None, a transport is chosen
automatically.
NOTE: "rest" transport functionality is currently in a
beta state (preview). We welcome your feedback via an
issue in this library's source repository.
client_options (google.api_core.client_options.ClientOptions): Custom options for the
client. It won't take effect if a ``transport`` instance is provided.
(1) The ``api_endpoint`` property can be used to override the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
from .base import AppConnectorsServiceTransport
from .grpc import AppConnectorsServiceGrpcTransport
from .grpc_asyncio import AppConnectorsServiceGrpcAsyncIOTransport
from .rest import AppConnectorsServiceRestTransport
from .rest import AppConnectorsServiceRestInterceptor


# Compile a registry of transports.
Expand All @@ -27,9 +29,12 @@
) # type: Dict[str, Type[AppConnectorsServiceTransport]]
_transport_registry["grpc"] = AppConnectorsServiceGrpcTransport
_transport_registry["grpc_asyncio"] = AppConnectorsServiceGrpcAsyncIOTransport
_transport_registry["rest"] = AppConnectorsServiceRestTransport

__all__ = (
"AppConnectorsServiceTransport",
"AppConnectorsServiceGrpcTransport",
"AppConnectorsServiceGrpcAsyncIOTransport",
"AppConnectorsServiceRestTransport",
"AppConnectorsServiceRestInterceptor",
)
Loading

0 comments on commit a40af80

Please sign in to comment.