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 46
46
]
47
47
}
48
48
}
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
+ }
49
69
}
50
70
}
51
71
},
140
160
]
141
161
}
142
162
}
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
+ }
143
208
}
144
209
}
145
210
}
Original file line number Diff line number Diff line change 47
47
from .transports .base import RevisionsTransport , DEFAULT_CLIENT_INFO
48
48
from .transports .grpc import RevisionsGrpcTransport
49
49
from .transports .grpc_asyncio import RevisionsGrpcAsyncIOTransport
50
+ from .transports .rest import RevisionsRestTransport
50
51
51
52
52
53
class RevisionsClientMeta (type ):
@@ -60,6 +61,7 @@ class RevisionsClientMeta(type):
60
61
_transport_registry = OrderedDict () # type: Dict[str, Type[RevisionsTransport]]
61
62
_transport_registry ["grpc" ] = RevisionsGrpcTransport
62
63
_transport_registry ["grpc_asyncio" ] = RevisionsGrpcAsyncIOTransport
64
+ _transport_registry ["rest" ] = RevisionsRestTransport
63
65
64
66
def get_transport_class (
65
67
cls ,
@@ -462,6 +464,9 @@ def __init__(
462
464
transport (Union[str, RevisionsTransport]): The
463
465
transport to use. If set to None, a transport is chosen
464
466
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.
465
470
client_options (google.api_core.client_options.ClientOptions): Custom options for the
466
471
client. It won't take effect if a ``transport`` instance is provided.
467
472
(1) The ``api_endpoint`` property can be used to override the
Original file line number Diff line number Diff line change 19
19
from .base import RevisionsTransport
20
20
from .grpc import RevisionsGrpcTransport
21
21
from .grpc_asyncio import RevisionsGrpcAsyncIOTransport
22
+ from .rest import RevisionsRestTransport
23
+ from .rest import RevisionsRestInterceptor
22
24
23
25
24
26
# Compile a registry of transports.
25
27
_transport_registry = OrderedDict () # type: Dict[str, Type[RevisionsTransport]]
26
28
_transport_registry ["grpc" ] = RevisionsGrpcTransport
27
29
_transport_registry ["grpc_asyncio" ] = RevisionsGrpcAsyncIOTransport
30
+ _transport_registry ["rest" ] = RevisionsRestTransport
28
31
29
32
__all__ = (
30
33
"RevisionsTransport" ,
31
34
"RevisionsGrpcTransport" ,
32
35
"RevisionsGrpcAsyncIOTransport" ,
36
+ "RevisionsRestTransport" ,
37
+ "RevisionsRestInterceptor" ,
33
38
)
Original file line number Diff line number Diff line change 50
50
from .transports .base import ServicesTransport , DEFAULT_CLIENT_INFO
51
51
from .transports .grpc import ServicesGrpcTransport
52
52
from .transports .grpc_asyncio import ServicesGrpcAsyncIOTransport
53
+ from .transports .rest import ServicesRestTransport
53
54
54
55
55
56
class ServicesClientMeta (type ):
@@ -63,6 +64,7 @@ class ServicesClientMeta(type):
63
64
_transport_registry = OrderedDict () # type: Dict[str, Type[ServicesTransport]]
64
65
_transport_registry ["grpc" ] = ServicesGrpcTransport
65
66
_transport_registry ["grpc_asyncio" ] = ServicesGrpcAsyncIOTransport
67
+ _transport_registry ["rest" ] = ServicesRestTransport
66
68
67
69
def get_transport_class (
68
70
cls ,
@@ -465,6 +467,9 @@ def __init__(
465
467
transport (Union[str, ServicesTransport]): The
466
468
transport to use. If set to None, a transport is chosen
467
469
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.
468
473
client_options (google.api_core.client_options.ClientOptions): Custom options for the
469
474
client. It won't take effect if a ``transport`` instance is provided.
470
475
(1) The ``api_endpoint`` property can be used to override the
Original file line number Diff line number Diff line change 19
19
from .base import ServicesTransport
20
20
from .grpc import ServicesGrpcTransport
21
21
from .grpc_asyncio import ServicesGrpcAsyncIOTransport
22
+ from .rest import ServicesRestTransport
23
+ from .rest import ServicesRestInterceptor
22
24
23
25
24
26
# Compile a registry of transports.
25
27
_transport_registry = OrderedDict () # type: Dict[str, Type[ServicesTransport]]
26
28
_transport_registry ["grpc" ] = ServicesGrpcTransport
27
29
_transport_registry ["grpc_asyncio" ] = ServicesGrpcAsyncIOTransport
30
+ _transport_registry ["rest" ] = ServicesRestTransport
28
31
29
32
__all__ = (
30
33
"ServicesTransport" ,
31
34
"ServicesGrpcTransport" ,
32
35
"ServicesGrpcAsyncIOTransport" ,
36
+ "ServicesRestTransport" ,
37
+ "ServicesRestInterceptor" ,
33
38
)
You can’t perform that action at this time.
0 commit comments