Class: Google::Apis::CloudsearchV1::ObjectDefinition

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

Overview

The definition for an object within a data source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ObjectDefinition

Returns a new instance of ObjectDefinition.



3149
3150
3151
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3149

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

Instance Attribute Details

#nameString

Name for the object, which then defines its type. Item indexing requests should set the objectType field equal to this value. For example, if name is Document, then indexing requests for items of type Document should set objectType equal to Document. Each object definition must be uniquely named within a schema. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The maximum length is 256 characters. Corresponds to the JSON property name

Returns:

  • (String)


3136
3137
3138
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3136

def name
  @name
end

#optionsGoogle::Apis::CloudsearchV1::ObjectOptions

The options for an object. Corresponds to the JSON property options



3141
3142
3143
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3141

def options
  @options
end

#property_definitionsArray<Google::Apis::CloudsearchV1::PropertyDefinition>

The property definitions for the object. The maximum number of elements is 1000. Corresponds to the JSON property propertyDefinitions



3147
3148
3149
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3147

def property_definitions
  @property_definitions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3154
3155
3156
3157
3158
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3154

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