Skip to content

Commit b9e8ba9

Browse files
feat: Automated regeneration of documentai v1beta3 client (#13321)
Auto-created at 2023-01-22 10:23:49 +0000 using the toys pull request generator.
1 parent a0d9b54 commit b9e8ba9

File tree

5 files changed

+131
-2
lines changed

5 files changed

+131
-2
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168765,6 +168765,7 @@
168765168765
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse": google_cloud_documentai_uiv1beta3_disable_processor_response
168766168766
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DocumentId": google_cloud_documentai_uiv1beta3_document_id
168767168767
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DocumentId/gcsManagedDocId": gcs_managed_doc_id
168768+
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DocumentId/revisionRef": revision_ref
168768168769
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DocumentId/revisionReference": revision_reference
168769168770
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId": google_cloud_documentai_uiv1beta3_document_id_gcs_managed_document_id
168770168771
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId/cwDocId": cw_doc_id
@@ -168863,6 +168864,10 @@
168863168864
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument/sourcePrefix": source_prefix
168864168865
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument/status": status
168865168866
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse": google_cloud_documentai_uiv1beta3_resync_dataset_response
168867+
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3RevisionRef": google_cloud_documentai_uiv1beta3_revision_ref
168868+
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3RevisionRef/latestProcessorVersion": latest_processor_version
168869+
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3RevisionRef/revisionCase": revision_case
168870+
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3RevisionRef/revisionId": revision_id
168866168871
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3RevisionReference": google_cloud_documentai_uiv1beta3_revision_reference
168867168872
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3RevisionReference/latestProcessorVersion": latest_processor_version
168868168873
"/documentai:v1beta3/GoogleCloudDocumentaiUiv1beta3RevisionReference/revisionCase": revision_case
@@ -169910,6 +169915,7 @@
169910169915
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3EvaluationMultiConfidenceMetrics/metricsType": metrics_type
169911169916
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3EvaluationReference": google_cloud_documentai_v1beta3_evaluation_reference
169912169917
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3EvaluationReference/aggregateMetrics": aggregate_metrics
169918+
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3EvaluationReference/aggregateMetricsExact": aggregate_metrics_exact
169913169919
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3EvaluationReference/evaluation": evaluation
169914169920
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3EvaluationReference/operation": operation
169915169921
"/documentai:v1beta3/GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse": google_cloud_documentai_v1beta3_fetch_processor_types_response

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.61.0 (2023-01-22)
4+
5+
* Regenerated from discovery document revision 20230113
6+
37
### v0.60.0 (2023-01-15)
48

59
* Regenerated from discovery document revision 20230106

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

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,11 @@ class GoogleCloudDocumentaiUiv1beta3DocumentId
395395
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId]
396396
attr_accessor :gcs_managed_doc_id
397397

398+
# The revision reference specifies which revision on the document to read.
399+
# Corresponds to the JSON property `revisionRef`
400+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3RevisionRef]
401+
attr_accessor :revision_ref
402+
398403
# The revision reference specifies which revision on the document to read.
399404
# Corresponds to the JSON property `revisionReference`
400405
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3RevisionReference]
@@ -407,6 +412,7 @@ def initialize(**args)
407412
# Update properties of this object
408413
def update!(**args)
409414
@gcs_managed_doc_id = args[:gcs_managed_doc_id] if args.key?(:gcs_managed_doc_id)
415+
@revision_ref = args[:revision_ref] if args.key?(:revision_ref)
410416
@revision_reference = args[:revision_reference] if args.key?(:revision_reference)
411417
end
412418
end
@@ -883,6 +889,39 @@ def update!(**args)
883889
end
884890
end
885891

892+
# The revision reference specifies which revision on the document to read.
893+
class GoogleCloudDocumentaiUiv1beta3RevisionRef
894+
include Google::Apis::Core::Hashable
895+
896+
# Reads the revision generated by the processor version. The format takes the
897+
# full resource name of processor version. `projects/`project`/locations/`
898+
# location`/processors/`processor`/processorVersions/`processorVersion``
899+
# Corresponds to the JSON property `latestProcessorVersion`
900+
# @return [String]
901+
attr_accessor :latest_processor_version
902+
903+
# Reads the revision by the predefined case.
904+
# Corresponds to the JSON property `revisionCase`
905+
# @return [String]
906+
attr_accessor :revision_case
907+
908+
# Reads the revision given by the id.
909+
# Corresponds to the JSON property `revisionId`
910+
# @return [String]
911+
attr_accessor :revision_id
912+
913+
def initialize(**args)
914+
update!(**args)
915+
end
916+
917+
# Update properties of this object
918+
def update!(**args)
919+
@latest_processor_version = args[:latest_processor_version] if args.key?(:latest_processor_version)
920+
@revision_case = args[:revision_case] if args.key?(:revision_case)
921+
@revision_id = args[:revision_id] if args.key?(:revision_id)
922+
end
923+
end
924+
886925
# The revision reference specifies which revision on the document to read.
887926
class GoogleCloudDocumentaiUiv1beta3RevisionReference
888927
include Google::Apis::Core::Hashable
@@ -8113,6 +8152,43 @@ def update!(**args)
81138152
end
81148153
end
81158154

