google-apis-documentai_v1 0.50.0 → 0.52.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: 8abf42cd659c2ea3beb9e171c7152a233063fdb965eb828aa1b40f7d8d053f66
4
- data.tar.gz: 72cc1dee811f5947c642a4394e3dad3a8bbfd852e1cf428c00385506ee602ddb
3
+ metadata.gz: 3f62d7e66722e9048e6f973893f2693814c45988081daa4391d4dd10aa534598
4
+ data.tar.gz: fe41b377f0017bb79179a5e221430f373852e31dc55f5466f7af87c1e4a62970
5
5
  SHA512:
6
- metadata.gz: 10a0d1ef85b8c540f9b1f7e5c2a3c55245eb6c7019527629f9aec90d483cbb0c479e348adeac865c524ace4df9db1bb07d01cc2bf397ac85c7f935a67783acf7
7
- data.tar.gz: 3385d2b035167083e0ab6c03ee2a214824636c7168f87324a98d9a5777fcf5a2d89f591d9a1161f71873188dc8ba1057906288876efabb5d74f8acf3d5bbede7
6
+ metadata.gz: 5f7c7c0b4893f756a683eb96a43d3f5a2fda72300ca3b1296f21dda60785f0d0c5619f12ed3e4681405b091042671c4fb063e0283fb3f22e8ddab75847e0daac
7
+ data.tar.gz: 46e8059a2641335ba3306f124f86014f4fc1d7a38ae4e2f292decb223e3b6b07f912b2c5573497a8e53b8900da9b1c108211b59cf2079f71bda117d3c182cc47
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.52.0 (2022-11-04)
4
+
5
+ * Regenerated from discovery document revision 20221027
6
+
7
+ ### v0.51.0 (2022-10-27)
8
+
9
+ * Regenerated from discovery document revision 20221023
10
+ * Regenerated using generator version 0.11.0
11
+
3
12
  ### v0.50.0 (2022-09-30)
4
13
 
5
14
  * Regenerated from discovery document revision 20220921
@@ -1874,7 +1874,9 @@ module Google
1874
1874
  class GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig
1875
1875
  include Google::Apis::Core::Hashable
1876
1876
 
1877
- # Specifies which fields to include in the output documents.
1877
+ # Specifies which fields to include in the output documents. Only supports top
1878
+ # level document and pages field so it must be in the form of ``
1879
+ # document_field_name`` or `pages.`page_field_name``.
1878
1880
  # Corresponds to the JSON property `fieldMask`
1879
1881
  # @return [String]
1880
1882
  attr_accessor :field_mask
@@ -2555,6 +2557,12 @@ module Google
2555
2557
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout]
2556
2558
  attr_accessor :layout
2557
2559
 
2560
+ # Structure to identify provenance relationships between annotations in
2561
+ # different revisions.
2562
+ # Corresponds to the JSON property `provenance`
2563
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance]
2564
+ attr_accessor :provenance
2565
+
2558
2566
  def initialize(**args)
2559
2567
  update!(**args)
2560
2568
  end
@@ -2565,6 +2573,7 @@ module Google
2565
2573
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
2566
2574
  @header_rows = args[:header_rows] if args.key?(:header_rows)
2567
2575
  @layout = args[:layout] if args.key?(:layout)
2576
+ @provenance = args[:provenance] if args.key?(:provenance)
2568
2577
  end
2569
2578
  end
2570
2579
 
@@ -3414,16 +3423,6 @@ module Google
3414
3423
  class GoogleCloudDocumentaiV1EntityTypeMetadata
3415
3424
  include Google::Apis::Core::Hashable
3416
3425
 
3417
- # Metadata for human review labeling config.
3418
- # Corresponds to the JSON property `humanReviewLabelingMetadata`
3419
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewLabelingMetadata]
3420
- attr_accessor :human_review_labeling_metadata
3421
-
3422
- # Metadata for Human Review config.
3423
- # Corresponds to the JSON property `humanReviewMetadata`
3424
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata]
3425
- attr_accessor :human_review_metadata
3426
-
3427
3426
  # Whether the entity type should be considered as "inactive".
3428
3427
  # Corresponds to the JSON property `inactive`
3429
3428
  # @return [Boolean]
