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: 12
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").
-
#gmail_action_restrict ⇒ Google::Apis::CloudsearchV1::GmailActionRestrict
Gmail Action restricts (i.e. read/replied/snoozed).
-
#gmail_attachment_restrict ⇒ Google::Apis::CloudsearchV1::GmailAttachmentRestrict
Gmail Attachment restricts (i.e. has:attachment, has:drive, filename:pdf).
-
#gmail_folder_restrict ⇒ Google::Apis::CloudsearchV1::GmailFolderRestrict
Gmail Folder restricts (i.e. in Drafts/Sent/Chats/User Generated Labels).
-
#gmail_intelligent_restrict ⇒ Google::Apis::CloudsearchV1::GmailIntelligentRestrict
Gmail Intelligent restricts (i.e. smartlabels, important).
-
#gmail_time_restrict ⇒ Google::Apis::CloudsearchV1::GmailTimeRestrict
Gmail Time restricts (i.e. received today, this week).
-
#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
3742 3743 3744 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3742 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
3695 3696 3697 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3695 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
3700 3701 3702 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3700 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
3705 3706 3707 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3705 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
3710 3711 3712 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3710 def drive_time_span_restrict @drive_time_span_restrict end |
#gmail_action_restrict ⇒ Google::Apis::CloudsearchV1::GmailActionRestrict
Gmail Action restricts (i.e. read/replied/snoozed).
Corresponds to the JSON property gmailActionRestrict
3715 3716 3717 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3715 def gmail_action_restrict @gmail_action_restrict end |
#gmail_attachment_restrict ⇒ Google::Apis::CloudsearchV1::GmailAttachmentRestrict
Gmail Attachment restricts (i.e. has:attachment, has:drive, filename:pdf).
Corresponds to the JSON property gmailAttachmentRestrict
3720 3721 3722 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3720 def @gmail_attachment_restrict end |
#gmail_folder_restrict ⇒ Google::Apis::CloudsearchV1::GmailFolderRestrict
Gmail Folder restricts (i.e. in Drafts/Sent/Chats/User Generated Labels).
Corresponds to the JSON property gmailFolderRestrict
3725 3726 3727 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3725 def gmail_folder_restrict @gmail_folder_restrict end |
#gmail_intelligent_restrict ⇒ Google::Apis::CloudsearchV1::GmailIntelligentRestrict
Gmail Intelligent restricts (i.e. smartlabels, important).
Corresponds to the JSON property gmailIntelligentRestrict
3730 3731 3732 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3730 def gmail_intelligent_restrict @gmail_intelligent_restrict end |
#gmail_time_restrict ⇒ Google::Apis::CloudsearchV1::GmailTimeRestrict
Gmail Time restricts (i.e. received today, this week).
Corresponds to the JSON property gmailTimeRestrict
3735 3736 3737 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3735 def gmail_time_restrict @gmail_time_restrict end |
#search_operator ⇒ String
The search restrict (e.g. "after:2017-09-11 before:2017-09-12").
Corresponds to the JSON property searchOperator
3740 3741 3742 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3740 def search_operator @search_operator end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3747 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 |