google-apis-documentai_v1beta2 0.54.0 → 0.56.0

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: 2234fc64aba7f9b660965853eb0d0906d7a4bfe487c750b917ace30040de49df
4
- data.tar.gz: b45fc737a45d65676d7bf929a102b07be6b18e2ad5743ae32df4ec958677ac23
3
+ metadata.gz: c393dcbb0f21eae686be3a9eca9e6f922192cabf464b40180df2f8412977d83d
4
+ data.tar.gz: ba964ca7359a2e4894b048fd3acf055bf2213e47bf75bb356f9883a64c0951e9
5
5
  SHA512:
6
- metadata.gz: 91c0fe4813e6de41693424461274c9e159c0ab4edda116dc7140653d8a556e56dd7abb57749c52f513b708ae5db2141398845a8963acde3a6207d18f910fa26c
7
- data.tar.gz: 968f9eb7eb2cc9974f00e457b39826d97fa087c1b4c77e287c5808f11aa0784297a34fe8ee452e39403ad0e46f9416fd72ad56b58b00a662e6fcfb386b069fd6
6
+ metadata.gz: 1a079238354b25cefde19238632ea90b708bb81acffbd362c616b24a2736186394eacfbd09074f44594e5f3ea7dd6a676eb9ac25f95dbc176d307e819c188782
7
+ data.tar.gz: 409511964ed8a2d707c14e36886a7fda0f1ace6cf6cf8d556ecb2712cd4bd523f7c06f31fafd6a8ad39a5d881fc15cf3a1fe866215965897f62e9cf23e5cb551
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-documentai_v1beta2
2
2
 
3
+ ### v0.56.0 (2023-02-12)
4
+
5
+ * Regenerated from discovery document revision 20230202
6
+
7
+ ### v0.55.0 (2023-02-05)
8
+
9
+ * Regenerated from discovery document revision 20230129
10
+
3
11
  ### v0.54.0 (2023-01-29)
4
12
 
5
13
  * Regenerated from discovery document revision 20230120
@@ -381,11 +381,6 @@ module Google
381
381
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3RevisionRef]
382
382
  attr_accessor :revision_ref
383
383
 
384
- # The revision reference specifies which revision on the document to read.
385
- # Corresponds to the JSON property `revisionReference`
386
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3RevisionReference]
387
- attr_accessor :revision_reference
388
-
389
384
  def initialize(**args)
390
385
  update!(**args)
391
386
  end
@@ -394,7 +389,6 @@ module Google
394
389
  def update!(**args)
395
390
  @gcs_managed_doc_id = args[:gcs_managed_doc_id] if args.key?(:gcs_managed_doc_id)
396
391
  @revision_ref = args[:revision_ref] if args.key?(:revision_ref)
397
- @revision_reference = args[:revision_reference] if args.key?(:revision_reference)
398
392
  end
399
393
  end
400
394
 
@@ -941,37 +935,6 @@ module Google
941
935
  end
942
936
  end
943
937
 
944
- # The revision reference specifies which revision on the document to read.
945
- class GoogleCloudDocumentaiUiv1beta3RevisionReference
946
- include Google::Apis::Core::Hashable
947
-
948
- # Reads the revision generated by the processor version.
949
- # Corresponds to the JSON property `latestProcessorVersion`
950
- # @return [String]
951
- attr_accessor :latest_processor_version
952
-
953
- # Reads the revision by the predefined case.
954
- # Corresponds to the JSON property `revisionCase`
955
- # @return [String]
956
- attr_accessor :revision_case
957
-
958
- # Reads the revision given by the id.
959
- # Corresponds to the JSON property `revisionId`
960
- # @return [String]
961
- attr_accessor :revision_id
962
-
963
- def initialize(**args)
964
- update!(**args)
965
- end
966
-
967
- # Update properties of this object
968
- def update!(**args)
969
- @latest_processor_version = args[:latest_processor_version] if args.key?(:latest_processor_version)
970
- @revision_case = args[:revision_case] if args.key?(:revision_case)
971
- @revision_id = args[:revision_id] if args.key?(:revision_id)
972
- end
973
- end
974
-
975
938
  # The long running operation metadata for set default processor version method.
