google-apis-documentai_v1 0.88.0 → 0.90.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: 18451549ba3d2769791a1070ce84395ba13dc12aa710c2be787780586df8c9e6
4
- data.tar.gz: 3c69f4c557136d21864a18296f517b51c58cbb48e00e45ef404c692fdbf8646d
3
+ metadata.gz: 3531a2e967eed666c02c2e68e7539e04f61090c7cbb10f3537b8d0629b307926
4
+ data.tar.gz: 5e351d979453b8239a34d9a12a914250c0e3411009bb5aa65d55f62cab873fa6
5
5
  SHA512:
6
- metadata.gz: a9c483c7db92e7fdcc8bbba6d8b674d6be21458fdfbbaeb6141dbfc2af9a78f02cb300d1dce0499379ced12190455111cb1a36dd81d706d8d20e84608e798d0f
7
- data.tar.gz: e4fc90dca16df8584b76195c8d0955e2391b1f4fae3642e11282381d665a2f33ab599ed19ab6db1c7251ef9726933b82609a9976c000c9d2e5f640774ef85fb3
6
+ metadata.gz: b90cffb8da0ab4f3bb95c63f7cfe60f3c8d123e21afeb9bc7161bb2c13415dc33940411b60d8ae2ae5719c17a81501610064a2e2dabb2c170f685642143b086f
7
+ data.tar.gz: 6c3bb0af7516d91c88220b962b303f0527822fb4b1d82cd3ec3c155734ce67204783a2c67eb350eeab184f2096cffff36255dc38c7379b822bbfb043e9c61ba0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.90.0 (2024-08-18)
4
+
5
+ * Regenerated from discovery document revision 20240813
6
+ * Regenerated using generator version 0.15.1
7
+
8
+ ### v0.89.0 (2024-07-25)
9
+
10
+ * Regenerated from discovery document revision 20240716
11
+
3
12
  ### v0.88.0 (2024-06-23)
4
13
 
5
14
  * Regenerated from discovery document revision 20240615
@@ -5208,6 +5208,12 @@ module Google
5208
5208
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1GcsDocument]
5209
5209
  attr_accessor :gcs_document
5210
5210
 
5211
+ # Optional. Option to remove images from the document.
5212
+ # Corresponds to the JSON property `imagelessMode`
5213
+ # @return [Boolean]
5214
+ attr_accessor :imageless_mode
5215
+ alias_method :imageless_mode?, :imageless_mode
5216
+
5211
5217
  # Document represents the canonical document resource in Document AI. It is an
5212
5218
  # interchange format that provides insights into documents and allows for
5213
5219
  # collaboration between users and Document AI to iterate and optimize for
@@ -5249,6 +5255,7 @@ module Google
5249
5255
  def update!(**args)
5250
5256
  @field_mask = args[:field_mask] if args.key?(:field_mask)
5251
5257
  @gcs_document = args[:gcs_document] if args.key?(:gcs_document)
5258
+ @imageless_mode = args[:imageless_mode] if args.key?(:imageless_mode)
5252
5259
  @inline_document = args[:inline_document] if args.key?(:inline_document)
5253
5260
  @labels = args[:labels] if args.key?(:labels)
5254
5261
  @process_options = args[:process_options] if args.key?(:process_options)
@@ -5477,6 +5484,11 @@ module Google
5477
5484
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema]
5478
5485
  attr_accessor :document_schema
5479
5486
 
5487
+ # Information about Generative AI model-based processor versions.
5488
+ # Corresponds to the JSON property `genAiModelInfo`
5489
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo]
5490
+ attr_accessor :gen_ai_model_info
5491
+
5480
5492
  # Output only. Denotes that this `ProcessorVersion` is managed by Google.
5481
5493
  # Corresponds to the JSON property `googleManaged`
5482
5494
  # @return [Boolean]
