google-cloud-document_ai-v1beta3 0.8.0 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +8 -8
  3. data/README.md +1 -1
  4. data/lib/google/cloud/document_ai/v1beta3/document_processor_service/client.rb +719 -62
  5. data/lib/google/cloud/document_ai/v1beta3/document_processor_service/operations.rb +149 -37
  6. data/lib/google/cloud/document_ai/v1beta3/document_processor_service/paths.rb +17 -0
  7. data/lib/google/cloud/document_ai/v1beta3/version.rb +1 -1
  8. data/lib/google/cloud/documentai/v1beta3/document_io_pb.rb +1 -1
  9. data/lib/google/cloud/documentai/v1beta3/document_pb.rb +5 -2
  10. data/lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb +66 -18
  11. data/lib/google/cloud/documentai/v1beta3/document_processor_service_services_pb.rb +15 -1
  12. data/lib/google/cloud/documentai/v1beta3/geometry_pb.rb +1 -1
  13. data/lib/google/cloud/documentai/v1beta3/operation_metadata_pb.rb +36 -0
  14. data/lib/google/cloud/documentai/v1beta3/processor_pb.rb +45 -0
  15. data/lib/google/cloud/documentai/v1beta3/processor_type_pb.rb +32 -0
  16. data/proto_docs/google/api/field_behavior.rb +7 -1
  17. data/proto_docs/google/cloud/documentai/v1beta3/document.rb +12 -0
  18. data/proto_docs/google/cloud/documentai/v1beta3/document_processor_service.rb +149 -39
  19. data/proto_docs/google/cloud/documentai/v1beta3/geometry.rb +2 -2
  20. data/proto_docs/google/cloud/documentai/v1beta3/operation_metadata.rb +65 -0
  21. data/proto_docs/google/cloud/documentai/v1beta3/processor.rb +86 -0
  22. data/proto_docs/google/cloud/documentai/v1beta3/processor_type.rb +59 -0
  23. data/proto_docs/google/type/color.rb +16 -11
  24. data/proto_docs/google/type/date.rb +14 -11
  25. data/proto_docs/google/type/datetime.rb +9 -1
  26. data/proto_docs/google/type/money.rb +1 -1
  27. metadata +19 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8dfe5b697fb42bd1a6da16d56992597ab4c2b3f3859f14fc5f309512174ed54
4
- data.tar.gz: 9c916451654cc017f118e00d5c88f0bb921642d3913512359eacc337f0523777
3
+ metadata.gz: c57c8f6be04d9612fc1d777c22ee2efc21fc9646c03f203b4bfcc04e48079e52
4
+ data.tar.gz: 5c8562897b9d0a6c2fa8a445d4055074ca99d8175436f23276cffa1a86934ba9
5
5
  SHA512:
6
- metadata.gz: '0887ece89f411645b46aca64c26a93331dfa2a796016998e0b55bfea2b2f654969847ec571657d6b5261436a17fe96a4fab6193f4be61b9b7646a3bc5eba49dd'
7
- data.tar.gz: 9f4a12a0459b51ad704b8419b7a0772b9b98afc0da315f915d47b720b1571162a410bd73b2a38a42db94491c6d2fbcd71710cc211c0c16deaa8c94a89f846e0d
6
+ metadata.gz: f9cb20f2166f12c91e1ca5286954499084be6500aef22a3539c4d40edb2cb37a716e4541cd4cdac3f8f534f99f007e1f85d100c3489f957ffd9e8f7d0a205a76
7
+ data.tar.gz: f73e1ba783dc650369946ec1948efb53fd509252070538f0f454653b2e10bad97c1e67dce7aac36cf36555d8e02117373033caf2f369709314bb30e9556db1be
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-document_ai-v1beta3
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Credentials}):
68
68
 
69
- 1. `DOCUMENT_AI_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `DOCUMENT_AI_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `DOCUMENT_AI_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `DOCUMENT_AI_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/document_ai/v1beta3"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/document_ai/v1beta3"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/document_ai/v1beta3"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/document_ai/v1beta3"
34
34
 
35
35
  client = ::Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::DocumentAI::V1beta3::ProcessRequest.new # (request fields as keyword arguments...)
37
37
  response = client.process_document request
38
38
  ```
39
39