976
939
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
977
940
  include Google::Apis::Core::Hashable
@@ -1469,6 +1432,44 @@ module Google
1469
1432
  end
1470
1433
  end
1471
1434
 
1435
+ # Metadata of the EvaluateProcessorVersion method.
1436
+ class GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata
1437
+ include Google::Apis::Core::Hashable
1438
+
1439
+ # The common metadata for long running operations.
1440
+ # Corresponds to the JSON property `commonMetadata`
1441
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1CommonOperationMetadata]
1442
+ attr_accessor :common_metadata
1443
+
1444
+ def initialize(**args)
1445
+ update!(**args)
1446
+ end
1447
+
1448
+ # Update properties of this object
1449
+ def update!(**args)
1450
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
1451
+ end
1452
+ end
1453
+
1454
+ # Metadata of the EvaluateProcessorVersion method.
1455
+ class GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse
1456
+ include Google::Apis::Core::Hashable
1457
+
1458
+ # The resource name of the created evaluation.
1459
+ # Corresponds to the JSON property `evaluation`
1460
+ # @return [String]
1461
+ attr_accessor :evaluation
1462
+
1463
+ def initialize(**args)
1464
+ update!(**args)
1465
+ end
1466
+
1467
+ # Update properties of this object
1468
+ def update!(**args)
1469
+ @evaluation = args[:evaluation] if args.key?(:evaluation)
1470
+ end
1471
+ end
1472
+
1472
1473
  # The status of human review on a processed document.
1473
1474
  class GoogleCloudDocumentaiV1HumanReviewStatus
1474
1475
  include Google::Apis::Core::Hashable
@@ -1592,6 +1593,99 @@ module Google
1592
1593
  end
1593
1594
  end
1594
1595
 
1596
+ # The metadata that represents a processor version being created.
1597
+ class GoogleCloudDocumentaiV1TrainProcessorVersionMetadata
1598
+ include Google::Apis::Core::Hashable
1599
+
1600
+ # The common metadata for long running operations.
1601
+ # Corresponds to the JSON property `commonMetadata`
1602
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1CommonOperationMetadata]
1603
+ attr_accessor :common_metadata
1604
+
1605
+ # The dataset validation information. This includes any and all errors with
1606
+ # documents and the dataset.
1607
+ # Corresponds to the JSON property `testDatasetValidation`
1608
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation]
1609
+ attr_accessor :test_dataset_validation
1610
+
1611
+ # The dataset validation information. This includes any and all errors with
1612
+ # documents and the dataset.
1613
+ # Corresponds to the JSON property `trainingDatasetValidation`
1614
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation]
1615
+ attr_accessor :training_dataset_validation
1616
+
1617
+ def initialize(**args)
1618
+ update!(**args)
1619
+ end
1620
+
1621
+ # Update properties of this object
1622
+ def update!(**args)
1623
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
1624
+ @test_dataset_validation = args[:test_dataset_validation] if args.key?(:test_dataset_validation)
1625
+ @training_dataset_validation = args[:training_dataset_validation] if args.key?(:training_dataset_validation)
1626
+ end
1627
+ end
1628
+
1629
+ # The dataset validation information. This includes any and all errors with
1630
+ # documents and the dataset.
1631
+ class GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation
1632
+ include Google::Apis::Core::Hashable
1633
+
1634
+ # The total number of dataset errors.
1635
+ # Corresponds to the JSON property `datasetErrorCount`
1636
+ # @return [Fixnum]
1637
+ attr_accessor :dataset_error_count
1638
+
1639
+ # Error information for the dataset as a whole. A maximum of 10 dataset errors
1640
+ # will be returned. A single dataset error is terminal for training.
1641
+ # Corresponds to the JSON property `datasetErrors`
1642
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleRpcStatus>]
1643
+ attr_accessor :dataset_errors
1644
+
1645
+ # The total number of document errors.
1646
+ # Corresponds to the JSON property `documentErrorCount`
1647
+ # @return [Fixnum]
1648
+ attr_accessor :document_error_count
1649
+
1650
+ # Error information pertaining to specific documents. A maximum of 10 document
1651
+ # errors will be returned. Any document with errors will not be used throughout
1652
+ # training.
1653
+ # Corresponds to the JSON property `documentErrors`
1654
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleRpcStatus>]
1655
+ attr_accessor :document_errors
1656
+
1657
+ def initialize(**args)
1658
+ update!(**args)
1659
+ end
1660
+
1661
+ # Update properties of this object
1662
+ def update!(**args)
1663
+ @dataset_error_count = args[:dataset_error_count] if args.key?(:dataset_error_count)
1664
+ @dataset_errors = args[:dataset_errors] if args.key?(:dataset_errors)
1665
+ @document_error_count = args[:document_error_count] if args.key?(:document_error_count)
1666
+ @document_errors = args[:document_errors] if args.key?(:document_errors)
1667
+ end
1668
+ end
1669
+
1670
+ # The response for the TrainProcessorVersion method.
1671
+ class GoogleCloudDocumentaiV1TrainProcessorVersionResponse
1672
+ include Google::Apis::Core::Hashable
1673
+
1674
+ # The resource name of the processor version produced by training.
1675
+ # Corresponds to the JSON property `processorVersion`
1676
+ # @return [String]
1677
+ attr_accessor :processor_version
1678
+
1679
+ def initialize(**args)
1680
+ update!(**args)
1681
+ end
1682
+
1683
+ # Update properties of this object
1684
+ def update!(**args)
1685
+ @processor_version = args[:processor_version] if args.key?(:processor_version)
1686
+ end
1687
+ end
1688
+
1595
1689
  # The long running operation metadata for the undeploy processor version method.
