Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1InputConfig
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1InputConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/documentai_v1/classes.rb,
lib/google/apis/documentai_v1/representations.rb,
lib/google/apis/documentai_v1/representations.rb
Overview
The desired input location and metadata.
Instance Attribute Summary collapse
-
#gcs_source ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1GcsSource
The Google Cloud Storage location where the input file will be read from.
-
#mime_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta1InputConfig
constructor
A new instance of GoogleCloudDocumentaiV1beta1InputConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta1InputConfig
Returns a new instance of GoogleCloudDocumentaiV1beta1InputConfig.
4923 4924 4925 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 4923 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcs_source ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1GcsSource
The Google Cloud Storage location where the input file will be read from.
Corresponds to the JSON property gcsSource
4913 4914 4915 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 4913 def gcs_source @gcs_source end |
#mime_type ⇒ String
Required. Mimetype of the input. Current supported mimetypes are application/
pdf, image/tiff, and image/gif. In addition, application/json type is
supported for requests with ProcessDocumentRequest.automl_params field set.
The JSON file needs to be in Document format.
Corresponds to the JSON property mimeType
4921 4922 4923 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 4921 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4928 4929 4930 4931 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 4928 def update!(**args) @gcs_source = args[:gcs_source] if args.key?(:gcs_source) @mime_type = args[:mime_type] if args.key?(:mime_type) end |