google-apis-documentai_v1beta3 0.46.0 → 0.49.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: a4c6e76a594f2895c0a00d636676caaadee9ee61f5c9dd70a222c7b939b0f332
4
- data.tar.gz: d529c189a60a550de00460cc9437b49d25c5eef3d12d41564b9ce05490d87d6f
3
+ metadata.gz: a5a26339b4f7cf5ac01a3a8d52933f4b416135aca2160331e24ce3081af54fbe
4
+ data.tar.gz: a0419e67e619ad79dfb702bd234382e4fd3fb263905c0f2e6da77403d48f48ba
5
5
  SHA512:
6
- metadata.gz: f36ca221f3ebec5cb34d4018e6c2e4bdd967feb9c93ccab09c2d7c4d87f77aef5428d074c9f194def8fd8ce577d295796a1855effd404969065dd8506fd13e92
7
- data.tar.gz: 97887a8537a688ee8cc062d16989d66eeca662094c226bf84ba703639111cbccc36b54778d8b92641ff3c92030cff3cb9ac57f2f0ee841a9608547a62ed2c624
6
+ metadata.gz: 8f50264bb652460b8c6cf8cad518d494147dea5095ccb03701ef0ce0e0948d66913162ba74031bb6a235bbd4e4ed960575bce5eec0d44be2630fe62c335a1b5b
7
+ data.tar.gz: 0a32b794c27526daf4bc3f9f368438e3d0141b04d6f14f7bd745bada93eb5f39af58cfedbe07eb5c2de56c345600a7681e4a7ff9b046711e49024d0c08f29b78
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-documentai_v1beta3
2
2
 
3
+ ### v0.49.0 (2022-07-02)
4
+
5
+ * Regenerated using generator version 0.8.0
6
+
7
+ ### v0.48.0 (2022-06-21)
8
+
9
+ * Regenerated using generator version 0.7.0
10
+
11
+ ### v0.47.0 (2022-06-14)
12
+
13
+ * Regenerated from discovery document revision 20220610
14
+ * Regenerated using generator version 0.6.0
15
+
3
16
  ### v0.46.0 (2022-06-08)
4
17
 
5
18
  * Regenerated from discovery document revision 20220602
@@ -1278,11 +1278,22 @@ module Google
1278
1278
  class GoogleCloudDocumentaiV1ReviewDocumentResponse
1279
1279
  include Google::Apis::Core::Hashable
1280
1280
 
1281
- # The Cloud Storage uri for the human reviewed document.
1281
+ # The Cloud Storage uri for the human reviewed document if the review is
1282
+ # succeeded.
1282
1283
  # Corresponds to the JSON property `gcsDestination`
1283
1284
  # @return [String]
1284
1285
  attr_accessor :gcs_destination
1285
1286
 
1287
+ # The reason why the review is rejected by reviewer.
1288
+ # Corresponds to the JSON property `rejectionReason`
1289
+ # @return [String]
1290
+ attr_accessor :rejection_reason
1291
+
1292
+ # The state of the review operation.
1293
+ # Corresponds to the JSON property `state`
1294
+ # @return [String]
1295
+ attr_accessor :state
1296
+
1286
1297
  def initialize(**args)
1287
1298
  update!(**args)
1288
1299
  end
@@ -1290,6 +1301,8 @@ module Google
1290
1301
  # Update properties of this object
1291
1302
  def update!(**args)
1292
1303
  @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
1304
+ @rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason)
1305
+ @state = args[:state] if args.key?(:state)
1293
1306
  end
1294
1307
  end
1295
1308
 
@@ -6676,6 +6689,177 @@ module Google
6676
6689
  end
6677
6690
  end
6678
6691
 