1596
1690
  class GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata
1597
1691
  include Google::Apis::Core::Hashable
@@ -2936,7 +3030,8 @@ module Google
2936
3030
  # @return [String]
2937
3031
  attr_accessor :agent
2938
3032
 
2939
- # The time that the revision was created.
3033
+ # The time that the revision was created, internally generated by doc proto
3034
+ # storage at the time of create.
2940
3035
  # Corresponds to the JSON property `createTime`
2941
3036
  # @return [String]
2942
3037
  attr_accessor :create_time
@@ -2946,7 +3041,8 @@ module Google
2946
3041
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview]
2947
3042
  attr_accessor :human_review
2948
3043
 
2949
- # Id of the revision. Unique within the context of the document.
3044
+ # Id of the revision, internally generated by doc proto storage. Unique within
3045
+ # the context of the document.
2950
3046
  # Corresponds to the JSON property `id`
2951
3047
  # @return [String]
2952
3048
  attr_accessor :id
@@ -4917,7 +5013,8 @@ module Google
4917
5013
  # @return [String]
4918
5014
  attr_accessor :agent
4919
5015
 
4920
- # The time that the revision was created.
5016
+ # The time that the revision was created, internally generated by doc proto
5017
+ # storage at the time of create.
4921
5018
  # Corresponds to the JSON property `createTime`
4922
5019
  # @return [String]
4923
5020
  attr_accessor :create_time
@@ -4927,7 +5024,8 @@ module Google
4927
5024
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview]
4928
5025
  attr_accessor :human_review
4929
5026
 
4930
- # Id of the revision. Unique within the context of the document.
5027
+ # Id of the revision, internally generated by doc proto storage. Unique within
5028
+ # the context of the document.
4931
5029
  # Corresponds to the JSON property `id`
4932
5030
  # @return [String]
4933
5031
  attr_accessor :id
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1beta2
18
18
  # Version of the google-apis-documentai_v1beta2 gem
19
- GEM_VERSION = "0.54.0"
19
+ GEM_VERSION = "0.56.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230120"
25
+ REVISION = "20230202"
26
26
  end
27
27
  end
28
28
  end
@@ -250,12 +250,6 @@ module Google
250
250
  include Google::Apis::Core::JsonObjectSupport
251
251
  end
252
252
 
253
- class GoogleCloudDocumentaiUiv1beta3RevisionReference
254
- class Representation < Google::Apis::Core::JsonRepresentation; end
255
-
256
- include Google::Apis::Core::JsonObjectSupport
257
- end
258
-
259
253
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
260
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
255
 
@@ -388,6 +382,18 @@ module Google
388
382
  include Google::Apis::Core::JsonObjectSupport
