< Back

Find-GDriveItem

Mon Jan 13, 2020 10:22 pm

NAME Find-GDriveItem



SYNOPSIS

Search GoogleDriver for items with specified Query





SYNTAX

Find-GDriveItem [[-Query] <String>] [-OrderBy <String[]>] [-NextPageToken <String>] [-PageSize <Int32>]

-AccessToken <String> [<CommonParameters>]



Find-GDriveItem [[-Query] <String>] [-AllResults] [-OrderBy <String[]>] [-PageSize <Int32>] -AccessToken <String>

[<CommonParameters>]





DESCRIPTION

Search GoogleDriver for items with specified Query





PARAMETERS

-Query <String>

Search Query



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AllResults [<SwitchParameter>]

Collect all results in one output



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-OrderBy <String[]>

Set output order



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NextPageToken <String>

Supply NextPage Token from Previous paged search



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PageSize <Int32>

Set Page Size for paged search



Required? false

Position? named

Default value 100

Accept pipeline input? false

Accept wildcard characters? false



-AccessToken <String>

Access Token for request



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Json search result with items metadata as PSObject





NOTES





Author: Max Kozlov



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



PS C:\\>Find-GDriveItem -AccessToken $access_token -Query 'name contains "test"'













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Find-GDriveItem -AccessToken $access_token -Query 'name contains "test"' -AllResults















RELATED LINKS

Get-GDriveChildItem

https://developers.google.com/drive/api ... areddrives

https://developers.google.com/drive/api ... files/list