6692
+ # The schema defines the output of the processed document by a processor.
6693
+ class GoogleCloudDocumentaiV1beta3DocumentSchema
6694
+ include Google::Apis::Core::Hashable
6695
+
6696
+ # Description of the schema.
6697
+ # Corresponds to the JSON property `description`
6698
+ # @return [String]
6699
+ attr_accessor :description
6700
+
6701
+ # Display name to show to users.
6702
+ # Corresponds to the JSON property `displayName`
6703
+ # @return [String]
6704
+ attr_accessor :display_name
6705
+
6706
+ # Entity types of the schema.
6707
+ # Corresponds to the JSON property `entityTypes`
6708
+ # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType>]
6709
+ attr_accessor :entity_types
6710
+
6711
+ # Metadata for global schema behavior.
6712
+ # Corresponds to the JSON property `metadata`
6713
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata]
6714
+ attr_accessor :metadata
6715
+
6716
+ def initialize(**args)
6717
+ update!(**args)
6718
+ end
6719
+
6720
+ # Update properties of this object
6721
+ def update!(**args)
6722
+ @description = args[:description] if args.key?(:description)
6723
+ @display_name = args[:display_name] if args.key?(:display_name)
6724
+ @entity_types = args[:entity_types] if args.key?(:entity_types)
6725
+ @metadata = args[:metadata] if args.key?(:metadata)
6726
+ end
6727
+ end
6728
+
6729
+ # EntityType is the wrapper of a label of the corresponding model with detailed
6730
+ # attributes and limitations for entity-based processors. Multiple types can
6731
+ # also compose a dependency tree to represent nested types.
6732
+ class GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType
6733
+ include Google::Apis::Core::Hashable
6734
+
6735
+ # The entity type that this type is derived from. For now, one and only one
6736
+ # should be set.
6737
+ # Corresponds to the JSON property `baseTypes`
6738
+ # @return [Array<String>]
6739
+ attr_accessor :base_types
6740
+
6741
+ # User defined name for the type.
6742
+ # Corresponds to the JSON property `displayName`
6743
+ # @return [String]
6744
+ attr_accessor :display_name
6745
+
6746
+ # Defines the a list of enum values.
6747
+ # Corresponds to the JSON property `enumValues`
6748
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues]
6749
+ attr_accessor :enum_values
6750
+
6751
+ # Name of the type. It must be unique within the schema file and cannot be a '
6752
+ # Common Type'. Besides that we use the following naming conventions: - *use
6753
+ # snake_casing* - name matching is case-insensitive - Maximum 64 characters. -
6754
+ # Must start with a letter. - Allowed characters: ASCII letters [a-z0-9_-]. (For
6755
+ # backward compatibility internal infrastructure and tooling can handle any
6756
+ # ascii character) - The '/' is sometimes used to denote a property of a type.
6757
+ # For example line_item/amount. This convention is deprecated, but will still be
6758
+ # honored for backward compatibility.
6759
+ # Corresponds to the JSON property `name`
6760
+ # @return [String]
6761
+ attr_accessor :name
6762
+
6763
+ # Describing the nested structure, or composition of an entity.
6764
+ # Corresponds to the JSON property `properties`
6765
+ # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty>]
6766
+ attr_accessor :properties
6767
+
6768
+ def initialize(**args)
6769
+ update!(**args)
6770
+ end
6771
+
6772
+ # Update properties of this object
6773
+ def update!(**args)
6774
+ @base_types = args[:base_types] if args.key?(:base_types)
6775
+ @display_name = args[:display_name] if args.key?(:display_name)
6776
+ @enum_values = args[:enum_values] if args.key?(:enum_values)
6777
+ @name = args[:name] if args.key?(:name)
6778
+ @properties = args[:properties] if args.key?(:properties)
6779
+ end
6780
+ end
6781
+
6782
+ # Defines the a list of enum values.
6783
+ class GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues
6784
+ include Google::Apis::Core::Hashable
6785
+
6786
+ # The individual values that this enum values type can include.
6787
+ # Corresponds to the JSON property `values`
6788
+ # @return [Array<String>]
6789
+ attr_accessor :values
6790
+
6791
+ def initialize(**args)
6792
+ update!(**args)
6793
+ end
6794
+
6795
+ # Update properties of this object
6796
+ def update!(**args)
6797
+ @values = args[:values] if args.key?(:values)
6798
+ end
6799
+ end
6800
+
6801
+ # Defines properties that can be part of the entity type.
6802
+ class GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty
6803
+ include Google::Apis::Core::Hashable
6804
+
6805
+ # The name of the property. Follows the same guidelines as the EntityType name.
6806
+ # Corresponds to the JSON property `name`
6807
+ # @return [String]
6808
+ attr_accessor :name
6809
+
6810
+ # Occurrence type limits the number of instances an entity type appears in the
6811
+ # document.
6812
+ # Corresponds to the JSON property `occurrenceType`
6813
+ # @return [String]
6814
+ attr_accessor :occurrence_type
6815
+
6816
+ # A reference to the value type of the property. This type is subject to the
6817
+ # same conventions as the `Entity.base_types` field.
6818
+ # Corresponds to the JSON property `valueType`
6819
+ # @return [String]
6820
+ attr_accessor :value_type
6821
+
6822
+ def initialize(**args)
6823
+ update!(**args)
6824
+ end
6825
+
6826
+ # Update properties of this object
6827
+ def update!(**args)
6828
+ @name = args[:name] if args.key?(:name)
6829
+ @occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
6830
+ @value_type = args[:value_type] if args.key?(:value_type)
6831
+ end
6832
+ end
6833
+
6834
+ # Metadata for global schema behavior.
6835
+ class GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata
6836
+ include Google::Apis::Core::Hashable
6837
+
6838
+ # If true, on a given page, there can be multiple `document` annotations
6839
+ # covering it.
6840
+ # Corresponds to the JSON property `documentAllowMultipleLabels`
6841
+ # @return [Boolean]
6842
+ attr_accessor :document_allow_multiple_labels
6843
+ alias_method :document_allow_multiple_labels?, :document_allow_multiple_labels
6844
+
6845
+ # If true, a `document` entity type can be applied to subdocument ( splitting).
6846
+ # Otherwise, it can only be applied to the entire document (classification).
6847
+ # Corresponds to the JSON property `documentSplitter`
6848
+ # @return [Boolean]
6849
+ attr_accessor :document_splitter
6850
+ alias_method :document_splitter?, :document_splitter
6851
+
6852
+ def initialize(**args)
6853
+ update!(**args)
6854
+ end
6855
+
6856
+ # Update properties of this object
6857
+ def update!(**args)
6858
+ @document_allow_multiple_labels = args[:document_allow_multiple_labels] if args.key?(:document_allow_multiple_labels)
6859
+ @document_splitter = args[:document_splitter] if args.key?(:document_splitter)
6860
+ end
6861
+ end
6862
+
6679
6863
  # For a large document, sharding may be performed to produce several document
