Skip to content

Commit f1feb45

Browse files
feat: Automated regeneration of documentai v1 client (#10072)
Auto-created at 2022-06-14 11:54:01 +0000 using the toys pull request generator.
1 parent df29ea1 commit f1feb45

File tree

5 files changed

+327
-5
lines changed

5 files changed

+327
-5
lines changed

api_names_out.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134795,6 +134795,30 @@
134795134795
"/documentai:v1/GoogleCloudDocumentaiV1DocumentRevisionHumanReview": google_cloud_documentai_v1_document_revision_human_review
134796134796
"/documentai:v1/GoogleCloudDocumentaiV1DocumentRevisionHumanReview/state": state
134797134797
"/documentai:v1/GoogleCloudDocumentaiV1DocumentRevisionHumanReview/stateMessage": state_message
134798+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchema": google_cloud_documentai_v1_document_schema
134799+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchema/description": description
134800+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchema/displayName": display_name
134801+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchema/entityTypes": entity_types
134802+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchema/entityTypes/entity_type": entity_type
134803+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchema/metadata": metadata
134804+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityType": google_cloud_documentai_v1_document_schema_entity_type
134805+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityType/baseTypes": base_types
134806+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityType/baseTypes/base_type": base_type
134807+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityType/displayName": display_name
134808+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityType/enumValues": enum_values
134809+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityType/name": name
134810+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityType/properties": properties
134811+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityType/properties/property": property
134812+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues": google_cloud_documentai_v1_document_schema_entity_type_enum_values
134813+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues/values": values
134814+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues/values/value": value
134815+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty": google_cloud_documentai_v1_document_schema_entity_type_property
134816+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty/name": name
134817+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty/occurrenceType": occurrence_type
134818+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty/valueType": value_type
134819+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaMetadata": google_cloud_documentai_v1_document_schema_metadata
134820+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaMetadata/documentAllowMultipleLabels": document_allow_multiple_labels
134821+
"/documentai:v1/GoogleCloudDocumentaiV1DocumentSchemaMetadata/documentSplitter": document_splitter
134798134822
"/documentai:v1/GoogleCloudDocumentaiV1DocumentShardInfo": google_cloud_documentai_v1_document_shard_info
134799134823
"/documentai:v1/GoogleCloudDocumentaiV1DocumentShardInfo/shardCount": shard_count
134800134824
"/documentai:v1/GoogleCloudDocumentaiV1DocumentShardInfo/shardIndex": shard_index
@@ -134914,11 +134938,14 @@
134914134938
"/documentai:v1/GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata/commonMetadata": common_metadata
134915134939
"/documentai:v1/GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata/questionId": question_id
134916134940
"/documentai:v1/GoogleCloudDocumentaiV1ReviewDocumentRequest": google_cloud_documentai_v1_review_document_request
134941+
"/documentai:v1/GoogleCloudDocumentaiV1ReviewDocumentRequest/documentSchema": document_schema
134917134942
"/documentai:v1/GoogleCloudDocumentaiV1ReviewDocumentRequest/enableSchemaValidation": enable_schema_validation
134918134943
"/documentai:v1/GoogleCloudDocumentaiV1ReviewDocumentRequest/inlineDocument": inline_document
134919134944
"/documentai:v1/GoogleCloudDocumentaiV1ReviewDocumentRequest/priority": priority
134920134945
"/documentai:v1/GoogleCloudDocumentaiV1ReviewDocumentResponse": google_cloud_documentai_v1_review_document_response
134921134946
"/documentai:v1/GoogleCloudDocumentaiV1ReviewDocumentResponse/gcsDestination": gcs_destination
134947+
"/documentai:v1/GoogleCloudDocumentaiV1ReviewDocumentResponse/rejectionReason": rejection_reason
134948+
"/documentai:v1/GoogleCloudDocumentaiV1ReviewDocumentResponse/state": state
134922134949
"/documentai:v1/GoogleCloudDocumentaiV1Schema": google_cloud_documentai_v1_schema
134923134950
"/documentai:v1/GoogleCloudDocumentaiV1Schema/description": description
134924134951
"/documentai:v1/GoogleCloudDocumentaiV1Schema/displayName": display_name
@@ -135499,6 +135526,8 @@
135499135526
"/documentai:v1/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/updateTime": update_time
135500135527
"/documentai:v1/GoogleCloudDocumentaiV1beta3ReviewDocumentResponse": google_cloud_documentai_v1beta3_review_document_response
135501135528
"/documentai:v1/GoogleCloudDocumentaiV1beta3ReviewDocumentResponse/gcsDestination": gcs_destination
135529+
"/documentai:v1/GoogleCloudDocumentaiV1beta3ReviewDocumentResponse/rejectionReason": rejection_reason
135530+
"/documentai:v1/GoogleCloudDocumentaiV1beta3ReviewDocumentResponse/state": state
135502135531
"/documentai:v1/GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata": google_cloud_documentai_v1beta3_set_default_processor_version_metadata
135503135532
"/documentai:v1/GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata/commonMetadata": common_metadata
135504135533
"/documentai:v1/GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse": google_cloud_documentai_v1beta3_set_default_processor_version_response

generated/google-apis-documentai_v1/CHANGELOG.md

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

3+
### v0.40.0 (2022-06-14)
4+
5+
* Regenerated from discovery document revision 20220610
6+
* Regenerated using generator version 0.6.0
7+
38
### v0.39.0 (2022-06-08)
49

510
* Regenerated from discovery document revision 20220602

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

Lines changed: 205 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2546,6 +2546,177 @@ def update!(**args)
25462546
end
25472547
end
25482548

2549+
# The schema defines the output of the processed document by a processor.
2550+
class GoogleCloudDocumentaiV1DocumentSchema
2551+
include Google::Apis::Core::Hashable
2552+
2553+
# Description of the schema.
2554+
# Corresponds to the JSON property `description`
2555+
# @return [String]
2556+
attr_accessor :description
2557+
2558+
# Display name to show to users.
2559+
# Corresponds to the JSON property `displayName`
2560+
# @return [String]
2561+
attr_accessor :display_name
2562+
2563+
# Entity types of the schema.
2564+
# Corresponds to the JSON property `entityTypes`
2565+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityType>]
2566+
attr_accessor :entity_types
2567+
2568+
# Metadata for global schema behavior.
2569+
# Corresponds to the JSON property `metadata`
2570+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaMetadata]
2571+
attr_accessor :metadata
2572+
2573+
def initialize(**args)
2574+
update!(**args)
2575+
end
2576+
2577+
# Update properties of this object
2578+
def update!(**args)
2579+
@description = args[:description] if args.key?(:description)
2580+
@display_name = args[:display_name] if args.key?(:display_name)
2581+
@entity_types = args[:entity_types] if args.key?(:entity_types)
2582+
@metadata = args[:metadata] if args.key?(:metadata)
2583+
end
2584+
end
2585+
2586+
# EntityType is the wrapper of a label of the corresponding model with detailed
2587+
# attributes and limitations for entity-based processors. Multiple types can
2588+
# also compose a dependency tree to represent nested types.
2589+
class GoogleCloudDocumentaiV1DocumentSchemaEntityType
2590+
include Google::Apis::Core::Hashable
2591+
2592+
# The entity type that this type is derived from. For now, one and only one
2593+
# should be set.
2594+
# Corresponds to the JSON property `baseTypes`
2595+
# @return [Array<String>]
2596+
attr_accessor :base_types
2597+
2598+
# User defined name for the type.
2599+
# Corresponds to the JSON property `displayName`
2600+
# @return [String]
2601+
attr_accessor :display_name
2602+
2603+
# Defines the a list of enum values.
2604+
# Corresponds to the JSON property `enumValues`
2605+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues]
2606+
attr_accessor :enum_values
2607+
2608+
# Name of the type. It must be unique within the schema file and cannot be a '
2609+
# Common Type'. Besides that we use the following naming conventions: - *use
2610+
# snake_casing* - name matching is case-insensitive - Maximum 64 characters. -
2611+
# Must start with a letter. - Allowed characters: ASCII letters [a-z0-9_-]. (For
2612+
# backward compatibility internal infrastructure and tooling can handle any
2613+
# ascii character) - The '/' is sometimes used to denote a property of a type.
2614+
# For example line_item/amount. This convention is deprecated, but will still be
2615+
# honored for backward compatibility.
2616+
# Corresponds to the JSON property `name`
2617+
# @return [String]
2618+
attr_accessor :name
2619+
2620+
# Describing the nested structure, or composition of an entity.
2621+
# Corresponds to the JSON property `properties`
2622+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty>]
2623+
attr_accessor :properties
2624+
2625+
def initialize(**args)
2626+
update!(**args)
2627+
end
2628+
2629+
# Update properties of this object
2630+
def update!(**args)
2631+
@base_types = args[:base_types] if args.key?(:base_types)
2632+
@display_name = args[:display_name] if args.key?(:display_name)
2633+
@enum_values = args[:enum_values] if args.key?(:enum_values)
2634+
@name = args[:name] if args.key?(:name)
2635+
@properties = args[:properties] if args.key?(:properties)
2636+
end
2637+
end
2638+
2639+
# Defines the a list of enum values.
2640+
class GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues
2641+
include Google::Apis::Core::Hashable
2642+
2643+
# The individual values that this enum values type can include.
2644+
# Corresponds to the JSON property `values`
2645+
# @return [Array<String>]
2646+
attr_accessor :values
2647+
2648+
def initialize(**args)
2649+
update!(**args)
2650+
end
2651+
2652+
# Update properties of this object
2653+
def update!(**args)
2654+
@values = args[:values] if args.key?(:values)
2655+
end
2656+
end
2657+
2658+
# Defines properties that can be part of the entity type.
2659+
class GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty
2660+
include Google::Apis::Core::Hashable
2661+
2662+
# The name of the property. Follows the same guidelines as the EntityType name.
2663+
# Corresponds to the JSON property `name`
2664+
# @return [String]
2665+
attr_accessor :name
2666+
2667+
# Occurrence type limits the number of instances an entity type appears in the
2668+
# document.
2669+
# Corresponds to the JSON property `occurrenceType`
2670+
# @return [String]
2671+
attr_accessor :occurrence_type
2672+
2673+
# A reference to the value type of the property. This type is subject to the
2674+
# same conventions as the `Entity.base_types` field.
2675+
# Corresponds to the JSON property `valueType`
2676+
# @return [String]
2677+
attr_accessor :value_type
2678+
2679+
def initialize(**args)
2680+
update!(**args)
2681+
end
2682+
2683+
# Update properties of this object
2684+
def update!(**args)
2685+
@name = args[:name] if args.key?(:name)
2686+
@occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
2687+
@value_type = args[:value_type] if args.key?(:value_type)
2688+
end
2689+
end
2690+
2691+
# Metadata for global schema behavior.
2692+
class GoogleCloudDocumentaiV1DocumentSchemaMetadata
2693+
include Google::Apis::Core::Hashable
2694+
2695+
# If true, on a given page, there can be multiple `document` annotations
2696+
# covering it.
2697+
# Corresponds to the JSON property `documentAllowMultipleLabels`
2698+
# @return [Boolean]
2699+
attr_accessor :document_allow_multiple_labels
2700+
alias_method :document_allow_multiple_labels?, :document_allow_multiple_labels
2701+
2702+
# If true, a `document` entity type can be applied to subdocument ( splitting).
2703+
# Otherwise, it can only be applied to the entire document (classification).
2704+
# Corresponds to the JSON property `documentSplitter`
2705+
# @return [Boolean]
2706+
attr_accessor :document_splitter
2707+
alias_method :document_splitter?, :document_splitter
2708+
2709+
def initialize(**args)
2710+
update!(**args)
2711+
end
2712+
2713+
# Update properties of this object
2714+
def update!(**args)
2715+
@document_allow_multiple_labels = args[:document_allow_multiple_labels] if args.key?(:document_allow_multiple_labels)
2716+
@document_splitter = args[:document_splitter] if args.key?(:document_splitter)
2717+
end
2718+
end
2719+
25492720
# For a large document, sharding may be performed to produce several document
25502721
# shards. Each document shard contains this field to detail which shard it is.
25512722
class GoogleCloudDocumentaiV1DocumentShardInfo
@@ -3429,6 +3600,11 @@ def update!(**args)
34293600
class GoogleCloudDocumentaiV1ReviewDocumentRequest
34303601
include Google::Apis::Core::Hashable
34313602

