google-cloud-document_ai-v1beta3 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a71f4d5ede64b7ca5b82d04afb6bf47725ce75ea72ac6515a0ec585eb39e5aea
|
4
|
+
data.tar.gz: c0fa5d14d6927f6f8d28cb0020c0218f38449a2e82b2a2da208527b9c30d7ecd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d94f1cfcfbaf22c26d3adb0ce927647f86c693d19a576776d3d48a2cc7e4e913aebd88bd9fb267e09afd6e515d454984e83244552b697b4727fcbdf362abe4a1
|
7
|
+
data.tar.gz: 3b90ef2fa4403cdf0694040a3d07943b3b5987602ec91a2cef4e32f878fffd22d8174d0166f7c2201831048c778a7af170c4a95d84854440172932d5d6c18091
|
@@ -44,13 +44,12 @@ module Google
|
|
44
44
|
# See {::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client::Configuration}
|
45
45
|
# for a description of the configuration fields.
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# @example
|
48
48
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# end
|
49
|
+
# # Modify the configuration for all DocumentProcessorService clients
|
50
|
+
# ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
|
+
# end
|
54
53
|
#
|
55
54
|
# @yield [config] Configure the Client client.
|
56
55
|
# @yieldparam config [Client::Configuration]
|
@@ -112,19 +111,15 @@ module Google
|
|
112
111
|
##
|
113
112
|
# Create a new DocumentProcessorService client object.
|
114
113
|
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
# To create a new DocumentProcessorService client with the default
|
118
|
-
# configuration:
|
114
|
+
# @example
|
119
115
|
#
|
120
|
-
#
|
116
|
+
# # Create a client using the default configuration
|
117
|
+
# client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
|
121
118
|
#
|
122
|
-
#
|
123
|
-
#
|
124
|
-
#
|
125
|
-
#
|
126
|
-
# config.timeout = 10.0
|
127
|
-
# end
|
119
|
+
# # Create a client using a custom configuration
|
120
|
+
# client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new do |config|
|
121
|
+
# config.timeout = 10.0
|
122
|
+
# end
|
128
123
|
#
|
129
124
|
# @yield [config] Configure the DocumentProcessorService client.
|
130
125
|
# @yieldparam config [Client::Configuration]
|
@@ -144,10 +139,9 @@ module Google
|
|
144
139
|
|
145
140
|
# Create credentials
|
146
141
|
credentials = @config.credentials
|
147
|
-
# Use self-signed JWT if the
|
142
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
148
143
|
# but only if the default endpoint does not have a region prefix.
|
149
|
-
enable_self_signed_jwt = @config.
|
150
|
-
@config.endpoint == Client.configure.endpoint &&
|
144
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
151
145
|
!@config.endpoint.split(".").first.include?("-")
|
152
146
|
credentials ||= Credentials.default scope: @config.scope,
|
153
147
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -244,7 +238,9 @@ module Google
|
|
244
238
|
options.apply_defaults timeout: @config.rpcs.process_document.timeout,
|
245
239
|
metadata: metadata,
|
246
240
|
retry_policy: @config.rpcs.process_document.retry_policy
|
247
|
-
|
241
|
+
|
242
|
+
options.apply_defaults timeout: @config.timeout,
|
243
|
+
metadata: @config.metadata,
|
248
244
|
retry_policy: @config.retry_policy
|
249
245
|
|
250
246
|
@document_processor_service_stub.call_rpc :process_document, request, options: options do |response, operation|
|
@@ -322,7 +318,9 @@ module Google
|
|
322
318
|
options.apply_defaults timeout: @config.rpcs.batch_process_documents.timeout,
|
323
319
|
metadata: metadata,
|
324
320
|
retry_policy: @config.rpcs.batch_process_documents.retry_policy
|
325
|
-
|
321
|
+
|
322
|
+
options.apply_defaults timeout: @config.timeout,
|
323
|
+
metadata: @config.metadata,
|
326
324
|
retry_policy: @config.retry_policy
|
327
325
|
|
328
326
|
@document_processor_service_stub.call_rpc :batch_process_documents, request, options: options do |response, operation|
|
@@ -390,7 +388,9 @@ module Google
|
|
390
388
|
options.apply_defaults timeout: @config.rpcs.fetch_processor_types.timeout,
|
391
389
|
metadata: metadata,
|
392
390
|
retry_policy: @config.rpcs.fetch_processor_types.retry_policy
|
393
|
-
|
391
|
+
|
392
|
+
options.apply_defaults timeout: @config.timeout,
|
393
|
+
metadata: @config.metadata,
|
394
394
|
retry_policy: @config.retry_policy
|
395
395
|
|
396
396
|
@document_processor_service_stub.call_rpc :fetch_processor_types, request, options: options do |response, operation|
|
@@ -464,7 +464,9 @@ module Google
|
|
464
464
|
options.apply_defaults timeout: @config.rpcs.list_processors.timeout,
|
465
465
|
metadata: metadata,
|
466
466
|
retry_policy: @config.rpcs.list_processors.retry_policy
|
467
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
468
470
|
retry_policy: @config.retry_policy
|
469
471
|
|
470
472
|
@document_processor_service_stub.call_rpc :list_processors, request, options: options do |response, operation|
|
@@ -536,7 +538,9 @@ module Google
|
|
536
538
|
options.apply_defaults timeout: @config.rpcs.create_processor.timeout,
|
537
539
|
metadata: metadata,
|
538
540
|
retry_policy: @config.rpcs.create_processor.retry_policy
|
539
|
-
|
541
|
+
|
542
|
+
options.apply_defaults timeout: @config.timeout,
|
543
|
+
metadata: @config.metadata,
|
540
544
|
retry_policy: @config.retry_policy
|
541
545
|
|
542
546
|
@document_processor_service_stub.call_rpc :create_processor, request, options: options do |response, operation|
|
@@ -603,7 +607,9 @@ module Google
|
|
603
607
|
options.apply_defaults timeout: @config.rpcs.delete_processor.timeout,
|
604
608
|
metadata: metadata,
|
605
609
|
retry_policy: @config.rpcs.delete_processor.retry_policy
|
606
|
-
|
610
|
+
|
611
|
+
options.apply_defaults timeout: @config.timeout,
|
612
|
+
metadata: @config.metadata,
|
607
613
|
retry_policy: @config.retry_policy
|
608
614
|
|
609
615
|
@document_processor_service_stub.call_rpc :delete_processor, request, options: options do |response, operation|
|
@@ -670,7 +676,9 @@ module Google
|
|
670
676
|
options.apply_defaults timeout: @config.rpcs.enable_processor.timeout,
|
671
677
|
metadata: metadata,
|
672
678
|
retry_policy: @config.rpcs.enable_processor.retry_policy
|
673
|
-
|
679
|
+
|
680
|
+
options.apply_defaults timeout: @config.timeout,
|
681
|
+
metadata: @config.metadata,
|
674
682
|
retry_policy: @config.retry_policy
|
675
683
|
|
676
684
|
@document_processor_service_stub.call_rpc :enable_processor, request, options: options do |response, operation|
|
@@ -737,7 +745,9 @@ module Google
|
|
737
745
|
options.apply_defaults timeout: @config.rpcs.disable_processor.timeout,
|
738
746
|
metadata: metadata,
|
739
747
|
retry_policy: @config.rpcs.disable_processor.retry_policy
|
740
|
-
|
748
|
+
|
749
|
+
options.apply_defaults timeout: @config.timeout,
|
750
|
+
metadata: @config.metadata,
|
741
751
|
retry_policy: @config.retry_policy
|
742
752
|
|
743
753
|
@document_processor_service_stub.call_rpc :disable_processor, request, options: options do |response, operation|
|
@@ -814,7 +824,9 @@ module Google
|
|
814
824
|
options.apply_defaults timeout: @config.rpcs.review_document.timeout,
|
815
825
|
metadata: metadata,
|
816
826
|
retry_policy: @config.rpcs.review_document.retry_policy
|
817
|
-
|
827
|
+
|
828
|
+
options.apply_defaults timeout: @config.timeout,
|
829
|
+
metadata: @config.metadata,
|
818
830
|
retry_policy: @config.retry_policy
|
819
831
|
|
820
832
|
@document_processor_service_stub.call_rpc :review_document, request, options: options do |response, operation|
|
@@ -839,22 +851,21 @@ module Google
|
|
839
851
|
# Configuration can be applied globally to all clients, or to a single client
|
840
852
|
# on construction.
|
841
853
|
#
|
842
|
-
#
|
843
|
-
#
|
844
|
-
#
|
845
|
-
# to 20 seconds,
|
846
|
-
#
|
847
|
-
#
|
848
|
-
#
|
849
|
-
#
|
850
|
-
#
|
851
|
-
#
|
852
|
-
#
|
853
|
-
#
|
854
|
-
#
|
855
|
-
#
|
856
|
-
#
|
857
|
-
# end
|
854
|
+
# @example
|
855
|
+
#
|
856
|
+
# # Modify the global config, setting the timeout for
|
857
|
+
# # process_document to 20 seconds,
|
858
|
+
# # and all remaining timeouts to 10 seconds.
|
859
|
+
# ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.configure do |config|
|
860
|
+
# config.timeout = 10.0
|
861
|
+
# config.rpcs.process_document.timeout = 20.0
|
862
|
+
# end
|
863
|
+
#
|
864
|
+
# # Apply the above configuration only to a new client.
|
865
|
+
# client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new do |config|
|
866
|
+
# config.timeout = 10.0
|
867
|
+
# config.rpcs.process_document.timeout = 20.0
|
868
|
+
# end
|
858
869
|
#
|
859
870
|
# @!attribute [rw] endpoint
|
860
871
|
# The hostname or hostname:port of the service endpoint.
|
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
172
|
+
|
173
|
+
options.apply_defaults timeout: @config.timeout,
|
174
|
+
metadata: @config.metadata,
|
173
175
|
retry_policy: @config.retry_policy
|
174
176
|
|
175
177
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -239,7 +241,9 @@ module Google
|
|
239
241
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
240
242
|
metadata: metadata,
|
241
243
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
242
|
-
|
244
|
+
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
246
|
+
metadata: @config.metadata,
|
243
247
|
retry_policy: @config.retry_policy
|
244
248
|
|
245
249
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -309,7 +313,9 @@ module Google
|
|
309
313
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
310
314
|
metadata: metadata,
|
311
315
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
312
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
313
319
|
retry_policy: @config.retry_policy
|
314
320
|
|
315
321
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -384,7 +390,9 @@ module Google
|
|
384
390
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
385
391
|
metadata: metadata,
|
386
392
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
387
|
-
|
393
|
+
|
394
|
+
options.apply_defaults timeout: @config.timeout,
|
395
|
+
metadata: @config.metadata,
|
388
396
|
retry_policy: @config.retry_policy
|
389
397
|
|
390
398
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -456,7 +464,9 @@ module Google
|
|
456
464
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
465
|
metadata: metadata,
|
458
466
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
460
470
|
retry_policy: @config.retry_policy
|
461
471
|
|
462
472
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -481,22 +491,21 @@ module Google
|
|
481
491
|
# Configuration can be applied globally to all clients, or to a single client
|
482
492
|
# on construction.
|
483
493
|
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
# end
|
494
|
+
# @example
|
495
|
+
#
|
496
|
+
# # Modify the global config, setting the timeout for
|
497
|
+
# # list_operations to 20 seconds,
|
498
|
+
# # and all remaining timeouts to 10 seconds.
|
499
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
500
|
+
# config.timeout = 10.0
|
501
|
+
# config.rpcs.list_operations.timeout = 20.0
|
502
|
+
# end
|
503
|
+
#
|
504
|
+
# # Apply the above configuration only to a new client.
|
505
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
506
|
+
# config.timeout = 10.0
|
507
|
+
# config.rpcs.list_operations.timeout = 20.0
|
508
|
+
# end
|
500
509
|
#
|
501
510
|
# @!attribute [rw] endpoint
|
502
511
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-document_ai-v1beta3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|