google-apis-documentai_v1beta3 0.86.0 → 0.88.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: 61db9a78b0edf9426cbbfb7ca7fd990109c2ea29b2fbe5a8b90ad115e6b973b7
4
- data.tar.gz: 3448c584b29f1f07464d9cf87bbed981c4b463a3d0486760286bab351b28bf57
3
+ metadata.gz: a7c8e2899c8f298f7cbc377588022ae70641d04a9a4d76f0358a0ad17cb5807e
4
+ data.tar.gz: 1ecac5caaf15beaa647a970d5cea18c5bc899c0ec63acf8ff8532213ccdf0b18
5
5
  SHA512:
6
- metadata.gz: 3dbd3bed246ad1fdd8a984f9f517972ca52e05e0dd7270fda91157316e90f2b6b013b1f20f60e91931843ff3f20f4b43a957a0b0d85ebb0d1ca61cf4857b68d3
7
- data.tar.gz: 84699b3be85bc112fbd9f67b6c57aae038b89ce5f7a5e5d7dcf9e7eab9687bba83e4b15a8b9defd20b95ceba971014acb7dc090dfe4652bb4af0eecc950c3994
6
+ metadata.gz: 8835c0f3c9ca26e86583df32bdf5c9c4fc86a483a9a4410c64cd2513c277af628d5da48ece7aa338626b2ade8a675e66e980aac8772f3b4e3156a055c8e57632
7
+ data.tar.gz: df26ef2f86c492f8c1d91b325fd74fad4d0f6b9866ddd82a950bc7a7d904565551fff0f906b82a5f5ff760c0156b7ea1ed5b038ae6522abe91e8cb0dc66542c2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-documentai_v1beta3
2
2
 
3
+ ### v0.88.0 (2024-01-23)
4
+
5
+ * Regenerated from discovery document revision 20240118
6
+ * Regenerated using generator version 0.13.0
7
+
8
+ ### v0.87.0 (2023-12-03)
9
+
10
+ * Regenerated from discovery document revision 20231123
11
+
3
12
  ### v0.86.0 (2023-11-19)
4
13
 
5
14
  * Regenerated from discovery document revision 20231113
@@ -6566,6 +6566,15 @@ module Google
6566
6566
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig]
6567
6567
  attr_accessor :input_documents
6568
6568
 
6569
+ # Optional. The labels with user-defined metadata for the request. Label keys
6570
+ # and values can be no longer than 63 characters (Unicode codepoints), can only
6571
+ # contain lowercase letters, numeric characters, underscores and dashes.
6572
+ # International characters are allowed. Label values are optional. Label keys
6573
+ # must start with a letter.
6574
+ # Corresponds to the JSON property `labels`
6575
+ # @return [Hash<String,String>]
6576
+ attr_accessor :labels
6577
+
6569
6578
  # The output configuration in the BatchProcessDocuments method.
6570
6579
  # Corresponds to the JSON property `outputConfig`
6571
6580
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig]
@@ -6591,6 +6600,7 @@ module Google
6591
6600
  @document_output_config = args[:document_output_config] if args.key?(:document_output_config)
6592
6601
  @input_configs = args[:input_configs] if args.key?(:input_configs)
6593
6602
  @input_documents = args[:input_documents] if args.key?(:input_documents)
6603
+ @labels = args[:labels] if args.key?(:labels)
6594
6604
  @output_config = args[:output_config] if args.key?(:output_config)
6595
6605
  @process_options = args[:process_options] if args.key?(:process_options)
6596
6606
  @skip_human_review = args[:skip_human_review] if args.key?(:skip_human_review)
@@ -10519,6 +10529,15 @@ module Google
10519
10529
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document]
10520
10530
  attr_accessor :inline_document
10521
10531
 
10532
+ # Optional. The labels with user-defined metadata for the request. Label keys
10533
+ # and values can be no longer than 63 characters (Unicode codepoints), can only
10534
+ # contain lowercase letters, numeric characters, underscores and dashes.
10535
+ # International characters are allowed. Label values are optional. Label keys
10536
+ # must start with a letter.
10537
+ # Corresponds to the JSON property `labels`
10538
+ # @return [Hash<String,String>]
10539
+ attr_accessor :labels
10540
+
10522
10541
  # Options for Process API
