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: b3d3ec1b0a579c0f9cd3c746d04f134df4d220b34b68ee4ee08818d3823a3814
4
- data.tar.gz: 2e2c22303302e83f35bf2fe12c9a136adb4a60f1c8b5590a83b6f71a39b1192e
3
+ metadata.gz: a71f4d5ede64b7ca5b82d04afb6bf47725ce75ea72ac6515a0ec585eb39e5aea
4
+ data.tar.gz: c0fa5d14d6927f6f8d28cb0020c0218f38449a2e82b2a2da208527b9c30d7ecd
5
5
  SHA512:
6
- metadata.gz: cfd5af612a18543e5a7c91b93bc412a447d498dbf32d9a13873375beae37912471f37c37683ae222d535bd165eac638307772f67f9acd504ca5e78392d365627
7
- data.tar.gz: a581b6dd97f6542639367ba8bd74cbc4e851808171fe0ed24286259a5b66552c61cd7ac6fb2d942f243069761c865429d963e635a2a61880cdd0dc157e441f4b
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
- # ## Example
47
+ # @example
48
48
  #
49
- # To modify the configuration for all DocumentProcessorService clients:
50
- #
51
- # ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.configure do |config|
52
- # config.timeout = 10.0
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
- # ## Examples
116
- #
117
- # To create a new DocumentProcessorService client with the default
118
- # configuration:
114
+ # @example
119
115
  #
120
- # client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
116
+ # # Create a client using the default configuration
117
+ # client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
121
118
  #
122
- # To create a new DocumentProcessorService client with a custom
123
- # configuration:
124
- #
125
- # client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new do |config|
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
843
- #
844
- # To modify the global config, setting the timeout for process_document
845
- # to 20 seconds, and all remaining timeouts to 10 seconds:
846
- #
847
- # ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.configure do |config|
848
- # config.timeout = 10.0
849
- # config.rpcs.process_document.timeout = 20.0
850
- # end
851
- #
852
- # To apply the above configuration only to a new client:
853
- #
854
- # client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new do |config|
855
- # config.timeout = 10.0
856
- # config.rpcs.process_document.timeout = 20.0
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DocumentAI
23
23
  module V1beta3
24
- VERSION = "0.9.1"
24
+ VERSION = "0.9.2"
25
25
  end
26
26
  end
27
27
  end
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.1
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-07-29 00:00:00.000000000 Z
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.5'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a