google-apis-documentai_v1beta2 0.48.0 → 0.50.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: 9742539005176fcabde441d21960e1d3fd4da551f22ff04518c92e3f014d4abf
4
- data.tar.gz: 88f2fe3a8f881c6f720822bc036b76943778075f2604eeff745d6d561a252e86
3
+ metadata.gz: fa83bae2c5e23ace6319bb65df438f2e10cdf48d7280cbd759978a70df42a0fb
4
+ data.tar.gz: 4f11206c94eeaedf63d2f0393c3aeee352620af54d31e22d31eb7490d77d8c6b
5
5
  SHA512:
6
- metadata.gz: fb85e5a3fa03019e7d0cbcd90eb659e876d62b4f79a7276e59f00e7c8590552230b3f5e52314016cd67290008259dafccadcd93c4c49306a061186e85cad6b11
7
- data.tar.gz: f253f6e6cb23dceff607cc672449372121643235d8cd1030dddb73ae4a4dbe91d81f5a2a44c03c392f0639197c1baf357d97f006c89ce942786f7a33db6c1a85
6
+ metadata.gz: 2721fb6c654b037cd26ece1aa5d1072b8bee9635f547aad87259dc04428288e1e19bc0e2485731959bad7d3ddecc9bab8f0760a0009ca617e58ecb41b41d94bc
7
+ data.tar.gz: 97036e75abf5624a79f4eb2e19400805448929afa0f90598f5457565075fde0cf1ce3ce87e070238eab88292cdd13362130d7bc7d47b9fa89eccac480007554a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-documentai_v1beta2
2
2
 
3
+ ### v0.50.0 (2022-10-27)
4
+
5
+ * Regenerated from discovery document revision 20221017
6
+ * Regenerated using generator version 0.11.0
7
+
8
+ ### v0.49.0 (2022-10-02)
9
+
10
+ * Regenerated from discovery document revision 20220921
11
+
3
12
  ### v0.48.0 (2022-09-20)
4
13
 
5
14
  * Regenerated from discovery document revision 20220919
@@ -2071,6 +2071,11 @@ module Google
2071
2071
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImage]
2072
2072
  attr_accessor :image
2073
2073
 
2074
+ # Image Quality Scores for the page image
2075
+ # Corresponds to the JSON property `imageQualityScores`
2076
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores]
2077
+ attr_accessor :image_quality_scores
2078
+
2074
2079
  # Visual element describing a layout unit on a page.
2075
2080
  # Corresponds to the JSON property `layout`
2076
2081
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
@@ -2139,6 +2144,7 @@ module Google
2139
2144
  @dimension = args[:dimension] if args.key?(:dimension)
2140
2145
  @form_fields = args[:form_fields] if args.key?(:form_fields)
2141
2146
  @image = args[:image] if args.key?(:image)
2147
+ @image_quality_scores = args[:image_quality_scores] if args.key?(:image_quality_scores)
2142
2148
  @layout = args[:layout] if args.key?(:layout)
2143
2149
  @lines = args[:lines] if args.key?(:lines)
2144
2150
  @page_number = args[:page_number] if args.key?(:page_number)
@@ -2440,6 +2446,60 @@ module Google
2440
2446
  end
2441
2447
  end
2442
2448
 
2449
+ # Image Quality Scores for the page image
2450
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
2451
+ include Google::Apis::Core::Hashable
2452
+
2453
+ # A list of detected defects.
2454
+ # Corresponds to the JSON property `detectedDefects`
2455
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect>]
2456
+ attr_accessor :detected_defects
2457
+
2458
+ # The overall quality score. Range [0, 1] where 1 is perfect quality.
2459
+ # Corresponds to the JSON property `qualityScore`
2460
+ # @return [Float]
2461
+ attr_accessor :quality_score
2462
+
2463
+ def initialize(**args)
2464
+ update!(**args)
2465
+ end
2466
+
2467
+ # Update properties of this object
2468
+ def update!(**args)
2469
+ @detected_defects = args[:detected_defects] if args.key?(:detected_defects)
2470
+ @quality_score = args[:quality_score] if args.key?(:quality_score)
2471
+ end
2472
+ end
2473
+
2474
+ # Image Quality Defects
2475
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
2476
+ include Google::Apis::Core::Hashable
2477
+
2478
+ # Confidence of detected defect. Range [0, 1] where 1 indicates strong
2479
+ # confidence of that the defect exists.
2480
+ # Corresponds to the JSON property `confidence`
2481
+ # @return [Float]
2482
+ attr_accessor :confidence
2483
+
2484
+ # Name of the defect type. Supported values are "quality/defect_blurry", "
2485
+ # quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
2486
+ # defect_text_too_small", "quality/defect_document_cutoff", "quality/
2487
+ # defect_text_cutoff", "quality/defect_glare"
2488
+ # Corresponds to the JSON property `type`
2489
+ # @return [String]
2490
+ attr_accessor :type
2491
+
2492
+ def initialize(**args)
2493
+ update!(**args)
2494
+ end
2495
+
2496
+ # Update properties of this object
2497
+ def update!(**args)
2498
+ @confidence = args[:confidence] if args.key?(:confidence)
2499
+ @type = args[:type] if args.key?(:type)
2500
+ end
2501
+ end
2502
+
2443
2503
  # Visual element describing a layout unit on a page.
