diff --git a/api_names_out.yaml b/api_names_out.yaml index 3e1cd4f79..d3cc4b39d 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -102002,6 +102002,7 @@ "/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadata/updateTime": update_time "/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus": google_cloud_documentai_v1_batch_process_metadata_individual_process_status "/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus/humanReviewOperation": human_review_operation +"/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus/humanReviewStatus": human_review_status "/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus/inputGcsSource": input_gcs_source "/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus/outputGcsDestination": output_gcs_destination "/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus/status": status @@ -102011,6 +102012,10 @@ "/documentai:v1beta2/GoogleCloudDocumentaiV1CommonOperationMetadata/state": state "/documentai:v1beta2/GoogleCloudDocumentaiV1CommonOperationMetadata/stateMessage": state_message "/documentai:v1beta2/GoogleCloudDocumentaiV1CommonOperationMetadata/updateTime": update_time +"/documentai:v1beta2/GoogleCloudDocumentaiV1HumanReviewStatus": google_cloud_documentai_v1_human_review_status +"/documentai:v1beta2/GoogleCloudDocumentaiV1HumanReviewStatus/humanReviewOperation": human_review_operation +"/documentai:v1beta2/GoogleCloudDocumentaiV1HumanReviewStatus/state": state +"/documentai:v1beta2/GoogleCloudDocumentaiV1HumanReviewStatus/stateMessage": state_message "/documentai:v1beta2/GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata": google_cloud_documentai_v1_review_document_operation_metadata "/documentai:v1beta2/GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata/commonMetadata": common_metadata "/documentai:v1beta2/GoogleCloudDocumentaiV1ReviewDocumentResponse": google_cloud_documentai_v1_review_document_response @@ -102541,6 +102546,7 @@ "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadata/updateTime": update_time "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus": google_cloud_documentai_v1beta3_batch_process_metadata_individual_process_status "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/humanReviewOperation": human_review_operation +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/humanReviewStatus": human_review_status "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/inputGcsSource": input_gcs_source "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/outputGcsDestination": output_gcs_destination "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/status": status @@ -102550,6 +102556,10 @@ "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3CommonOperationMetadata/state": state "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3CommonOperationMetadata/stateMessage": state_message "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3CommonOperationMetadata/updateTime": update_time +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3HumanReviewStatus": google_cloud_documentai_v1beta3_human_review_status +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3HumanReviewStatus/humanReviewOperation": human_review_operation +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3HumanReviewStatus/state": state +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3HumanReviewStatus/stateMessage": state_message "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata": google_cloud_documentai_v1beta3_review_document_operation_metadata "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/commonMetadata": common_metadata "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/createTime": create_time diff --git a/generated/google-apis-documentai_v1beta2/CHANGELOG.md b/generated/google-apis-documentai_v1beta2/CHANGELOG.md index 4c6a3ece7..621b8617a 100644 --- a/generated/google-apis-documentai_v1beta2/CHANGELOG.md +++ b/generated/google-apis-documentai_v1beta2/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-documentai_v1beta2 +### v0.2.0 (2021-01-19) + +* Regenerated from discovery document revision 20210118 + ### v0.1.0 (2021-01-07) * Regenerated from discovery document revision 20201231 diff --git a/generated/google-apis-documentai_v1beta2/lib/google/apis/documentai_v1beta2/classes.rb b/generated/google-apis-documentai_v1beta2/lib/google/apis/documentai_v1beta2/classes.rb index 59bafc367..0abf8d474 100644 --- a/generated/google-apis-documentai_v1beta2/lib/google/apis/documentai_v1beta2/classes.rb +++ b/generated/google-apis-documentai_v1beta2/lib/google/apis/documentai_v1beta2/classes.rb @@ -532,13 +532,10 @@ module Google class GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus include Google::Apis::Core::Hashable - # The name of the operation triggered by the processed document. If the human - # review process is not triggered, this field will be empty. It has the same - # response type and metadata as the long running operation returned by - # ReviewDocument method. - # Corresponds to the JSON property `humanReviewOperation` - # @return [String] - attr_accessor :human_review_operation + # The status of human review on a processed document. + # Corresponds to the JSON property `humanReviewStatus` + # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1HumanReviewStatus] + attr_accessor :human_review_status # The source of the document, same as the [input_gcs_source] field in the # request when the batch process started. The batch process is started by take @@ -570,7 +567,7 @@ module Google # Update properties of this object def update!(**args) - @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation) + @human_review_status = args[:human_review_status] if args.key?(:human_review_status) @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source) @output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination) @status = args[:status] if args.key?(:status) @@ -627,6 +624,39 @@ module Google end end + # The status of human review on a processed document. + class GoogleCloudDocumentaiV1HumanReviewStatus + include Google::Apis::Core::Hashable + + # The name of the operation triggered by the processed document. Non-empty only + # when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type + # and metadata as the long running operation returned by [ReviewDocument] method. + # Corresponds to the JSON property `humanReviewOperation` + # @return [String] + attr_accessor :human_review_operation + + # The state of human review on the processing request. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the human review state. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + end + end + # The long running operation metadata for review document method. class GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata include Google::Apis::Core::Hashable @@ -4442,11 +4472,16 @@ module Google # The name of the operation triggered by the processed document. If the human # review process is not triggered, this field will be empty. It has the same # response type and metadata as the long running operation returned by - # ReviewDocument method. + # ReviewDocument method. . # Corresponds to the JSON property `humanReviewOperation` # @return [String] attr_accessor :human_review_operation + # The status of human review on a processed document. + # Corresponds to the JSON property `humanReviewStatus` + # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3HumanReviewStatus] + attr_accessor :human_review_status + # The source of the document, same as the [input_gcs_source] field in the # request when the batch process started. The batch process is started by take # snapshot of that document, since a user can move or change that document @@ -4478,6 +4513,7 @@ module Google # Update properties of this object def update!(**args) @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation) + @human_review_status = args[:human_review_status] if args.key?(:human_review_status) @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source) @output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination) @status = args[:status] if args.key?(:status) @@ -4534,6 +4570,39 @@ module Google end end + # The status of human review on a processed document. + class GoogleCloudDocumentaiV1beta3HumanReviewStatus + include Google::Apis::Core::Hashable + + # The name of the operation triggered by the processed document. Non-empty only + # when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has the same response type + # and metadata as the long running operation returned by [ReviewDocument] method. + # Corresponds to the JSON property `humanReviewOperation` + # @return [String] + attr_accessor :human_review_operation + + # The state of human review on the processing request. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the human review state. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + end + end + # The long running operation metadata for review document method. class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata include Google::Apis::Core::Hashable diff --git a/generated/google-apis-documentai_v1beta2/lib/google/apis/documentai_v1beta2/gem_version.rb b/generated/google-apis-documentai_v1beta2/lib/google/apis/documentai_v1beta2/gem_version.rb index 1978e181c..69d004c57 100644 --- a/generated/google-apis-documentai_v1beta2/lib/google/apis/documentai_v1beta2/gem_version.rb +++ b/generated/google-apis-documentai_v1beta2/lib/google/apis/documentai_v1beta2/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module DocumentaiV1beta2 # Version of the google-apis-documentai_v1beta2 gem - GEM_VERSION = "0.1.0" + GEM_VERSION = "0.2.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.1.1" # Revision of the discovery document this client was generated from - REVISION = "20201231" + REVISION = "20210118" end end end diff --git a/generated/google-apis-documentai_v1beta2/lib/google/apis/documentai_v1beta2/representations.rb b/generated/google-apis-documentai_v1beta2/lib/google/apis/documentai_v1beta2/representations.rb index facc84518..f8d8f1b95 100644 --- a/generated/google-apis-documentai_v1beta2/lib/google/apis/documentai_v1beta2/representations.rb +++ b/generated/google-apis-documentai_v1beta2/lib/google/apis/documentai_v1beta2/representations.rb @@ -166,6 +166,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDocumentaiV1HumanReviewStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -778,6 +784,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDocumentaiV1beta3HumanReviewStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1024,7 +1036,8 @@ module Google class GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus # @private class Representation < Google::Apis::Core::JsonRepresentation - property :human_review_operation, as: 'humanReviewOperation' + property :human_review_status, as: 'humanReviewStatus', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1HumanReviewStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1HumanReviewStatus::Representation + property :input_gcs_source, as: 'inputGcsSource' property :output_gcs_destination, as: 'outputGcsDestination' property :status, as: 'status', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation @@ -1048,6 +1061,15 @@ module Google end end + class GoogleCloudDocumentaiV1HumanReviewStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :human_review_operation, as: 'humanReviewOperation' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + end + end + class GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2161,6 +2183,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :human_review_operation, as: 'humanReviewOperation' + property :human_review_status, as: 'humanReviewStatus', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3HumanReviewStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3HumanReviewStatus::Representation + property :input_gcs_source, as: 'inputGcsSource' property :output_gcs_destination, as: 'outputGcsDestination' property :status, as: 'status', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation @@ -2184,6 +2208,15 @@ module Google end end + class GoogleCloudDocumentaiV1beta3HumanReviewStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :human_review_operation, as: 'humanReviewOperation' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + end + end + class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-documentai_v1beta2/synth.metadata b/generated/google-apis-documentai_v1beta2/synth.metadata index 535d0881c..93b5f7f9f 100644 --- a/generated/google-apis-documentai_v1beta2/synth.metadata +++ b/generated/google-apis-documentai_v1beta2/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "6de8b4ee653db67c0e789203767a89b32fcf8a51" + "sha": "25824f2512fa96d4d90e220ac038c9b3b2a6a0d1" } } ]