@@ -3436,8 +3435,6 @@ module Google
3436
3435
 
3437
3436
  # Update properties of this object
3438
3437
  def update!(**args)
3439
- @human_review_labeling_metadata = args[:human_review_labeling_metadata] if args.key?(:human_review_labeling_metadata)
3440
- @human_review_metadata = args[:human_review_metadata] if args.key?(:human_review_metadata)
3441
3438
  @inactive = args[:inactive] if args.key?(:inactive)
3442
3439
  end
3443
3440
  end
@@ -3524,26 +3521,6 @@ module Google
3524
3521
  end
3525
3522
  end
3526
3523
 
3527
- # Metadata for human review labeling config.
3528
- class GoogleCloudDocumentaiV1HumanReviewLabelingMetadata
3529
- include Google::Apis::Core::Hashable
3530
-
3531
- # Whether to enable normalization editing.
3532
- # Corresponds to the JSON property `enableNormalizationEditing`
3533
- # @return [Boolean]
3534
- attr_accessor :enable_normalization_editing
3535
- alias_method :enable_normalization_editing?, :enable_normalization_editing
3536
-
3537
- def initialize(**args)
3538
- update!(**args)
3539
- end
3540
-
3541
- # Update properties of this object
3542
- def update!(**args)
3543
- @enable_normalization_editing = args[:enable_normalization_editing] if args.key?(:enable_normalization_editing)
3544
- end
3545
- end
3546
-
3547
3524
  # The status of human review on a processed document.
3548
3525
  class GoogleCloudDocumentaiV1HumanReviewStatus
3549
3526
  include Google::Apis::Core::Hashable
@@ -3578,32 +3555,6 @@ module Google
3578
3555
  end
3579
3556
  end
3580
3557
 
3581
- # Metadata for Human Review config.
3582
- class GoogleCloudDocumentaiV1HumanReviewValidationMetadata
3583
- include Google::Apis::Core::Hashable
3584
-
3585
- # The confidence threshold if human review validation is enabled.
3586
- # Corresponds to the JSON property `confidenceThreshold`
3587
- # @return [Float]
3588
- attr_accessor :confidence_threshold
3589
-
3590
- # Whether to enable human review validation.
3591
- # Corresponds to the JSON property `enableValidation`
3592
- # @return [Boolean]
3593
- attr_accessor :enable_validation
3594
- alias_method :enable_validation?, :enable_validation
3595
-
3596
- def initialize(**args)
3597
- update!(**args)
3598
- end
3599
-
3600
- # Update properties of this object
3601
- def update!(**args)
3602
- @confidence_threshold = args[:confidence_threshold] if args.key?(:confidence_threshold)
3603
- @enable_validation = args[:enable_validation] if args.key?(:enable_validation)
3604
- end
3605
- end
3606
-
3607
3558
  # Response message for list processor types.
3608
3559
  class GoogleCloudDocumentaiV1ListProcessorTypesResponse
3609
3560
  include Google::Apis::Core::Hashable
@@ -3709,7 +3660,9 @@ module Google
3709
3660
  class GoogleCloudDocumentaiV1ProcessRequest
3710
3661
  include Google::Apis::Core::Hashable
3711
3662
 
3712
- # Specifies which fields to include in ProcessResponse's document.
3663
+ # Specifies which fields to include in ProcessResponse's document. Only supports
3664
+ # top level document and pages field so it must be in the form of ``
3665
+ # document_field_name`` or `pages.`page_field_name``.
3713
3666
  # Corresponds to the JSON property `fieldMask`
3714
3667
  # @return [String]
3715
3668
  attr_accessor :field_mask
@@ -3936,6 +3889,11 @@ module Google
3936
3889
  # @return [String]
3937
3890
  attr_accessor :display_name
3938
3891
 
3892
+ # The schema defines the output of the processed document by a processor.
3893
+ # Corresponds to the JSON property `documentSchema`
3894
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema]
3895
+ attr_accessor :document_schema
3896
+
3939
3897
  # Denotes that this ProcessorVersion is managed by google.
3940
3898
  # Corresponds to the JSON property `googleManaged`
3941
3899
  # @return [Boolean]
