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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RestrictItem

Returns a new instance of RestrictItem



3489
3490
3491
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3489

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



3442
3443
3444
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3442

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



3447
3448
3449
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3447

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



3452
3453
3454
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3452

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



3457
3458
3459
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3457

def drive_time_span_restrict
  @drive_time_span_restrict
end

#gmail_action_restrictGoogle::Apis::CloudsearchV1::GmailActionRestrict

Gmail Action restricts (i.e. read/replied/snoozed). Corresponds to the JSON property gmailActionRestrict



3462
3463
3464
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3462

def gmail_action_restrict
  @gmail_action_restrict
end

#gmail_attachment_restrictGoogle::Apis::CloudsearchV1::GmailAttachmentRestrict

Gmail Attachment restricts (i.e. has:attachment, has:drive, filename:pdf). Corresponds to the JSON property gmailAttachmentRestrict



3467
3468
3469
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3467

def gmail_attachment_restrict
  @gmail_attachment_restrict
end

#gmail_folder_restrictGoogle::Apis::CloudsearchV1::GmailFolderRestrict

Gmail Folder restricts (i.e. in Drafts/Sent/Chats/User Generated Labels). Corresponds to the JSON property gmailFolderRestrict



3472
3473
3474
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3472

def gmail_folder_restrict
  @gmail_folder_restrict
end

#gmail_intelligent_restrictGoogle::Apis::CloudsearchV1::GmailIntelligentRestrict

Gmail Intelligent restricts (i.e. smartlabels, important). Corresponds to the JSON property gmailIntelligentRestrict



3477
3478
3479
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3477

def gmail_intelligent_restrict
  @gmail_intelligent_restrict
end

#gmail_time_restrictGoogle::Apis::CloudsearchV1::GmailTimeRestrict

Gmail Time restricts (i.e. received today, this week). Corresponds to the JSON property gmailTimeRestrict



3482
3483
3484
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3482

def gmail_time_restrict
  @gmail_time_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)


3487
3488
3489
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3487

def search_operator
  @search_operator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3494

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)
  @gmail_action_restrict = args[:gmail_action_restrict] if args.key?(:gmail_action_restrict)
  @gmail_attachment_restrict = args[:gmail_attachment_restrict] if args.key?(:gmail_attachment_restrict)
  @gmail_folder_restrict = args[:gmail_folder_restrict] if args.key?(:gmail_folder_restrict)
  @gmail_intelligent_restrict = args[:gmail_intelligent_restrict] if args.key?(:gmail_intelligent_restrict)
  @gmail_time_restrict = args[:gmail_time_restrict] if args.key?(:gmail_time_restrict)
  @search_operator = args[:search_operator] if args.key?(:search_operator)
end