Class: Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1WeightedSchemaProperty

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

Specifies the schema property name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContentwarehouseV1WeightedSchemaProperty

Returns a new instance of GoogleCloudContentwarehouseV1WeightedSchemaProperty.



4203
4204
4205
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4203

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

Instance Attribute Details

#document_schema_nameString

The document schema name. Corresponds to the JSON property documentSchemaName

Returns:

  • (String)


4196
4197
4198
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4196

def document_schema_name
  @document_schema_name
end

#property_namesArray<String>

The property definition names in the schema. Corresponds to the JSON property propertyNames

Returns:

  • (Array<String>)


4201
4202
4203
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4201

def property_names
  @property_names
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4208
4209
4210
4211
# File 'lib/google/apis/contentwarehouse_v1/classes.rb', line 4208

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