feat: Automated regeneration of documentai v1beta2 client (#2238)

This commit is contained in:
Yoshi Automation Bot 2021-01-07 10:15:46 -08:00 committed by GitHub
parent a403d51649
commit 309a845f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 650 additions and 39 deletions

View File

@ -101837,6 +101837,29 @@
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata/stateMessage": state_message "/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata/stateMessage": state_message
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata/updateTime": update_time "/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata/updateTime": update_time
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse": google_cloud_documentai_uiv1beta3_enable_processor_response "/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse": google_cloud_documentai_uiv1beta3_enable_processor_response
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3ProcessorVersion": google_cloud_documentai_uiv1beta3_processor_version
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3ProcessorVersion/createTime": create_time
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3ProcessorVersion/displayName": display_name
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3ProcessorVersion/name": name
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3ProcessorVersion/schema": schema
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3ProcessorVersion/state": state
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3Schema": google_cloud_documentai_uiv1beta3_schema
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3Schema/description": description
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3Schema/displayName": display_name
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3Schema/entityTypes": entity_types
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3Schema/entityTypes/entity_type": entity_type
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3SchemaEntityType": google_cloud_documentai_uiv1beta3_schema_entity_type
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3SchemaEntityType/baseType": base_type
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3SchemaEntityType/description": description
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3SchemaEntityType/occurrenceType": occurrence_type
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3SchemaEntityType/properties": properties
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3SchemaEntityType/properties/property": property
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3SchemaEntityType/source": source
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3SchemaEntityType/type": type
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata": google_cloud_documentai_uiv1beta3_train_processor_version_metadata
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata/commonMetadata": common_metadata
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse": google_cloud_documentai_uiv1beta3_train_processor_version_response
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse/processorVersion": processor_version
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata": google_cloud_documentai_uiv1beta3_undeploy_processor_version_metadata "/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata": google_cloud_documentai_uiv1beta3_undeploy_processor_version_metadata
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata/commonMetadata": common_metadata "/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata/commonMetadata": common_metadata
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse": google_cloud_documentai_uiv1beta3_undeploy_processor_version_response "/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse": google_cloud_documentai_uiv1beta3_undeploy_processor_version_response
@ -101848,6 +101871,28 @@
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/state": state "/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/state": state
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/stateMessage": state_message "/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/stateMessage": state_message
"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/updateTime": update_time "/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/updateTime": update_time
"/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadata": google_cloud_documentai_v1_batch_process_metadata
"/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadata/createTime": create_time
"/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadata/individualProcessStatuses": individual_process_statuses
"/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadata/individualProcessStatuses/individual_process_status": individual_process_status
"/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadata/state": state
"/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadata/stateMessage": state_message
"/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/inputGcsSource": input_gcs_source
"/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus/outputGcsDestination": output_gcs_destination
"/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus/status": status
"/documentai:v1beta2/GoogleCloudDocumentaiV1BatchProcessResponse": google_cloud_documentai_v1_batch_process_response
"/documentai:v1beta2/GoogleCloudDocumentaiV1CommonOperationMetadata": google_cloud_documentai_v1_common_operation_metadata
"/documentai:v1beta2/GoogleCloudDocumentaiV1CommonOperationMetadata/createTime": create_time
"/documentai:v1beta2/GoogleCloudDocumentaiV1CommonOperationMetadata/state": state
"/documentai:v1beta2/GoogleCloudDocumentaiV1CommonOperationMetadata/stateMessage": state_message
"/documentai:v1beta2/GoogleCloudDocumentaiV1CommonOperationMetadata/updateTime": update_time
"/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
"/documentai:v1beta2/GoogleCloudDocumentaiV1ReviewDocumentResponse/gcsDestination": gcs_destination
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse": google_cloud_documentai_v1beta1_batch_process_documents_response "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse": google_cloud_documentai_v1beta1_batch_process_documents_response
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse/responses": responses "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse/responses": responses
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse/responses/response": response "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse/responses/response": response
@ -102378,7 +102423,13 @@
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/outputGcsDestination": output_gcs_destination "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/outputGcsDestination": output_gcs_destination
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/status": status "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/status": status
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessResponse": google_cloud_documentai_v1beta3_batch_process_response "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessResponse": google_cloud_documentai_v1beta3_batch_process_response
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3CommonOperationMetadata": google_cloud_documentai_v1beta3_common_operation_metadata
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3CommonOperationMetadata/createTime": create_time
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3CommonOperationMetadata/state": state
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3CommonOperationMetadata/stateMessage": state_message
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3CommonOperationMetadata/updateTime": update_time
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata": google_cloud_documentai_v1beta3_review_document_operation_metadata "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata": google_cloud_documentai_v1beta3_review_document_operation_metadata
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/commonMetadata": common_metadata
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/createTime": create_time "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/createTime": create_time
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/state": state "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/state": state
"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/stateMessage": state_message "/documentai:v1beta2/GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata/stateMessage": state_message

View File

@ -1,7 +1,7 @@
# Release history for google-apis-documentai_v1beta2 # Release history for google-apis-documentai_v1beta2
### v0.1.0 (2021-01-01) ### v0.1.0 (2021-01-07)
* Regenerated from discovery document revision 20201212 * Regenerated from discovery document revision 20201231
* Regenerated using generator version 0.1.0 * Regenerated using generator version 0.1.1

View File

@ -78,25 +78,6 @@ module Google
end end
end end
# The metadata that represents a processor version being created.
class GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata
include Google::Apis::Core::Hashable
# The common metadata for long running operations.
# Corresponds to the JSON property `commonMetadata`
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
attr_accessor :common_metadata
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
end
end
# The long running operation metadata for DeleteLabelerPool. # The long running operation metadata for DeleteLabelerPool.
class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -252,6 +233,186 @@ module Google
end end
end end
# A processor version is an implementation of a processor. Each processor can
# have multiple versions, pre-trained by Google internally or up-trained by the
# customer. At a time, a processor can only have one default version version. So
# the processor's behavior (when processing documents) is defined by a default
# version.
class GoogleCloudDocumentaiUiv1beta3ProcessorVersion
include Google::Apis::Core::Hashable
# The time the processor version was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The display name of the processor version.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# The resource name of the processor version. Format: projects/`project`/
# locations/`location`/processors/`processor`/processorVersions/`
# processor_version`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The schema defines the output of the processed document by a processor.
# Corresponds to the JSON property `schema`
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3Schema]
attr_accessor :schema
# The state of the processor version.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name)
@schema = args[:schema] if args.key?(:schema)
@state = args[:state] if args.key?(:state)
end
end
# The schema defines the output of the processed document by a processor.
class GoogleCloudDocumentaiUiv1beta3Schema
include Google::Apis::Core::Hashable
# Description of the schema.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Display name to show to users.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Entity types of the schema.
# Corresponds to the JSON property `entityTypes`
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType>]
attr_accessor :entity_types
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@entity_types = args[:entity_types] if args.key?(:entity_types)
end
end
# EntityType is the wrapper of a label of the corresponding model with detailed
# attributes and limitations for entity-based processors. Multiple types can
# also compose a dependency tree to represent nested types.
class GoogleCloudDocumentaiUiv1beta3SchemaEntityType
include Google::Apis::Core::Hashable
# Type of the entity. It can be either a value type (such as "text", "numeric", "
# date" and "address"), or an object type which may contain nested entities (
# such as "document" and "table").
# Corresponds to the JSON property `baseType`
# @return [String]
attr_accessor :base_type
# Description of the entity type.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Occurrence type limits the number of times an entity type appears in the
# document.
# Corresponds to the JSON property `occurrenceType`
# @return [String]
attr_accessor :occurrence_type
# Describing the nested structure of an entity. An EntityType may consist of
# several other EntityTypes. For example, in a document there can be an
# EntityType 'ID', which consists of EntityType 'name' and 'address', with
# corresponding attributes, such as TEXT for both types and ONCE for occurrence
# types.
# Corresponds to the JSON property `properties`
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType>]
attr_accessor :properties
# Source of this entity type.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
# Name of the type. It must be unique within the set of same level types.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@base_type = args[:base_type] if args.key?(:base_type)
@description = args[:description] if args.key?(:description)
@occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
@properties = args[:properties] if args.key?(:properties)
@source = args[:source] if args.key?(:source)
@type = args[:type] if args.key?(:type)
end
end
# The metadata that represents a processor version being created.
class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
include Google::Apis::Core::Hashable
# The common metadata for long running operations.
# Corresponds to the JSON property `commonMetadata`
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
attr_accessor :common_metadata
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
end
end
# The response for the TrainProcessorVersion method.
class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
include Google::Apis::Core::Hashable
# A processor version is an implementation of a processor. Each processor can
# have multiple versions, pre-trained by Google internally or up-trained by the
# customer. At a time, a processor can only have one default version version. So
# the processor's behavior (when processing documents) is defined by a default
# version.
# Corresponds to the JSON property `processorVersion`
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3ProcessorVersion]
attr_accessor :processor_version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@processor_version = args[:processor_version] if args.key?(:processor_version)
end
end
# The long running operation metadata for the undeploy processor version method. # The long running operation metadata for the undeploy processor version method.
class GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata class GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -323,6 +484,187 @@ module Google
end end
end end
# The long running operation metadata for batch process method.
class GoogleCloudDocumentaiV1BatchProcessMetadata
include Google::Apis::Core::Hashable
# The creation time of the operation.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The list of response details of each document.
# Corresponds to the JSON property `individualProcessStatuses`
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus>]
attr_accessor :individual_process_statuses
# The state of the current batch processing.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# A message providing more details about the current state of processing. For
# example, the error message if the operation is failed.
# Corresponds to the JSON property `stateMessage`
# @return [String]
attr_accessor :state_message
# The last update time of the operation.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@individual_process_statuses = args[:individual_process_statuses] if args.key?(:individual_process_statuses)
@state = args[:state] if args.key?(:state)
@state_message = args[:state_message] if args.key?(:state_message)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# The status of a each individual document in the batch process.
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 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
# during the process.
# Corresponds to the JSON property `inputGcsSource`
# @return [String]
attr_accessor :input_gcs_source
# The output_gcs_destination (in the request as 'output_gcs_destination') of the
# processed document if it was successful, otherwise empty.
# Corresponds to the JSON property `outputGcsDestination`
# @return [String]
attr_accessor :output_gcs_destination
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# data: error code, error message, and error details. You can find out more
# about this error model and how to work with it in the [API Design Guide](https:
# //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `status`
# @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus]
attr_accessor :status
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)
@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)
end
end
# Response message for batch process document method.
class GoogleCloudDocumentaiV1BatchProcessResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# The common metadata for long running operations.
class GoogleCloudDocumentaiV1CommonOperationMetadata
include Google::Apis::Core::Hashable
# The creation time of the operation.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The state of the operation.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# A message providing more details about the current state of processing.
# Corresponds to the JSON property `stateMessage`
# @return [String]
attr_accessor :state_message
# The last update time of the operation.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@state = args[:state] if args.key?(:state)
@state_message = args[:state_message] if args.key?(:state_message)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# The long running operation metadata for review document method.
class GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata
include Google::Apis::Core::Hashable
# The common metadata for long running operations.
# Corresponds to the JSON property `commonMetadata`
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1CommonOperationMetadata]
attr_accessor :common_metadata
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
end
end
# Response message for review document method.
class GoogleCloudDocumentaiV1ReviewDocumentResponse
include Google::Apis::Core::Hashable
# The Cloud Storage uri for the human reviewed document.
# Corresponds to the JSON property `gcsDestination`
# @return [String]
attr_accessor :gcs_destination
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
end
end
# Response to an batch document processing request. This is returned in the LRO # Response to an batch document processing request. This is returned in the LRO
# Operation after the operation is complete. # Operation after the operation is complete.
class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
@ -4155,10 +4497,52 @@ module Google
end end
end end
# The common metadata for long running operations.
class GoogleCloudDocumentaiV1beta3CommonOperationMetadata
include Google::Apis::Core::Hashable
# The creation time of the operation.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The state of the operation.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# A message providing more details about the current state of processing.
# Corresponds to the JSON property `stateMessage`
# @return [String]
attr_accessor :state_message
# The last update time of the operation.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@state = args[:state] if args.key?(:state)
@state_message = args[:state_message] if args.key?(:state_message)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# The long running operation metadata for review document method. # The long running operation metadata for review document method.
class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The common metadata for long running operations.
# Corresponds to the JSON property `commonMetadata`
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
attr_accessor :common_metadata
# The creation time of the operation. # The creation time of the operation.
# Corresponds to the JSON property `createTime` # Corresponds to the JSON property `createTime`
# @return [String] # @return [String]
@ -4186,6 +4570,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
@create_time = args[:create_time] if args.key?(:create_time) @create_time = args[:create_time] if args.key?(:create_time)
@state = args[:state] if args.key?(:state) @state = args[:state] if args.key?(:state)
@state_message = args[:state_message] if args.key?(:state_message) @state_message = args[:state_message] if args.key?(:state_message)