3603+
# The schema defines the output of the processed document by a processor.
3604+
# Corresponds to the JSON property `documentSchema`
3605+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema]
3606+
attr_accessor :document_schema
3607+
34323608
# Whether the validation should be performed on the ad-hoc review request.
34333609
# Corresponds to the JSON property `enableSchemaValidation`
34343610
# @return [Boolean]
@@ -3454,6 +3630,7 @@ def initialize(**args)
34543630

34553631
# Update properties of this object
34563632
def update!(**args)
3633+
@document_schema = args[:document_schema] if args.key?(:document_schema)
34573634
@enable_schema_validation = args[:enable_schema_validation] if args.key?(:enable_schema_validation)
34583635
@inline_document = args[:inline_document] if args.key?(:inline_document)
34593636
@priority = args[:priority] if args.key?(:priority)
@@ -3464,18 +3641,31 @@ def update!(**args)
34643641
class GoogleCloudDocumentaiV1ReviewDocumentResponse
34653642
include Google::Apis::Core::Hashable
34663643

3467-
# The Cloud Storage uri for the human reviewed document.
3644+
# The Cloud Storage uri for the human reviewed document if the review is
3645+
# succeeded.
34683646
# Corresponds to the JSON property `gcsDestination`
34693647
# @return [String]
34703648
attr_accessor :gcs_destination
34713649

