google-apis-documentai_v1beta3 0.83.0 → 0.84.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8a167b5f1ff25163151d91460d2c1203e47be78d8cd2e742e6edf49f8f76dd8
4
- data.tar.gz: 37ef1b6b8619ac7cd9d8b74c7960009344c4e3a96ca3de70925a41849634c0bf
3
+ metadata.gz: d0aa8fb910b87ea903a3df5aace99d6b1185b9348d7a9bda37e06b15e8005921
4
+ data.tar.gz: 57b542ba69d8e400f413b12d82653644238198a2c97375c6869fbf662e7c534a
5
5
  SHA512:
6
- metadata.gz: 415fd741f7d820949fe04e708e7210da67e92040ae14ec7a7c88bfde27a79b86d700baaa368014cd4adec8f9230d4c2862b4cdfc4649ae3291fe0b106dfeb3dd
7
- data.tar.gz: b8428eb8a28ca91845b52c4ace1898ecc828cf86b9c78f7020c6d7d15bb92cf4bc020803765a516d28c1739b1905fa12056e82dc3f327cdaf39e101464fba312
6
+ metadata.gz: ed9f04e52fc8fa209421e2ec92e9172f71710b6a34aa0293b9fec07bb49d871afea9168028c5f79916e91fba89ec388762140cc8cc21991a291f219ce39d52b2
7
+ data.tar.gz: 9fa345b33459762099a65efdfd19ccd7f0dd35fed48036d3fb27727bc9622e1de1fcc4b337d803d98e6f74423e5703ef5f2c92ffa4fbbe124e61776b5696fa8a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-documentai_v1beta3
2
2
 
3
+ ### v0.84.0 (2023-10-01)
4
+
5
+ * Regenerated from discovery document revision 20230923
6
+
3
7
  ### v0.83.0 (2023-09-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20230914
@@ -6734,7 +6734,7 @@ module Google
6734
6734
  end
6735
6735
 
6736
6736
  # A singleton resource under a Processor which configures a collection of
6737
- # documents. Next Id: 8.
6737
+ # documents.
6738
6738
  class GoogleCloudDocumentaiV1beta3Dataset
6739
6739
  include Google::Apis::Core::Hashable
6740
6740
 
@@ -7409,6 +7409,49 @@ module Google
7409
7409
  end
7410
7410
  end
7411
7411
 
7412
+ # Metadata about a document.
7413
+ class GoogleCloudDocumentaiV1beta3DocumentMetadata
7414
+ include Google::Apis::Core::Hashable
7415
+
7416
+ # Type of the dataset split to which the document belongs.
7417
+ # Corresponds to the JSON property `datasetType`
7418
+ # @return [String]
7419
+ attr_accessor :dataset_type
7420
+
7421
+ # The display name of the document.
7422
+ # Corresponds to the JSON property `displayName`
7423
+ # @return [String]
7424
+ attr_accessor :display_name
7425
+
7426
+ # Document Identifier.
7427
+ # Corresponds to the JSON property `documentId`
7428
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentId]
7429
+ attr_accessor :document_id
7430
+
7431
+ # Labelling state of the document.
7432
+ # Corresponds to the JSON property `labelingState`
7433
+ # @return [String]
7434
+ attr_accessor :labeling_state
7435
+
7436
+ # Number of pages in the document.
7437
+ # Corresponds to the JSON property `pageCount`
7438
+ # @return [Fixnum]
7439
+ attr_accessor :page_count
7440
+
7441
+ def initialize(**args)
7442
+ update!(**args)
7443
+ end
7444
+
7445
+ # Update properties of this object
7446
+ def update!(**args)
7447
+ @dataset_type = args[:dataset_type] if args.key?(:dataset_type)
7448
+ @display_name = args[:display_name] if args.key?(:display_name)
7449
+ @document_id = args[:document_id] if args.key?(:document_id)
7450
+ @labeling_state = args[:labeling_state] if args.key?(:labeling_state)
7451
+ @page_count = args[:page_count] if args.key?(:page_count)
7452
+ end
7453
+ end
7454
+
7412
7455
  # Config that controls the output of documents. All documents will be written as
7413
7456
  # a JSON file.