View File

@ -19,10 +19,10 @@ module Google
GEM_VERSION = "0.1.0" GEM_VERSION = "0.1.0"
# Version of the code generator used to generate this client # Version of the code generator used to generate this client
GENERATOR_VERSION = "0.1.0" GENERATOR_VERSION = "0.1.1"
# Revision of the discovery document this client was generated from # Revision of the discovery document this client was generated from
REVISION = "20201212" REVISION = "20201231"
end end
end end
end end

View File

@ -34,12 +34,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -94,6 +88,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDocumentaiUiv1beta3ProcessorVersion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDocumentaiUiv1beta3Schema
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDocumentaiUiv1beta3SchemaEntityType
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata class GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -118,6 +142,42 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDocumentaiV1BatchProcessMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDocumentaiV1BatchProcessResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDocumentaiV1CommonOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDocumentaiV1ReviewDocumentResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -712,6 +772,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDocumentaiV1beta3CommonOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -796,14 +862,6 @@ module Google
end end
end end
class GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
end
end
class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -870,6 +928,57 @@ module Google
end end
end end
class GoogleCloudDocumentaiUiv1beta3ProcessorVersion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :display_name, as: 'displayName'
property :name, as: 'name'
property :schema, as: 'schema', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3Schema, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3Schema::Representation
property :state, as: 'state'
end
end
class GoogleCloudDocumentaiUiv1beta3Schema
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :display_name, as: 'displayName'
collection :entity_types, as: 'entityTypes', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType::Representation
end
end
class GoogleCloudDocumentaiUiv1beta3SchemaEntityType
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :base_type, as: 'baseType'
property :description, as: 'description'
property :occurrence_type, as: 'occurrenceType'
collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3SchemaEntityType::Representation
property :source, as: 'source'
property :type, as: 'type'
end
end
class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
end
end
class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :processor_version, as: 'processorVersion', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3ProcessorVersion, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3ProcessorVersion::Representation
end
end
class GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata class GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -900,6 +1009,60 @@ module Google
end end
end end
class GoogleCloudDocumentaiV1BatchProcessMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
collection :individual_process_statuses, as: 'individualProcessStatuses', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus::Representation
property :state, as: 'state'
property :state_message, as: 'stateMessage'
property :update_time, as: 'updateTime'
end
end
class GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :human_review_operation, as: 'humanReviewOperation'
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
end
end
class GoogleCloudDocumentaiV1BatchProcessResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudDocumentaiV1CommonOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :state, as: 'state'
property :state_message, as: 'stateMessage'
property :update_time, as: 'updateTime'
end
end
class GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1CommonOperationMetadata::Representation
end
end
class GoogleCloudDocumentaiV1ReviewDocumentResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gcs_destination, as: 'gcsDestination'
end
end
class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2011,9 +2174,21 @@ module Google
end end
end end
class GoogleCloudDocumentaiV1beta3CommonOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :state, as: 'state'
property :state_message, as: 'stateMessage'
property :update_time, as: 'updateTime'
end
end
class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
property :create_time, as: 'createTime' property :create_time, as: 'createTime'
property :state, as: 'state' property :state, as: 'state'
property :state_message, as: 'stateMessage' property :state_message, as: 'stateMessage'

View File

@ -4,7 +4,7 @@
"git": { "git": {
"name": ".", "name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git", "remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "5f08ea57c550dd2cf7605b5cf47528bc86cbe236" "sha": "6de8b4ee653db67c0e789203767a89b32fcf8a51"
} }
} }
] ]