Class: Google::Apis::CloudsearchV1::Schema

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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 schema definition for a data source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Schema

Returns a new instance of Schema



3474
3475
3476
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3474

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

Instance Attribute Details

#object_definitionsArray<Google::Apis::CloudsearchV1::ObjectDefinition>

The list of top-level objects for the data source. The maximum number of elements is 10. Corresponds to the JSON property objectDefinitions



3465
3466
3467
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3465

def object_definitions
  @object_definitions
end

#operation_idsArray<String>

IDs of the Long Running Operations (LROs) currently running for this schema. After modifying the schema, wait for opeations to complete before indexing additional content. Corresponds to the JSON property operationIds

Returns:

  • (Array<String>)


3472
3473
3474
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3472

def operation_ids
  @operation_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3479
3480
3481
3482
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3479

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