google-apis-documentai_v1beta3 0.73.0 → 0.74.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/documentai_v1beta3/classes.rb +199 -0
- data/lib/google/apis/documentai_v1beta3/gem_version.rb +2 -2
- data/lib/google/apis/documentai_v1beta3/representations.rb +119 -0
- data/lib/google/apis/documentai_v1beta3/service.rb +108 -0
- 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: ac2a66f795bbf20f839a89231b5dff6b87526b2f8aac18d90f2181d66d1cb6a6
|
4
|
+
data.tar.gz: 9d8c76cc6d023a4cfc505f89667532d031d6a2e18c7e0d61ffdc6b59280427c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8c1a545c0c3659e7f3946270f7827314105c049eb51208ea0b5315e14200b883602198427a3e77c213371b04883800f664f878be6ba5ef5bf2766a888a58186
|
7
|
+
data.tar.gz: b3ed85e6045ea0d16436623ec59bff240c91b9e33222416b18766a7c3da8246fb20a30f82cc825201601b1c15a25dba7b5a1ad7444d6f111e2cf3b168aabd86c
|
data/CHANGELOG.md
CHANGED
@@ -6486,6 +6486,153 @@ module Google
|
|
6486
6486
|
end
|
6487
6487
|
end
|
6488
6488
|
|
6489
|
+
# A singleton resource under a `Processor` which configs a collection of
|
6490
|
+
# documents.
|
6491
|
+
class GoogleCloudDocumentaiV1beta3Dataset
|
6492
|
+
include Google::Apis::Core::Hashable
|
6493
|
+
|
6494
|
+
# Config specific to the Document Warehouse-based implementation.
|
6495
|
+
# Corresponds to the JSON property `documentWarehouseConfig`
|
6496
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig]
|
6497
|
+
attr_accessor :document_warehouse_config
|
6498
|
+
|
6499
|
+
# Config specific to the GCS-based implementation.
|
6500
|
+
# Corresponds to the JSON property `gcsManagedConfig`
|
6501
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetGcsManagedConfig]
|
6502
|
+
attr_accessor :gcs_managed_config
|
6503
|
+
|
6504
|
+
# Dataset resource name. Format: `projects/`project`/locations/`location`/
|
6505
|
+
# processors/`processor`/dataset`
|
6506
|
+
# Corresponds to the JSON property `name`
|
6507
|
+
# @return [String]
|
6508
|
+
attr_accessor :name
|
6509
|
+
|
6510
|
+
# Config specific to spanner based indexing.
|
6511
|
+
# Corresponds to the JSON property `spannerIndexingConfig`
|
6512
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig]
|
6513
|
+
attr_accessor :spanner_indexing_config
|
6514
|
+
|
6515
|
+
# Required. State of the dataset. Will be ignored when updating dataset.
|
6516
|
+
# Corresponds to the JSON property `state`
|
6517
|
+
# @return [String]
|
6518
|
+
attr_accessor :state
|
6519
|
+
|
6520
|
+
# Config specific to unmanaged config
|
6521
|
+
# Corresponds to the JSON property `unmanagedDatasetConfig`
|
6522
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig]
|
6523
|
+
attr_accessor :unmanaged_dataset_config
|
6524
|
+
|
6525
|
+
def initialize(**args)
|
6526
|
+
update!(**args)
|
6527
|
+
end
|
6528
|
+
|
6529
|
+
# Update properties of this object
|
6530
|
+
def update!(**args)
|
6531
|
+
@document_warehouse_config = args[:document_warehouse_config] if args.key?(:document_warehouse_config)
|
6532
|
+
@gcs_managed_config = args[:gcs_managed_config] if args.key?(:gcs_managed_config)
|
6533
|
+
@name = args[:name] if args.key?(:name)
|
6534
|
+
@spanner_indexing_config = args[:spanner_indexing_config] if args.key?(:spanner_indexing_config)
|
6535
|
+
@state = args[:state] if args.key?(:state)
|
6536
|
+
@unmanaged_dataset_config = args[:unmanaged_dataset_config] if args.key?(:unmanaged_dataset_config)
|
6537
|
+
end
|
6538
|
+
end
|
6539
|
+
|
6540
|
+
# Config specific to the Document Warehouse-based implementation.
|
6541
|
+
class GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig
|
6542
|
+
include Google::Apis::Core::Hashable
|
6543
|
+
|
6544
|
+
# Output only. The collection in Document Warehouse associated with the dataset.
|
6545
|
+
# Corresponds to the JSON property `collection`
|
6546
|
+
# @return [String]
|
6547
|
+
attr_accessor :collection
|
6548
|
+
|
6549
|
+
# Output only. The schema in Document Warehouse associated with the dataset.
|
6550
|
+
# Corresponds to the JSON property `schema`
|
6551
|
+
# @return [String]
|
6552
|
+
attr_accessor :schema
|
6553
|
+
|
6554
|
+
def initialize(**args)
|
6555
|
+
update!(**args)
|
6556
|
+
end
|
6557
|
+
|
6558
|
+
# Update properties of this object
|
6559
|
+
def update!(**args)
|
6560
|
+
@collection = args[:collection] if args.key?(:collection)
|
6561
|
+
@schema = args[:schema] if args.key?(:schema)
|
6562
|
+
end
|
6563
|
+
end
|
6564
|
+
|
6565
|
+
# Config specific to the GCS-based implementation.
|
6566
|
+
class GoogleCloudDocumentaiV1beta3DatasetGcsManagedConfig
|
6567
|
+
include Google::Apis::Core::Hashable
|
6568
|
+
|
6569
|
+
# Specifies all documents on Cloud Storage with a common prefix.
|
6570
|
+
# Corresponds to the JSON property `gcsPrefix`
|
6571
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GcsPrefix]
|
6572
|
+
attr_accessor :gcs_prefix
|
6573
|
+
|
6574
|
+
def initialize(**args)
|
6575
|
+
update!(**args)
|
6576
|
+
end
|
6577
|
+
|
6578
|
+
# Update properties of this object
|
6579
|
+
def update!(**args)
|
6580
|
+
@gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix)
|
6581
|
+
end
|
6582
|
+
end
|
6583
|
+
|
6584
|
+
# Dataset Schema.
|
6585
|
+
class GoogleCloudDocumentaiV1beta3DatasetSchema
|
6586
|
+
include Google::Apis::Core::Hashable
|
6587
|
+
|
6588
|
+
# The schema defines the output of the processed document by a processor.
|
6589
|
+
# Corresponds to the JSON property `documentSchema`
|
6590
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema]
|
6591
|
+
attr_accessor :document_schema
|
6592
|
+
|
6593
|
+
# Dataset schema resource name. Format: `projects/`project`/locations/`location`/
|
6594
|
+
# processors/`processor`/dataset/datasetSchema`
|
6595
|
+
# Corresponds to the JSON property `name`
|
6596
|
+
# @return [String]
|
6597
|
+
attr_accessor :name
|
6598
|
+
|
6599
|
+
def initialize(**args)
|
6600
|
+
update!(**args)
|
6601
|
+
end
|
6602
|
+
|
6603
|
+
# Update properties of this object
|
6604
|
+
def update!(**args)
|
6605
|
+
@document_schema = args[:document_schema] if args.key?(:document_schema)
|
6606
|
+
@name = args[:name] if args.key?(:name)
|
6607
|
+
end
|
6608
|
+
end
|
6609
|
+
|
6610
|
+
# Config specific to spanner based indexing.
|
6611
|
+
class GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig
|
6612
|
+
include Google::Apis::Core::Hashable
|
6613
|
+
|
6614
|
+
def initialize(**args)
|
6615
|
+
update!(**args)
|
6616
|
+
end
|
6617
|
+
|
6618
|
+
# Update properties of this object
|
6619
|
+
def update!(**args)
|
6620
|
+
end
|
6621
|
+
end
|
6622
|
+
|
6623
|
+
# Config specific to unmanaged config
|
6624
|
+
class GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig
|
6625
|
+
include Google::Apis::Core::Hashable
|
6626
|
+
|
6627
|
+
def initialize(**args)
|
6628
|
+
update!(**args)
|
6629
|
+
end
|
6630
|
+
|
6631
|
+
# Update properties of this object
|
6632
|
+
def update!(**args)
|
6633
|
+
end
|
6634
|
+
end
|
6635
|
+
|
6489
6636
|
# The long-running operation metadata for the DeleteProcessor method.
|
6490
6637
|
class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
|
6491
6638
|
include Google::Apis::Core::Hashable
|
@@ -8257,6 +8404,11 @@ module Google
|
|
8257
8404
|
# @return [String]
|
8258
8405
|
attr_accessor :display_name
|
8259
8406
|
|
8407
|
+
# Metadata about an entity type.
|
8408
|
+
# Corresponds to the JSON property `entityTypeMetadata`
|
8409
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EntityTypeMetadata]
|
8410
|
+
attr_accessor :entity_type_metadata
|
8411
|
+
|
8260
8412
|
# Defines the a list of enum values.
|
8261
8413
|
# Corresponds to the JSON property `enumValues`
|
8262
8414
|
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues]
|
@@ -8287,6 +8439,7 @@ module Google
|
|
8287
8439
|
def update!(**args)
|
8288
8440
|
@base_types = args[:base_types] if args.key?(:base_types)
|
8289
8441
|
@display_name = args[:display_name] if args.key?(:display_name)
|
8442
|
+
@entity_type_metadata = args[:entity_type_metadata] if args.key?(:entity_type_metadata)
|
8290
8443
|
@enum_values = args[:enum_values] if args.key?(:enum_values)
|
8291
8444
|
@name = args[:name] if args.key?(:name)
|
8292
8445
|
@properties = args[:properties] if args.key?(:properties)
|
@@ -8327,6 +8480,11 @@ module Google
|
|
8327
8480
|
# @return [String]
|
8328
8481
|
attr_accessor :occurrence_type
|
8329
8482
|
|
8483
|
+
# Metadata about a property.
|
8484
|
+
# Corresponds to the JSON property `propertyMetadata`
|
8485
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3PropertyMetadata]
|
8486
|
+
attr_accessor :property_metadata
|
8487
|
+
|
8330
8488
|
# A reference to the value type of the property. This type is subject to the
|
8331
8489
|
# same conventions as the `Entity.base_types` field.
|
8332
8490
|
# Corresponds to the JSON property `valueType`
|
@@ -8341,6 +8499,7 @@ module Google
|
|
8341
8499
|
def update!(**args)
|
8342
8500
|
@name = args[:name] if args.key?(:name)
|
8343
8501
|
@occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
|
8502
|
+
@property_metadata = args[:property_metadata] if args.key?(:property_metadata)
|
8344
8503
|
@value_type = args[:value_type] if args.key?(:value_type)
|
8345
8504
|
end
|
8346
8505
|
end
|
@@ -8732,6 +8891,26 @@ module Google
|
|
8732
8891
|
end
|
8733
8892
|
end
|
8734
8893
|
|
8894
|
+
# Metadata about an entity type.
|
8895
|
+
class GoogleCloudDocumentaiV1beta3EntityTypeMetadata
|
8896
|
+
include Google::Apis::Core::Hashable
|
8897
|
+
|
8898
|
+
# Whether the entity type should be considered as "inactive".
|
8899
|
+
# Corresponds to the JSON property `inactive`
|
8900
|
+
# @return [Boolean]
|
8901
|
+
attr_accessor :inactive
|
8902
|
+
alias_method :inactive?, :inactive
|
8903
|
+
|
8904
|
+
def initialize(**args)
|
8905
|
+
update!(**args)
|
8906
|
+
end
|
8907
|
+
|
8908
|
+
# Update properties of this object
|
8909
|
+
def update!(**args)
|
8910
|
+
@inactive = args[:inactive] if args.key?(:inactive)
|
8911
|
+
end
|
8912
|
+
end
|
8913
|
+
|
8735
8914
|
# Metadata of the EvaluateProcessorVersion method.
|
8736
8915
|
class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
|
8737
8916
|
include Google::Apis::Core::Hashable
|
@@ -9838,6 +10017,26 @@ module Google
|
|
9838
10017
|
end
|
9839
10018
|
end
|
9840
10019
|
|
10020
|
+
# Metadata about a property.
|
10021
|
+
class GoogleCloudDocumentaiV1beta3PropertyMetadata
|
10022
|
+
include Google::Apis::Core::Hashable
|
10023
|
+
|
10024
|
+
# Whether the property should be considered as "inactive".
|
10025
|
+
# Corresponds to the JSON property `inactive`
|
10026
|
+
# @return [Boolean]
|
10027
|
+
attr_accessor :inactive
|
10028
|
+
alias_method :inactive?, :inactive
|
10029
|
+
|
10030
|
+
def initialize(**args)
|
10031
|
+
update!(**args)
|
10032
|
+
end
|
10033
|
+
|
10034
|
+
# Update properties of this object
|
10035
|
+
def update!(**args)
|
10036
|
+
@inactive = args[:inactive] if args.key?(:inactive)
|
10037
|
+
end
|
10038
|
+
end
|
10039
|
+
|
9841
10040
|
# Payload message of raw document content (bytes).
|
9842
10041
|
class GoogleCloudDocumentaiV1beta3RawDocument
|
9843
10042
|
include Google::Apis::Core::Hashable
|
@@ -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.74.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 = "20230526"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1138,6 +1138,42 @@ module Google
|
|
1138
1138
|
include Google::Apis::Core::JsonObjectSupport
|
1139
1139
|
end
|
1140
1140
|
|
1141
|
+
class GoogleCloudDocumentaiV1beta3Dataset
|
1142
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1143
|
+
|
1144
|
+
include Google::Apis::Core::JsonObjectSupport
|
1145
|
+
end
|
1146
|
+
|
1147
|
+
class GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig
|
1148
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1149
|
+
|
1150
|
+
include Google::Apis::Core::JsonObjectSupport
|
1151
|
+
end
|
1152
|
+
|
1153
|
+
class GoogleCloudDocumentaiV1beta3DatasetGcsManagedConfig
|
1154
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1155
|
+
|
1156
|
+
include Google::Apis::Core::JsonObjectSupport
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
class GoogleCloudDocumentaiV1beta3DatasetSchema
|
1160
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1161
|
+
|
1162
|
+
include Google::Apis::Core::JsonObjectSupport
|
1163
|
+
end
|
1164
|
+
|
1165
|
+
class GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig
|
1166
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1167
|
+
|
1168
|
+
include Google::Apis::Core::JsonObjectSupport
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
class GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig
|
1172
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1173
|
+
|
1174
|
+
include Google::Apis::Core::JsonObjectSupport
|
1175
|
+
end
|
1176
|
+
|
1141
1177
|
class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
|
1142
1178
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1143
1179
|
|
@@ -1474,6 +1510,12 @@ module Google
|
|
1474
1510
|
include Google::Apis::Core::JsonObjectSupport
|
1475
1511
|
end
|
1476
1512
|
|
1513
|
+
class GoogleCloudDocumentaiV1beta3EntityTypeMetadata
|
1514
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1515
|
+
|
1516
|
+
include Google::Apis::Core::JsonObjectSupport
|
1517
|
+
end
|
1518
|
+
|
1477
1519
|
class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
|
1478
1520
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1479
1521
|
|
@@ -1666,6 +1708,12 @@ module Google
|
|
1666
1708
|
include Google::Apis::Core::JsonObjectSupport
|
1667
1709
|
end
|
1668
1710
|
|
1711
|
+
class GoogleCloudDocumentaiV1beta3PropertyMetadata
|
1712
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1713
|
+
|
1714
|
+
include Google::Apis::Core::JsonObjectSupport
|
1715
|
+
end
|
1716
|
+
|
1669
1717
|
class GoogleCloudDocumentaiV1beta3RawDocument
|
1670
1718
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1671
1719
|
|
@@ -3752,6 +3800,59 @@ module Google
|
|
3752
3800
|
end
|
3753
3801
|
end
|
3754
3802
|
|
3803
|
+
class GoogleCloudDocumentaiV1beta3Dataset
|
3804
|
+
# @private
|
3805
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3806
|
+
property :document_warehouse_config, as: 'documentWarehouseConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig::Representation
|
3807
|
+
|
3808
|
+
property :gcs_managed_config, as: 'gcsManagedConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetGcsManagedConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetGcsManagedConfig::Representation
|
3809
|
+
|
3810
|
+
property :name, as: 'name'
|
3811
|
+
property :spanner_indexing_config, as: 'spannerIndexingConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig::Representation
|
3812
|
+
|
3813
|
+
property :state, as: 'state'
|
3814
|
+
property :unmanaged_dataset_config, as: 'unmanagedDatasetConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig::Representation
|
3815
|
+
|
3816
|
+
end
|
3817
|
+
end
|
3818
|
+
|
3819
|
+
class GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig
|
3820
|
+
# @private
|
3821
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3822
|
+
property :collection, as: 'collection'
|
3823
|
+
property :schema, as: 'schema'
|
3824
|
+
end
|
3825
|
+
end
|
3826
|
+
|
3827
|
+
class GoogleCloudDocumentaiV1beta3DatasetGcsManagedConfig
|
3828
|
+
# @private
|
3829
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3830
|
+
property :gcs_prefix, as: 'gcsPrefix', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GcsPrefix, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GcsPrefix::Representation
|
3831
|
+
|
3832
|
+
end
|
3833
|
+
end
|
3834
|
+
|
3835
|
+
class GoogleCloudDocumentaiV1beta3DatasetSchema
|
3836
|
+
# @private
|
3837
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3838
|
+
property :document_schema, as: 'documentSchema', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema::Representation
|
3839
|
+
|
3840
|
+
property :name, as: 'name'
|
3841
|
+
end
|
3842
|
+
end
|
3843
|
+
|
3844
|
+
class GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig
|
3845
|
+
# @private
|
3846
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3847
|
+
end
|
3848
|
+
end
|
3849
|
+
|
3850
|
+
class GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig
|
3851
|
+
# @private
|
3852
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3853
|
+
end
|
3854
|
+
end
|
3855
|
+
|
3755
3856
|
class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata
|
3756
3857
|
# @private
|
3757
3858
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4261,6 +4362,8 @@ module Google
|
|
4261
4362
|
class Representation < Google::Apis::Core::JsonRepresentation
|
4262
4363
|
collection :base_types, as: 'baseTypes'
|
4263
4364
|
property :display_name, as: 'displayName'
|
4365
|
+
property :entity_type_metadata, as: 'entityTypeMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EntityTypeMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EntityTypeMetadata::Representation
|
4366
|
+
|
4264
4367
|
property :enum_values, as: 'enumValues', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues::Representation
|
4265
4368
|
|
4266
4369
|
property :name, as: 'name'
|
@@ -4281,6 +4384,8 @@ module Google
|
|
4281
4384
|
class Representation < Google::Apis::Core::JsonRepresentation
|
4282
4385
|
property :name, as: 'name'
|
4283
4386
|
property :occurrence_type, as: 'occurrenceType'
|
4387
|
+
property :property_metadata, as: 'propertyMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3PropertyMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3PropertyMetadata::Representation
|
4388
|
+
|
4284
4389
|
property :value_type, as: 'valueType'
|
4285
4390
|
end
|
4286
4391
|
end
|
@@ -4378,6 +4483,13 @@ module Google
|
|
4378
4483
|
end
|
4379
4484
|
end
|
4380
4485
|
|
4486
|
+
class GoogleCloudDocumentaiV1beta3EntityTypeMetadata
|
4487
|
+
# @private
|
4488
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4489
|
+
property :inactive, as: 'inactive'
|
4490
|
+
end
|
4491
|
+
end
|
4492
|
+
|
4381
4493
|
class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
|
4382
4494
|
# @private
|
4383
4495
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4703,6 +4815,13 @@ module Google
|
|
4703
4815
|
end
|
4704
4816
|
end
|
4705
4817
|
|
4818
|
+
class GoogleCloudDocumentaiV1beta3PropertyMetadata
|
4819
|
+
# @private
|
4820
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4821
|
+
property :inactive, as: 'inactive'
|
4822
|
+
end
|
4823
|
+
end
|
4824
|
+
|
4706
4825
|
class GoogleCloudDocumentaiV1beta3RawDocument
|
4707
4826
|
# @private
|
4708
4827
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -643,6 +643,114 @@ module Google
|
|
643
643
|
execute_or_queue_command(command, &block)
|
644
644
|
end
|
645
645
|
|
646
|
+
# Updates metadata associated with a dataset.
|
647
|
+
# @param [String] name
|
648
|
+
# Dataset resource name. Format: `projects/`project`/locations/`location`/
|
649
|
+
# processors/`processor`/dataset`
|
650
|
+
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Dataset] google_cloud_documentai_v1beta3_dataset_object
|
651
|
+
# @param [String] update_mask
|
652
|
+
# The update mask applies to the resource.
|
653
|
+
# @param [String] fields
|
654
|
+
# Selector specifying which fields to include in a partial response.
|
655
|
+
# @param [String] quota_user
|
656
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
657
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
658
|
+
# @param [Google::Apis::RequestOptions] options
|
659
|
+
# Request-specific options
|
660
|
+
#
|
661
|
+
# @yield [result, err] Result & error if block supplied
|
662
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
|
663
|
+
# @yieldparam err [StandardError] error object if request failed
|
664
|
+
#
|
665
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
|
666
|
+
#
|
667
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
668
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
669
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
670
|
+
def update_project_location_processor_dataset(name, google_cloud_documentai_v1beta3_dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
671
|
+
command = make_simple_command(:patch, 'v1beta3/{+name}', options)
|
672
|
+
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Dataset::Representation
|
673
|
+
command.request_object = google_cloud_documentai_v1beta3_dataset_object
|
674
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
|
675
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
|
676
|
+
command.params['name'] = name unless name.nil?
|
677
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
678
|
+
command.query['fields'] = fields unless fields.nil?
|
679
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
680
|
+
execute_or_queue_command(command, &block)
|
681
|
+
end
|
682
|
+
|
683
|
+
# Gets the DatasetSchema of a Dataset.
|
684
|
+
# @param [String] name
|
685
|
+
# Required. The dataset schema resource name. Format: projects/`project`/
|
686
|
+
# locations/`location`/processors/`processor`/dataset/datasetSchema
|
687
|
+
# @param [Boolean] visible_fields_only
|
688
|
+
# If set, only returns the visible fields of the schema.
|
689
|
+
# @param [String] fields
|
690
|
+
# Selector specifying which fields to include in a partial response.
|
691
|
+
# @param [String] quota_user
|
692
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
693
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
694
|
+
# @param [Google::Apis::RequestOptions] options
|
695
|
+
# Request-specific options
|
696
|
+
#
|
697
|
+
# @yield [result, err] Result & error if block supplied
|
698
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSchema] parsed result object
|
699
|
+
# @yieldparam err [StandardError] error object if request failed
|
700
|
+
#
|
701
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSchema]
|
702
|
+
#
|
703
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
704
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
705
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
706
|
+
def get_project_location_processor_dataset_dataset_schema(name, visible_fields_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
707
|
+
command = make_simple_command(:get, 'v1beta3/{+name}', options)
|
708
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSchema::Representation
|
709
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSchema
|
710
|
+
command.params['name'] = name unless name.nil?
|
711
|
+
command.query['visibleFieldsOnly'] = visible_fields_only unless visible_fields_only.nil?
|
712
|
+
command.query['fields'] = fields unless fields.nil?
|
713
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
714
|
+
execute_or_queue_command(command, &block)
|
715
|
+
end
|
716
|
+
|
717
|
+
# Updates a DatasetSchema.
|
718
|
+
# @param [String] name
|
719
|
+
# Dataset schema resource name. Format: `projects/`project`/locations/`location`/
|
720
|
+
# processors/`processor`/dataset/datasetSchema`
|
721
|
+
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSchema] google_cloud_documentai_v1beta3_dataset_schema_object
|
722
|
+
# @param [String] update_mask
|
723
|
+
# The update mask applies to the resource.
|
724
|
+
# @param [String] fields
|
725
|
+
# Selector specifying which fields to include in a partial response.
|
726
|
+
# @param [String] quota_user
|
727
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
728
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
729
|
+
# @param [Google::Apis::RequestOptions] options
|
730
|
+
# Request-specific options
|
731
|
+
#
|
732
|
+
# @yield [result, err] Result & error if block supplied
|
733
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSchema] parsed result object
|
734
|
+
# @yieldparam err [StandardError] error object if request failed
|
735
|
+
#
|
736
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSchema]
|
737
|
+
#
|
738
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
739
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
740
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
741
|
+
def update_project_location_processor_dataset_dataset_schema(name, google_cloud_documentai_v1beta3_dataset_schema_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
742
|
+
command = make_simple_command(:patch, 'v1beta3/{+name}', options)
|
743
|
+
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSchema::Representation
|
744
|
+
command.request_object = google_cloud_documentai_v1beta3_dataset_schema_object
|
745
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSchema::Representation
|
746
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSchema
|
747
|
+
command.params['name'] = name unless name.nil?
|
748
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
749
|
+
command.query['fields'] = fields unless fields.nil?
|
750
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
751
|
+
execute_or_queue_command(command, &block)
|
752
|
+
end
|
753
|
+
|
646
754
|
# Send a document for Human Review. The input document should be processed by
|
647
755
|
# the specified processor.
|
648
756
|
# @param [String] human_review_config
|
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.74.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-06-04 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.74.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: []
|