Class: Google::Apis::CloudsearchV1::QuerySource

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

List of sources that the user can search using the query API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QuerySource

Returns a new instance of QuerySource.



16150
16151
16152
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16150

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

Instance Attribute Details

#display_nameString

Display name of the data source. Corresponds to the JSON property displayName

Returns:

  • (String)


16132
16133
16134
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16132

def display_name
  @display_name
end

#operatorsArray<Google::Apis::CloudsearchV1::QueryOperator>

List of all operators applicable for this source. Corresponds to the JSON property operators



16137
16138
16139
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16137

def operators
  @operators
end

#short_nameString

A short name or alias for the source. This value can be used with the 'source' operator. Corresponds to the JSON property shortName

Returns:

  • (String)


16143
16144
16145
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16143

def short_name
  @short_name
end

#sourceGoogle::Apis::CloudsearchV1::Source

Defines sources for the suggest/search APIs. Corresponds to the JSON property source



16148
16149
16150
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16148

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16155
16156
16157
16158
16159
16160
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16155

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