Class: Google::Apis::CloudsearchV1::QuerySource
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::QuerySource
- 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
List of sources that the user can search using the query API.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Display name of the data source.
-
#operators ⇒ Array<Google::Apis::CloudsearchV1::QueryOperator>
List of all operators applicable for this source.
-
#short_name ⇒ String
A short name or alias for the source.
-
#source ⇒ Google::Apis::CloudsearchV1::Source
Defines sources for the suggest/search APIs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QuerySource
constructor
A new instance of QuerySource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QuerySource
Returns a new instance of QuerySource.
3828 3829 3830 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3828 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Display name of the data source.
Corresponds to the JSON property displayName
3810 3811 3812 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3810 def display_name @display_name end |
#operators ⇒ Array<Google::Apis::CloudsearchV1::QueryOperator>
List of all operators applicable for this source.
Corresponds to the JSON property operators
3815 3816 3817 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3815 def operators @operators end |
#short_name ⇒ String
A short name or alias for the source. This value can be used with the 'source'
operator.
Corresponds to the JSON property shortName
3821 3822 3823 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3821 def short_name @short_name end |
#source ⇒ Google::Apis::CloudsearchV1::Source
Defines sources for the suggest/search APIs.
Corresponds to the JSON property source
3826 3827 3828 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3826 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3833 3834 3835 3836 3837 3838 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3833 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @operators = args[:operators] if args.key?(:operators) @short_name = args[:short_name] if args.key?(:short_name) @source = args[:source] if args.key?(:source) end |