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

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

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

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

Returns a new instance of QuerySource



3157
3158
3159
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3157

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)


3139
3140
3141
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3139

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



3144
3145
3146
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3144

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)


3150
3151
3152
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3150

def short_name
  @short_name
end

#sourceGoogle::Apis::CloudsearchV1::Source

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



3155
3156
3157
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3155

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3162
3163
3164
3165
3166
3167
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3162

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