Skip to content

New GGmailFilterObj

Spencer Varney edited this page Dec 14, 2016 · 1 revision

New-GGmailFilterObj

SYNOPSIS

Creates a new Gmail API Filter object.

SYNTAX

New-GGmailFilterObj [[-Action] <FilterAction>] [[-Criteria] <FilterCriteria>] [[-Id] <String>] [-WhatIf]
 [-Confirm]

DESCRIPTION

This provides a Cmdlet-Based approach to creating a Filter object which may be required as a parameter for some other Cmdlets in the Gmail API category.

You could alternately create this object by calling New-Object -TypeName Google.Apis.Gmail.v1.Data.Filter

EXAMPLES

---------- EXAMPLE 1 ----------

PS C:\>New-GGmailFilterObj

This automatically generated example serves to show the bare minimum required to call this Cmdlet.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

PARAMETERS

-Action

Action that the filter performs.

Type: FilterAction
Parameter Sets: (All)
Aliases: 

Required: False
Position: 0
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Criteria

Matching criteria for the filter.

Type: FilterCriteria
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Id

The server assigned ID of the filter.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 2
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

INPUTS

Google.Apis.Gmail.v1.Data.FilterAction

Action that the filter performs.

Google.Apis.Gmail.v1.Data.FilterCriteria

Matching criteria for the filter.

System.String

The server assigned ID of the filter.

OUTPUTS

Google.Apis.Gmail.v1.Data.Filter

NOTES

Part of the gShell Project, relating to the Google Gmail API; see Related Links or use the -Online parameter.

RELATED LINKS

[Wiki page for this Cmdlet]

[Getting started with gShell]

Clone this wiki locally