@@ -3973,6 +3931,7 @@ module Google
3973
3931
  @create_time = args[:create_time] if args.key?(:create_time)
3974
3932
  @deprecation_info = args[:deprecation_info] if args.key?(:deprecation_info)
3975
3933
  @display_name = args[:display_name] if args.key?(:display_name)
3934
+ @document_schema = args[:document_schema] if args.key?(:document_schema)
3976
3935
  @google_managed = args[:google_managed] if args.key?(:google_managed)
3977
3936
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
3978
3937
  @kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
@@ -4010,16 +3969,6 @@ module Google
4010
3969
  class GoogleCloudDocumentaiV1PropertyMetadata
4011
3970
  include Google::Apis::Core::Hashable
4012
3971
 
4013
- # Metadata for human review labeling config.
4014
- # Corresponds to the JSON property `humanReviewLabelingMetadata`
4015
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewLabelingMetadata]
4016
- attr_accessor :human_review_labeling_metadata
4017
-
4018
- # Metadata for Human Review config.
4019
- # Corresponds to the JSON property `humanReviewMetadata`
4020
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata]
4021
- attr_accessor :human_review_metadata
4022
-
4023
3972
  # Whether the property should be considered as "inactive".
4024
3973
  # Corresponds to the JSON property `inactive`
4025
3974
  # @return [Boolean]
@@ -4032,8 +3981,6 @@ module Google
4032
3981
 
4033
3982
  # Update properties of this object
4034
3983
  def update!(**args)
4035
- @human_review_labeling_metadata = args[:human_review_labeling_metadata] if args.key?(:human_review_labeling_metadata)
4036
- @human_review_metadata = args[:human_review_metadata] if args.key?(:human_review_metadata)
4037
3984
  @inactive = args[:inactive] if args.key?(:inactive)
4038
3985
  end
4039
3986
  end
@@ -5414,6 +5361,12 @@ module Google
5414
5361
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
5415
5362
  attr_accessor :layout
5416
5363
 
5364
+ # Structure to identify provenance relationships between annotations in
5365
+ # different revisions.
5366
+ # Corresponds to the JSON property `provenance`
5367
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
5368
+ attr_accessor :provenance
5369
+
5417
5370
  def initialize(**args)
5418
5371
  update!(**args)
5419
5372
  end
@@ -5424,6 +5377,7 @@ module Google
5424
5377
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
5425
5378
  @header_rows = args[:header_rows] if args.key?(:header_rows)
5426
5379
  @layout = args[:layout] if args.key?(:layout)
5380
+ @provenance = args[:provenance] if args.key?(:provenance)
5427
5381
  end
5428
5382
  end
5429
5383
 
@@ -7346,6 +7300,12 @@ module Google
7346
7300
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
7347
7301
  attr_accessor :layout
7348
7302
 
7303
+ # Structure to identify provenance relationships between annotations in
7304
+ # different revisions.
7305
+ # Corresponds to the JSON property `provenance`
7306
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance]
7307
+ attr_accessor :provenance
7308
+
7349
7309
  def initialize(**args)
7350
7310
  update!(**args)
7351
7311
  end
@@ -7356,6 +7316,7 @@ module Google
7356
7316
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
7357
7317
  @header_rows = args[:header_rows] if args.key?(:header_rows)
7358
7318
  @layout = args[:layout] if args.key?(:layout)
7319
+ @provenance = args[:provenance] if args.key?(:provenance)
7359
7320
  end
7360
7321
  end
7361
7322
 
@@ -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.50.0"
19
+ GEM_VERSION = "0.52.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 = "20220921"
25
+ REVISION = "20221027"
26
26
  end
27
27
  end
28
28
  end
@@ -706,24 +706,12 @@ module Google
706
706
  include Google::Apis::Core::JsonObjectSupport
707
707
  end
708
708
 
709
- class GoogleCloudDocumentaiV1HumanReviewLabelingMetadata
710
- class Representation < Google::Apis::Core::JsonRepresentation; end
711
-
712
- include Google::Apis::Core::JsonObjectSupport
713
- end
714
-
715
709
  class GoogleCloudDocumentaiV1HumanReviewStatus
716
710
  class Representation < Google::Apis::Core::JsonRepresentation; end
717
711
 
