google-apis-documentai_v1beta3 0.11.0 → 0.12.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 +26 -2
- data/lib/google/apis/documentai_v1beta3/gem_version.rb +2 -2
- data/lib/google/apis/documentai_v1beta3/representations.rb +15 -0
- data/lib/google/apis/documentai_v1beta3/service.rb +83 -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: e0d9f23688289774b0302f492ef3e77abc84b6b11ebb8092eb5161ffcbf8adae
|
4
|
+
data.tar.gz: 9d96727aba37b152dbafe454489decb3790f8c51fd2baa61b2e5bab70adb96cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d166d8572f0f375496c58dfcd037a0411c1ac7a49f14bd6bba07e60981b4a97517975e6b9070f63ed10d3490585b9138bbd278faa06c040ec68199e5afdcffb
|
7
|
+
data.tar.gz: ce9c0ff579fbb1ab87fd47f282cf4fd09dfc6b9e55f57a591705ec99cc190e6a2fa72b6bd75ed35b8efeac32061ce4916bb1b45924012c7e7f4828d21c858541
|
data/CHANGELOG.md
CHANGED
@@ -6399,8 +6399,7 @@ module Google
|
|
6399
6399
|
# @return [String]
|
6400
6400
|
attr_accessor :description
|
6401
6401
|
|
6402
|
-
#
|
6403
|
-
# specified here.
|
6402
|
+
# If specified, lists all the possible values for this entity.
|
6404
6403
|
# Corresponds to the JSON property `enumValues`
|
6405
6404
|
# @return [Array<String>]
|
6406
6405
|
attr_accessor :enum_values
|
@@ -6544,6 +6543,31 @@ module Google
|
|
6544
6543
|
end
|
6545
6544
|
end
|
6546
6545
|
|
6546
|
+
# The response message for Operations.ListOperations.
|
6547
|
+
class GoogleLongrunningListOperationsResponse
|
6548
|
+
include Google::Apis::Core::Hashable
|
6549
|
+
|
6550
|
+
# The standard List next-page token.
|
6551
|
+
# Corresponds to the JSON property `nextPageToken`
|
6552
|
+
# @return [String]
|
6553
|
+
attr_accessor :next_page_token
|
6554
|
+
|
6555
|
+
# A list of operations that matches the specified filter in the request.
|
6556
|
+
# Corresponds to the JSON property `operations`
|
6557
|
+
# @return [Array<Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation>]
|
6558
|
+
attr_accessor :operations
|
6559
|
+
|
6560
|
+
def initialize(**args)
|
6561
|
+
update!(**args)
|
6562
|
+
end
|
6563
|
+
|
6564
|
+
# Update properties of this object
|
6565
|
+
def update!(**args)
|
6566
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
6567
|
+
@operations = args[:operations] if args.key?(:operations)
|
6568
|
+
end
|
6569
|
+
end
|
6570
|
+
|
6547
6571
|
# This resource represents a long-running operation that is the result of a
|
6548
6572
|
# network API call.
|
6549
6573
|
class GoogleLongrunningOperation
|
@@ -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.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210520"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1102,6 +1102,12 @@ module Google
|
|
1102
1102
|
include Google::Apis::Core::JsonObjectSupport
|
1103
1103
|
end
|
1104
1104
|
|
1105
|
+
class GoogleLongrunningListOperationsResponse
|
1106
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1107
|
+
|
1108
|
+
include Google::Apis::Core::JsonObjectSupport
|
1109
|
+
end
|
1110
|
+
|
1105
1111
|
class GoogleLongrunningOperation
|
1106
1112
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1107
1113
|
|
@@ -3080,6 +3086,15 @@ module Google
|
|
3080
3086
|
end
|
3081
3087
|
end
|
3082
3088
|
|
3089
|
+
class GoogleLongrunningListOperationsResponse
|
3090
|
+
# @private
|
3091
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3092
|
+
property :next_page_token, as: 'nextPageToken'
|
3093
|
+
collection :operations, as: 'operations', class: Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation, decorator: Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
|
3094
|
+
|
3095
|
+
end
|
3096
|
+
end
|
3097
|
+
|
3083
3098
|
class GoogleLongrunningOperation
|
3084
3099
|
# @private
|
3085
3100
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -156,6 +156,43 @@ module Google
|
|
156
156
|
execute_or_queue_command(command, &block)
|
157
157
|
end
|
158
158
|
|
159
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
160
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
161
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
162
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
163
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
164
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
165
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
166
|
+
# corresponding to `Code.CANCELLED`.
|
167
|
+
# @param [String] name
|
168
|
+
# The name of the operation resource to be cancelled.
|
169
|
+
# @param [String] fields
|
170
|
+
# Selector specifying which fields to include in a partial response.
|
171
|
+
# @param [String] quota_user
|
172
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
173
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
174
|
+
# @param [Google::Apis::RequestOptions] options
|
175
|
+
# Request-specific options
|
176
|
+
#
|
177
|
+
# @yield [result, err] Result & error if block supplied
|
178
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleProtobufEmpty] parsed result object
|
179
|
+
# @yieldparam err [StandardError] error object if request failed
|
180
|
+
#
|
181
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleProtobufEmpty]
|
182
|
+
#
|
183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
186
|
+
def cancel_project_location_operation_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
187
|
+
command = make_simple_command(:delete, 'v1beta3/{+name}', options)
|
188
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleProtobufEmpty::Representation
|
189
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleProtobufEmpty
|
190
|
+
command.params['name'] = name unless name.nil?
|
191
|
+
command.query['fields'] = fields unless fields.nil?
|
192
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
193
|
+
execute_or_queue_command(command, &block)
|
194
|
+
end
|
195
|
+
|
159
196
|
# Gets the latest state of a long-running operation. Clients can use this method
|
160
197
|
# to poll the operation result at intervals as recommended by the API service.
|
161
198
|
# @param [String] name
|
@@ -187,6 +224,52 @@ module Google
|
|
187
224
|
execute_or_queue_command(command, &block)
|
188
225
|
end
|
189
226
|
|
227
|
+
# Lists operations that match the specified filter in the request. If the server
|
228
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
229
|
+
# binding allows API services to override the binding to use different resource
|
230
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
231
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
232
|
+
# service configuration. For backwards compatibility, the default name includes
|
233
|
+
# the operations collection id, however overriding users must ensure the name
|
234
|
+
# binding is the parent resource, without the operations collection id.
|
235
|
+
# @param [String] name
|
236
|
+
# The name of the operation's parent resource.
|
237
|
+
# @param [String] filter
|
238
|
+
# The standard list filter.
|
239
|
+
# @param [Fixnum] page_size
|
240
|
+
# The standard list page size.
|
241
|
+
# @param [String] page_token
|
242
|
+
# The standard list page token.
|
243
|
+
# @param [String] fields
|
244
|
+
# Selector specifying which fields to include in a partial response.
|
245
|
+
# @param [String] quota_user
|
246
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
247
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
248
|
+
# @param [Google::Apis::RequestOptions] options
|
249
|
+
# Request-specific options
|
250
|
+
#
|
251
|
+
# @yield [result, err] Result & error if block supplied
|
252
|
+
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningListOperationsResponse] parsed result object
|
253
|
+
# @yieldparam err [StandardError] error object if request failed
|
254
|
+
#
|
255
|
+
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningListOperationsResponse]
|
256
|
+
#
|
257
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
258
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
259
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
260
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
261
|
+
command = make_simple_command(:get, 'v1beta3/{+name}', options)
|
262
|
+
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningListOperationsResponse::Representation
|
263
|
+
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningListOperationsResponse
|
264
|
+
command.params['name'] = name unless name.nil?
|
265
|
+
command.query['filter'] = filter unless filter.nil?
|
266
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
267
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
268
|
+
command.query['fields'] = fields unless fields.nil?
|
269
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
270
|
+
execute_or_queue_command(command, &block)
|
271
|
+
end
|
272
|
+
|
190
273
|
# LRO endpoint to batch process many documents. The output is written to Cloud
|
191
274
|
# Storage as JSON in the [Document] format.
|
192
275
|
# @param [String] name
|
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.12.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: 2021-05-
|
11
|
+
date: 2021-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-documentai_v1beta3/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.12.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-documentai_v1beta3
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|