2444
2504
  class GoogleCloudDocumentaiV1beta1DocumentPageLayout
2445
2505
  include Google::Apis::Core::Hashable
@@ -2635,6 +2695,12 @@ module Google
2635
2695
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
2636
2696
  attr_accessor :layout
2637
2697
 
2698
+ # Structure to identify provenance relationships between annotations in
2699
+ # different revisions.
2700
+ # Corresponds to the JSON property `provenance`
2701
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance]
2702
+ attr_accessor :provenance
2703
+
2638
2704
  def initialize(**args)
2639
2705
  update!(**args)
2640
2706
  end
@@ -2645,6 +2711,7 @@ module Google
2645
2711
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
2646
2712
  @header_rows = args[:header_rows] if args.key?(:header_rows)
2647
2713
  @layout = args[:layout] if args.key?(:layout)
2714
+ @provenance = args[:provenance] if args.key?(:provenance)
2648
2715
  end
2649
2716
  end
2650
2717
 
@@ -3983,6 +4050,11 @@ module Google
3983
4050
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImage]
3984
4051
  attr_accessor :image
3985
4052
 
4053
+ # Image Quality Scores for the page image
4054
+ # Corresponds to the JSON property `imageQualityScores`
4055
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores]
4056
+ attr_accessor :image_quality_scores
4057
+
3986
4058
  # Visual element describing a layout unit on a page.
3987
4059
  # Corresponds to the JSON property `layout`
3988
4060
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
@@ -4051,6 +4123,7 @@ module Google
4051
4123
  @dimension = args[:dimension] if args.key?(:dimension)
4052
4124
  @form_fields = args[:form_fields] if args.key?(:form_fields)
4053
4125
  @image = args[:image] if args.key?(:image)
4126
+ @image_quality_scores = args[:image_quality_scores] if args.key?(:image_quality_scores)
4054
4127
  @layout = args[:layout] if args.key?(:layout)
4055
4128
  @lines = args[:lines] if args.key?(:lines)
4056
4129
  @page_number = args[:page_number] if args.key?(:page_number)
@@ -4352,6 +4425,60 @@ module Google
4352
4425
  end
4353
4426
  end
4354
4427
 
4428
+ # Image Quality Scores for the page image
4429
+ class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
4430
+ include Google::Apis::Core::Hashable
4431
+
4432
+ # A list of detected defects.
4433
+ # Corresponds to the JSON property `detectedDefects`
4434
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect>]
4435
+ attr_accessor :detected_defects
4436
+
4437
+ # The overall quality score. Range [0, 1] where 1 is perfect quality.
4438
+ # Corresponds to the JSON property `qualityScore`
4439
+ # @return [Float]
4440
+ attr_accessor :quality_score
4441
+
4442
+ def initialize(**args)
4443
+ update!(**args)
4444
+ end
4445
+
4446
+ # Update properties of this object
4447
+ def update!(**args)
4448
+ @detected_defects = args[:detected_defects] if args.key?(:detected_defects)
4449
+ @quality_score = args[:quality_score] if args.key?(:quality_score)
4450
+ end
4451
+ end
4452
+
4453
+ # Image Quality Defects
4454
+ class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
4455
+ include Google::Apis::Core::Hashable
4456
+
4457
+ # Confidence of detected defect. Range [0, 1] where 1 indicates strong
4458
+ # confidence of that the defect exists.
4459
+ # Corresponds to the JSON property `confidence`
4460
+ # @return [Float]
4461
+ attr_accessor :confidence
4462
+
4463
+ # Name of the defect type. Supported values are "quality/defect_blurry", "
4464
+ # quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
4465
+ # defect_text_too_small", "quality/defect_document_cutoff", "quality/
4466
+ # defect_text_cutoff", "quality/defect_glare"
4467
+ # Corresponds to the JSON property `type`
4468
+ # @return [String]
4469
+ attr_accessor :type
4470
+
4471
+ def initialize(**args)
4472
+ update!(**args)
4473
+ end
4474
+
4475
+ # Update properties of this object
4476
+ def update!(**args)
4477
+ @confidence = args[:confidence] if args.key?(:confidence)
4478
+ @type = args[:type] if args.key?(:type)
4479
+ end
4480
+ end
4481
+
4355
4482
  # Visual element describing a layout unit on a page.
4356
4483
  class GoogleCloudDocumentaiV1beta2DocumentPageLayout
4357
4484
  include Google::Apis::Core::Hashable
@@ -4547,6 +4674,12 @@ module Google
4547
4674
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
4548
4675
  attr_accessor :layout
4549
4676
 
4677
+ # Structure to identify provenance relationships between annotations in
4678
+ # different revisions.
4679
+ # Corresponds to the JSON property `provenance`
4680
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance]
4681
+ attr_accessor :provenance
4682
+
4550
4683
  def initialize(**args)
4551
4684
  update!(**args)
4552
4685
  end
