Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3Dataset

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

A singleton resource under a Processor which configures a collection of documents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3Dataset

Returns a new instance of GoogleCloudDocumentaiV1beta3Dataset.

[View source]

10056
10057
10058
# File 'lib/google/apis/documentai_v1/classes.rb', line 10056

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

Instance Attribute Details

#document_warehouse_configGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig

Configuration specific to the Document AI Warehouse-based implementation. Corresponds to the JSON property documentWarehouseConfig


10028
10029
10030
# File 'lib/google/apis/documentai_v1/classes.rb', line 10028

def document_warehouse_config
  @document_warehouse_config
end

#gcs_managed_configGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetGcsManagedConfig

Configuration specific to the Cloud Storage-based implementation. Corresponds to the JSON property gcsManagedConfig


10033
10034
10035
# File 'lib/google/apis/documentai_v1/classes.rb', line 10033

def gcs_managed_config
  @gcs_managed_config
end

#nameString

Dataset resource name. Format: projects/project/locations/location/ processors/processor/dataset Corresponds to the JSON property name

Returns:

  • (String)

10039
10040
10041
# File 'lib/google/apis/documentai_v1/classes.rb', line 10039

def name
  @name
end

#spanner_indexing_configGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig

Configuration specific to spanner-based indexing. Corresponds to the JSON property spannerIndexingConfig


10044
10045
10046
# File 'lib/google/apis/documentai_v1/classes.rb', line 10044

def spanner_indexing_config
  @spanner_indexing_config
end

#stateString

Required. State of the dataset. Ignored when updating dataset. Corresponds to the JSON property state

Returns:

  • (String)

10049
10050
10051
# File 'lib/google/apis/documentai_v1/classes.rb', line 10049

def state
  @state
end

#unmanaged_dataset_configGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig

Configuration specific to an unmanaged dataset. Corresponds to the JSON property unmanagedDatasetConfig


10054
10055
10056
# File 'lib/google/apis/documentai_v1/classes.rb', line 10054

def unmanaged_dataset_config
  @unmanaged_dataset_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

10061
10062
10063
10064
10065
10066
10067
10068
# File 'lib/google/apis/documentai_v1/classes.rb', line 10061

def update!(**args)
  @document_warehouse_config = args[:document_warehouse_config] if args.key?(:document_warehouse_config)
  @gcs_managed_config = args[:gcs_managed_config] if args.key?(:gcs_managed_config)
  @name = args[:name] if args.key?(:name)
  @spanner_indexing_config = args[:spanner_indexing_config] if args.key?(:spanner_indexing_config)
  @state = args[:state] if args.key?(:state)
  @unmanaged_dataset_config = args[:unmanaged_dataset_config] if args.key?(:unmanaged_dataset_config)
end