@@ -5537,6 +5549,7 @@ module Google
5537
5549
  @deprecation_info = args[:deprecation_info] if args.key?(:deprecation_info)
5538
5550
  @display_name = args[:display_name] if args.key?(:display_name)
5539
5551
  @document_schema = args[:document_schema] if args.key?(:document_schema)
5552
+ @gen_ai_model_info = args[:gen_ai_model_info] if args.key?(:gen_ai_model_info)
5540
5553
  @google_managed = args[:google_managed] if args.key?(:google_managed)
5541
5554
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
5542
5555
  @kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
@@ -5599,6 +5612,87 @@ module Google
5599
5612
  end
5600
5613
  end
5601
5614
 
5615
+ # Information about Generative AI model-based processor versions.
5616
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo
5617
+ include Google::Apis::Core::Hashable
5618
+
5619
+ # Information for a custom Generative AI model created by the user. These are
5620
+ # created with `Create New Version` in either the `Call foundation model` or `
5621
+ # Fine tuning` tabs.
5622
+ # Corresponds to the JSON property `customGenAiModelInfo`
5623
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo]
5624
+ attr_accessor :custom_gen_ai_model_info
5625
+
5626
+ # Information for a pretrained Google-managed foundation model.
5627
+ # Corresponds to the JSON property `foundationGenAiModelInfo`
5628
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo]
5629
+ attr_accessor :foundation_gen_ai_model_info
5630
+
5631
+ def initialize(**args)
5632
+ update!(**args)
5633
+ end
5634
+
5635
+ # Update properties of this object
5636
+ def update!(**args)
5637
+ @custom_gen_ai_model_info = args[:custom_gen_ai_model_info] if args.key?(:custom_gen_ai_model_info)
5638
+ @foundation_gen_ai_model_info = args[:foundation_gen_ai_model_info] if args.key?(:foundation_gen_ai_model_info)
5639
+ end
5640
+ end
5641
+
5642
+ # Information for a custom Generative AI model created by the user. These are
5643
+ # created with `Create New Version` in either the `Call foundation model` or `
5644
+ # Fine tuning` tabs.
5645
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo
5646
+ include Google::Apis::Core::Hashable
5647
+
5648
+ # The base processor version ID for the custom model.
5649
+ # Corresponds to the JSON property `baseProcessorVersionId`
5650
+ # @return [String]
5651
+ attr_accessor :base_processor_version_id
5652
+
5653
+ # The type of custom model created by the user.
5654
+ # Corresponds to the JSON property `customModelType`
5655
+ # @return [String]
5656
+ attr_accessor :custom_model_type
5657
+
5658
+ def initialize(**args)
5659
+ update!(**args)
5660
+ end
5661
+
5662
+ # Update properties of this object
5663
+ def update!(**args)
5664
+ @base_processor_version_id = args[:base_processor_version_id] if args.key?(:base_processor_version_id)
5665
+ @custom_model_type = args[:custom_model_type] if args.key?(:custom_model_type)
5666
+ end
5667
+ end
5668
+
5669
+ # Information for a pretrained Google-managed foundation model.
5670
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo
5671
+ include Google::Apis::Core::Hashable
5672
+
5673
+ # Whether finetuning is allowed for this base processor version.
5674
+ # Corresponds to the JSON property `finetuningAllowed`
5675
+ # @return [Boolean]
5676
+ attr_accessor :finetuning_allowed
5677
+ alias_method :finetuning_allowed?, :finetuning_allowed
5678
+
5679
+ # The minimum number of labeled documents in the training dataset required for
5680
+ # finetuning.
5681
+ # Corresponds to the JSON property `minTrainLabeledDocuments`
5682
+ # @return [Fixnum]
5683
+ attr_accessor :min_train_labeled_documents
5684
+
5685
+ def initialize(**args)
5686
+ update!(**args)
5687
+ end
5688
+
5689
+ # Update properties of this object
5690
+ def update!(**args)
5691
+ @finetuning_allowed = args[:finetuning_allowed] if args.key?(:finetuning_allowed)
5692
+ @min_train_labeled_documents = args[:min_train_labeled_documents] if args.key?(:min_train_labeled_documents)
5693
+ end
5694
+ end
5695
+
5602
5696
  # Payload message of raw document content (bytes).