389
383
  end
390
384
 
385
+ class GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
391
+ class GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
391
397
  class GoogleCloudDocumentaiV1HumanReviewStatus
392
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
393
399
 
@@ -418,6 +424,24 @@ module Google
418
424
  include Google::Apis::Core::JsonObjectSupport
419
425
  end
420
426
 
427
+ class GoogleCloudDocumentaiV1TrainProcessorVersionMetadata
428
+ class Representation < Google::Apis::Core::JsonRepresentation; end
429
+
430
+ include Google::Apis::Core::JsonObjectSupport
431
+ end
432
+
433
+ class GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
439
+ class GoogleCloudDocumentaiV1TrainProcessorVersionResponse
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
421
445
  class GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata
422
446
  class Representation < Google::Apis::Core::JsonRepresentation; end
423
447
 
@@ -1386,8 +1410,6 @@ module Google
1386
1410
 
1387
1411
  property :revision_ref, as: 'revisionRef', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3RevisionRef, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3RevisionRef::Representation
1388
1412
 
1389
- property :revision_reference, as: 'revisionReference', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3RevisionReference, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3RevisionReference::Representation
1390
-
1391
1413
  end
1392
1414
  end
1393
1415
 
@@ -1580,15 +1602,6 @@ module Google
1580
1602
  end
1581
1603
  end
1582
1604
 
1583
- class GoogleCloudDocumentaiUiv1beta3RevisionReference
1584
- # @private
1585
- class Representation < Google::Apis::Core::JsonRepresentation
1586
- property :latest_processor_version, as: 'latestProcessorVersion'
1587
- property :revision_case, as: 'revisionCase'
1588
- property :revision_id, as: 'revisionId'
1589
- end
1590
- end
1591
-
1592
1605
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
1593
1606
  # @private
1594
1607
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1771,6 +1784,21 @@ module Google
1771
1784
  end
1772
1785
  end
1773
1786
 
1787
+ class GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata
1788
+ # @private
1789
+ class Representation < Google::Apis::Core::JsonRepresentation
1790
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1CommonOperationMetadata::Representation
1791
+
1792
+ end
1793
+ end
1794
+
1795
+ class GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse
1796
+ # @private
1797
+ class Representation < Google::Apis::Core::JsonRepresentation
1798
+ property :evaluation, as: 'evaluation'
1799
+ end
1800
+ end
1801
+
1774
1802
  class GoogleCloudDocumentaiV1HumanReviewStatus
1775
1803
  # @private
1776
1804
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1812,6 +1840,37 @@ module Google
1812
1840
  end
1813
1841
  end
1814
1842
 
1843
+ class GoogleCloudDocumentaiV1TrainProcessorVersionMetadata
1844
+ # @private
1845
+ class Representation < Google::Apis::Core::JsonRepresentation
1846
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1CommonOperationMetadata::Representation
1847
+
1848
+ property :test_dataset_validation, as: 'testDatasetValidation', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation::Representation
1849
+
1850
+ property :training_dataset_validation, as: 'trainingDatasetValidation', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation::Representation
1851
+
1852
+ end
1853
+ end
1854
+
1855
+ class GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation
1856
+ # @private
1857
+ class Representation < Google::Apis::Core::JsonRepresentation
1858
+ property :dataset_error_count, as: 'datasetErrorCount'
1859
+ collection :dataset_errors, as: 'datasetErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
1860
+
1861
+ property :document_error_count, as: 'documentErrorCount'
1862
+ collection :document_errors, as: 'documentErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
1863
+
1864
+ end
1865
+ end
1866
+
1867
+ class GoogleCloudDocumentaiV1TrainProcessorVersionResponse
1868
+ # @private
1869
+ class Representation < Google::Apis::Core::JsonRepresentation
1870
+ property :processor_version, as: 'processorVersion'
1871
+ end
1872
+ end
1873
+
1815
1874
  class GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata
1816
1875
  # @private
1817
1876
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.54.0
4
+ version: 0.56.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-01-29 00:00:00.000000000 Z
11
+ date: 2023-02-12 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_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.54.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.56.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta2
63
63
  post_install_message:
64
64
  rdoc_options: []