google-apis-documentai_v1 0.87.0 → 0.89.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: 5730461d1dd15c6f8c084dc45e4fadfb18fa35dad32aa2dbc94685bc7e4cd525
4
- data.tar.gz: 17d2351321aa39df228b99ff195a1bc396a8512b243fc7d3bde9dc2788261c45
3
+ metadata.gz: 87fc1ec1195d97901cdc226643a146a8f49db7327a240bb92373f8cf2974361a
4
+ data.tar.gz: 19c25e5d7226e94c7484c1467309142cb06ff2c92cd33600b82218b156a230d6
5
5
  SHA512:
6
- metadata.gz: 020bda3d9d374b32c4c106df4e92775ad1c7c896a60ff20f1c0a8dec080b3b3d70a7ebe76553b74202f52d2d5e93ef9736e685c1969b31a2c78accecdb010c0a
7
- data.tar.gz: 262edb1d291b7b887c5be95096172e5749aeb3fee53533597617067bca53100e79bcc0f37008d7f2602221b96f489d50f59930fb8f1fa792215542fb46d0c3cc
6
+ metadata.gz: 953dba38d07f2f5b0d03fecd0e31980ca0f8e9fecb0b5f8b2bbdb8a285b338161852e32f7cce08e3176351674a2e72bcedbd8bd477ae13e8176eefe313ba1bb7
7
+ data.tar.gz: e1c993bd6e60a8bca7a70b06efa6d772d372651f2366e2cc94b8cfc1310a1b6a10f2ba1b77306575ae3460b1cf2e021e71280bbddc30084ec3b2ba516c373e9a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.89.0 (2024-07-25)
4
+
5
+ * Regenerated from discovery document revision 20240716
6
+
7
+ ### v0.88.0 (2024-06-23)
8
+
9
+ * Regenerated from discovery document revision 20240615
10
+
3
11
  ### v0.87.0 (2024-06-09)
4
12
 
5
13
  * Regenerated from discovery document revision 20240531
@@ -5477,6 +5477,11 @@ module Google
5477
5477
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema]
5478
5478
  attr_accessor :document_schema
5479
5479
 
5480
+ # Information about Generative AI model-based processor versions.
5481
+ # Corresponds to the JSON property `genAiModelInfo`
5482
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo]
5483
+ attr_accessor :gen_ai_model_info
5484
+
5480
5485
  # Output only. Denotes that this `ProcessorVersion` is managed by Google.
5481
5486
  # Corresponds to the JSON property `googleManaged`
5482
5487
  # @return [Boolean]
@@ -5537,6 +5542,7 @@ module Google
5537
5542
  @deprecation_info = args[:deprecation_info] if args.key?(:deprecation_info)
5538
5543
  @display_name = args[:display_name] if args.key?(:display_name)
5539
5544
  @document_schema = args[:document_schema] if args.key?(:document_schema)
5545
+ @gen_ai_model_info = args[:gen_ai_model_info] if args.key?(:gen_ai_model_info)
5540
5546
  @google_managed = args[:google_managed] if args.key?(:google_managed)
5541
5547
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
5542
5548
  @kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
@@ -5599,6 +5605,87 @@ module Google
5599
5605
  end
5600
5606
  end
5601
5607
 
