Class: Google::Apis::CloudsearchV1::DataSourceRestriction
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::DataSourceRestriction
- 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
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.
Constructor Details
#initialize(**args) ⇒ DataSourceRestriction
Returns a new instance of DataSourceRestriction.
7267 7268 7269 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7267 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. NOTE: Suggest API
supports only few filters at the moment: "objecttype", "type" and "mimetype".
For now, schema specific filters cannot be used to filter suggestions.
Corresponds to the JSON property filterOptions
7260 7261 7262 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7260 def @filter_options end |
#source ⇒ Google::Apis::CloudsearchV1::Source
Defines sources for the suggest/search APIs.
Corresponds to the JSON property source
7265 7266 7267 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7265 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7272 7273 7274 7275 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7272 def update!(**args) @filter_options = args[:filter_options] if args.key?(:filter_options) @source = args[:source] if args.key?(:source) end |