google-apis-documentai_v1 0.34.0 → 0.37.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: ca4971f1633e4735830055b3e63ee5a33ca40b4784e2b06f6943231ab42e5ccb
4
- data.tar.gz: 2962c29b1585e366bbc942262f3f26ecbbbe56bad68710138ce726af82f302fc
3
+ metadata.gz: b169ad06927eeece80da8f752fddcc1b9c4acd132261413eb978e4bbbc60784a
4
+ data.tar.gz: 415bb98ebc7ad7b61c4f29c8f8bac832b9a3347eae64f341238b81f411351d8f
5
5
  SHA512:
6
- metadata.gz: 1559df80662a33a38e5db3e8936d6accde0cd952ce656508d0405aea15cf8132be180a037a6171acf4012da04bceb4d413ea6d102a7bcdae1e1e978f0fe5f319
7
- data.tar.gz: 3164768bf281859eb518ef5c39cc357a4e184c698bbed1f6049605b38906a71171fcb83079ed14f47200fa4dd5c4785b06654b390f77054c138396b1d148505f
6
+ metadata.gz: 0c3a3d736b1197d9c7f365b376248ad5661b5f70dd13e613b79781df116b78def2e056fc593792f2e0bb97fc972899481c454be9b0bafac1cda9aab28907d851
7
+ data.tar.gz: e3c7e587c4c0301fbd4e4c3feb4f42ae155dc468ea7428ac1f6748abb6fcd629c76256cb30096885917cc93c9c5e2f77a3d9aa63a535ba24fbaa9d5d6aa88f21
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.37.0 (2022-05-10)
4
+
5
+ * Regenerated from discovery document revision 20220505
6
+
7
+ ### v0.36.0 (2022-04-26)
8
+
9
+ * Regenerated from discovery document revision 20220421
10
+
11
+ ### v0.35.0 (2022-04-12)
12
+
13
+ * Regenerated from discovery document revision 20220409
14
+
3
15
  ### v0.34.0 (2022-04-05)
4
16
 
5
17
  * Regenerated from discovery document revision 20220401
@@ -31,6 +31,11 @@ module Google
31
31
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
32
32
  attr_accessor :common_metadata
33
33
 
34
+ # The list of response details of each document.
35
+ # Corresponds to the JSON property `individualBatchDeleteStatuses`
36
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus>]
37
+ attr_accessor :individual_batch_delete_statuses
38
+
34
39
  def initialize(**args)
35
40
  update!(**args)
36
41
  end
@@ -38,6 +43,37 @@ module Google
38
43
  # Update properties of this object
39
44
  def update!(**args)
40
45
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
46
+ @individual_batch_delete_statuses = args[:individual_batch_delete_statuses] if args.key?(:individual_batch_delete_statuses)
47
+ end
48
+ end
49
+
50
+ # The status of each individual document in the batch delete process.
51
+ class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus
52
+ include Google::Apis::Core::Hashable
53
+
54
+ # Document Identifier.
55
+ # Corresponds to the JSON property `documentId`
56
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId]
57
+ attr_accessor :document_id
58
+
59
+ # The `Status` type defines a logical error model that is suitable for different
60
+ # programming environments, including REST APIs and RPC APIs. It is used by [
61
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
62
+ # data: error code, error message, and error details. You can find out more
63
+ # about this error model and how to work with it in the [API Design Guide](https:
64
+ # //cloud.google.com/apis/design/errors).
65
+ # Corresponds to the JSON property `status`
66
+ # @return [Google::Apis::DocumentaiV1::GoogleRpcStatus]
67
+ attr_accessor :status
68
+
69
+ def initialize(**args)
70
+ update!(**args)
71
+ end
72
+
73
+ # Update properties of this object
74
+ def update!(**args)
75
+ @document_id = args[:document_id] if args.key?(:document_id)
76
+ @status = args[:status] if args.key?(:status)
41
77
  end
42
78
  end
43
79
 
@@ -196,6 +232,25 @@ module Google
196
232
  end
197
233
  end
198
234
 
