File tree Expand file tree Collapse file tree 10 files changed +19688
-194
lines changed
packages/google-cloud-documentai
services/document_processor_service
services/document_processor_service Expand file tree Collapse file tree 10 files changed +19688
-194
lines changed Original file line number Diff line number Diff line change 196
196
]
197
197
}
198
198
}
199
+ },
200
+ "rest" : {
201
+ "libraryClient" : " DocumentProcessorServiceClient" ,
202
+ "rpcs" : {
203
+ "BatchProcessDocuments" : {
204
+ "methods" : [
205
+ " batch_process_documents"
206
+ ]
207
+ },
208
+ "CreateProcessor" : {
209
+ "methods" : [
210
+ " create_processor"
211
+ ]
212
+ },
213
+ "DeleteProcessor" : {
214
+ "methods" : [
215
+ " delete_processor"
216
+ ]
217
+ },
218
+ "DeleteProcessorVersion" : {
219
+ "methods" : [
220
+ " delete_processor_version"
221
+ ]
222
+ },
223
+ "DeployProcessorVersion" : {
224
+ "methods" : [
225
+ " deploy_processor_version"
226
+ ]
227
+ },
228
+ "DisableProcessor" : {
229
+ "methods" : [
230
+ " disable_processor"
231
+ ]
232
+ },
233
+ "EnableProcessor" : {
234
+ "methods" : [
235
+ " enable_processor"
236
+ ]
237
+ },
238
+ "FetchProcessorTypes" : {
239
+ "methods" : [
240
+ " fetch_processor_types"
241
+ ]
242
+ },
243
+ "GetProcessor" : {
244
+ "methods" : [
245
+ " get_processor"
246
+ ]
247
+ },
248
+ "GetProcessorType" : {
249
+ "methods" : [
250
+ " get_processor_type"
251
+ ]
252
+ },
253
+ "GetProcessorVersion" : {
254
+ "methods" : [
255
+ " get_processor_version"
256
+ ]
257
+ },
258
+ "ListProcessorTypes" : {
259
+ "methods" : [
260
+ " list_processor_types"
261
+ ]
262
+ },
263
+ "ListProcessorVersions" : {
264
+ "methods" : [
265
+ " list_processor_versions"
266
+ ]
267
+ },
268
+ "ListProcessors" : {
269
+ "methods" : [
270
+ " list_processors"
271
+ ]
272
+ },
273
+ "ProcessDocument" : {
274
+ "methods" : [
275
+ " process_document"
276
+ ]
277
+ },
278
+ "ReviewDocument" : {
279
+ "methods" : [
280
+ " review_document"
281
+ ]
282
+ },
283
+ "SetDefaultProcessorVersion" : {
284
+ "methods" : [
285
+ " set_default_processor_version"
286
+ ]
287
+ },
288
+ "UndeployProcessorVersion" : {
289
+ "methods" : [
290
+ " undeploy_processor_version"
291
+ ]
292
+ }
293
+ }
199
294
}
200
295
}
201
296
}
Original file line number Diff line number Diff line change 67
67
from .transports .base import DEFAULT_CLIENT_INFO , DocumentProcessorServiceTransport
68
68
from .transports .grpc import DocumentProcessorServiceGrpcTransport
69
69
from .transports .grpc_asyncio import DocumentProcessorServiceGrpcAsyncIOTransport
70
+ from .transports .rest import DocumentProcessorServiceRestTransport
70
71
71
72
72
73
class DocumentProcessorServiceClientMeta (type ):
@@ -82,6 +83,7 @@ class DocumentProcessorServiceClientMeta(type):
82
83
) # type: Dict[str, Type[DocumentProcessorServiceTransport]]
83
84
_transport_registry ["grpc" ] = DocumentProcessorServiceGrpcTransport
84
85
_transport_registry ["grpc_asyncio" ] = DocumentProcessorServiceGrpcAsyncIOTransport
86
+ _transport_registry ["rest" ] = DocumentProcessorServiceRestTransport
85
87
86
88
def get_transport_class (
87
89
cls ,
Original file line number Diff line number Diff line change 19
19
from .base import DocumentProcessorServiceTransport
20
20
from .grpc import DocumentProcessorServiceGrpcTransport
21
21
from .grpc_asyncio import DocumentProcessorServiceGrpcAsyncIOTransport
22
+ from .rest import (
23
+ DocumentProcessorServiceRestInterceptor ,
24
+ DocumentProcessorServiceRestTransport ,
25
+ )
22
26
23
27
# Compile a registry of transports.
24
28
_transport_registry = (
25
29
OrderedDict ()
26
30
) # type: Dict[str, Type[DocumentProcessorServiceTransport]]
27
31
_transport_registry ["grpc" ] = DocumentProcessorServiceGrpcTransport
28
32
_transport_registry ["grpc_asyncio" ] = DocumentProcessorServiceGrpcAsyncIOTransport
33
+ _transport_registry ["rest" ] = DocumentProcessorServiceRestTransport
29
34
30
35
__all__ = (
31
36
"DocumentProcessorServiceTransport" ,
32
37
"DocumentProcessorServiceGrpcTransport" ,
33
38
"DocumentProcessorServiceGrpcAsyncIOTransport" ,
39
+ "DocumentProcessorServiceRestTransport" ,
40
+ "DocumentProcessorServiceRestInterceptor" ,
34
41
)
You can’t perform that action at this time.
0 commit comments