7414
7457
  class GoogleCloudDocumentaiV1beta3DocumentOutputConfig
@@ -10031,6 +10074,102 @@ module Google
10031
10074
  end
10032
10075
  end
10033
10076
 
10077
+ #
10078
+ class GoogleCloudDocumentaiV1beta3ListDocumentsRequest
10079
+ include Google::Apis::Core::Hashable
10080
+
10081
+ # Optional. Query to filter the documents based on https://google.aip.dev/160. ##
10082
+ # Currently support query strings are: `SplitType=DATASET_SPLIT_TEST|
10083
+ # DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED` - `LabelingState=
10084
+ # DOCUMENT_LABELED|DOCUMENT_UNLABELED|DOCUMENT_AUTO_LABELED` - `DisplayName=\"
10085
+ # file_name.pdf\"` - `EntityType=abc/def` - `TagName=\"auto-labeling-running\"|\"
10086
+ # sampled\"` Note: - Only `AND`, `=` and `!=` are supported. e.g. `DisplayName=
10087
+ # file_name AND EntityType!=abc` IS supported. - Wildcard `*` is supported only
10088
+ # in `DisplayName` filter - No duplicate filter keys are allowed, e.g. `
10089
+ # EntityType=a AND EntityType=b` is NOT supported. - String match is case
10090
+ # sensitive (for filter `DisplayName` & `EntityType`).
10091
+ # Corresponds to the JSON property `filter`
10092
+ # @return [String]
10093
+ attr_accessor :filter
10094
+
10095
+ # The maximum number of documents to return. The service may return fewer than
10096
+ # this value. If unspecified, at most 20 documents will be returned. The maximum
10097
+ # value is 100; values above 100 will be coerced to 100.
10098
+ # Corresponds to the JSON property `pageSize`
10099
+ # @return [Fixnum]
10100
+ attr_accessor :page_size
10101
+
10102
+ # A page token, received from a previous `ListDocuments` call. Provide this to
10103
+ # retrieve the subsequent page. When paginating, all other parameters provided
10104
+ # to `ListDocuments` must match the call that provided the page token.
10105
+ # Corresponds to the JSON property `pageToken`
10106
+ # @return [String]
10107
+ attr_accessor :page_token
10108
+
10109
+ # Optional. Controls if the ListDocuments request requires a total size of
10110
+ # matched documents. See ListDocumentsResponse.total_size. Enabling this flag
10111
+ # may adversely impact performance. Defaults to false.
10112
+ # Corresponds to the JSON property `returnTotalSize`
10113
+ # @return [Boolean]
10114
+ attr_accessor :return_total_size
10115
+ alias_method :return_total_size?, :return_total_size
10116
+
10117
+ # Optional. Number of results to skip beginning from the `page_token` if
10118
+ # provided. https://google.aip.dev/158#skipping-results. It must be a non-
10119
+ # negative integer. Negative values wil be rejected. Note that this is not the
10120
+ # number of pages to skip. If this value causes the cursor to move past the end
10121
+ # of results, `ListDocumentsResponse.document_metadata` and `
10122
+ # ListDocumentsResponse.next_page_token` will be empty.
10123
+ # Corresponds to the JSON property `skip`
10124
+ # @return [Fixnum]
10125
+ attr_accessor :skip
10126
+
10127
+ def initialize(**args)
10128
+ update!(**args)
10129
+ end
10130
+
10131
+ # Update properties of this object
10132
+ def update!(**args)
10133
+ @filter = args[:filter] if args.key?(:filter)
10134
+ @page_size = args[:page_size] if args.key?(:page_size)
10135
+ @page_token = args[:page_token] if args.key?(:page_token)
10136
+ @return_total_size = args[:return_total_size] if args.key?(:return_total_size)
10137
+ @skip = args[:skip] if args.key?(:skip)
10138
+ end
10139
+ end
10140
+
10141
+ #
10142
+ class GoogleCloudDocumentaiV1beta3ListDocumentsResponse
10143
+ include Google::Apis::Core::Hashable
10144
+
10145
+ # Document metadata corresponding to the listed documents.
10146
+ # Corresponds to the JSON property `documentMetadata`
10147
+ # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentMetadata>]
10148
+ attr_accessor :document_metadata
10149
+
10150
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
10151
+ # field is omitted, there are no subsequent pages.
10152
+ # Corresponds to the JSON property `nextPageToken`
10153
+ # @return [String]
10154
+ attr_accessor :next_page_token
10155
+
10156
+ # Total count of documents queried.
10157
+ # Corresponds to the JSON property `totalSize`
10158
+ # @return [Fixnum]
10159
+ attr_accessor :total_size
10160
+
10161
+ def initialize(**args)
10162
+ update!(**args)
10163
+ end
10164
+
10165
+ # Update properties of this object
10166
+ def update!(**args)
10167
+ @document_metadata = args[:document_metadata] if args.key?(:document_metadata)
10168
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
10169
+ @total_size = args[:total_size] if args.key?(:total_size)
10170
+ end
10171
+ end
10172
+
10034
10173
  # The response from `ListEvaluations`.
