< Back

New-GDriveFolder

Mon Jan 13, 2020 10:26 pm

NAME New-GDriveFolder



SYNOPSIS

Creates new GoogleDrive Folder





SYNTAX

New-GDriveFolder [-Name] <String> [[-ParentID] <String[]>] -AccessToken <String> [-WhatIf] [-Confirm]

[<CommonParameters>]





DESCRIPTION

Creates new GoogleDrive Folder





PARAMETERS

-Name <String>

Name of an folder item to be created



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ParentID <String[]>

Folder ID(s) in which new item will be placed



Required? false

Position? 2

Default value @('root')

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



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

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 with item metadata as PSObject





NOTES





Author: Max Kozlov



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



PS C:\\>New-GDriveFolder -AccessToken $access_token -Name 'testfolder' -ParentID 'root'















RELATED LINKS

New-GDriveItem

Set-GDriveItemProperty

https://developers.google.com/drive/api ... les/create

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