Class: Google::Apis::CloudsearchV1::DataSourceRestriction

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

Restriction on Datasource.

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

Returns a new instance of DataSourceRestriction



280
281
282
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 280

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

Instance Attribute Details

#filter_optionsArray<Google::Apis::CloudsearchV1::FilterOptions>

Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. Corresponds to the JSON property filterOptions



273
274
275
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 273

def filter_options
  @filter_options
end

#sourceGoogle::Apis::CloudsearchV1::Source

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



278
279
280
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 278

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



285
286
287
288
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 285

def update!(**args)
  @filter_options = args[:filter_options] if args.key?(:filter_options)
  @source = args[:source] if args.key?(:source)
end