6680
6864
  # shards. Each document shard contains this field to detail which shard it is.
6681
6865
  class GoogleCloudDocumentaiV1beta3DocumentShardInfo
@@ -7610,6 +7794,11 @@ module Google
7610
7794
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document]
7611
7795
  attr_accessor :document
7612
7796
 
7797
+ # The schema defines the output of the processed document by a processor.
7798
+ # Corresponds to the JSON property `documentSchema`
7799
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema]
7800
+ attr_accessor :document_schema
7801
+
7613
7802
  # Whether the validation should be performed on the ad-hoc review request.
7614
7803
  # Corresponds to the JSON property `enableSchemaValidation`
7615
7804
  # @return [Boolean]
@@ -7636,6 +7825,7 @@ module Google
7636
7825
  # Update properties of this object
7637
7826
  def update!(**args)
7638
7827
  @document = args[:document] if args.key?(:document)
7828
+ @document_schema = args[:document_schema] if args.key?(:document_schema)
7639
7829
  @enable_schema_validation = args[:enable_schema_validation] if args.key?(:enable_schema_validation)
7640
7830
  @inline_document = args[:inline_document] if args.key?(:inline_document)
7641
7831
  @priority = args[:priority] if args.key?(:priority)
@@ -7646,11 +7836,22 @@ module Google
7646
7836
  class GoogleCloudDocumentaiV1beta3ReviewDocumentResponse
7647
7837
  include Google::Apis::Core::Hashable
7648
7838
 
7649
- # The Cloud Storage uri for the human reviewed document.
7839
+ # The Cloud Storage uri for the human reviewed document if the review is
7840
+ # succeeded.
7650
7841
  # Corresponds to the JSON property `gcsDestination`
7651
7842
  # @return [String]
7652
7843
  attr_accessor :gcs_destination
7653
7844
 
7845
+ # The reason why the review is rejected by reviewer.
7846
+ # Corresponds to the JSON property `rejectionReason`
7847
+ # @return [String]
7848
+ attr_accessor :rejection_reason
7849
+
7850
+ # The state of the review operation.
7851
+ # Corresponds to the JSON property `state`
7852
+ # @return [String]
7853
+ attr_accessor :state
7854
+
7654
7855
  def initialize(**args)
7655
7856
  update!(**args)
7656
7857
  end
@@ -7658,6 +7859,8 @@ module Google
7658
7859
  # Update properties of this object
7659
7860
  def update!(**args)
7660
7861
  @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
7862
+ @rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason)
7863
+ @state = args[:state] if args.key?(:state)
7661
7864
  end
7662
7865
  end
7663
7866
 
@@ -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.46.0"
19
+ GEM_VERSION = "0.49.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.5.0"
22
+ GENERATOR_VERSION = "0.8.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220602"
25
+ REVISION = "20220610"
26
26
  end
27
27
  end
28
28
  end