10523
10542
  # Corresponds to the JSON property `processOptions`
10524
10543
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptions]
@@ -10545,6 +10564,7 @@ module Google
10545
10564
  @field_mask = args[:field_mask] if args.key?(:field_mask)
10546
10565
  @gcs_document = args[:gcs_document] if args.key?(:gcs_document)
10547
10566
  @inline_document = args[:inline_document] if args.key?(:inline_document)
10567
+ @labels = args[:labels] if args.key?(:labels)
10548
10568
  @process_options = args[:process_options] if args.key?(:process_options)
10549
10569
  @raw_document = args[:raw_document] if args.key?(:raw_document)
10550
10570
  @skip_human_review = args[:skip_human_review] if args.key?(:skip_human_review)
@@ -10786,6 +10806,11 @@ module Google
10786
10806
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationReference]
10787
10807
  attr_accessor :latest_evaluation
10788
10808
 
10809
+ # Output only. The model type of this processor version.
10810
+ # Corresponds to the JSON property `modelType`
10811
+ # @return [String]
10812
+ attr_accessor :model_type
10813
+
10789
10814
  # The resource name of the processor version. Format: `projects/`project`/
10790
10815
  # locations/`location`/processors/`processor`/processorVersions/`
10791
10816
  # processor_version``
@@ -10812,6 +10837,7 @@ module Google
10812
10837
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
10813
10838
  @kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
10814
10839
  @latest_evaluation = args[:latest_evaluation] if args.key?(:latest_evaluation)
10840
+ @model_type = args[:model_type] if args.key?(:model_type)
10815
10841
  @name = args[:name] if args.key?(:name)
10816
10842
  @state = args[:state] if args.key?(:state)
10817
10843
  end
@@ -11266,6 +11292,11 @@ module Google
11266
11292
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema]
11267
11293
  attr_accessor :document_schema
11268
11294
 
11295
+ # Options to control foundation model tuning of the processor.
11296
+ # Corresponds to the JSON property `foundationModelTuningOptions`
11297
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions]
11298
+ attr_accessor :foundation_model_tuning_options
11299
+
11269
11300
  # The input data used to train a new ProcessorVersion.
11270
11301
  # Corresponds to the JSON property `inputData`
11271
11302
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData]
@@ -11288,6 +11319,7 @@ module Google
11288
11319
  @base_processor_version = args[:base_processor_version] if args.key?(:base_processor_version)
11289
11320
  @custom_document_extraction_options = args[:custom_document_extraction_options] if args.key?(:custom_document_extraction_options)
11290
11321
  @document_schema = args[:document_schema] if args.key?(:document_schema)
11322
+ @foundation_model_tuning_options = args[:foundation_model_tuning_options] if args.key?(:foundation_model_tuning_options)
11291
11323
  @input_data = args[:input_data] if args.key?(:input_data)
11292
11324
  @processor_version = args[:processor_version] if args.key?(:processor_version)
11293
11325
  end
@@ -11313,6 +11345,34 @@ module Google
11313
11345
  end
11314
11346
  end
11315
11347
 
11348
+ # Options to control foundation model tuning of the processor.
11349
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions
11350
+ include Google::Apis::Core::Hashable
11351
+
11352
+ # Optional. The multiplier to apply to the recommended learning rate. Valid
11353
+ # values are between 0.1 and 10. If not provided, recommended learning rate will
11354
+ # be used.
11355
+ # Corresponds to the JSON property `learningRateMultiplier`
11356
+ # @return [Float]
11357
+ attr_accessor :learning_rate_multiplier
11358
+
11359
+ # Optional. The number of steps to run for model tuning. Valid values are
11360
+ # between 1 and 400. If not provided, recommended steps will be used.
11361
+ # Corresponds to the JSON property `trainSteps`
11362
+ # @return [Fixnum]
11363
+ attr_accessor :train_steps
11364
+
11365
+ def initialize(**args)
11366
+ update!(**args)
11367
+ end
11368
+
11369
+ # Update properties of this object
11370
+ def update!(**args)
11371
+ @learning_rate_multiplier = args[:learning_rate_multiplier] if args.key?(:learning_rate_multiplier)
11372
+ @train_steps = args[:train_steps] if args.key?(:train_steps)
11373
+ end
11374
+ end
11375
+
11316
11376
  # The input data used to train a new ProcessorVersion.
