File tree Expand file tree Collapse file tree 8 files changed +4912
-268
lines changed
packages/google-cloud-run
samples/generated_samples Expand file tree Collapse file tree 8 files changed +4912
-268
lines changed Original file line number Diff line number Diff line change 4646 ]
4747 }
4848 }
49+ },
50+ "rest" : {
51+ "libraryClient" : " RevisionsClient" ,
52+ "rpcs" : {
53+ "DeleteRevision" : {
54+ "methods" : [
55+ " delete_revision"
56+ ]
57+ },
58+ "GetRevision" : {
59+ "methods" : [
60+ " get_revision"
61+ ]
62+ },
63+ "ListRevisions" : {
64+ "methods" : [
65+ " list_revisions"
66+ ]
67+ }
68+ }
4969 }
5070 }
5171 },
140160 ]
141161 }
142162 }
163+ },
164+ "rest" : {
165+ "libraryClient" : " ServicesClient" ,
166+ "rpcs" : {
167+ "CreateService" : {
168+ "methods" : [
169+ " create_service"
170+ ]
171+ },
172+ "DeleteService" : {
173+ "methods" : [
174+ " delete_service"
175+ ]
176+ },
177+ "GetIamPolicy" : {
178+ "methods" : [
179+ " get_iam_policy"
180+ ]
181+ },
182+ "GetService" : {
183+ "methods" : [
184+ " get_service"
185+ ]
186+ },
187+ "ListServices" : {
188+ "methods" : [
189+ " list_services"
190+ ]
191+ },
192+ "SetIamPolicy" : {
193+ "methods" : [
194+ " set_iam_policy"
195+ ]
196+ },
197+ "TestIamPermissions" : {
198+ "methods" : [
199+ " test_iam_permissions"
200+ ]
201+ },
202+ "UpdateService" : {
203+ "methods" : [
204+ " update_service"
205+ ]
206+ }
207+ }
143208 }
144209 }
145210 }
Original file line number Diff line number Diff line change 4747from .transports .base import RevisionsTransport , DEFAULT_CLIENT_INFO
4848from .transports .grpc import RevisionsGrpcTransport
4949from .transports .grpc_asyncio import RevisionsGrpcAsyncIOTransport
50+ from .transports .rest import RevisionsRestTransport
5051
5152
5253class RevisionsClientMeta (type ):
@@ -60,6 +61,7 @@ class RevisionsClientMeta(type):
6061 _transport_registry = OrderedDict () # type: Dict[str, Type[RevisionsTransport]]
6162 _transport_registry ["grpc" ] = RevisionsGrpcTransport
6263 _transport_registry ["grpc_asyncio" ] = RevisionsGrpcAsyncIOTransport
64+ _transport_registry ["rest" ] = RevisionsRestTransport
6365
6466 def get_transport_class (
6567 cls ,
@@ -462,6 +464,9 @@ def __init__(
462464 transport (Union[str, RevisionsTransport]): The
463465 transport to use. If set to None, a transport is chosen
464466 automatically.
467+ NOTE: "rest" transport functionality is currently in a
468+ beta state (preview). We welcome your feedback via an
469+ issue in this library's source repository.
465470 client_options (google.api_core.client_options.ClientOptions): Custom options for the
466471 client. It won't take effect if a ``transport`` instance is provided.
467472 (1) The ``api_endpoint`` property can be used to override the
Original file line number Diff line number Diff line change 1919from .base import RevisionsTransport
2020from .grpc import RevisionsGrpcTransport
2121from .grpc_asyncio import RevisionsGrpcAsyncIOTransport
22+ from .rest import RevisionsRestTransport
23+ from .rest import RevisionsRestInterceptor
2224
2325
2426# Compile a registry of transports.
2527_transport_registry = OrderedDict () # type: Dict[str, Type[RevisionsTransport]]
2628_transport_registry ["grpc" ] = RevisionsGrpcTransport
2729_transport_registry ["grpc_asyncio" ] = RevisionsGrpcAsyncIOTransport
30+ _transport_registry ["rest" ] = RevisionsRestTransport
2831
2932__all__ = (
3033 "RevisionsTransport" ,
3134 "RevisionsGrpcTransport" ,
3235 "RevisionsGrpcAsyncIOTransport" ,
36+ "RevisionsRestTransport" ,
37+ "RevisionsRestInterceptor" ,
3338)
Original file line number Diff line number Diff line change 5050from .transports .base import ServicesTransport , DEFAULT_CLIENT_INFO
5151from .transports .grpc import ServicesGrpcTransport
5252from .transports .grpc_asyncio import ServicesGrpcAsyncIOTransport
53+ from .transports .rest import ServicesRestTransport
5354
5455
5556class ServicesClientMeta (type ):
@@ -63,6 +64,7 @@ class ServicesClientMeta(type):
6364 _transport_registry = OrderedDict () # type: Dict[str, Type[ServicesTransport]]
6465 _transport_registry ["grpc" ] = ServicesGrpcTransport
6566 _transport_registry ["grpc_asyncio" ] = ServicesGrpcAsyncIOTransport
67+ _transport_registry ["rest" ] = ServicesRestTransport
6668
6769 def get_transport_class (
6870 cls ,
@@ -465,6 +467,9 @@ def __init__(
465467 transport (Union[str, ServicesTransport]): The
466468 transport to use. If set to None, a transport is chosen
467469 automatically.
470+ NOTE: "rest" transport functionality is currently in a
471+ beta state (preview). We welcome your feedback via an
472+ issue in this library's source repository.
468473 client_options (google.api_core.client_options.ClientOptions): Custom options for the
469474 client. It won't take effect if a ``transport`` instance is provided.
470475 (1) The ``api_endpoint`` property can be used to override the
Original file line number Diff line number Diff line change 1919from .base import ServicesTransport
2020from .grpc import ServicesGrpcTransport
2121from .grpc_asyncio import ServicesGrpcAsyncIOTransport
22+ from .rest import ServicesRestTransport
23+ from .rest import ServicesRestInterceptor
2224
2325
2426# Compile a registry of transports.
2527_transport_registry = OrderedDict () # type: Dict[str, Type[ServicesTransport]]
2628_transport_registry ["grpc" ] = ServicesGrpcTransport
2729_transport_registry ["grpc_asyncio" ] = ServicesGrpcAsyncIOTransport
30+ _transport_registry ["rest" ] = ServicesRestTransport
2831
2932__all__ = (
3033 "ServicesTransport" ,
3134 "ServicesGrpcTransport" ,
3235 "ServicesGrpcAsyncIOTransport" ,
36+ "ServicesRestTransport" ,
37+ "ServicesRestInterceptor" ,
3338)
You can’t perform that action at this time.
0 commit comments