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

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

Defines sources for the suggest/search APIs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Source

Returns a new instance of Source.



4775
4776
4777
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4775

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)


4768
4769
4770
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4768

def name
  @name
end

#predefined_sourceString

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

Returns:

  • (String)


4773
4774
4775
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4773

def predefined_source
  @predefined_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4780
4781
4782
4783
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4780

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