@@ -4557,6 +4690,7 @@ module Google
4557
4690
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
4558
4691
  @header_rows = args[:header_rows] if args.key?(:header_rows)
4559
4692
  @layout = args[:layout] if args.key?(:layout)
4693
+ @provenance = args[:provenance] if args.key?(:provenance)
4560
4694
  end
4561
4695
  end
4562
4696
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1beta2
18
18
  # Version of the google-apis-documentai_v1beta2 gem
19
- GEM_VERSION = "0.48.0"
19
+ GEM_VERSION = "0.50.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.10.0"
22
+ GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220919"
25
+ REVISION = "20221017"
26
26
  end
27
27
  end
28
28
  end
@@ -526,6 +526,18 @@ module Google
526
526
  include Google::Apis::Core::JsonObjectSupport
527
527
  end
528
528
 
529
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
530
+ class Representation < Google::Apis::Core::JsonRepresentation; end
531
+
532
+ include Google::Apis::Core::JsonObjectSupport
533
+ end
534
+
535
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
536
+ class Representation < Google::Apis::Core::JsonRepresentation; end
537
+
538
+ include Google::Apis::Core::JsonObjectSupport
539
+ end
540
+
529
541
  class GoogleCloudDocumentaiV1beta1DocumentPageLayout
530
542
  class Representation < Google::Apis::Core::JsonRepresentation; end
531
543
 
@@ -814,6 +826,18 @@ module Google
814
826
  include Google::Apis::Core::JsonObjectSupport
815
827
  end
816
828
 
829
+ class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
830
+ class Representation < Google::Apis::Core::JsonRepresentation; end
831
+
832
+ include Google::Apis::Core::JsonObjectSupport
833
+ end
834
+
835
+ class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
836
+ class Representation < Google::Apis::Core::JsonRepresentation; end
837
+
838
+ include Google::Apis::Core::JsonObjectSupport
839
+ end
840
+
817
841
  class GoogleCloudDocumentaiV1beta2DocumentPageLayout
818
842
  class Representation < Google::Apis::Core::JsonRepresentation; end
819
843
 
@@ -1890,6 +1914,8 @@ module Google
1890
1914
 
1891
1915
  property :image, as: 'image', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImage, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImage::Representation
1892
1916
 
1917
+ property :image_quality_scores, as: 'imageQualityScores', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores::Representation
1918
+
1893
1919
  property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation
1894
1920
 
1895
1921
  collection :lines, as: 'lines', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLine, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLine::Representation
@@ -2000,6 +2026,23 @@ module Google
2000
2026
  end
2001
2027
  end
2002
2028
 
2029
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
2030
+ # @private
2031
+ class Representation < Google::Apis::Core::JsonRepresentation
2032
+ collection :detected_defects, as: 'detectedDefects', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect::Representation
2033
+
2034
+ property :quality_score, as: 'qualityScore'
2035
+ end
2036
+ end
2037
+
2038
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
2039
+ # @private
2040
+ class Representation < Google::Apis::Core::JsonRepresentation
2041
+ property :confidence, as: 'confidence'
2042
+ property :type, as: 'type'
2043
+ end
2044
+ end
2045
+
2003
2046
  class GoogleCloudDocumentaiV1beta1DocumentPageLayout
2004
2047
  # @private
2005
2048
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2067,6 +2110,8 @@ module Google
2067
2110
 
2068
2111
  property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation
2069
2112
 
2113
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
2114
+
2070
2115
  end
2071
2116
  end
2072
2117
 
@@ -2438,6 +2483,8 @@ module Google
2438
2483
 
2439
2484
  property :image, as: 'image', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImage, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImage::Representation
2440
2485
 
2486
+ property :image_quality_scores, as: 'imageQualityScores', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores::Representation
2487
+
2441
2488
  property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation
2442
2489
 
2443
2490
  collection :lines, as: 'lines', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLine, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLine::Representation
@@ -2548,6 +2595,23 @@ module Google
2548
2595
  end
2549
2596
  end
2550
2597
 
2598
+ class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
2599
+ # @private
2600
+ class Representation < Google::Apis::Core::JsonRepresentation
2601
+ collection :detected_defects, as: 'detectedDefects', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect::Representation
2602
+
2603
+ property :quality_score, as: 'qualityScore'
2604
+ end
2605
+ end
2606
+
2607
+ class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
2608
+ # @private
2609
+ class Representation < Google::Apis::Core::JsonRepresentation
2610
+ property :confidence, as: 'confidence'
2611
+ property :type, as: 'type'
2612
+ end
2613
+ end
2614
+
2551
2615
  class GoogleCloudDocumentaiV1beta2DocumentPageLayout
2552
2616
  # @private
2553
2617
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2615,6 +2679,8 @@ module Google
2615
2679
 
2616
2680
  property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation
2617
2681
 
2682
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
2683
+
2618
2684
  end
2619
2685
  end
2620
2686
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.50.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-09-26 00:00:00.000000000 Z
11
+ date: 2022-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0
19
+ version: 0.9.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.0
29
+ version: 0.9.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.48.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.50.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta2
63
63
  post_install_message:
64
64
  rdoc_options: []