class Google::Apis::CloudsearchV1::QuerySource

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

Attributes

display_name[RW]

Display name of the data source. Corresponds to the JSON property `displayName` @return [String]

operators[RW]

List of all operators applicable for this source. Corresponds to the JSON property `operators` @return [Array<Google::Apis::CloudsearchV1::QueryOperator>]

short_name[RW]

A short name or alias for the source. This value can be used with the 'source' operator. Corresponds to the JSON property `shortName` @return [String]

source[RW]

Defines sources for the suggest/search APIs. Corresponds to the JSON property `source` @return [Google::Apis::CloudsearchV1::Source]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 3526
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 3531
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