Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1GcsDocument

Inherits:
Object
  • Object
show all
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

Specifies a document stored on Cloud Storage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1GcsDocument

Returns a new instance of GoogleCloudDocumentaiV1GcsDocument.



6451
6452
6453
# File 'lib/google/apis/documentai_v1/classes.rb', line 6451

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#gcs_uriString

The Cloud Storage object uri. Corresponds to the JSON property gcsUri

Returns:

  • (String)


6444
6445
6446
# File 'lib/google/apis/documentai_v1/classes.rb', line 6444

def gcs_uri
  @gcs_uri
end

#mime_typeString

An IANA MIME type (RFC6838) of the content. Corresponds to the JSON property mimeType

Returns:

  • (String)


6449
6450
6451
# File 'lib/google/apis/documentai_v1/classes.rb', line 6449

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6456
6457
6458
6459
# File 'lib/google/apis/documentai_v1/classes.rb', line 6456

def update!(**args)
  @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end