3650+
# The reason why the review is rejected by reviewer.
3651+
# Corresponds to the JSON property `rejectionReason`
3652+
# @return [String]
3653+
attr_accessor :rejection_reason
3654+
3655+
# The state of the review operation.
3656+
# Corresponds to the JSON property `state`
3657+
# @return [String]
3658+
attr_accessor :state
3659+
34723660
def initialize(**args)
34733661
update!(**args)
34743662
end
34753663

34763664
# Update properties of this object
34773665
def update!(**args)
34783666
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
3667+
@rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason)
3668+
@state = args[:state] if args.key?(:state)
34793669
end
34803670
end
34813671

@@ -7621,18 +7811,31 @@ def update!(**args)
76217811
class GoogleCloudDocumentaiV1beta3ReviewDocumentResponse
76227812
include Google::Apis::Core::Hashable
76237813

7624-
# The Cloud Storage uri for the human reviewed document.
7814+
# The Cloud Storage uri for the human reviewed document if the review is
7815+
# succeeded.
76257816
# Corresponds to the JSON property `gcsDestination`
76267817
# @return [String]
76277818
attr_accessor :gcs_destination
76287819

7820+
# The reason why the review is rejected by reviewer.
7821+
# Corresponds to the JSON property `rejectionReason`
7822+
# @return [String]
7823+
attr_accessor :rejection_reason
7824+
7825+
# The state of the review operation.
7826+
# Corresponds to the JSON property `state`
7827+
# @return [String]
7828+
attr_accessor :state
7829+
76297830
def initialize(**args)
76307831
update!(**args)
76317832
end
76327833

76337834
# Update properties of this object
76347835
def update!(**args)
76357836
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
7837+
@rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason)
7838+
@state = args[:state] if args.key?(:state)
76367839
end
76377840
end
76387841

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DocumentaiV1
1818
# Version of the google-apis-documentai_v1 gem
19-
GEM_VERSION = "0.39.0"
19+
GEM_VERSION = "0.40.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.5.0"
22+
GENERATOR_VERSION = "0.6.0"
2323

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

0 commit comments

Comments
 (0)