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



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

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



3429
3430
3431
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3429

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



3434
3435
3436
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3434

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



3439
3440
3441
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3439

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



3444
3445
3446
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3444

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



3449
3450
3451
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3449

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



3454
3455
3456
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3454

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



3459
3460
3461
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3459

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



3464
3465
3466
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3464

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



3469
3470
3471
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3469

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)


3474
3475
3476
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3474

def search_operator
  @search_operator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3481

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