Class: Google::Apis::CloudsearchV1::ObjectDefinition
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ObjectDefinition
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
The definition for an object within a data source.
Instance Attribute Summary collapse
-
#name ⇒ String
Name for the object, which then defines its type.
-
#options ⇒ Google::Apis::CloudsearchV1::ObjectOptions
The options for an object.
-
#property_definitions ⇒ Array<Google::Apis::CloudsearchV1::PropertyDefinition>
The property definitions for the object.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ObjectDefinition
constructor
A new instance of ObjectDefinition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ObjectDefinition
Returns a new instance of ObjectDefinition
2615 2616 2617 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2615 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
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
2602 2603 2604 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2602 def name @name end |
#options ⇒ Google::Apis::CloudsearchV1::ObjectOptions
The options for an object.
Corresponds to the JSON property options
2607 2608 2609 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2607 def @options end |
#property_definitions ⇒ Array<Google::Apis::CloudsearchV1::PropertyDefinition>
The property definitions for the object.
The maximum number of elements is 1000.
Corresponds to the JSON property propertyDefinitions
2613 2614 2615 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2613 def property_definitions @property_definitions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2620 2621 2622 2623 2624 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2620 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 |