235
+ # The long running operation metadata for DeleteDataLabelingJob.
236
+ class GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata
237
+ include Google::Apis::Core::Hashable
238
+
239
+ # The common metadata for long running operations.
240
+ # Corresponds to the JSON property `commonMetadata`
241
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
242
+ attr_accessor :common_metadata
243
+
244
+ def initialize(**args)
245
+ update!(**args)
246
+ end
247
+
248
+ # Update properties of this object
249
+ def update!(**args)
250
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
251
+ end
252
+ end
253
+
199
254
  # The long running operation metadata for DeleteLabelerPool.
200
255
  class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
201
256
  include Google::Apis::Core::Hashable
@@ -1683,8 +1738,8 @@ module Google
1683
1738
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageToken>]
1684
1739
  attr_accessor :tokens
1685
1740
 
1686
- # Transformation matrices that were applied to the original document image to
1687
- # produce Page.image.
1741
+ # Transformation matrices (both already applied and not) to the original
1742
+ # document image to produce Page.image.
1688
1743
  # Corresponds to the JSON property `transforms`
1689
1744
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageMatrix>]
1690
1745
  attr_accessor :transforms
@@ -2059,6 +2114,14 @@ module Google
2059
2114
  class GoogleCloudDocumentaiV1DocumentPageMatrix
2060
2115
  include Google::Apis::Core::Hashable
2061
2116
 
2117
+ # Has the transformation already been applied to the current Document? Needed to
2118
+ # disambiguate pre-processing transformations already applied vs transformations
2119
+ # added at annotation time by HITL operators.
2120
+ # Corresponds to the JSON property `applied`
2121
+ # @return [Boolean]
2122
+ attr_accessor :applied
2123
+ alias_method :applied?, :applied
2124
+
2062
2125
  # Number of columns in the matrix.
2063
2126
  # Corresponds to the JSON property `cols`
2064
2127
  # @return [Fixnum]
@@ -2089,6 +2152,7 @@ module Google
2089
2152
 
2090
2153
  # Update properties of this object
2091
2154
  def update!(**args)
2155
+ @applied = args[:applied] if args.key?(:applied)
2092
2156
  @cols = args[:cols] if args.key?(:cols)
2093
2157
  @data = args[:data] if args.key?(:data)
2094
2158
  @rows = args[:rows] if args.key?(:rows)
@@ -3233,6 +3297,11 @@ module Google
3233
3297
  # @return [String]
3234
3298
  attr_accessor :create_time
3235
3299
 
3300
+ # Information about the upcoming deprecation of this processor version.
3301
+ # Corresponds to the JSON property `deprecationInfo`
3302
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo]
3303
+ attr_accessor :deprecation_info
3304
+
3236
3305
  # The display name of the processor version.
3237
3306
  # Corresponds to the JSON property `displayName`
3238
3307
  # @return [String]
@@ -3273,6 +3342,7 @@ module Google
3273
3342
  # Update properties of this object
3274
3343
  def update!(**args)
3275
3344
  @create_time = args[:create_time] if args.key?(:create_time)
3345
+ @deprecation_info = args[:deprecation_info] if args.key?(:deprecation_info)
3276
3346
  @display_name = args[:display_name] if args.key?(:display_name)
3277
3347
  @google_managed = args[:google_managed] if args.key?(:google_managed)
3278
3348
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
@@ -3282,6 +3352,31 @@ module Google
3282
3352
  end
3283
3353
  end
3284
3354
 
3355
+ # Information about the upcoming deprecation of this processor version.
3356
+ class GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo
3357
+ include Google::Apis::Core::Hashable
3358
+
3359
+ # The time at which this processor version will be deprecated.
3360
+ # Corresponds to the JSON property `deprecationTime`
3361
+ # @return [String]
3362
+ attr_accessor :deprecation_time
3363
+
3364
+ # If set, the processor version that will be used as a replacement.
3365
+ # Corresponds to the JSON property `replacementProcessorVersion`
3366
+ # @return [String]
3367
+ attr_accessor :replacement_processor_version
3368
+
3369
+ def initialize(**args)
3370
+ update!(**args)
3371
+ end
3372
+
3373
+ # Update properties of this object
3374
+ def update!(**args)
3375
+ @deprecation_time = args[:deprecation_time] if args.key?(:deprecation_time)
3376
+ @replacement_processor_version = args[:replacement_processor_version] if args.key?(:replacement_processor_version)
3377
+ end
3378
+ end
3379
+
3285
3380
  # Payload message of raw document content (bytes).