10035
10174
  class GoogleCloudDocumentaiV1beta3ListEvaluationsResponse
10036
10175
  include Google::Apis::Core::Hashable
@@ -10179,7 +10318,7 @@ module Google
10179
10318
  alias_method :compute_style_info?, :compute_style_info
10180
10319
 
10181
10320
  # Turn off character box detector in OCR engine. Character box detection is
10182
- # enabled by default in OCR 2.0+ processors.
10321
+ # enabled by default in OCR 2.0 (and later) processors.
10183
10322
  # Corresponds to the JSON property `disableCharacterBoxesDetection`
10184
10323
  # @return [Boolean]
10185
10324
  attr_accessor :disable_character_boxes_detection
@@ -10273,8 +10412,8 @@ module Google
10273
10412
  attr_accessor :enable_math_ocr
10274
10413
  alias_method :enable_math_ocr?, :enable_math_ocr
10275
10414
 
10276
- # Turn on selection mark detector in OCR engine. Only available in OCR 2.0+
10277
- # processors.
10415
+ # Turn on selection mark detector in OCR engine. Only available in OCR 2.0 (and
10416
+ # later) processors.
10278
10417
  # Corresponds to the JSON property `enableSelectionMarkDetection`
10279
10418
  # @return [Boolean]
10280
10419
  attr_accessor :enable_selection_mark_detection
@@ -10301,8 +10440,8 @@ module Google
10301
10440
  # @return [Fixnum]
10302
10441
  attr_accessor :from_end
10303
10442
 
10304
- # Only process certain pages from the start, process all if the document has
10305
- # less pages.
10443
+ # Only process certain pages from the start. Process all if the document has
10444
+ # fewer pages.
10306
10445
  # Corresponds to the JSON property `fromStart`
10307
10446
  # @return [Fixnum]
10308
10447
  attr_accessor :from_start
@@ -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.83.0"
19
+ GEM_VERSION = "0.84.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 = "20230914"
25
+ REVISION = "20230923"
26
26
  end
27
27
  end
28
28
  end
@@ -1318,6 +1318,12 @@ module Google
1318
1318
  include Google::Apis::Core::JsonObjectSupport
1319
1319
  end
1320
1320
 
1321
+ class GoogleCloudDocumentaiV1beta3DocumentMetadata
1322
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1323
+
1324
+ include Google::Apis::Core::JsonObjectSupport
1325
+ end
1326
+
1321
1327
  class GoogleCloudDocumentaiV1beta3DocumentOutputConfig
1322
1328
  class Representation < Google::Apis::Core::JsonRepresentation; end
1323
1329
 
@@ -1750,6 +1756,18 @@ module Google
1750
1756
  include Google::Apis::Core::JsonObjectSupport
1751
1757
  end
1752
1758
 
1759
+ class GoogleCloudDocumentaiV1beta3ListDocumentsRequest
1760
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1761
+
1762
+ include Google::Apis::Core::JsonObjectSupport
1763
+ end
1764
+
1765
+ class GoogleCloudDocumentaiV1beta3ListDocumentsResponse
1766
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1767
+
1768
+ include Google::Apis::Core::JsonObjectSupport
1769
+ end
1770
+
1753
1771
  class GoogleCloudDocumentaiV1beta3ListEvaluationsResponse
