google-apis-documentai_v1 0.82.0 → 0.83.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: 0c42ba77191f56a11b10e25dbee40b0693801a935bc059c49fa567db35dddf12
4
- data.tar.gz: c302cd036a49ef1d94ba78c4408eace9d92958fdf02250758f28a0b046edff3d
3
+ metadata.gz: 2824a00b706e3b185f0a492c45c9bb766dc70a1c12a2f176995ab1da0a2bd652
4
+ data.tar.gz: 6f23b37021e1f037290e73854ade387160de6ffef1d846d80c8b91b30b971c46
5
5
  SHA512:
6
- metadata.gz: b925076ee2c5a3b26cb23874ee8aa87b7bdbe79ff5a93791e09d99400cd95134d2ab29cab5a883425815cc43f2b620b4cec5efebb018c4241d626f98566b2948
7
- data.tar.gz: 9430a2680c32324ff3492e656b0c670b8acd774f33d3f92768db57b00510a0cac757d8bf3c1aa28f554ba456ee4b8bd204f3111d24bc33e19d61d048063b80d8
6
+ metadata.gz: 247a02609e8918e0df051bc1e86d2e8998bd2d69fd88a2cca0d30287b02ac6b522681026e3c5f5de5948b2542f94109c64c1428d6a186ff43a7954f832c04a71
7
+ data.tar.gz: e63c8ca8bfffb2c12fc0ff79cb282da3e4b1c68bb817503674d738089af019bc79f1027547f1b6ff27a2e999ccf7dd9baf8b5c2c700e0406e362410d46d40be8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.83.0 (2024-03-17)
4
+
5
+ * Regenerated from discovery document revision 20240307
6
+
3
7
  ### v0.82.0 (2024-03-03)
4
8
 
5
9
  * Regenerated from discovery document revision 20240223
@@ -5394,6 +5394,11 @@ module Google
5394
5394
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema]
5395
5395
  attr_accessor :document_schema
5396
5396
 
5397
+ # Options to control foundation model tuning of the processor.
5398
+ # Corresponds to the JSON property `foundationModelTuningOptions`
5399
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions]
5400
+ attr_accessor :foundation_model_tuning_options
5401
+
5397
5402
  # The input data used to train a new ProcessorVersion.
5398
5403
  # Corresponds to the JSON property `inputData`
5399
5404
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData]
@@ -5416,6 +5421,7 @@ module Google
5416
5421
  @base_processor_version = args[:base_processor_version] if args.key?(:base_processor_version)
5417
5422
  @custom_document_extraction_options = args[:custom_document_extraction_options] if args.key?(:custom_document_extraction_options)
5418
5423
  @document_schema = args[:document_schema] if args.key?(:document_schema)
5424
+ @foundation_model_tuning_options = args[:foundation_model_tuning_options] if args.key?(:foundation_model_tuning_options)
5419
5425
  @input_data = args[:input_data] if args.key?(:input_data)
5420
5426
  @processor_version = args[:processor_version] if args.key?(:processor_version)
5421
5427
  end
@@ -5441,6 +5447,34 @@ module Google
5441
5447
  end
5442
5448
  end
5443
5449
 
5450
+ # Options to control foundation model tuning of the processor.
5451
+ class GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions
5452
+ include Google::Apis::Core::Hashable
5453
+
5454
+ # Optional. The multiplier to apply to the recommended learning rate. Valid
5455
+ # values are between 0.1 and 10. If not provided, recommended learning rate will
5456
+ # be used.
5457
+ # Corresponds to the JSON property `learningRateMultiplier`
5458
+ # @return [Float]
5459
+ attr_accessor :learning_rate_multiplier
5460
+
5461
+ # Optional. The number of steps to run for model tuning. Valid values are
5462
+ # between 1 and 400. If not provided, recommended steps will be used.
5463
+ # Corresponds to the JSON property `trainSteps`
5464
+ # @return [Fixnum]
5465
+ attr_accessor :train_steps
5466
+
5467
+ def initialize(**args)
5468
+ update!(**args)
5469
+ end
5470
+
5471
+ # Update properties of this object
5472
+ def update!(**args)
5473
+ @learning_rate_multiplier = args[:learning_rate_multiplier] if args.key?(:learning_rate_multiplier)
5474
+ @train_steps = args[:train_steps] if args.key?(:train_steps)
5475
+ end
5476
+ end
5477
+
5444
5478
  # The input data used to train a new ProcessorVersion.
5445
5479
  class GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData
5446
5480
  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.82.0"
19
+ GEM_VERSION = "0.83.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240223"
25
+ REVISION = "20240307"
26
26
  end
27
27
  end
28
28
  end
@@ -1012,6 +1012,12 @@ module Google
1012
1012
  include Google::Apis::Core::JsonObjectSupport
1013
1013
  end
1014
1014
 
1015
+ class GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions
1016
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1017
+
1018
+ include Google::Apis::Core::JsonObjectSupport
1019
+ end
1020
+
1015
1021
  class GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData
1016
1022
  class Representation < Google::Apis::Core::JsonRepresentation; end
1017
1023
 
@@ -3608,6 +3614,8 @@ module Google
3608
3614
 
3609
3615
  property :document_schema, as: 'documentSchema', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema::Representation
3610
3616
 
3617
+ property :foundation_model_tuning_options, as: 'foundationModelTuningOptions', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions::Representation
3618
+
3611
3619
  property :input_data, as: 'inputData', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData::Representation
3612
3620
 
3613
3621
  property :processor_version, as: 'processorVersion', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersion, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersion::Representation
@@ -3622,6 +3630,14 @@ module Google
3622
3630
  end
3623
3631
  end
3624
3632
 
3633
+ class GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions
3634
+ # @private
3635
+ class Representation < Google::Apis::Core::JsonRepresentation
3636
+ property :learning_rate_multiplier, as: 'learningRateMultiplier'
3637
+ property :train_steps, as: 'trainSteps'
3638
+ end
3639
+ end
3640
+
3625
3641
  class GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData
3626
3642
  # @private
3627
3643
  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.82.0
4
+ version: 0.83.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-03-03 00:00:00.000000000 Z
11
+ date: 2024-03-17 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.82.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.83.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: []