3286
3381
  class GoogleCloudDocumentaiV1RawDocument
3287
3382
  include Google::Apis::Core::Hashable
@@ -4023,8 +4118,8 @@ module Google
4023
4118
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageToken>]
4024
4119
  attr_accessor :tokens
4025
4120
 
4026
- # Transformation matrices that were applied to the original document image to
4027
- # produce Page.image.
4121
+ # Transformation matrices (both already applied and not) to the original
4122
+ # document image to produce Page.image.
4028
4123
  # Corresponds to the JSON property `transforms`
4029
4124
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageMatrix>]
4030
4125
  attr_accessor :transforms
@@ -4399,6 +4494,14 @@ module Google
4399
4494
  class GoogleCloudDocumentaiV1beta1DocumentPageMatrix
4400
4495
  include Google::Apis::Core::Hashable
4401
4496
 
4497
+ # Has the transformation already been applied to the current Document? Needed to
4498
+ # disambiguate pre-processing transformations already applied vs transformations
4499
+ # added at annotation time by HITL operators.
4500
+ # Corresponds to the JSON property `applied`
4501
+ # @return [Boolean]
4502
+ attr_accessor :applied
4503
+ alias_method :applied?, :applied
4504
+
4402
4505
  # Number of columns in the matrix.
4403
4506
  # Corresponds to the JSON property `cols`
4404
4507
  # @return [Fixnum]
@@ -4429,6 +4532,7 @@ module Google
4429
4532
 
4430
4533
  # Update properties of this object
4431
4534
  def update!(**args)
4535
+ @applied = args[:applied] if args.key?(:applied)
4432
4536
  @cols = args[:cols] if args.key?(:cols)
4433
4537
  @data = args[:data] if args.key?(:data)
4434
4538
  @rows = args[:rows] if args.key?(:rows)
@@ -5828,8 +5932,8 @@ module Google
5828
5932
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageToken>]
5829
5933
  attr_accessor :tokens
5830
5934
 
5831
- # Transformation matrices that were applied to the original document image to
5832
- # produce Page.image.
5935
+ # Transformation matrices (both already applied and not) to the original
5936
+ # document image to produce Page.image.
5833
5937
  # Corresponds to the JSON property `transforms`
5834
5938
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageMatrix>]
5835
5939
  attr_accessor :transforms
@@ -6204,6 +6308,14 @@ module Google
6204
6308
  class GoogleCloudDocumentaiV1beta2DocumentPageMatrix
6205
6309
  include Google::Apis::Core::Hashable
6206
6310
 
6311
+ # Has the transformation already been applied to the current Document? Needed to
6312
+ # disambiguate pre-processing transformations already applied vs transformations
6313
+ # added at annotation time by HITL operators.
6314
+ # Corresponds to the JSON property `applied`
6315
+ # @return [Boolean]
6316
+ attr_accessor :applied
6317
+ alias_method :applied?, :applied
6318
+
6207
6319
  # Number of columns in the matrix.
6208
6320
  # Corresponds to the JSON property `cols`
6209
6321
  # @return [Fixnum]
@@ -6234,6 +6346,7 @@ module Google
6234
6346
 
6235
6347
  # Update properties of this object
6236
6348
  def update!(**args)
6349
+ @applied = args[:applied] if args.key?(:applied)
6237
6350
  @cols = args[:cols] if args.key?(:cols)
6238
6351
  @data = args[:data] if args.key?(:data)
6239
6352
  @rows = args[:rows] if args.key?(:rows)
@@ -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.34.0"
19
+ GEM_VERSION = "0.37.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220401"
25
+ REVISION = "20220505"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -64,6 +70,12 @@ module Google
64
70
  include Google::Apis::Core::JsonObjectSupport
65
71
  end
66
72
 
73
+ class GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
67
79
  class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
68
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
81
 