5608
+ # Information about Generative AI model-based processor versions.
5609
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo
5610
+ include Google::Apis::Core::Hashable
5611
+
5612
+ # Information for a custom Generative AI model created by the user. These are
5613
+ # created with `Create New Version` in either the `Call foundation model` or `
5614
+ # Fine tuning` tabs.
5615
+ # Corresponds to the JSON property `customGenAiModelInfo`
5616
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo]
5617
+ attr_accessor :custom_gen_ai_model_info
5618
+
5619
+ # Information for a pretrained Google-managed foundation model.
5620
+ # Corresponds to the JSON property `foundationGenAiModelInfo`
5621
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo]
5622
+ attr_accessor :foundation_gen_ai_model_info
5623
+
5624
+ def initialize(**args)
5625
+ update!(**args)
5626
+ end
5627
+
5628
+ # Update properties of this object
5629
+ def update!(**args)
5630
+ @custom_gen_ai_model_info = args[:custom_gen_ai_model_info] if args.key?(:custom_gen_ai_model_info)
5631
+ @foundation_gen_ai_model_info = args[:foundation_gen_ai_model_info] if args.key?(:foundation_gen_ai_model_info)
5632
+ end
5633
+ end
5634
+
5635
+ # Information for a custom Generative AI model created by the user. These are
5636
+ # created with `Create New Version` in either the `Call foundation model` or `
5637
+ # Fine tuning` tabs.
5638
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo
5639
+ include Google::Apis::Core::Hashable
5640
+
5641
+ # The base processor version ID for the custom model.
5642
+ # Corresponds to the JSON property `baseProcessorVersionId`
5643
+ # @return [String]
5644
+ attr_accessor :base_processor_version_id
5645
+
5646
+ # The type of custom model created by the user.
5647
+ # Corresponds to the JSON property `customModelType`
5648
+ # @return [String]
5649
+ attr_accessor :custom_model_type
5650
+
5651
+ def initialize(**args)
5652
+ update!(**args)
5653
+ end
5654
+
5655
+ # Update properties of this object
5656
+ def update!(**args)
5657
+ @base_processor_version_id = args[:base_processor_version_id] if args.key?(:base_processor_version_id)
5658
+ @custom_model_type = args[:custom_model_type] if args.key?(:custom_model_type)
5659
+ end
5660
+ end
5661
+
5662
+ # Information for a pretrained Google-managed foundation model.
5663
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo
5664
+ include Google::Apis::Core::Hashable
5665
+
5666
+ # Whether finetuning is allowed for this base processor version.
5667
+ # Corresponds to the JSON property `finetuningAllowed`
5668
+ # @return [Boolean]
5669
+ attr_accessor :finetuning_allowed
5670
+ alias_method :finetuning_allowed?, :finetuning_allowed
5671
+
5672
+ # The minimum number of labeled documents in the training dataset required for
5673
+ # finetuning.
5674
+ # Corresponds to the JSON property `minTrainLabeledDocuments`
5675
+ # @return [Fixnum]
5676
+ attr_accessor :min_train_labeled_documents
5677
+
5678
+ def initialize(**args)
5679
+ update!(**args)
5680
+ end
5681
+
5682
+ # Update properties of this object
5683
+ def update!(**args)
5684
+ @finetuning_allowed = args[:finetuning_allowed] if args.key?(:finetuning_allowed)
5685
+ @min_train_labeled_documents = args[:min_train_labeled_documents] if args.key?(:min_train_labeled_documents)
5686
+ end
5687
+ end
5688
+
5602
5689
  # Payload message of raw document content (bytes).
5603
5690
  class GoogleCloudDocumentaiV1RawDocument
5604
5691
  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.87.0"
19
+ GEM_VERSION = "0.89.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240531"
25
+ REVISION = "20240716"
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
 
@@ -3919,6 +3937,8 @@ module Google
3919
3937
  property :display_name, as: 'displayName'
3920
3938
  property :document_schema, as: 'documentSchema', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema::Representation
3921
3939
 
3940
+ property :gen_ai_model_info, as: 'genAiModelInfo', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo::Representation
3941
+
3922
3942
  property :google_managed, as: 'googleManaged'
3923
3943
  property :kms_key_name, as: 'kmsKeyName'
3924
3944
  property :kms_key_version_name, as: 'kmsKeyVersionName'
@@ -3948,6 +3968,32 @@ module Google
3948
3968
  end
3949
3969
  end
3950
3970
 
3971
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo
3972
+ # @private
3973
+ class Representation < Google::Apis::Core::JsonRepresentation
3974
+ property :custom_gen_ai_model_info, as: 'customGenAiModelInfo', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo::Representation
3975
+
3976
+ property :foundation_gen_ai_model_info, as: 'foundationGenAiModelInfo', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo::Representation
3977
+
3978
+ end
3979
+ end
3980
+
3981
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo
3982
+ # @private
3983
+ class Representation < Google::Apis::Core::JsonRepresentation
3984
+ property :base_processor_version_id, as: 'baseProcessorVersionId'
3985
+ property :custom_model_type, as: 'customModelType'
3986
+ end
3987
+ end
3988
+
3989
+ class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo
3990
+ # @private
3991
+ class Representation < Google::Apis::Core::JsonRepresentation
3992
+ property :finetuning_allowed, as: 'finetuningAllowed'
3993
+ property :min_train_labeled_documents, as: 'minTrainLabeledDocuments'
3994
+ end
3995
+ end
3996
+
3951
3997
  class GoogleCloudDocumentaiV1RawDocument
3952
3998
  # @private
3953
3999
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -406,7 +406,10 @@ module Google
406
406
  end
407
407
 
408
408
  # Creates a processor from the ProcessorType provided. The processor will be at `
409
- # ENABLED` state by default after its creation.
409
+ # ENABLED` state by default after its creation. Note that this method requires
410
+ # the `documentai.processors.create` permission on the project, which is highly
411
+ # privileged. A user or service account with this permission can create new
412
+ # processors that can interact with any gcs bucket in your project.
410
413
  # @param [String] parent
411
414
  # Required. The parent (project and location) under which to create the
412
415
  # processor. Format: `projects/`project`/locations/`location``
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.87.0
4
+ version: 0.89.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-09 00:00:00.000000000 Z
11
+ date: 2024-07-25 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.87.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.89.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: []