Class: Google::Apis::CloudsearchV1::RestrictItem

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

Information relevant only to a restrict entry. NextId: 12

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RestrictItem

Returns a new instance of RestrictItem.



3545
3546
3547
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3545

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

Instance Attribute Details

#drive_follow_up_restrictGoogle::Apis::CloudsearchV1::DriveFollowUpRestrict

Drive follow-up search restricts (e.g. "followup:suggestions"). Corresponds to the JSON property driveFollowUpRestrict



3523
3524
3525
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3523

def drive_follow_up_restrict
  @drive_follow_up_restrict
end

#drive_location_restrictGoogle::Apis::CloudsearchV1::DriveLocationRestrict

Drive location search restricts (e.g. "is:starred"). Corresponds to the JSON property driveLocationRestrict



3528
3529
3530
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3528

def drive_location_restrict
  @drive_location_restrict
end

#drive_mime_type_restrictGoogle::Apis::CloudsearchV1::DriveMimeTypeRestrict

Drive mime-type search restricts (e.g. "type:pdf"). Corresponds to the JSON property driveMimeTypeRestrict



3533
3534
3535
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3533

def drive_mime_type_restrict
  @drive_mime_type_restrict
end

#drive_time_span_restrictGoogle::Apis::CloudsearchV1::DriveTimeSpanRestrict

The time span search restrict (e.g. "after:2017-09-11 before:2017-09-12"). Corresponds to the JSON property driveTimeSpanRestrict



3538
3539
3540
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3538

def drive_time_span_restrict
  @drive_time_span_restrict
end

#search_operatorString

The search restrict (e.g. "after:2017-09-11 before:2017-09-12"). Corresponds to the JSON property searchOperator

Returns:

  • (String)


3543
3544
3545
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3543

def search_operator
  @search_operator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3550
3551
3552
3553
3554
3555
3556
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3550

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