@@ -1192,6 +1192,36 @@ module Google
1192
1192
  include Google::Apis::Core::JsonObjectSupport
1193
1193
  end
1194
1194
 
1195
+ class GoogleCloudDocumentaiV1beta3DocumentSchema
1196
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1197
+
1198
+ include Google::Apis::Core::JsonObjectSupport
1199
+ end
1200
+
1201
+ class GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType
1202
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1203
+
1204
+ include Google::Apis::Core::JsonObjectSupport
1205
+ end
1206
+
1207
+ class GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues
1208
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1209
+
1210
+ include Google::Apis::Core::JsonObjectSupport
1211
+ end
1212
+
1213
+ class GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty
1214
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1215
+
1216
+ include Google::Apis::Core::JsonObjectSupport
1217
+ end
1218
+
1219
+ class GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata
1220
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1221
+
1222
+ include Google::Apis::Core::JsonObjectSupport
1223
+ end
1224
+
1195
1225
  class GoogleCloudDocumentaiV1beta3DocumentShardInfo
1196
1226
  class Representation < Google::Apis::Core::JsonRepresentation; end
1197
1227
 
@@ -1934,6 +1964,8 @@ module Google
1934
1964
  # @private
1935
1965
  class Representation < Google::Apis::Core::JsonRepresentation
1936
1966
  property :gcs_destination, as: 'gcsDestination'
1967
+ property :rejection_reason, as: 'rejectionReason'
1968
+ property :state, as: 'state'
1937
1969
  end
1938
1970
  end
1939
1971
 
@@ -3514,6 +3546,55 @@ module Google
3514
3546
  end
3515
3547
  end
3516
3548
 
3549
+ class GoogleCloudDocumentaiV1beta3DocumentSchema
3550
+ # @private
3551
+ class Representation < Google::Apis::Core::JsonRepresentation
3552
+ property :description, as: 'description'
3553
+ property :display_name, as: 'displayName'
3554
+ collection :entity_types, as: 'entityTypes', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType::Representation
3555
+
3556
+ property :metadata, as: 'metadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata::Representation
3557
+
3558
+ end
3559
+ end
3560
+
3561
+ class GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType
3562
+ # @private
3563
+ class Representation < Google::Apis::Core::JsonRepresentation
3564
+ collection :base_types, as: 'baseTypes'
3565
+ property :display_name, as: 'displayName'
3566
+ property :enum_values, as: 'enumValues', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues::Representation
3567
+
3568
+ property :name, as: 'name'
3569
+ collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty::Representation
3570
+
3571
+ end
3572
+ end
3573
+
3574
+ class GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues
3575
+ # @private
3576
+ class Representation < Google::Apis::Core::JsonRepresentation
3577
+ collection :values, as: 'values'
3578
+ end
3579
+ end
3580
+
3581
+ class GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty
3582
+ # @private
3583
+ class Representation < Google::Apis::Core::JsonRepresentation
3584
+ property :name, as: 'name'
3585
+ property :occurrence_type, as: 'occurrenceType'
3586
+ property :value_type, as: 'valueType'
3587
+ end
3588
+ end
3589
+
3590
+ class GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata
3591
+ # @private
3592
+ class Representation < Google::Apis::Core::JsonRepresentation
3593
+ property :document_allow_multiple_labels, as: 'documentAllowMultipleLabels'
3594
+ property :document_splitter, as: 'documentSplitter'
3595
+ end
3596
+ end
3597
+
3517
3598
  class GoogleCloudDocumentaiV1beta3DocumentShardInfo
3518
3599
  # @private
3519
3600
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3770,6 +3851,8 @@ module Google
3770
3851
  class Representation < Google::Apis::Core::JsonRepresentation
3771
3852
  property :document, as: 'document', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document::Representation
3772
3853
 
3854
+ property :document_schema, as: 'documentSchema', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema::Representation
3855
+
3773
3856
  property :enable_schema_validation, as: 'enableSchemaValidation'
3774
3857
  property :inline_document, as: 'inlineDocument', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document::Representation
3775
3858
 
@@ -3781,6 +3864,8 @@ module Google
3781
3864
  # @private
3782
3865
  class Representation < Google::Apis::Core::JsonRepresentation
3783
3866
  property :gcs_destination, as: 'gcsDestination'
3867
+ property :rejection_reason, as: 'rejectionReason'
3868
+ property :state, as: 'state'
3784
3869
  end
3785
3870
  end
3786
3871
 
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.46.0
4
+ version: 0.49.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: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2022-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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
@@ -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.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.49.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: []