1754
1772
  class Representation < Google::Apis::Core::JsonRepresentation; end
1755
1773
 
@@ -4272,6 +4290,18 @@ module Google
4272
4290
  end
4273
4291
  end
4274
4292
 
4293
+ class GoogleCloudDocumentaiV1beta3DocumentMetadata
4294
+ # @private
4295
+ class Representation < Google::Apis::Core::JsonRepresentation
4296
+ property :dataset_type, as: 'datasetType'
4297
+ property :display_name, as: 'displayName'
4298
+ property :document_id, as: 'documentId', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentId, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentId::Representation
4299
+
4300
+ property :labeling_state, as: 'labelingState'
4301
+ property :page_count, as: 'pageCount'
4302
+ end
4303
+ end
4304
+
4275
4305
  class GoogleCloudDocumentaiV1beta3DocumentOutputConfig
4276
4306
  # @private
4277
4307
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5033,6 +5063,27 @@ module Google
5033
5063
  end
5034
5064
  end
5035
5065
 
5066
+ class GoogleCloudDocumentaiV1beta3ListDocumentsRequest
5067
+ # @private
5068
+ class Representation < Google::Apis::Core::JsonRepresentation
5069
+ property :filter, as: 'filter'
5070
+ property :page_size, as: 'pageSize'
5071
+ property :page_token, as: 'pageToken'
5072
+ property :return_total_size, as: 'returnTotalSize'
5073
+ property :skip, as: 'skip'
5074
+ end
5075
+ end
5076
+
5077
+ class GoogleCloudDocumentaiV1beta3ListDocumentsResponse
5078
+ # @private
5079
+ class Representation < Google::Apis::Core::JsonRepresentation
5080
+ collection :document_metadata, as: 'documentMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentMetadata::Representation
5081
+
5082
+ property :next_page_token, as: 'nextPageToken'
5083
+ property :total_size, as: 'totalSize'
5084
+ end
5085
+ end
5086
+
5036
5087
  class GoogleCloudDocumentaiV1beta3ListEvaluationsResponse
5037
5088
  # @private
5038
5089
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -843,6 +843,40 @@ module Google
843
843
  execute_or_queue_command(command, &block)
844
844
  end
845
845
 
846
+ # Returns a list of documents present in the dataset.
847
+ # @param [String] dataset
848
+ # Required. The resource name of the dataset to be listed. Format: projects/`
849
+ # project`/locations/`location`/processors/`processor`/dataset
850
+ # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListDocumentsRequest] google_cloud_documentai_v1beta3_list_documents_request_object
851
+ # @param [String] fields
852
+ # Selector specifying which fields to include in a partial response.
853
+ # @param [String] quota_user
854
+ # Available to use for quota purposes for server-side applications. Can be any
855
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
856
+ # @param [Google::Apis::RequestOptions] options
857
+ # Request-specific options
858
+ #
859
+ # @yield [result, err] Result & error if block supplied
860
+ # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListDocumentsResponse] parsed result object
861
+ # @yieldparam err [StandardError] error object if request failed
862
+ #
863
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListDocumentsResponse]
864
+ #
865
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
866
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
867
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
868
+ def list_project_location_processor_dataset_documents(dataset, google_cloud_documentai_v1beta3_list_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
869
+ command = make_simple_command(:post, 'v1beta3/{+dataset}:listDocuments', options)
870
+ command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListDocumentsRequest::Representation
871
+ command.request_object = google_cloud_documentai_v1beta3_list_documents_request_object
872
+ command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListDocumentsResponse::Representation
873
+ command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListDocumentsResponse
874
+ command.params['dataset'] = dataset unless dataset.nil?
875
+ command.query['fields'] = fields unless fields.nil?
876
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
877
+ execute_or_queue_command(command, &block)
878
+ end
879
+
846
880
  # Updates a `DatasetSchema`.
847
881
  # @param [String] name
848
882
  # Dataset schema resource name. Format: `projects/`project`/locations/`location`/
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.83.0
4
+ version: 0.84.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-09-24 00:00:00.000000000 Z
11
+ date: 2023-10-01 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.83.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.84.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: []