Class: Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource

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

Overview

The schema source information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource

Returns a new instance of GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSource.



2840
2841
2842
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 2840

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

Instance Attribute Details

#nameString

The schema name in the source. Corresponds to the JSON property name

Returns:

  • (String)


2833
2834
2835
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 2833

def name
  @name
end

#processor_typeString

The Doc AI processor type name. Corresponds to the JSON property processorType

Returns:

  • (String)


2838
2839
2840
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 2838

def processor_type
  @processor_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2845
2846
2847
2848
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 2845

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