Skip to content

Commit 7bc7a5a

Browse files
feat: Automated regeneration of documentai v1beta3 client (#19946)
Auto-created at 2024-07-25 02:09:05 +0000 using the toys pull request generator.
1 parent 87b2392 commit 7bc7a5a

5 files changed

Lines changed: 149 additions & 2 deletions

File tree

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205070,6 +205070,7 @@
205070205070
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersion/deprecationInfo": deprecation_info
205071205071
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersion/displayName": display_name
205072205072
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersion/documentSchema": document_schema
205073+
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersion/genAiModelInfo": gen_ai_model_info
205073205074
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersion/googleManaged": google_managed
205074205075
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersion/kmsKeyName": kms_key_name
205075205076
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersion/kmsKeyVersionName": kms_key_version_name
@@ -205086,6 +205087,15 @@
205086205087
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo": google_cloud_documentai_v1beta3_processor_version_deprecation_info
205087205088
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo/deprecationTime": deprecation_time
205088205089
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo/replacementProcessorVersion": replacement_processor_version
205090+
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo": google_cloud_documentai_v1beta3_processor_version_gen_ai_model_info
205091+
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo/customGenAiModelInfo": custom_gen_ai_model_info
205092+
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo/foundationGenAiModelInfo": foundation_gen_ai_model_info
205093+
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo": google_cloud_documentai_v1beta3_processor_version_gen_ai_model_info_custom_gen_ai_model_info
205094+
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo/baseProcessorVersionId": base_processor_version_id
205095+
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo/customModelType": custom_model_type
205096+
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo": google_cloud_documentai_v1beta3_processor_version_gen_ai_model_info_foundation_gen_ai_model_info
205097+
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo/finetuningAllowed": finetuning_allowed
205098+
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo/minTrainLabeledDocuments": min_train_labeled_documents
205089205099
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3PropertyMetadata": google_cloud_documentai_v1beta3_property_metadata
205090205100
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3PropertyMetadata/fieldExtractionMetadata": field_extraction_metadata
205091205101
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3PropertyMetadata/humanReviewLabelingMetadata": human_review_labeling_metadata

generated/google-apis-documentai_v1beta3/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-documentai_v1beta3
22

3+
### v0.99.0 (2024-07-25)
4+
5+
* Regenerated from discovery document revision 20240716
6+
37
### v0.98.0 (2024-06-23)
48

59
* Regenerated from discovery document revision 20240615

generated/google-apis-documentai_v1beta3/lib/google/apis/documentai_v1beta3/classes.rb

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12108,6 +12108,11 @@ class GoogleCloudDocumentaiV1beta3ProcessorVersion
1210812108
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema]
1210912109
attr_accessor :document_schema
1211012110

12111+
# Information about Generative AI model-based processor versions.
12112+
# Corresponds to the JSON property `genAiModelInfo`
12113+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo]
12114+
attr_accessor :gen_ai_model_info
12115+
1211112116
# Output only. Denotes that this `ProcessorVersion` is managed by Google.
1211212117
# Corresponds to the JSON property `googleManaged`
1211312118
# @return [Boolean]
@@ -12168,6 +12173,7 @@ def update!(**args)
1216812173
@deprecation_info = args[:deprecation_info] if args.key?(:deprecation_info)
1216912174
@display_name = args[:display_name] if args.key?(:display_name)
1217012175
@document_schema = args[:document_schema] if args.key?(:document_schema)
12176+
@gen_ai_model_info = args[:gen_ai_model_info] if args.key?(:gen_ai_model_info)
1217112177
@google_managed = args[:google_managed] if args.key?(:google_managed)
1217212178
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
1217312179
@kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
@@ -12230,6 +12236,87 @@ def update!(**args)
1223012236
end
1223112237
end
1223212238