8155+
# Gives a short summary of an evaluation, and links to the evaluation itself.
8156+
class GoogleCloudDocumentaiV1beta3EvaluationReference
8157+
include Google::Apis::Core::Hashable
8158+
8159+
# Evaluation metrics, either in aggregate or about a specific entity.
8160+
# Corresponds to the JSON property `aggregateMetrics`
8161+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationMetrics]
8162+
attr_accessor :aggregate_metrics
8163+
8164+
# Evaluation metrics, either in aggregate or about a specific entity.
8165+
# Corresponds to the JSON property `aggregateMetricsExact`
8166+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationMetrics]
8167+
attr_accessor :aggregate_metrics_exact
8168+
8169+
# The resource name of the evaluation.
8170+
# Corresponds to the JSON property `evaluation`
8171+
# @return [String]
8172+
attr_accessor :evaluation
8173+
8174+
# The resource name of the Long Running Operation for the evaluation.
8175+
# Corresponds to the JSON property `operation`
8176+
# @return [String]
8177+
attr_accessor :operation
8178+
8179+
def initialize(**args)
8180+
update!(**args)
8181+
end
8182+
8183+
# Update properties of this object
8184+
def update!(**args)
8185+
@aggregate_metrics = args[:aggregate_metrics] if args.key?(:aggregate_metrics)
8186+
@aggregate_metrics_exact = args[:aggregate_metrics_exact] if args.key?(:aggregate_metrics_exact)
8187+
@evaluation = args[:evaluation] if args.key?(:evaluation)
8188+
@operation = args[:operation] if args.key?(:operation)
8189+
end
8190+
end
8191+
81168192
# Response message for fetch processor types.
81178193
class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
81188194
include Google::Apis::Core::Hashable
@@ -8680,6 +8756,11 @@ class GoogleCloudDocumentaiV1beta3ProcessorVersion
86808756
# @return [String]
86818757
attr_accessor :kms_key_version_name
86828758

8759+
# Gives a short summary of an evaluation, and links to the evaluation itself.
8760+
# Corresponds to the JSON property `latestEvaluation`
8761+
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationReference]
8762+
attr_accessor :latest_evaluation
8763+
86838764
# The resource name of the processor version. Format: `projects/`project`/
86848765
# locations/`location`/processors/`processor`/processorVersions/`
86858766
# processor_version``
@@ -8705,6 +8786,7 @@ def update!(**args)
87058786
@google_managed = args[:google_managed] if args.key?(:google_managed)
87068787
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
87078788
@kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
8789+
@latest_evaluation = args[:latest_evaluation] if args.key?(:latest_evaluation)
87088790
@name = args[:name] if args.key?(:name)
87098791
@state = args[:state] if args.key?(:state)
87108792
end

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.60.0"
19+
GEM_VERSION = "0.61.0"
2020

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

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

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

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
238238
include Google::Apis::Core::JsonObjectSupport
239239
end
240240

241+
class GoogleCloudDocumentaiUiv1beta3RevisionRef
242+
class Representation < Google::Apis::Core::JsonRepresentation; end
243+
244+
include Google::Apis::Core::JsonObjectSupport
245+
end
246+
241247
class GoogleCloudDocumentaiUiv1beta3RevisionReference
242248
class Representation < Google::Apis::Core::JsonRepresentation; end
243249

@@ -1426,6 +1432,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
14261432
include Google::Apis::Core::JsonObjectSupport
14271433
end
14281434

1435+
class GoogleCloudDocumentaiV1beta3EvaluationReference
1436+
class Representation < Google::Apis::Core::JsonRepresentation; end
1437+
1438+
include Google::Apis::Core::JsonObjectSupport
1439+
end
1440+
14291441
class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
14301442
class Representation < Google::Apis::Core::JsonRepresentation; end
14311443

@@ -1848,6 +1860,8 @@ class GoogleCloudDocumentaiUiv1beta3DocumentId
18481860
class Representation < Google::Apis::Core::JsonRepresentation
18491861
property :gcs_managed_doc_id, as: 'gcsManagedDocId', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId::Representation
18501862

1863+
property :revision_ref, as: 'revisionRef', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3RevisionRef, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3RevisionRef::Representation
1864+
18511865
property :revision_reference, as: 'revisionReference', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3RevisionReference, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3RevisionReference::Representation
18521866

18531867
end
@@ -2018,6 +2032,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
20182032
end
20192033
end
20202034

2035+
class GoogleCloudDocumentaiUiv1beta3RevisionRef
2036+
# @private
2037+
class Representation < Google::Apis::Core::JsonRepresentation
2038+
property :latest_processor_version, as: 'latestProcessorVersion'
2039+
property :revision_case, as: 'revisionCase'
2040+
property :revision_id, as: 'revisionId'
2041+
end
2042+
end
2043+
20212044
class GoogleCloudDocumentaiUiv1beta3RevisionReference
20222045
# @private
20232046
class Representation < Google::Apis::Core::JsonRepresentation
@@ -4156,6 +4179,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
41564179
end
41574180
end
41584181

4182+
class GoogleCloudDocumentaiV1beta3EvaluationReference
4183+
# @private
4184+
class Representation < Google::Apis::Core::JsonRepresentation
4185+
property :aggregate_metrics, as: 'aggregateMetrics', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationMetrics, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationMetrics::Representation
4186+
4187+
property :aggregate_metrics_exact, as: 'aggregateMetricsExact', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationMetrics, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationMetrics::Representation
4188+
4189+
property :evaluation, as: 'evaluation'
4190+
property :operation, as: 'operation'
4191+
end
4192+
end
4193+
41594194
class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
41604195
# @private
41614196
class Representation < Google::Apis::Core::JsonRepresentation
@@ -4329,6 +4364,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
43294364
property :google_managed, as: 'googleManaged'
43304365
property :kms_key_name, as: 'kmsKeyName'
43314366
property :kms_key_version_name, as: 'kmsKeyVersionName'
4367+
property :latest_evaluation, as: 'latestEvaluation', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationReference, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationReference::Representation
4368+
43324369
property :name, as: 'name'
43334370
property :state, as: 'state'
43344371
end

0 commit comments

Comments
 (0)