Skip to content

Commit 8313427

Browse files
feat: Automated regeneration of documentai v1 client (googleapis#22214)
Auto-created at 2025-03-23 10:43:16 +0000 using the toys pull request generator.
1 parent 772756a commit 8313427

File tree

5 files changed

+54
-45
lines changed

5 files changed

+54
-45
lines changed

api_names_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220605,6 +220605,7 @@
220605220605
"/documentai:v1/documentai.projects.locations.get": get_project_location
220606220606
"/documentai:v1/documentai.projects.locations.get/name": name
220607220607
"/documentai:v1/documentai.projects.locations.list": list_project_locations
220608+
"/documentai:v1/documentai.projects.locations.list/extraLocationTypes": extra_location_types
220608220609
"/documentai:v1/documentai.projects.locations.list/filter": filter
220609220610
"/documentai:v1/documentai.projects.locations.list/name": name
220610220611
"/documentai:v1/documentai.projects.locations.list/pageSize": page_size

generated/google-apis-documentai_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-documentai_v1
22

3+
### v0.94.0 (2025-03-23)
4+
5+
* Regenerated from discovery document revision 20250321
6+
37
### v0.93.0 (2025-01-26)
48

59
* Regenerated from discovery document revision 20250117

generated/google-apis-documentai_v1/lib/google/apis/documentai_v1/classes.rb

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2421,16 +2421,16 @@ def update!(**args)
24212421
class GoogleCloudDocumentaiV1DocumentEntityNormalizedValue
24222422
include Google::Apis::Core::Hashable
24232423

2424-
# Represents a postal address. For example for postal delivery or payments
2425-
# addresses. Given a postal address, a postal service can deliver items to a
2426-
# premise, P.O. Box or similar. It is not intended to model geographical
2427-
# locations (roads, towns, mountains). In typical usage an address would be
2424+
# Represents a postal address (for example, for postal delivery or payments
2425+
# addresses). Given a postal address, a postal service can deliver items to a
2426+
# premise, P.O. box or similar. It is not intended to model geographical
2427+
# locations (roads, towns, mountains). In typical usage, an address would be
24282428
# created by user input or from importing existing data, depending on the type
2429-
# of process. Advice on address input / editing: - Use an internationalization-
2430-
# ready address widget such as https://github.com/google/libaddressinput) -
2429+
# of process. Advice on address input or editing: - Use an internationalization-
2430+
# ready address widget such as https://github.com/google/libaddressinput. -
24312431
# Users should not be presented with UI elements for input or editing of fields
24322432
# 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
2433+
# this schema, see: https://support.google.com/business/answer/6397478.
24342434
# Corresponds to the JSON property `addressValue`
24352435
# @return [Google::Apis::DocumentaiV1::GoogleTypePostalAddress]
24362436
attr_accessor :address_value
@@ -7776,46 +7776,46 @@ def update!(**args)
77767776
end
77777777
end
77787778

7779-
# Represents a postal address. For example for postal delivery or payments
7780-
# addresses. Given a postal address, a postal service can deliver items to a
7781-
# premise, P.O. Box or similar. It is not intended to model geographical
7782-
# locations (roads, towns, mountains). In typical usage an address would be
7779+
# Represents a postal address (for example, for postal delivery or payments
7780+
# addresses). Given a postal address, a postal service can deliver items to a
7781+
# premise, P.O. box or similar. It is not intended to model geographical
7782+
# locations (roads, towns, mountains). In typical usage, an address would be
77837783
# created by user input or from importing existing data, depending on the type
7784-
# of process. Advice on address input / editing: - Use an internationalization-
7785-
# ready address widget such as https://github.com/google/libaddressinput) -
7784+
# of process. Advice on address input or editing: - Use an internationalization-
7785+
# ready address widget such as https://github.com/google/libaddressinput. -
77867786
# Users should not be presented with UI elements for input or editing of fields
77877787
# 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
7788+
# this schema, see: https://support.google.com/business/answer/6397478.
77897789
class GoogleTypePostalAddress
77907790
include Google::Apis::Core::Hashable
77917791

77927792
# Unstructured address lines describing the lower levels of an address. Because
7793-
# values in address_lines do not have type information and may sometimes contain
7794-
# multiple values in a single field (For example "Austin, TX"), it is important
7795-
# that the line order is clear. The order of address lines should be "envelope
7796-
# order" for the country/region of the address. In places where this can vary (
7797-
# For example Japan), address_language is used to make it explicit (For example "
7798-
# ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large).
7799-
# This way, the most specific line of an address can be selected based on the
7800-
# language. The minimum permitted structural representation of an address
7801-
# consists of a region_code with all remaining information placed in the
7802-
# address_lines. It would be possible to format such an address very
7793+
# values in `address_lines` do not have type information and may sometimes
7794+
# contain multiple values in a single field (for example, "Austin, TX"), it is
7795+
# important that the line order is clear. The order of address lines should be "
7796+
# envelope order" for the country or region of the address. In places where this
7797+
# can vary (for example, Japan), `address_language` is used to make it explicit (
7798+
# for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-
7799+
# to-large). In this way, the most specific line of an address can be selected
7800+
# based on the language. The minimum permitted structural representation of an
7801+
# address consists of a `region_code` with all remaining information placed in
7802+
# the `address_lines`. It would be possible to format such an address very
78037803
# approximately without geocoding, but no semantic reasoning could be made about
78047804
# any of the address components until it was at least partially resolved.
7805-
# Creating an address only containing a region_code and address_lines, and then
7806-
# geocoding is the recommended way to handle completely unstructured addresses (
7807-
# as opposed to guessing which parts of the address should be localities or
7808-
# administrative areas).
7805+
# Creating an address only containing a `region_code` and `address_lines` and
7806+
# then geocoding is the recommended way to handle completely unstructured
7807+
# addresses (as opposed to guessing which parts of the address should be
7808+
# localities or administrative areas).
78097809
# Corresponds to the JSON property `addressLines`
78107810
# @return [Array<String>]
78117811
attr_accessor :address_lines
78127812

78137813
# Optional. Highest administrative subdivision which is used for postal
78147814
# addresses of a country or region. For example, this can be a state, a province,
7815-
# an oblast, or a prefecture. Specifically, for Spain this is the province and
7816-
# not the autonomous community (For example "Barcelona" and not "Catalonia").
7817-
# Many countries don't use an administrative area in postal addresses. For
7818-
# example in Switzerland this should be left unpopulated.
7815+
# an oblast, or a prefecture. For Spain, this is the province and not the
7816+
# autonomous community (for example, "Barcelona" and not "Catalonia"). Many
7817+
# countries don't use an administrative area in postal addresses. For example,
7818+
# in Switzerland, this should be left unpopulated.
78197819
# Corresponds to the JSON property `administrativeArea`
78207820
# @return [String]
78217821
attr_accessor :administrative_area
@@ -7832,10 +7832,10 @@ class GoogleTypePostalAddress
78327832
# @return [String]
78337833
attr_accessor :language_code
78347834

7835-
# Optional. Generally refers to the city/town portion of the address. Examples:
7836-
# US city, IT comune, UK post town. In regions of the world where localities are
7837-
# not well defined or do not fit into this structure well, leave locality empty
7838-
# and use address_lines.
7835+
# Optional. Generally refers to the city or town portion of the address.
7836+
# Examples: US city, IT comune, UK post town. In regions of the world where
7837+
# localities are not well defined or do not fit into this structure well, leave `
7838+
# locality` empty and use `address_lines`.
78397839
# Corresponds to the JSON property `locality`
78407840
# @return [String]
78417841
attr_accessor :locality
@@ -7847,8 +7847,8 @@ class GoogleTypePostalAddress
78477847

78487848
# Optional. Postal code of the address. Not all countries use or require postal
78497849
# codes to be present, but where they are used, they may trigger additional
7850-
# validation with other parts of the address (For example state/zip validation
7851-
# in the U.S.A.).
7850+
# validation with other parts of the address (for example, state or zip code
7851+
# validation in the United States).
78527852
# Corresponds to the JSON property `postalCode`
78537853
# @return [String]
78547854
attr_accessor :postal_code
@@ -7877,15 +7877,15 @@ class GoogleTypePostalAddress
78777877

78787878
# Optional. Additional, country-specific, sorting code. This is not used in most
78797879
# regions. Where it is used, the value is either a string like "CEDEX",
7880-
# optionally followed by a number (For example "CEDEX 7"), or just a number
7880+
# optionally followed by a number (for example, "CEDEX 7"), or just a number
78817881
# alone, representing the "sector code" (Jamaica), "delivery area indicator" (
7882-
# Malawi) or "post office indicator" (For example Côte d'Ivoire).
7882+
# Malawi) or "post office indicator" (Côte d'Ivoire).
78837883
# Corresponds to the JSON property `sortingCode`
78847884
# @return [String]
78857885
attr_accessor :sorting_code
78867886

7887-
# Optional. Sublocality of the address. For example, this can be neighborhoods,
7888-
# boroughs, districts.
7887+
# Optional. Sublocality of the address. For example, this can be a neighborhood,
7888+
# borough, or district.
78897889
# Corresponds to the JSON property `sublocality`
78907890
# @return [String]
78917891
attr_accessor :sublocality

generated/google-apis-documentai_v1/lib/google/apis/documentai_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DocumentaiV1
1818
# Version of the google-apis-documentai_v1 gem
19-
GEM_VERSION = "0.93.0"
19+
GEM_VERSION = "0.94.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250117"
25+
REVISION = "20250321"
2626
end
2727
end
2828
end

generated/google-apis-documentai_v1/lib/google/apis/documentai_v1/service.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
151151
# Lists information about the supported locations for this service.
152152
# @param [String] name
153153
# 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.
154157
# @param [String] filter
155158
# A filter to narrow down results to a preferred subset. The filtering language
156159
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -178,11 +181,12 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
178181
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179182
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180183
# @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)
182185
command = make_simple_command(:get, 'v1/{+name}/locations', options)
183186
command.response_representation = Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse::Representation
184187
command.response_class = Google::Apis::DocumentaiV1::GoogleCloudLocationListLocationsResponse
185188
command.params['name'] = name unless name.nil?
189+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
186190
command.query['filter'] = filter unless filter.nil?
187191
command.query['pageSize'] = page_size unless page_size.nil?
188192
command.query['pageToken'] = page_token unless page_token.nil?

0 commit comments

Comments
 (0)