SCRT-HQ / PSGSuite

Powershell module for Google / G Suite API calls wrapped in handy functions. Authentication is established using a service account via P12 key to negate the consent popup and allow for greater handsoff automation capabilities
https://psgsuite.io/
Apache License 2.0
234 stars 66 forks source link

new InputObject parameter #262

Closed nwls-hermesj closed 4 years ago

nwls-hermesj commented 4 years ago

This PR includes changes to the Remove-GSDriveFile cmdlet, moving invariants to the Begin clause and introducing parameter sets. The new InputObject parameter provides for deleting either a File[] or pipelined File objects (from Get-GSDriveFileList, for example). The FileId parameter is made optional to preclude prompting. FileId and InputObject are mutually exclusive, but leaving both unset is okay - nothing happens.

scrthq commented 4 years ago

Hey @nwls-hermesj - Thank you for submitting this! I should be able to review this shortly and I'll get this in with the next release. If there are any adjustments needed, I'll push them up to your source branch directly so they're rolled into this PR.

Getting caught up on backlog with PSGSuite now, thank you for your patience and again for your submission! 🙂

scrthq commented 4 years ago

@nwls-hermesj - Made some adjustments to make better use of pipeline input, getting this merged!