@@ -658,6 +670,12 @@ module Google
658
670
  include Google::Apis::Core::JsonObjectSupport
659
671
  end
660
672
 
673
+ class GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo
674
+ class Representation < Google::Apis::Core::JsonRepresentation; end
675
+
676
+ include Google::Apis::Core::JsonObjectSupport
677
+ end
678
+
661
679
  class GoogleCloudDocumentaiV1RawDocument
662
680
  class Representation < Google::Apis::Core::JsonRepresentation; end
663
681
 
@@ -1449,6 +1467,18 @@ module Google
1449
1467
  class Representation < Google::Apis::Core::JsonRepresentation
1450
1468
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1451
1469
 
1470
+ collection :individual_batch_delete_statuses, as: 'individualBatchDeleteStatuses', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus::Representation
1471
+
1472
+ end
1473
+ end
1474
+
1475
+ class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus
1476
+ # @private
1477
+ class Representation < Google::Apis::Core::JsonRepresentation
1478
+ property :document_id, as: 'documentId', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId::Representation
1479
+
1480
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
1481
+
1452
1482
  end
1453
1483
  end
1454
1484
 
@@ -1505,6 +1535,14 @@ module Google
1505
1535
  end
1506
1536
  end
1507
1537
 
1538
+ class GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata
1539
+ # @private
1540
+ class Representation < Google::Apis::Core::JsonRepresentation
1541
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1542
+
1543
+ end
1544
+ end
1545
+
1508
1546
  class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
1509
1547
  # @private
1510
1548
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2122,6 +2160,7 @@ module Google
2122
2160
  class GoogleCloudDocumentaiV1DocumentPageMatrix
2123
2161
  # @private
2124
2162
  class Representation < Google::Apis::Core::JsonRepresentation
2163
+ property :applied, as: 'applied'
2125
2164
  property :cols, as: 'cols'
2126
2165
  property :data, :base64 => true, as: 'data'
2127
2166
  property :rows, as: 'rows'
@@ -2466,6 +2505,8 @@ module Google
2466
2505
  # @private
2467
2506
  class Representation < Google::Apis::Core::JsonRepresentation
2468
2507
  property :create_time, as: 'createTime'
2508
+ property :deprecation_info, as: 'deprecationInfo', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo::Representation
2509
+
2469
2510
  property :display_name, as: 'displayName'
2470
2511
  property :google_managed, as: 'googleManaged'
2471
2512
  property :kms_key_name, as: 'kmsKeyName'
@@ -2475,6 +2516,14 @@ module Google
2475
2516
  end
2476
2517
  end
2477
2518
 
2519
+ class GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo
2520
+ # @private
2521
+ class Representation < Google::Apis::Core::JsonRepresentation
2522
+ property :deprecation_time, as: 'deprecationTime'
2523
+ property :replacement_processor_version, as: 'replacementProcessorVersion'
2524
+ end
2525
+ end
2526
+
2478
2527
  class GoogleCloudDocumentaiV1RawDocument
2479
2528
  # @private
2480
2529
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2811,6 +2860,7 @@ module Google
2811
2860
  class GoogleCloudDocumentaiV1beta1DocumentPageMatrix
2812
2861
  # @private
2813
2862
  class Representation < Google::Apis::Core::JsonRepresentation
2863
+ property :applied, as: 'applied'
2814
2864
  property :cols, as: 'cols'
2815
2865
  property :data, :base64 => true, as: 'data'
2816
2866
  property :rows, as: 'rows'
@@ -3323,6 +3373,7 @@ module Google
3323
3373
  class GoogleCloudDocumentaiV1beta2DocumentPageMatrix
3324
3374
  # @private
3325
3375
  class Representation < Google::Apis::Core::JsonRepresentation
3376
+ property :applied, as: 'applied'
3326
3377
  property :cols, as: 'cols'
3327
3378
  property :data, :base64 => true, as: 'data'
3328
3379
  property :rows, as: 'rows'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.37.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: 2022-04-11 00:00:00.000000000 Z
11
+ date: 2022-05-16 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.34.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.37.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1
63
63
  post_install_message:
64
64
  rdoc_options: []