Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3RevisionReference

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/documentai_v1beta2/classes.rb,
lib/google/apis/documentai_v1beta2/representations.rb,
lib/google/apis/documentai_v1beta2/representations.rb

Overview

The revision reference specifies which revision on the document to read.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiUiv1beta3RevisionReference

Returns a new instance of GoogleCloudDocumentaiUiv1beta3RevisionReference.



715
716
717
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 715

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

Instance Attribute Details

#latest_processor_versionString

Read the revision generated by the processor version, returns error if it does not exist. Corresponds to the JSON property latestProcessorVersion

Returns:

  • (String)


703
704
705
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 703

def latest_processor_version
  @latest_processor_version
end

#revision_caseString

Read the revision by the predefined case. Corresponds to the JSON property revisionCase

Returns:

  • (String)


708
709
710
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 708

def revision_case
  @revision_case
end

#revision_idString

Read the revision given by the id, returns error if it does not exist. Corresponds to the JSON property revisionId

Returns:

  • (String)


713
714
715
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 713

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



720
721
722
723
724
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 720

def update!(**args)
  @latest_processor_version = args[:latest_processor_version] if args.key?(:latest_processor_version)
  @revision_case = args[:revision_case] if args.key?(:revision_case)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
end