Class: Google::Apis::CloudsearchV1::Source

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

Defines sources for the suggest/search APIs.

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) ⇒ Source

Returns a new instance of Source.



4364
4365
4366
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4364

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

Instance Attribute Details

#nameString

Source name for content indexed by the Indexing API. Corresponds to the JSON property name

Returns:

  • (String)


4357
4358
4359
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4357

def name
  @name
end

#predefined_sourceString

Predefined content source for Google Apps. Corresponds to the JSON property predefinedSource

Returns:

  • (String)


4362
4363
4364
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4362

def predefined_source
  @predefined_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4369
4370
4371
4372
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4369

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