google-apis-documentai_v1 0.82.0 → 0.84.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: c5412844501758c12e3e6f5c5ec67ea3ab4135d152861fd4f26241592da1eda9
4
+ data.tar.gz: 9b02b6a2840266d00b3dcb4fa0330e111283c5c466739f2cf5454f3e06ef5822
5
5
  SHA512:
6
- metadata.gz: b925076ee2c5a3b26cb23874ee8aa87b7bdbe79ff5a93791e09d99400cd95134d2ab29cab5a883425815cc43f2b620b4cec5efebb018c4241d626f98566b2948
7
- data.tar.gz: 9430a2680c32324ff3492e656b0c670b8acd774f33d3f92768db57b00510a0cac757d8bf3c1aa28f554ba456ee4b8bd204f3111d24bc33e19d61d048063b80d8
6
+ metadata.gz: bc4b278fab5a0025ea08c71f39f0bc9b7ad52de2abf48e8e646cb19853d7ac6ddcf53726265d951f6268940faca65e9d7f349748f81712c18839a5ac0006c11f
7
+ data.tar.gz: 1ce45b6e6d8455caf9a3bdd8d9eaf720323b689815f1e4981e28a3b0e701c689b9136511bb1754253b1e1db49e3f6bc65ee6fb718f0e94f5a1a1d66f86cbfdd6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.84.0 (2024-04-07)
4
+
5
+ * Regenerated from discovery document revision 20240328
6
+
7
+ ### v0.83.0 (2024-03-17)
8
+
9
+ * Regenerated from discovery document revision 20240307
10
+
3
11
  ### v0.82.0 (2024-03-03)
4
12
 
5
13
  * Regenerated from discovery document revision 20240223
@@ -5031,14 +5031,14 @@ module Google
5031
5031
  # @return [String]
5032
5032
  attr_accessor :model_type
5033
5033
 
5034
- # The resource name of the processor version. Format: `projects/`project`/
5035
- # locations/`location`/processors/`processor`/processorVersions/`
5034
+ # Identifier. The resource name of the processor version. Format: `projects/`
5035
+ # project`/locations/`location`/processors/`processor`/processorVersions/`
5036
5036
  # processor_version``
5037
5037
  # Corresponds to the JSON property `name`
5038
5038
  # @return [String]
5039
5039
  attr_accessor :name
5040
5040
 
5041
- # The state of the processor version.
5041
+ # Output only. The state of the processor version.
5042
5042
  # Corresponds to the JSON property `state`
5043
5043
  # @return [String]
5044
5044
  attr_accessor :state
@@ -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.84.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 = "20240328"
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.84.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-04-07 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.84.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: []