google-apis-documentai_v1beta3 0.65.0 → 0.66.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/documentai_v1beta3/classes.rb +184 -0
- data/lib/google/apis/documentai_v1beta3/gem_version.rb +2 -2
- data/lib/google/apis/documentai_v1beta3/representations.rb +101 -0
- data/lib/google/apis/documentai_v1beta3/service.rb +35 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5eb31fb1128c450ca8360097c5a08eb0ba2e09334c4644e50264f1fe43dc33db
|
4
|
+
data.tar.gz: c5b4a9a21702c57337a9acbc058caf8e6ed5c5f46e89c1874b112c912307358f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fe1c41d74d3a623ba4c8df38e8c6134658d18030ee628dc15ec2e963c4078dfd6c81f44f1b3b51453508d33f395145b4bed964674f229561a2e287cdbc31b49
|
7
|
+
data.tar.gz: 3bd13fcbd20ed329388c2d11d3efde14ff21984084f514dc9e35e0f398cb032172212a376c36f0712e290b038e0aa655cc2dbaed2557c0b91e762353f891b4b6
|
data/CHANGELOG.md
CHANGED
@@ -22,6 +22,81 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module DocumentaiV1beta3
|
24
24
|
|
25
|
+
# Metadata of the auto-labeling documents operation.
|
26
|
+
class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The common metadata for long running operations.
|
30
|
+
# Corresponds to the JSON property `commonMetadata`
|
31
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
|
32
|
+
attr_accessor :common_metadata
|
33
|
+
|
34
|
+
# The list of individual auto-labeling statuses of the dataset documents.
|
35
|
+
# Corresponds to the JSON property `individualAutoLabelStatuses`
|
36
|
+
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus>]
|
37
|
+
attr_accessor :individual_auto_label_statuses
|
38
|
+
|
39
|
+
# Total number of the auto-labeling documents.
|
40
|
+
# Corresponds to the JSON property `totalDocumentCount`
|
41
|
+
# @return [Fixnum]
|
42
|
+
attr_accessor :total_document_count
|
43
|
+
|
44
|
+
def initialize(**args)
|
45
|
+
update!(**args)
|
46
|
+
end
|
47
|
+
|
48
|
+
# Update properties of this object
|
49
|
+
def update!(**args)
|
50
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
51
|
+
@individual_auto_label_statuses = args[:individual_auto_label_statuses] if args.key?(:individual_auto_label_statuses)
|
52
|
+
@total_document_count = args[:total_document_count] if args.key?(:total_document_count)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# The status of individual documents in the auto-labeling process.
|
57
|
+
class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus
|
58
|
+
include Google::Apis::Core::Hashable
|
59
|
+
|
60
|
+
# The gcs_uri of the auto-labeling document, which uniquely identifies a dataset
|
61
|
+
# document.
|
62
|
+
# Corresponds to the JSON property `gcsUri`
|
63
|
+
# @return [String]
|
64
|
+
attr_accessor :gcs_uri
|
65
|
+
|
66
|
+
# The `Status` type defines a logical error model that is suitable for different
|
67
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
68
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
69
|
+
# data: error code, error message, and error details. You can find out more
|
70
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
71
|
+
# //cloud.google.com/apis/design/errors).
|
72
|
+
# Corresponds to the JSON property `status`
|
73
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleRpcStatus]
|
74
|
+
attr_accessor :status
|
75
|
+
|
76
|
+
def initialize(**args)
|
77
|
+
update!(**args)
|
78
|
+
end
|
79
|
+
|
80
|
+
# Update properties of this object
|
81
|
+
def update!(**args)
|
82
|
+
@gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
|
83
|
+
@status = args[:status] if args.key?(:status)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# The response proto of AutoLabelDocuments method.
|
88
|
+
class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse
|
89
|
+
include Google::Apis::Core::Hashable
|
90
|
+
|
91
|
+
def initialize(**args)
|
92
|
+
update!(**args)
|
93
|
+
end
|
94
|
+
|
95
|
+
# Update properties of this object
|
96
|
+
def update!(**args)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
25
100
|
#
|
26
101
|
class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata
|
27
102
|
include Google::Apis::Core::Hashable
|
@@ -8424,6 +8499,69 @@ module Google
|
|
8424
8499
|
end
|
8425
8500
|
end
|
8426
8501
|
|
8502
|
+
# The long running operation metadata for the ImportProcessorVersion method.
|
8503
|
+
class GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata
|
8504
|
+
include Google::Apis::Core::Hashable
|
8505
|
+
|
8506
|
+
# The common metadata for long running operations.
|
8507
|
+
# Corresponds to the JSON property `commonMetadata`
|
8508
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
|
8509
|
+
attr_accessor :common_metadata
|
8510
|
+
|
8511
|
+
def initialize(**args)
|
8512
|
+
update!(**args)
|
8513
|
+
end
|
8514
|
+
|
8515
|
+
# Update properties of this object
|
8516
|
+
def update!(**args)
|
8517
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
8518
|
+
end
|
8519
|
+
end
|
8520
|
+
|
8521
|
+
# The request message for the ImportProcessorVersion method. This method
|
8522
|
+
# requires Document AI Service Agent of the destination project in the source
|
8523
|
+
# project's IAM with [Document AI Editor role](https://cloud.google.com/document-
|
8524
|
+
# ai/docs/access-control/iam-roles). The destination project is specified as
|
8525
|
+
# part of the `parent` field. The source project is specified as part of `source`
|
8526
|
+
# field. The Service Agent for Document AI can be found in https://cloud.google.
|
8527
|
+
# com/iam/docs/service-agents.
|
8528
|
+
class GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest
|
8529
|
+
include Google::Apis::Core::Hashable
|
8530
|
+
|
8531
|
+
# Required. The source processor version to import from.
|
8532
|
+
# Corresponds to the JSON property `processorVersionSource`
|
8533
|
+
# @return [String]
|
8534
|
+
attr_accessor :processor_version_source
|
8535
|
+
|
8536
|
+
def initialize(**args)
|
8537
|
+
update!(**args)
|
8538
|
+
end
|
8539
|
+
|
8540
|
+
# Update properties of this object
|
8541
|
+
def update!(**args)
|
8542
|
+
@processor_version_source = args[:processor_version_source] if args.key?(:processor_version_source)
|
8543
|
+
end
|
8544
|
+
end
|
8545
|
+
|
8546
|
+
# The response message for the ImportProcessorVersion method.
|
8547
|
+
class GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse
|
8548
|
+
include Google::Apis::Core::Hashable
|
8549
|
+
|
8550
|
+
# The destination processor version name.
|
8551
|
+
# Corresponds to the JSON property `processorVersion`
|
8552
|
+
# @return [String]
|
8553
|
+
attr_accessor :processor_version
|
8554
|
+
|
8555
|
+
def initialize(**args)
|
8556
|
+
update!(**args)
|
8557
|
+
end
|
8558
|
+
|
8559
|
+
# Update properties of this object
|
8560
|
+
def update!(**args)
|
8561
|
+
@processor_version = args[:processor_version] if args.key?(:processor_version)
|
8562
|
+
end
|
8563
|
+
end
|
8564
|
+
|
8427
8565
|
# The response from ListEvaluations.
|
8428
8566
|
class GoogleCloudDocumentaiV1beta3ListEvaluationsResponse
|
8429
8567
|
include Google::Apis::Core::Hashable
|
@@ -8560,6 +8698,14 @@ module Google
|
|
8560
8698
|
# @return [Array<String>]
|
8561
8699
|
attr_accessor :advanced_ocr_options
|
8562
8700
|
|
8701
|
+
# Enables intelligent document quality scores after OCR. Can help with
|
8702
|
+
# diagnosing why OCR responses are of poor quality for a given input. Adds
|
8703
|
+
# additional latency comparable to regular OCR to the process call.
|
8704
|
+
# Corresponds to the JSON property `enableImageQualityScores`
|
8705
|
+
# @return [Boolean]
|
8706
|
+
attr_accessor :enable_image_quality_scores
|
8707
|
+
alias_method :enable_image_quality_scores?, :enable_image_quality_scores
|
8708
|
+
|
8563
8709
|
# Enables special handling for PDFs with existing text information. Results in
|
8564
8710
|
# better text extraction quality in such PDF inputs.
|
8565
8711
|
# Corresponds to the JSON property `enableNativePdfParsing`
|
@@ -8567,6 +8713,17 @@ module Google
|
|
8567
8713
|
attr_accessor :enable_native_pdf_parsing
|
8568
8714
|
alias_method :enable_native_pdf_parsing?, :enable_native_pdf_parsing
|
8569
8715
|
|
8716
|
+
# Includes symbol level OCR information if set to true.
|
8717
|
+
# Corresponds to the JSON property `enableSymbol`
|
8718
|
+
# @return [Boolean]
|
8719
|
+
attr_accessor :enable_symbol
|
8720
|
+
alias_method :enable_symbol?, :enable_symbol
|
8721
|
+
|
8722
|
+
# Hints for OCR Engine
|
8723
|
+
# Corresponds to the JSON property `hints`
|
8724
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfigHints]
|
8725
|
+
attr_accessor :hints
|
8726
|
+
|
8570
8727
|
def initialize(**args)
|
8571
8728
|
update!(**args)
|
8572
8729
|
end
|
@@ -8574,7 +8731,34 @@ module Google
|
|
8574
8731
|
# Update properties of this object
|
8575
8732
|
def update!(**args)
|
8576
8733
|
@advanced_ocr_options = args[:advanced_ocr_options] if args.key?(:advanced_ocr_options)
|
8734
|
+
@enable_image_quality_scores = args[:enable_image_quality_scores] if args.key?(:enable_image_quality_scores)
|
8577
8735
|
@enable_native_pdf_parsing = args[:enable_native_pdf_parsing] if args.key?(:enable_native_pdf_parsing)
|
8736
|
+
@enable_symbol = args[:enable_symbol] if args.key?(:enable_symbol)
|
8737
|
+
@hints = args[:hints] if args.key?(:hints)
|
8738
|
+
end
|
8739
|
+
end
|
8740
|
+
|
8741
|
+
# Hints for OCR Engine
|
8742
|
+
class GoogleCloudDocumentaiV1beta3OcrConfigHints
|
8743
|
+
include Google::Apis::Core::Hashable
|
8744
|
+
|
8745
|
+
# List of BCP-47 language codes to use for OCR. In most cases, not specifying it
|
8746
|
+
# yields the best results since it enables automatic language detection. For
|
8747
|
+
# languages based on the Latin alphabet, setting hints is not needed. In rare
|
8748
|
+
# cases, when the language of the text in the image is known, setting a hint
|
8749
|
+
# will help get better results (although it will be a significant hindrance if
|
8750
|
+
# the hint is wrong).
|
8751
|
+
# Corresponds to the JSON property `languageHints`
|
8752
|
+
# @return [Array<String>]
|
8753
|
+
attr_accessor :language_hints
|
8754
|
+
|
8755
|
+
def initialize(**args)
|
8756
|
+
update!(**args)
|
8757
|
+
end
|
8758
|
+
|
8759
|
+
# Update properties of this object
|
8760
|
+
def update!(**args)
|
8761
|
+
@language_hints = args[:language_hints] if args.key?(:language_hints)
|
8578
8762
|
end
|
8579
8763
|
end
|
8580
8764
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DocumentaiV1beta3
|
18
18
|
# Version of the google-apis-documentai_v1beta3 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.66.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230310"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,24 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module DocumentaiV1beta3
|
24
24
|
|
25
|
+
class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
25
43
|
class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata
|
26
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
45
|
|
@@ -1498,6 +1516,24 @@ module Google
|
|
1498
1516
|
include Google::Apis::Core::JsonObjectSupport
|
1499
1517
|
end
|
1500
1518
|
|
1519
|
+
class GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata
|
1520
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1521
|
+
|
1522
|
+
include Google::Apis::Core::JsonObjectSupport
|
1523
|
+
end
|
1524
|
+
|
1525
|
+
class GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest
|
1526
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1527
|
+
|
1528
|
+
include Google::Apis::Core::JsonObjectSupport
|
1529
|
+
end
|
1530
|
+
|
1531
|
+
class GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse
|
1532
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1533
|
+
|
1534
|
+
include Google::Apis::Core::JsonObjectSupport
|
1535
|
+
end
|
1536
|
+
|
1501
1537
|
class GoogleCloudDocumentaiV1beta3ListEvaluationsResponse
|
1502
1538
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1503
1539
|
|
@@ -1534,6 +1570,12 @@ module Google
|
|
1534
1570
|
include Google::Apis::Core::JsonObjectSupport
|
1535
1571
|
end
|
1536
1572
|
|
1573
|
+
class GoogleCloudDocumentaiV1beta3OcrConfigHints
|
1574
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1575
|
+
|
1576
|
+
include Google::Apis::Core::JsonObjectSupport
|
1577
|
+
end
|
1578
|
+
|
1537
1579
|
class GoogleCloudDocumentaiV1beta3ProcessOptions
|
1538
1580
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1539
1581
|
|
@@ -1750,6 +1792,32 @@ module Google
|
|
1750
1792
|
include Google::Apis::Core::JsonObjectSupport
|
1751
1793
|
end
|
1752
1794
|
|
1795
|
+
class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata
|
1796
|
+
# @private
|
1797
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1798
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
|
1799
|
+
|
1800
|
+
collection :individual_auto_label_statuses, as: 'individualAutoLabelStatuses', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus::Representation
|
1801
|
+
|
1802
|
+
property :total_document_count, as: 'totalDocumentCount'
|
1803
|
+
end
|
1804
|
+
end
|
1805
|
+
|
1806
|
+
class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus
|
1807
|
+
# @private
|
1808
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1809
|
+
property :gcs_uri, as: 'gcsUri'
|
1810
|
+
property :status, as: 'status', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation
|
1811
|
+
|
1812
|
+
end
|
1813
|
+
end
|
1814
|
+
|
1815
|
+
class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse
|
1816
|
+
# @private
|
1817
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1818
|
+
end
|
1819
|
+
end
|
1820
|
+
|
1753
1821
|
class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata
|
1754
1822
|
# @private
|
1755
1823
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4303,6 +4371,28 @@ module Google
|
|
4303
4371
|
end
|
4304
4372
|
end
|
4305
4373
|
|
4374
|
+
class GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata
|
4375
|
+
# @private
|
4376
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4377
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
|
4378
|
+
|
4379
|
+
end
|
4380
|
+
end
|
4381
|
+
|
4382
|
+
class GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest
|
4383
|
+
# @private
|
4384
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4385
|
+
property :processor_version_source, as: 'processorVersionSource'
|
4386
|
+
end
|
4387
|
+
end
|
4388
|
+
|
4389
|
+
class GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse
|
4390
|
+
# @private
|
4391
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4392
|
+
property :processor_version, as: 'processorVersion'
|
4393
|
+
end
|
4394
|
+
end
|
4395
|
+
|
4306
4396
|
class GoogleCloudDocumentaiV1beta3ListEvaluationsResponse
|
4307
4397
|
# @private
|
4308
4398
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4351,7 +4441,18 @@ module Google
|
|
4351
4441
|
# @private
|
4352
4442
|
class Representation < Google::Apis::Core::JsonRepresentation
|
4353
4443
|
collection :advanced_ocr_options, as: 'advancedOcrOptions'
|
4444
|
+
property :enable_image_quality_scores, as: 'enableImageQualityScores'
|
4354
4445
|
property :enable_native_pdf_parsing, as: 'enableNativePdfParsing'
|
4446
|
+
property :enable_symbol, as: 'enableSymbol'
|
4447
|
+
property :hints, as: 'hints', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfigHints, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfigHints::Representation
|
4448
|
+
|
4449
|
+
end
|
4450
|
+
end
|
4451
|
+
|
4452
|
+
class GoogleCloudDocumentaiV1beta3OcrConfigHints
|
4453
|
+
# @private
|
4454
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4455
|
+
collection :language_hints, as: 'languageHints'
|
4355
4456
|
end
|
4356
4457
|
end
|
4357
4458
|
|
@@ -226,13 +226,7 @@ module Google
|
|
226
226
|
end
|
227
227
|
|
228
228
|
# Lists operations that match the specified filter in the request. If the server
|
229
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
230
|
-
# binding allows API services to override the binding to use different resource
|
231
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
232
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
233
|
-
# service configuration. For backwards compatibility, the default name includes
|
234
|
-
# the operations collection id, however overriding users must ensure the name
|
235
|
-
# binding is the parent resource, without the operations collection id.
|
229
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
236
230
|
# @param [String] name
|
237
231
|
# The name of the operation's parent resource.
|
238
232
|
# @param [String] filter
|
@@ -853,6 +847,40 @@ module Google
|
|
853
847
|
execute_or_queue_command(command, &block)
|
854
848
|
end
|
855
849
|
|
850
|
+
# Imports a processor version from source processor version.
|
851
|
+
# @param [String] parent
|
852
|
+
# Required. The destination processor name to create the processor version in.
|
853
|
+
# Format: `projects/`project`/locations/`location`/processors/`processor``
|
854
|
+
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest] google_cloud_documentai_v1beta3_import_processor_version_request_object
|
855
|
+
# @param [String] fields
|
856
|
+
# Selector specifying which fields to include in a partial response.
|
857
|
+
# @param [String] quota_user
|
858
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
859
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
860
|
+
# @param [Google::Apis::RequestOptions] options
|
861
|
+
# Request-specific options
|
862
|
+
#
|
863
|
+
# @yield [result, err] Result & error if block supplied
|
864
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
|
865
|
+
# @yieldparam err [StandardError] error object if request failed
|
866
|
+
#
|
867
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
|
868
|
+
#
|
869
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
870
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
871
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
872
|
+
def import_project_location_processor_processor_version_processor_version(parent, google_cloud_documentai_v1beta3_import_processor_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
873
|
+
command = make_simple_command(:post, 'v1beta3/{+parent}/processorVersions:importProcessorVersion', options)
|
874
|
+
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest::Representation
|
875
|
+
command.request_object = google_cloud_documentai_v1beta3_import_processor_version_request_object
|
876
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
|
877
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
|
878
|
+
command.params['parent'] = parent unless parent.nil?
|
879
|
+
command.query['fields'] = fields unless fields.nil?
|
880
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
881
|
+
execute_or_queue_command(command, &block)
|
882
|
+
end
|
883
|
+
|
856
884
|
# Lists all versions of a processor.
|
857
885
|
# @param [String] parent
|
858
886
|
# Required. The parent (project, location and processor) to list all versions.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-documentai_v1beta3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.66.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.66.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|