11317
11377
  class GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData
11318
11378
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1beta3
18
18
  # Version of the google-apis-documentai_v1beta3 gem
19
- GEM_VERSION = "0.86.0"
19
+ GEM_VERSION = "0.88.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231113"
25
+ REVISION = "20240118"
26
26
  end
27
27
  end
28
28
  end
@@ -1960,6 +1960,12 @@ module Google
1960
1960
  include Google::Apis::Core::JsonObjectSupport
1961
1961
  end
1962
1962
 
1963
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions
1964
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1965
+
1966
+ include Google::Apis::Core::JsonObjectSupport
1967
+ end
1968
+
1963
1969
  class GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData
1964
1970
  class Representation < Google::Apis::Core::JsonRepresentation; end
1965
1971
 
@@ -4028,6 +4034,7 @@ module Google
4028
4034
 
4029
4035
  property :input_documents, as: 'inputDocuments', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig::Representation
4030
4036
 
4037
+ hash :labels, as: 'labels'
4031
4038
  property :output_config, as: 'outputConfig', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequestBatchOutputConfig::Representation
4032
4039
 
4033
4040
  property :process_options, as: 'processOptions', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptions, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptions::Representation
@@ -5190,6 +5197,7 @@ module Google
5190
5197
 
5191
5198
  property :inline_document, as: 'inlineDocument', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Document::Representation
5192
5199
 
5200
+ hash :labels, as: 'labels'
5193
5201
  property :process_options, as: 'processOptions', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptions, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptions::Representation
5194
5202
 
5195
5203
  property :raw_document, as: 'rawDocument', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3RawDocument, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3RawDocument::Representation
@@ -5260,6 +5268,7 @@ module Google
5260
5268
  property :kms_key_version_name, as: 'kmsKeyVersionName'
5261
5269
  property :latest_evaluation, as: 'latestEvaluation', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationReference, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationReference::Representation
5262
5270
 
5271
+ property :model_type, as: 'modelType'
5263
5272
  property :name, as: 'name'
5264
5273
  property :state, as: 'state'
5265
5274
  end
@@ -5405,6 +5414,8 @@ module Google
5405
5414
 
5406
5415
  property :document_schema, as: 'documentSchema', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema::Representation
5407
5416
 
5417
+ property :foundation_model_tuning_options, as: 'foundationModelTuningOptions', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions::Representation
5418
+
5408
5419
  property :input_data, as: 'inputData', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData::Representation
5409
5420
 
5410
5421
  property :processor_version, as: 'processorVersion', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersion, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersion::Representation
@@ -5419,6 +5430,14 @@ module Google
5419
5430
  end
5420
5431
  end
5421
5432
 
5433
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestFoundationModelTuningOptions
5434
+ # @private
5435
+ class Representation < Google::Apis::Core::JsonRepresentation
5436
+ property :learning_rate_multiplier, as: 'learningRateMultiplier'
5437
+ property :train_steps, as: 'trainSteps'
5438
+ end
5439
+ end
5440
+
5422
5441
  class GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData
5423
5442
  # @private
5424
5443
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -34,6 +34,8 @@ module Google
34
34
  #
35
35
  # @see https://cloud.google.com/document-ai/docs/
36
36
  class DocumentService < Google::Apis::Core::BaseService
37
+ DEFAULT_ENDPOINT_TEMPLATE = "https://documentai.$UNIVERSE_DOMAIN$/"
38
+
37
39
  # @return [String]
38
40
  # API key. Your API key identifies your project and provides you with API access,
39
41
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -45,7 +47,7 @@ module Google
45
47
  attr_accessor :quota_user
46
48
 
47
49
  def initialize
48
- super('https://documentai.googleapis.com/', '',
50
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
49
51
  client_name: 'google-apis-documentai_v1beta3',
50
52
  client_version: Google::Apis::DocumentaiV1beta3::GEM_VERSION)
51
53
  @batch_path = 'batch'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.86.0
4
+ version: 0.88.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: 2023-11-19 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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_v1beta3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.86.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.88.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Document AI API V1beta3