5603
5697
  class GoogleCloudDocumentaiV1RawDocument
5604
5698
  include Google::Apis::Core::Hashable
@@ -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.88.0"
19
+ GEM_VERSION = "0.90.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240615"
25
+ REVISION = "20240813"
26
26
  end
27
27
  end
28
28
  end
@@ -1042,6 +1042,24 @@ module Google
1042
1042
  include Google::Apis::Core::JsonObjectSupport
1043
1043
  end
1044
1044
 
1045
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo
1046
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1047
+
1048
+ include Google::Apis::Core::JsonObjectSupport
1049
+ end
1050
+
1051
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo
1052
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1053
+
1054
+ include Google::Apis::Core::JsonObjectSupport
1055
+ end
1056
+
1057
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo
1058
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1059
+
1060
+ include Google::Apis::Core::JsonObjectSupport
1061
+ end
1062
+
1045
1063
  class GoogleCloudDocumentaiV1RawDocument
1046
1064
  class Representation < Google::Apis::Core::JsonRepresentation; end
1047
1065
 
@@ -3850,6 +3868,7 @@ module Google
3850
3868
  property :field_mask, as: 'fieldMask'
3851
3869
  property :gcs_document, as: 'gcsDocument', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1GcsDocument, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1GcsDocument::Representation
3852
3870
 
3871
+ property :imageless_mode, as: 'imagelessMode'
3853
3872
  property :inline_document, as: 'inlineDocument', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document::Representation
3854
3873
 
3855
3874
  hash :labels, as: 'labels'
@@ -3919,6 +3938,8 @@ module Google
3919
3938
  property :display_name, as: 'displayName'
3920
3939
  property :document_schema, as: 'documentSchema', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema::Representation
3921
3940
 
3941
+ property :gen_ai_model_info, as: 'genAiModelInfo', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo::Representation
3942
+
3922
3943
  property :google_managed, as: 'googleManaged'
3923
3944
  property :kms_key_name, as: 'kmsKeyName'
3924
3945
  property :kms_key_version_name, as: 'kmsKeyVersionName'
@@ -3948,6 +3969,32 @@ module Google
3948
3969
  end
3949
3970
  end
3950
3971
 
3972
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo
3973
+ # @private
3974
+ class Representation < Google::Apis::Core::JsonRepresentation
3975
+ property :custom_gen_ai_model_info, as: 'customGenAiModelInfo', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo::Representation
3976
+
3977
+ property :foundation_gen_ai_model_info, as: 'foundationGenAiModelInfo', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo::Representation
3978
+
3979
+ end
3980
+ end
3981
+
3982
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo
3983
+ # @private
3984
+ class Representation < Google::Apis::Core::JsonRepresentation
3985
+ property :base_processor_version_id, as: 'baseProcessorVersionId'
3986
+ property :custom_model_type, as: 'customModelType'
3987
+ end
3988
+ end
3989
+
3990
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo
3991
+ # @private
3992
+ class Representation < Google::Apis::Core::JsonRepresentation
3993
+ property :finetuning_allowed, as: 'finetuningAllowed'
3994
+ property :min_train_labeled_documents, as: 'minTrainLabeledDocuments'
3995
+ end
3996
+ end
3997
+
3951
3998
  class GoogleCloudDocumentaiV1RawDocument
3952
3999
  # @private
3953
4000
  class Representation < Google::Apis::Core::JsonRepresentation
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.88.0
4
+ version: 0.90.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: 2024-06-23 00:00:00.000000000 Z
11
+ date: 2024-08-18 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.88.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.90.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: []