google-apis-documentai_v1 0.93.0 → 0.95.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f55367931583615323dda81a527a2819d78ead2a6a358951c2370d6992fad8a3
|
4
|
+
data.tar.gz: 1e5e82f933832e6b594b4f1f31677f1ca6392e046de655f119173b2f91a41507
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a583eb34555b10f6d8fb97451df4b667c5ef36e5d263fb9bf6a8fc019683988855013575410223d89d29d33ace648ac34fd186c82a4a30f2d0cd234d517ac5ac
|
7
|
+
data.tar.gz: 34e01a7529ad2ba5d01253203a9da337fb2b0a74825a674479c6dcfea61ec6b551c8300051c20020b02e28fd022ec6b9d35da0f4ac4a947fdc48ab3a91526000
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-documentai_v1
|
2
2
|
|
3
|
+
### v0.95.0 (2025-04-20)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250416
|
6
|
+
|
7
|
+
### v0.94.0 (2025-03-23)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250321
|
10
|
+
|
3
11
|
### v0.93.0 (2025-01-26)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250117
|
@@ -1839,6 +1839,11 @@ module Google
|
|
1839
1839
|
# @return [String]
|
1840
1840
|
attr_accessor :content
|
1841
1841
|
|
1842
|
+
# Optional. An internal identifier for document. Should be loggable (no PII).
|
1843
|
+
# Corresponds to the JSON property `docid`
|
1844
|
+
# @return [String]
|
1845
|
+
attr_accessor :docid
|
1846
|
+
|
1842
1847
|
# Represents the parsed layout of a document as a collection of blocks that the
|
1843
1848
|
# document is divided into.
|
1844
1849
|
# Corresponds to the JSON property `documentLayout`
|
@@ -1921,6 +1926,7 @@ module Google
|
|
1921
1926
|
def update!(**args)
|
1922
1927
|
@chunked_document = args[:chunked_document] if args.key?(:chunked_document)
|
1923
1928
|
@content = args[:content] if args.key?(:content)
|
1929
|
+
@docid = args[:docid] if args.key?(:docid)
|
1924
1930
|
@document_layout = args[:document_layout] if args.key?(:document_layout)
|
1925
1931
|
@entities = args[:entities] if args.key?(:entities)
|
1926
1932
|
@entity_relations = args[:entity_relations] if args.key?(:entity_relations)
|
@@ -2109,6 +2115,11 @@ module Google
|
|
2109
2115
|
# @return [String]
|
2110
2116
|
attr_accessor :block_id
|
2111
2117
|
|
2118
|
+
# A bounding polygon for the detected image annotation.
|
2119
|
+
# Corresponds to the JSON property `boundingBox`
|
2120
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BoundingPoly]
|
2121
|
+
attr_accessor :bounding_box
|
2122
|
+
|
2112
2123
|
# Represents a list type block.
|
2113
2124
|
# Corresponds to the JSON property `listBlock`
|
2114
2125
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock]
|
@@ -2136,6 +2147,7 @@ module Google
|
|
2136
2147
|
# Update properties of this object
|
2137
2148
|
def update!(**args)
|
2138
2149
|
@block_id = args[:block_id] if args.key?(:block_id)
|
2150
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
2139
2151
|
@list_block = args[:list_block] if args.key?(:list_block)
|
2140
2152
|
@page_span = args[:page_span] if args.key?(:page_span)
|
2141
2153
|
@table_block = args[:table_block] if args.key?(:table_block)
|
@@ -2421,16 +2433,16 @@ module Google
|
|
2421
2433
|
class GoogleCloudDocumentaiV1DocumentEntityNormalizedValue
|
2422
2434
|
include Google::Apis::Core::Hashable
|
2423
2435
|
|
2424
|
-
# Represents a postal address
|
2425
|
-
# addresses. Given a postal address, a postal service can deliver items to a
|
2426
|
-
# premise, P.O.
|
2427
|
-
# locations (roads, towns, mountains). In typical usage an address would be
|
2436
|
+
# Represents a postal address (for example, for postal delivery or payments
|
2437
|
+
# addresses). Given a postal address, a postal service can deliver items to a
|
2438
|
+
# premise, P.O. box or similar. It is not intended to model geographical
|
2439
|
+
# locations (roads, towns, mountains). In typical usage, an address would be
|
2428
2440
|
# created by user input or from importing existing data, depending on the type
|
2429
|
-
# of process. Advice on address input
|
2430
|
-
# ready address widget such as https://github.com/google/libaddressinput
|
2441
|
+
# of process. Advice on address input or editing: - Use an internationalization-
|
2442
|
+
# ready address widget such as https://github.com/google/libaddressinput. -
|
2431
2443
|
# Users should not be presented with UI elements for input or editing of fields
|
2432
2444
|
# outside countries where that field is used. For more guidance on how to use
|
2433
|
-
# this schema, see: https://support.google.com/business/answer/6397478
|
2445
|
+
# this schema, see: https://support.google.com/business/answer/6397478.
|
2434
2446
|
# Corresponds to the JSON property `addressValue`
|
2435
2447
|
# @return [Google::Apis::DocumentaiV1::GoogleTypePostalAddress]
|
2436
2448
|
attr_accessor :address_value
|
@@ -7776,46 +7788,46 @@ module Google
|
|
7776
7788
|
end
|
7777
7789
|
end
|
7778
7790
|
|
7779
|
-
# Represents a postal address
|
7780
|
-
# addresses. Given a postal address, a postal service can deliver items to a
|
7781
|
-
# premise, P.O.
|
7782
|
-
# locations (roads, towns, mountains). In typical usage an address would be
|
7791
|
+
# Represents a postal address (for example, for postal delivery or payments
|
7792
|
+
# addresses). Given a postal address, a postal service can deliver items to a
|
7793
|
+
# premise, P.O. box or similar. It is not intended to model geographical
|
7794
|
+
# locations (roads, towns, mountains). In typical usage, an address would be
|
7783
7795
|
# created by user input or from importing existing data, depending on the type
|
7784
|
-
# of process. Advice on address input
|
7785
|
-
# ready address widget such as https://github.com/google/libaddressinput
|
7796
|
+
# of process. Advice on address input or editing: - Use an internationalization-
|
7797
|
+
# ready address widget such as https://github.com/google/libaddressinput. -
|
7786
7798
|
# Users should not be presented with UI elements for input or editing of fields
|
7787
7799
|
# outside countries where that field is used. For more guidance on how to use
|
7788
|
-
# this schema, see: https://support.google.com/business/answer/6397478
|
7800
|
+
# this schema, see: https://support.google.com/business/answer/6397478.
|
7789
7801
|
class GoogleTypePostalAddress
|
7790
7802
|
include Google::Apis::Core::Hashable
|
7791
7803
|
|
7792
7804
|
# Unstructured address lines describing the lower levels of an address. Because
|
7793
|
-
# values in address_lines do not have type information and may sometimes
|
7794
|
-
# multiple values in a single field (
|
7795
|
-
# that the line order is clear. The order of address lines should be "
|
7796
|
-
# order" for the country
|
7797
|
-
#
|
7798
|
-
# ja" for large-to-small ordering and "ja-Latn" or "en" for small-
|
7799
|
-
#
|
7800
|
-
# language. The minimum permitted structural representation of an
|
7801
|
-
# consists of a region_code with all remaining information placed in
|
7802
|
-
# address_lines
|
7805
|
+
# values in `address_lines` do not have type information and may sometimes
|
7806
|
+
# contain multiple values in a single field (for example, "Austin, TX"), it is
|
7807
|
+
# important that the line order is clear. The order of address lines should be "
|
7808
|
+
# envelope order" for the country or region of the address. In places where this
|
7809
|
+
# can vary (for example, Japan), `address_language` is used to make it explicit (
|
7810
|
+
# for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-
|
7811
|
+
# to-large). In this way, the most specific line of an address can be selected
|
7812
|
+
# based on the language. The minimum permitted structural representation of an
|
7813
|
+
# address consists of a `region_code` with all remaining information placed in
|
7814
|
+
# the `address_lines`. It would be possible to format such an address very
|
7803
7815
|
# approximately without geocoding, but no semantic reasoning could be made about
|
7804
7816
|
# any of the address components until it was at least partially resolved.
|
7805
|
-
# Creating an address only containing a region_code and address_lines
|
7806
|
-
# geocoding is the recommended way to handle completely unstructured
|
7807
|
-
# as opposed to guessing which parts of the address should be
|
7808
|
-
# administrative areas).
|
7817
|
+
# Creating an address only containing a `region_code` and `address_lines` and
|
7818
|
+
# then geocoding is the recommended way to handle completely unstructured
|
7819
|
+
# addresses (as opposed to guessing which parts of the address should be
|
7820
|
+
# localities or administrative areas).
|
7809
7821
|
# Corresponds to the JSON property `addressLines`
|
7810
7822
|
# @return [Array<String>]
|
7811
7823
|
attr_accessor :address_lines
|
7812
7824
|
|
7813
7825
|
# Optional. Highest administrative subdivision which is used for postal
|
7814
7826
|
# addresses of a country or region. For example, this can be a state, a province,
|
7815
|
-
# an oblast, or a prefecture.
|
7816
|
-
#
|
7817
|
-
#
|
7818
|
-
#
|
7827
|
+
# an oblast, or a prefecture. For Spain, this is the province and not the
|
7828
|
+
# autonomous community (for example, "Barcelona" and not "Catalonia"). Many
|
7829
|
+
# countries don't use an administrative area in postal addresses. For example,
|
7830
|
+
# in Switzerland, this should be left unpopulated.
|
7819
7831
|
# Corresponds to the JSON property `administrativeArea`
|
7820
7832
|
# @return [String]
|
7821
7833
|
attr_accessor :administrative_area
|
@@ -7832,10 +7844,10 @@ module Google
|
|
7832
7844
|
# @return [String]
|
7833
7845
|
attr_accessor :language_code
|
7834
7846
|
|
7835
|
-
# Optional. Generally refers to the city
|
7836
|
-
# US city, IT comune, UK post town. In regions of the world where
|
7837
|
-
# not well defined or do not fit into this structure well, leave
|
7838
|
-
# and use address_lines
|
7847
|
+
# Optional. Generally refers to the city or town portion of the address.
|
7848
|
+
# Examples: US city, IT comune, UK post town. In regions of the world where
|
7849
|
+
# localities are not well defined or do not fit into this structure well, leave `
|
7850
|
+
# locality` empty and use `address_lines`.
|
7839
7851
|
# Corresponds to the JSON property `locality`
|
7840
7852
|
# @return [String]
|
7841
7853
|
attr_accessor :locality
|
@@ -7847,8 +7859,8 @@ module Google
|
|
7847
7859
|
|
7848
7860
|
# Optional. Postal code of the address. Not all countries use or require postal
|
7849
7861
|
# codes to be present, but where they are used, they may trigger additional
|
7850
|
-
# validation with other parts of the address (
|
7851
|
-
# in the
|
7862
|
+
# validation with other parts of the address (for example, state or zip code
|
7863
|
+
# validation in the United States).
|
7852
7864
|
# Corresponds to the JSON property `postalCode`
|
7853
7865
|
# @return [String]
|
7854
7866
|
attr_accessor :postal_code
|
@@ -7877,15 +7889,15 @@ module Google
|
|
7877
7889
|
|
7878
7890
|
# Optional. Additional, country-specific, sorting code. This is not used in most
|
7879
7891
|
# regions. Where it is used, the value is either a string like "CEDEX",
|
7880
|
-
# optionally followed by a number (
|
7892
|
+
# optionally followed by a number (for example, "CEDEX 7"), or just a number
|
7881
7893
|
# alone, representing the "sector code" (Jamaica), "delivery area indicator" (
|
7882
|
-
# Malawi) or "post office indicator" (
|
7894
|
+
# Malawi) or "post office indicator" (Côte d'Ivoire).
|
7883
7895
|
# Corresponds to the JSON property `sortingCode`
|
7884
7896
|
# @return [String]
|
7885
7897
|
attr_accessor :sorting_code
|
7886
7898
|
|
7887
|
-
# Optional. Sublocality of the address. For example, this can be
|
7888
|
-
#
|
7899
|
+
# Optional. Sublocality of the address. For example, this can be a neighborhood,
|
7900
|
+
# borough, or district.
|
7889
7901
|
# Corresponds to the JSON property `sublocality`
|
7890
7902
|
# @return [String]
|
7891
7903
|
attr_accessor :sublocality
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DocumentaiV1
|
18
18
|
# Version of the google-apis-documentai_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.95.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250416"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -2150,6 +2150,7 @@ module Google
|
|
2150
2150
|
property :chunked_document, as: 'chunkedDocument', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocument, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentChunkedDocument::Representation
|
2151
2151
|
|
2152
2152
|
property :content, :base64 => true, as: 'content'
|
2153
|
+
property :docid, as: 'docid'
|
2153
2154
|
property :document_layout, as: 'documentLayout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayout::Representation
|
2154
2155
|
|
2155
2156
|
collection :entities, as: 'entities', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentEntity, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentEntity::Representation
|
@@ -2235,6 +2236,8 @@ module Google
|
|
2235
2236
|
# @private
|
2236
2237
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2237
2238
|
property :block_id, as: 'blockId'
|
2239
|
+
property :bounding_box, as: 'boundingBox', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BoundingPoly, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BoundingPoly::Representation
|
2240
|
+
|
2238
2241
|
property :list_block, as: 'listBlock', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock::Representation
|
2239
2242
|
|
2240
2243
|
property :page_span, as: 'pageSpan', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan::Representation
|
@@ -151,6 +151,9 @@ module Google
|
|
151
151
|
# Lists information about the supported locations for this service.
|
152
152
|
# @param [String] name
|
153
153
|
# The resource that owns the locations collection, if applicable.
|
154
|
+
# @param [Array<String>, String] extra_location_types
|
155
|
+
# Optional. A list of extra location types that should be used as conditions for
|
156
|
+
# controlling the visibility of the locations.
|
154
157
|
# @param [String] filter
|
155
158
|
# A filter to narrow down results to a preferred subset. The filtering language
|
156
159
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -178,11 +181,12 @@ module Google
|
|
178
181
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
179
182
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
180
183
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
181
|
-
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
184
|
+
def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
182
185
|
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
183
186
|
command.response_representation = Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse::Representation
|
184
187
|
command.response_class = Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse
|
185
188
|
command.params['name'] = name unless name.nil?
|
189
|
+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
|
186
190
|
command.query['filter'] = filter unless filter.nil?
|
187
191
|
command.query['pageSize'] = page_size unless page_size.nil?
|
188
192
|
command.query['pageToken'] = page_token unless page_token.nil?
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-documentai_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.95.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-20 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.95.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|