12239+
# Information about Generative AI model-based processor versions.
12240+
class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo
12241+
include Google::Apis::Core::Hashable
12242+
12243+
# Information for a custom Generative AI model created by the user. These are
12244+
# created with `Create New Version` in either the `Call foundation model` or `
12245+
# Fine tuning` tabs.
12246+
# Corresponds to the JSON property `customGenAiModelInfo`
12247+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo]
12248+
attr_accessor :custom_gen_ai_model_info
12249+
12250+
# Information for a pretrained Google-managed foundation model.
12251+
# Corresponds to the JSON property `foundationGenAiModelInfo`
12252+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo]
12253+
attr_accessor :foundation_gen_ai_model_info
12254+
12255+
def initialize(**args)
12256+
update!(**args)
12257+
end
12258+
12259+
# Update properties of this object
12260+
def update!(**args)
12261+
@custom_gen_ai_model_info = args[:custom_gen_ai_model_info] if args.key?(:custom_gen_ai_model_info)
12262+
@foundation_gen_ai_model_info = args[:foundation_gen_ai_model_info] if args.key?(:foundation_gen_ai_model_info)
12263+
end
12264+
end
12265+
12266+
# Information for a custom Generative AI model created by the user. These are
12267+
# created with `Create New Version` in either the `Call foundation model` or `
12268+
# Fine tuning` tabs.
12269+
class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo
12270+
include Google::Apis::Core::Hashable
12271+
12272+
# The base processor version ID for the custom model.
12273+
# Corresponds to the JSON property `baseProcessorVersionId`
12274+
# @return [String]
12275+
attr_accessor :base_processor_version_id
12276+
12277+
# The type of custom model created by the user.
12278+
# Corresponds to the JSON property `customModelType`
12279+
# @return [String]
12280+
attr_accessor :custom_model_type
12281+
12282+
def initialize(**args)
12283+
update!(**args)
12284+
end
12285+
12286+
# Update properties of this object
12287+
def update!(**args)
12288+
@base_processor_version_id = args[:base_processor_version_id] if args.key?(:base_processor_version_id)
12289+
@custom_model_type = args[:custom_model_type] if args.key?(:custom_model_type)
12290+
end
12291+
end
12292+
12293+
# Information for a pretrained Google-managed foundation model.
12294+
class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo
12295+
include Google::Apis::Core::Hashable
12296+
12297+
# Whether finetuning is allowed for this base processor version.
12298+
# Corresponds to the JSON property `finetuningAllowed`
12299+
# @return [Boolean]
12300+
attr_accessor :finetuning_allowed
12301+
alias_method :finetuning_allowed?, :finetuning_allowed
12302+
12303+
# The minimum number of labeled documents in the training dataset required for
12304+
# finetuning.
12305+
# Corresponds to the JSON property `minTrainLabeledDocuments`
12306+
# @return [Fixnum]
12307+
attr_accessor :min_train_labeled_documents
12308+
12309+
def initialize(**args)
12310+
update!(**args)
12311+
end
12312+
12313+
# Update properties of this object
12314+
def update!(**args)
12315+
@finetuning_allowed = args[:finetuning_allowed] if args.key?(:finetuning_allowed)
12316+
@min_train_labeled_documents = args[:min_train_labeled_documents] if args.key?(:min_train_labeled_documents)
12317+
end
12318+
end
12319+
1223312320
# Metadata about a property.
1223412321
class GoogleCloudDocumentaiV1beta3PropertyMetadata
1223512322
include Google::Apis::Core::Hashable

generated/google-apis-documentai_v1beta3/lib/google/apis/documentai_v1beta3/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DocumentaiV1beta3
1818
# Version of the google-apis-documentai_v1beta3 gem
19-
GEM_VERSION = "0.98.0"
19+
GEM_VERSION = "0.99.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20240615"
25+
REVISION = "20240716"
2626
end
2727
end
2828
end

generated/google-apis-documentai_v1beta3/lib/google/apis/documentai_v1beta3/representations.rb

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,6 +2140,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
21402140
include Google::Apis::Core::JsonObjectSupport
21412141
end
21422142

2143+
class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo
2144+
class Representation < Google::Apis::Core::JsonRepresentation; end
2145+
2146+
include Google::Apis::Core::JsonObjectSupport
2147+
end
2148+
2149+
class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo
2150+
class Representation < Google::Apis::Core::JsonRepresentation; end
2151+
2152+
include Google::Apis::Core::JsonObjectSupport
2153+
end
2154+
2155+
class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo
2156+
class Representation < Google::Apis::Core::JsonRepresentation; end
2157+
2158+
include Google::Apis::Core::JsonObjectSupport
2159+
end
2160+
21432161
class GoogleCloudDocumentaiV1beta3PropertyMetadata
21442162
class Representation < Google::Apis::Core::JsonRepresentation; end
21452163

@@ -5972,6 +5990,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
59725990
property :display_name, as: 'displayName'
59735991
property :document_schema, as: 'documentSchema', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema::Representation
59745992

5993+
property :gen_ai_model_info, as: 'genAiModelInfo', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo::Representation
5994+
59755995
property :google_managed, as: 'googleManaged'
59765996
property :kms_key_name, as: 'kmsKeyName'
59775997
property :kms_key_version_name, as: 'kmsKeyVersionName'
@@ -6001,6 +6021,32 @@ class Representation < Google::Apis::Core::JsonRepresentation
60016021
end
60026022
end
60036023

6024+
class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo
6025+
# @private
6026+
class Representation < Google::Apis::Core::JsonRepresentation
6027+
property :custom_gen_ai_model_info, as: 'customGenAiModelInfo', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo::Representation
6028+
6029+
property :foundation_gen_ai_model_info, as: 'foundationGenAiModelInfo', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo::Representation
6030+
6031+
end
6032+
end
6033+
6034+
class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo
6035+
# @private
6036+
class Representation < Google::Apis::Core::JsonRepresentation
6037+
property :base_processor_version_id, as: 'baseProcessorVersionId'
6038+
property :custom_model_type, as: 'customModelType'
6039+
end
6040+
end
6041+
6042+
class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo
6043+
# @private
6044+
class Representation < Google::Apis::Core::JsonRepresentation
6045+
property :finetuning_allowed, as: 'finetuningAllowed'
6046+
property :min_train_labeled_documents, as: 'minTrainLabeledDocuments'
6047+
end
6048+
end
6049+
60046050
class GoogleCloudDocumentaiV1beta3PropertyMetadata
60056051
# @private
60066052
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)