718
712
  include Google::Apis::Core::JsonObjectSupport
719
713
  end
720
714
 
721
- class GoogleCloudDocumentaiV1HumanReviewValidationMetadata
722
- class Representation < Google::Apis::Core::JsonRepresentation; end
723
-
724
- include Google::Apis::Core::JsonObjectSupport
725
- end
726
-
727
715
  class GoogleCloudDocumentaiV1ListProcessorTypesResponse
728
716
  class Representation < Google::Apis::Core::JsonRepresentation; end
729
717
 
@@ -2471,6 +2459,8 @@ module Google
2471
2459
 
2472
2460
  property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout::Representation
2473
2461
 
2462
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance::Representation
2463
+
2474
2464
  end
2475
2465
  end
2476
2466
 
@@ -2709,10 +2699,6 @@ module Google
2709
2699
  class GoogleCloudDocumentaiV1EntityTypeMetadata
2710
2700
  # @private
2711
2701
  class Representation < Google::Apis::Core::JsonRepresentation
2712
- property :human_review_labeling_metadata, as: 'humanReviewLabelingMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewLabelingMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewLabelingMetadata::Representation
2713
-
2714
- property :human_review_metadata, as: 'humanReviewMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata::Representation
2715
-
2716
2702
  property :inactive, as: 'inactive'
2717
2703
  end
2718
2704
  end
@@ -2748,13 +2734,6 @@ module Google
2748
2734
  end
2749
2735
  end
2750
2736
 
2751
- class GoogleCloudDocumentaiV1HumanReviewLabelingMetadata
2752
- # @private
2753
- class Representation < Google::Apis::Core::JsonRepresentation
2754
- property :enable_normalization_editing, as: 'enableNormalizationEditing'
2755
- end
2756
- end
2757
-
2758
2737
  class GoogleCloudDocumentaiV1HumanReviewStatus
2759
2738
  # @private
2760
2739
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2764,14 +2743,6 @@ module Google
2764
2743
  end
2765
2744
  end
2766
2745
 
2767
- class GoogleCloudDocumentaiV1HumanReviewValidationMetadata
2768
- # @private
2769
- class Representation < Google::Apis::Core::JsonRepresentation
2770
- property :confidence_threshold, as: 'confidenceThreshold'
2771
- property :enable_validation, as: 'enableValidation'
2772
- end
2773
- end
2774
-
2775
2746
  class GoogleCloudDocumentaiV1ListProcessorTypesResponse
2776
2747
  # @private
2777
2748
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2870,6 +2841,8 @@ module Google
2870
2841
  property :deprecation_info, as: 'deprecationInfo', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo::Representation
2871
2842
 
2872
2843
  property :display_name, as: 'displayName'
2844
+ property :document_schema, as: 'documentSchema', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema::Representation
2845
+
2873
2846
  property :google_managed, as: 'googleManaged'
2874
2847
  property :kms_key_name, as: 'kmsKeyName'
2875
2848
  property :kms_key_version_name, as: 'kmsKeyVersionName'
@@ -2889,10 +2862,6 @@ module Google
2889
2862
  class GoogleCloudDocumentaiV1PropertyMetadata
2890
2863
  # @private
2891
2864
  class Representation < Google::Apis::Core::JsonRepresentation
2892
- property :human_review_labeling_metadata, as: 'humanReviewLabelingMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewLabelingMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewLabelingMetadata::Representation
2893
-
2894
- property :human_review_metadata, as: 'humanReviewMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata::Representation
2895
-
2896
2865
  property :inactive, as: 'inactive'
2897
2866
  end
2898
2867
  end
@@ -3316,6 +3285,8 @@ module Google
3316
3285
 
3317
3286
  property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation
3318
3287
 
3288
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
3289
+
3319
3290
  end
3320
3291
  end
3321
3292
 
@@ -3868,6 +3839,8 @@ module Google
3868
3839
 
3869
3840
  property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation
3870
3841
 
3842
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
3843
+
3871
3844
  end
3872
3845
  end
3873
3846
 
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.50.0
4
+ version: 0.52.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-10-03 00:00:00.000000000 Z
11
+ date: 2022-11-07 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.50.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.52.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: []