Class: Google::Apis::CloudsearchV1::Source
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Source
- 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
-
#name ⇒ String
Source name for content indexed by the Indexing API.
-
#predefined_source ⇒ String
Predefined content source for Google Apps.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Source
constructor
A new instance of Source.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Source
Returns a new instance of Source.
18563 18564 18565 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18563 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Source name for content indexed by the Indexing API.
Corresponds to the JSON property name
18556 18557 18558 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18556 def name @name end |
#predefined_source ⇒ String
Predefined content source for Google Apps.
Corresponds to the JSON property predefinedSource
18561 18562 18563 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18561 def predefined_source @predefined_source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18568 18569 18570 18571 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18568 def update!(**args) @name = args[:name] if args.key?(:name) @predefined_source = args[:predefined_source] if args.key?(:predefined_source) end |