class Google::Apis::CloudsearchV1::DataSourceRestriction

Restriction on Datasource.

Attributes

filter_options[RW]

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` @return [Array<Google::Apis::CloudsearchV1::FilterOptions>]

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 477
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 482
def update!(**args)
  @filter_options = args[:filter_options] if args.key?(:filter_options)
  @source = args[:source] if args.key?(:source)
end