Class: Google::Apis::CloudsearchV1::RestrictItem
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::RestrictItem
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
Information relevant only to a restrict entry. NextId: 7
Instance Attribute Summary collapse
-
#drive_follow_up_restrict ⇒ Google::Apis::CloudsearchV1::DriveFollowUpRestrict
Drive follow-up search restricts (e.g. "followup:suggestions").
-
#drive_location_restrict ⇒ Google::Apis::CloudsearchV1::DriveLocationRestrict
Drive location search restricts (e.g. "is:starred").
-
#drive_mime_type_restrict ⇒ Google::Apis::CloudsearchV1::DriveMimeTypeRestrict
Drive mime-type search restricts (e.g. "type:pdf").
-
#drive_time_span_restrict ⇒ Google::Apis::CloudsearchV1::DriveTimeSpanRestrict
The time span search restrict (e.g. "after:2017-09-11 before:2017-09-12").
-
#search_operator ⇒ String
The search restrict (e.g. "after:2017-09-11 before:2017-09-12").
Instance Method Summary collapse
-
#initialize(**args) ⇒ RestrictItem
constructor
A new instance of RestrictItem.
-
#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) ⇒ RestrictItem
Returns a new instance of RestrictItem
3325 3326 3327 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3325 def initialize(**args) update!(**args) end |
Instance Attribute Details
#drive_follow_up_restrict ⇒ Google::Apis::CloudsearchV1::DriveFollowUpRestrict
Drive follow-up search restricts (e.g. "followup:suggestions").
Corresponds to the JSON property driveFollowUpRestrict
3303 3304 3305 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3303 def drive_follow_up_restrict @drive_follow_up_restrict end |
#drive_location_restrict ⇒ Google::Apis::CloudsearchV1::DriveLocationRestrict
Drive location search restricts (e.g. "is:starred").
Corresponds to the JSON property driveLocationRestrict
3308 3309 3310 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3308 def drive_location_restrict @drive_location_restrict end |
#drive_mime_type_restrict ⇒ Google::Apis::CloudsearchV1::DriveMimeTypeRestrict
Drive mime-type search restricts (e.g. "type:pdf").
Corresponds to the JSON property driveMimeTypeRestrict
3313 3314 3315 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3313 def drive_mime_type_restrict @drive_mime_type_restrict end |
#drive_time_span_restrict ⇒ Google::Apis::CloudsearchV1::DriveTimeSpanRestrict
The time span search restrict (e.g. "after:2017-09-11 before:2017-09-12").
Corresponds to the JSON property driveTimeSpanRestrict
3318 3319 3320 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3318 def drive_time_span_restrict @drive_time_span_restrict end |
#search_operator ⇒ String
The search restrict (e.g. "after:2017-09-11 before:2017-09-12").
Corresponds to the JSON property searchOperator
3323 3324 3325 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3323 def search_operator @search_operator end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3330 3331 3332 3333 3334 3335 3336 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3330 def update!(**args) @drive_follow_up_restrict = args[:drive_follow_up_restrict] if args.key?(:drive_follow_up_restrict) @drive_location_restrict = args[:drive_location_restrict] if args.key?(:drive_location_restrict) @drive_mime_type_restrict = args[:drive_mime_type_restrict] if args.key?(:drive_mime_type_restrict) @drive_time_span_restrict = args[:drive_time_span_restrict] if args.key?(:drive_time_span_restrict) @search_operator = args[:search_operator] if args.key?(:search_operator) end |