Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3RevisionRef

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
more...

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiUiv1beta3RevisionRef

Returns a new instance of GoogleCloudDocumentaiUiv1beta3RevisionRef.

[View source]

1108
1109
1110
# File 'lib/google/apis/documentai_v1/classes.rb', line 1108

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

Instance Attribute Details

#latest_processor_versionString

Reads the revision generated by the processor version. The format takes the full resource name of processor version. projects/project/locations/ location/processors/processor/processorVersions/processorVersion` Corresponds to the JSON propertylatestProcessorVersion`

Returns:

  • (String)

1096
1097
1098
# File 'lib/google/apis/documentai_v1/classes.rb', line 1096

def latest_processor_version
  @latest_processor_version
end

#revision_caseString

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

Returns:

  • (String)

1101
1102
1103
# File 'lib/google/apis/documentai_v1/classes.rb', line 1101

def revision_case
  @revision_case
end

#revision_idString

Reads the revision given by the id. Corresponds to the JSON property revisionId

Returns:

  • (String)

1106
1107
1108
# File 'lib/google/apis/documentai_v1/classes.rb', line 1106

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

1113
1114
1115
1116
1117
# File 'lib/google/apis/documentai_v1/classes.rb', line 1113

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