Class: Google::Apis::CloudsearchV1::DataSourceRestriction
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::DataSourceRestriction
- 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
-
#filter_options ⇒ Array<Google::Apis::CloudsearchV1::FilterOptions>
Filter options restricting the results.
-
#source ⇒ Google::Apis::CloudsearchV1::Source
Defines sources for the suggest/search APIs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataSourceRestriction
constructor
A new instance of DataSourceRestriction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ DataSourceRestriction
Returns a new instance of DataSourceRestriction
260 261 262 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 260 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filter_options ⇒ Array<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
253 254 255 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 253 def @filter_options end |
#source ⇒ Google::Apis::CloudsearchV1::Source
Defines sources for the suggest/search APIs.
Corresponds to the JSON property source
258 259 260 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 258 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
265 266 267 268 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 265 def update!(**args) @filter_options = args[:filter_options] if args.key?(:filter_options) @source = args[:source] if args.key?(:source) end |