From 7c5b77c64f1290b1198ba84c40230e444346719c Mon Sep 17 00:00:00 2001 From: Nate Ferrell Date: Fri, 27 Sep 2019 00:34:58 -0500 Subject: [PATCH 1/2] release v2.33.0 ready --- CHANGELOG.md | 198 +++++++++++++++++++++-------------------- PSGSuite/PSGSuite.psd1 | 2 +- README.md | 43 +-------- psake.ps1 | 14 ++- 4 files changed, 120 insertions(+), 137 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7af352f..e158fc79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,105 +1,111 @@ * [PSGSuite - ChangeLog](#psgsuite---changelog) - * [2.32.3 - 2019-09-18](#2323---2019-09-18) - * [2.32.2 - 2019-09-15](#2322---2019-09-15) - * [2.32.1 - 2019-09-14](#2321---2019-09-14) - * [2.32.0 - 2019-09-12](#2320---2019-09-12) - * [2.31.1 - 2019-08-30](#2311---2019-08-30) - * [2.31.0](#2310) - * [2.30.2](#2302) - * [2.30.1](#2301) - * [2.30.0](#2300) - * [2.29.0](#2290) - * [2.28.2](#2282) - * [2.28.1](#2281) - * [2.28.0](#2280) - * [2.27.0](#2270) - * [2.26.4](#2264) - * [2.26.3](#2263) - * [2.26.2](#2262) - * [2.26.1](#2261) - * [2.26.0](#2260) - * [2.25.3](#2253) - * [2.25.2](#2252) - * [2.25.1](#2251) - * [2.25.0](#2250) - * [2.24.0](#2240) - * [2.23.2](#2232) - * [2.23.1](#2231) - * [2.23.0](#2230) - * [2.22.4](#2224) - * [2.22.3](#2223) - * [2.22.2](#2222) - * [2.22.1](#2221) - * [2.22.0](#2220) - * [2.21.3](#2213) - * [2.21.2](#2212) - * [2.21.1](#2211) - * [2.21.0](#2210) - * [2.20.2](#2202) - * [2.20.1](#2201) - * [2.20.0](#2200) - * [2.19.0](#2190) - * [2.18.1](#2181) - * [2.18.0](#2180) - * [2.17.2](#2172) - * [2.17.1](#2171) - * [2.17.0](#2170) - * [2.16.1](#2161) - * [2.16.0](#2160) - * [2.15.4](#2154) - * [2.15.3](#2153) - * [2.15.2](#2152) - * [2.15.1](#2151) - * [2.15.0](#2150) - * [2.14.1](#2141) - * [2.14.0](#2140) - * [2.13.2](#2132) - * [2.13.1](#2131) - * [2.13.0](#2130) - * [2.12.1](#2121) - * [2.12.0](#2120) - * [2.11.0](#2110) - * [2.10.2](#2102) - * [2.10.1](#2101) - * [2.10.0](#2100) - * [2.9.0](#290) - * [2.8.1](#281) - * [2.8.0](#280) - * [2.7.2](#272) - * [2.7.1](#271) - * [2.7.0](#270) - * [2.6.3](#263) - * [2.6.2](#262) - * [2.6.1](#261) - * [2.6.0](#260) - * [2.5.4](#254) - * [2.5.3](#253) - * [2.5.2](#252) - * [2.5.1](#251) - * [2.5.0](#250) - * [2.4.0](#240) - * [2.3.0](#230) - * [2.2.1](#221) - * [2.2.0](#220) - * [2.1.5](#215) - * [2.1.3 / 2.1.4](#213--214) - * [2.1.2](#212) - * [2.1.1](#211) - * [2.1.0](#210) - * [2.0.3](#203) - * [2.0.2](#202) - * [2.0.1](#201) - * [2.0.0](#200) - * [New Functionality](#new-functionality) - * [Breaking Changes in 2.0.0](#breaking-changes-in-200) - * [Gmail Delegation Management Removed](#gmail-delegation-management-removed) - * [Functions Removed](#functions-removed) - * [Functions Aliased](#functions-aliased) + * [2.33.0 - 2019-09-26](#2330---2019-09-26) + * [2.32.3 - 2019-09-18](#2323---2019-09-18) + * [2.32.2 - 2019-09-15](#2322---2019-09-15) + * [2.32.1 - 2019-09-14](#2321---2019-09-14) + * [2.32.0 - 2019-09-12](#2320---2019-09-12) + * [2.31.1 - 2019-08-30](#2311---2019-08-30) + * [2.31.0](#2310) + * [2.30.2](#2302) + * [2.30.1](#2301) + * [2.30.0](#2300) + * [2.29.0](#2290) + * [2.28.2](#2282) + * [2.28.1](#2281) + * [2.28.0](#2280) + * [2.27.0](#2270) + * [2.26.4](#2264) + * [2.26.3](#2263) + * [2.26.2](#2262) + * [2.26.1](#2261) + * [2.26.0](#2260) + * [2.25.3](#2253) + * [2.25.2](#2252) + * [2.25.1](#2251) + * [2.25.0](#2250) + * [2.24.0](#2240) + * [2.23.2](#2232) + * [2.23.1](#2231) + * [2.23.0](#2230) + * [2.22.4](#2224) + * [2.22.3](#2223) + * [2.22.2](#2222) + * [2.22.1](#2221) + * [2.22.0](#2220) + * [2.21.3](#2213) + * [2.21.2](#2212) + * [2.21.1](#2211) + * [2.21.0](#2210) + * [2.20.2](#2202) + * [2.20.1](#2201) + * [2.20.0](#2200) + * [2.19.0](#2190) + * [2.18.1](#2181) + * [2.18.0](#2180) + * [2.17.2](#2172) + * [2.17.1](#2171) + * [2.17.0](#2170) + * [2.16.1](#2161) + * [2.16.0](#2160) + * [2.15.4](#2154) + * [2.15.3](#2153) + * [2.15.2](#2152) + * [2.15.1](#2151) + * [2.15.0](#2150) + * [2.14.1](#2141) + * [2.14.0](#2140) + * [2.13.2](#2132) + * [2.13.1](#2131) + * [2.13.0](#2130) + * [2.12.1](#2121) + * [2.12.0](#2120) + * [2.11.0](#2110) + * [2.10.2](#2102) + * [2.10.1](#2101) + * [2.10.0](#2100) + * [2.9.0](#290) + * [2.8.1](#281) + * [2.8.0](#280) + * [2.7.2](#272) + * [2.7.1](#271) + * [2.7.0](#270) + * [2.6.3](#263) + * [2.6.2](#262) + * [2.6.1](#261) + * [2.6.0](#260) + * [2.5.4](#254) + * [2.5.3](#253) + * [2.5.2](#252) + * [2.5.1](#251) + * [2.5.0](#250) + * [2.4.0](#240) + * [2.3.0](#230) + * [2.2.1](#221) + * [2.2.0](#220) + * [2.1.5](#215) + * [2.1.3 / 2.1.4](#213--214) + * [2.1.2](#212) + * [2.1.1](#211) + * [2.1.0](#210) + * [2.0.3](#203) + * [2.0.2](#202) + * [2.0.1](#201) + * [2.0.0](#200) + * [New Functionality](#new-functionality) + * [Breaking Changes in 2.0.0](#breaking-changes-in-200) + * [Gmail Delegation Management Removed](#gmail-delegation-management-removed) + * [Functions Removed](#functions-removed) + * [Functions Aliased](#functions-aliased) *** # PSGSuite - ChangeLog +## 2.33.0 - 2019-09-26 + +* [Issue #236](https://github.com/scrthq/PSGSuite/issues/236) + * Fixed: Custom converter for Configuration metadata defaults to `ConvertTo-SecureString` as the preferred function instead of the custom `Secure`. `Secure` is still supported for backwards compatibility. + ## 2.32.3 - 2019-09-18 * [Issue #234](https://github.com/scrthq/PSGSuite/issues/234) diff --git a/PSGSuite/PSGSuite.psd1 b/PSGSuite/PSGSuite.psd1 index ff932c2c..3c68ef20 100644 --- a/PSGSuite/PSGSuite.psd1 +++ b/PSGSuite/PSGSuite.psd1 @@ -12,7 +12,7 @@ RootModule = 'PSGSuite.psm1' # Version number of this module. - ModuleVersion = '2.32.3' + ModuleVersion = '2.33.0' # ID used to uniquely identify this module GUID = '9d751152-e83e-40bb-a6db-4c329092aaec' diff --git a/README.md b/README.md index c5aad556..0c77ba13 100644 --- a/README.md +++ b/README.md @@ -158,42 +158,7 @@ All other functions are either intact or have an alias included to support backw [Full CHANGELOG here](https://github.com/scrthq/PSGSuite/blob/master/CHANGELOG.md) -#### 2.32.3 - 2019-09-18 - -* [Issue #234](https://github.com/scrthq/PSGSuite/issues/234) - * Fixed: `Update-GSUserPhoto` errors by switching to `[System.IO.File]::ReadAllBytes($path)`. - -#### 2.32.2 - 2019-09-15 - -* [Issue #225](https://github.com/scrthq/PSGSuite/issues/225) - * Fixed: NuGet package versions for Google APIs fell back to the version sheet during the most recent version push due to failure to communicate with NuGet to dynamically pull the latest version, resulting in previous enhancements now failing (e.g. Admin SDK rolled back to a 2017 version). - * Added more guards and force update situations for the NuGetDependencies.json file during local builds to more concretely guarantee that the NuGet packages needed will be available. - -#### 2.32.1 - 2019-09-14 - -* [Issue #232](https://github.com/scrthq/PSGSuite/issues/232) - * Added: `Visibility` parameter on `New-GSCalendarEvent` - -#### 2.32.0 - 2019-09-12 - -* [Issue #229](https://github.com/scrthq/PSGSuite/issues/229) - * Added: `Update-GSGmailLanguageSettings` and `Get-GSGmailLanguageSettings` functions to update/get a users default language settings in Gmail. -* [Issue #231](https://github.com/scrthq/PSGSuite/issues/231) - * Added: `Update-GSCalenderSubscription` function to updated existing calendar subscriptions. - * Removed: Default values for the following parameters on `Add-GSCalendarSubscription` to prevent automatically adding notifications for new CalendarList entries (subscriptions): - * `DefaultNotificationType` - * `DefaultNotificationMethod` - * `DefaultReminderMethod` - * `DefaultReminderMinutes` - * Added: `Notifications` and `Reminders` parameters to `Add-GSCalenderSubscription` and `Update-GSCalenderSubscription` - * Added: `Reminders` parameter to `New-GSCalendarEvent` and `Update-GSCalendarEvent` functions to set custom reminders on calendar events. - * Added: `Add-GSCalendarEventReminder` and `Add-GSCalendarNotification` helper functions. - * Updated: `DisableReminder` switch parameter name on `New-GSCalendarEvent` and `Update-GSCalendarEvent` functions to `DisableDefaultReminder` to better align with what that actually effects (default reminder inheritance only, not reminder overrides). The previous parameter name has been set as an alias to maintain backwards compatibility. - * Added: `RemoveAllReminders` parameter to `Update-GSCalendarEvent` to remove all custom reminders and disable calendar inheritance. -* [Issue #232](https://github.com/scrthq/PSGSuite/issues/232) - * Added: `Visibility` parameter on `Update-GSCalendarEvent` to set the visibility of a calendar event. -* Miscellaneous - * Forced `Type` parameter values to lower on the `Add-GSUser*` helper functions to ensure case senstive field matches whats expected. - * Updated Google .NET SDKs to latest versions. - * Updated and corrected a LOT of comment based function help. - * Added function help tests to validate that functions contain expected help content. +#### 2.33.0 - 2019-09-26 + +* [Issue #236](https://github.com/scrthq/PSGSuite/issues/236) + * Fixed: Custom converter for Configuration metadata defaults to `ConvertTo-SecureString` as the preferred function instead of the custom `Secure`. `Secure` is still supported for backwards compatibility. diff --git a/psake.ps1 b/psake.ps1 index 5c606610..88295de6 100644 --- a/psake.ps1 +++ b/psake.ps1 @@ -183,7 +183,7 @@ Add-MetadataConverter -Converters @{ elseif (`$Global:PSGSuiteKey -is [System.Security.SecureString]) { `$encParams["SecureKey"] = `$Global:PSGSuiteKey } - 'Secure "{0}"' -f (ConvertFrom-SecureString `$_ @encParams) + 'ConvertTo-SecureString "{0}"' -f (ConvertFrom-SecureString `$_ @encParams) } "Secure" = { param([string]`$String) @@ -196,7 +196,19 @@ Add-MetadataConverter -Converters @{ } ConvertTo-SecureString `$String @encParams } + "ConvertTo-SecureString" = { + param([string]`$String) + `$encParams = @{} + if (`$Global:PSGSuiteKey -is [System.Byte[]]) { + `$encParams["Key"] = `$Global:PSGSuiteKey + } + elseif (`$Global:PSGSuiteKey -is [System.Security.SecureString]) { + `$encParams["SecureKey"] = `$Global:PSGSuiteKey + } + ConvertTo-SecureString `$String @encParams + } } + try { `$confParams = @{ Scope = `$ConfigScope From a21269388e25f405556eb755446c0969509b2ed4 Mon Sep 17 00:00:00 2001 From: Nate Ferrell Date: Fri, 27 Sep 2019 00:40:37 -0500 Subject: [PATCH 2/2] fixed indentation on changelog and readme --- CHANGELOG.md | 196 +++++++++++++++++++++++++-------------------------- README.md | 2 +- 2 files changed, 99 insertions(+), 99 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e158fc79..ff87c10c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,101 +1,101 @@ * [PSGSuite - ChangeLog](#psgsuite---changelog) - * [2.33.0 - 2019-09-26](#2330---2019-09-26) - * [2.32.3 - 2019-09-18](#2323---2019-09-18) - * [2.32.2 - 2019-09-15](#2322---2019-09-15) - * [2.32.1 - 2019-09-14](#2321---2019-09-14) - * [2.32.0 - 2019-09-12](#2320---2019-09-12) - * [2.31.1 - 2019-08-30](#2311---2019-08-30) - * [2.31.0](#2310) - * [2.30.2](#2302) - * [2.30.1](#2301) - * [2.30.0](#2300) - * [2.29.0](#2290) - * [2.28.2](#2282) - * [2.28.1](#2281) - * [2.28.0](#2280) - * [2.27.0](#2270) - * [2.26.4](#2264) - * [2.26.3](#2263) - * [2.26.2](#2262) - * [2.26.1](#2261) - * [2.26.0](#2260) - * [2.25.3](#2253) - * [2.25.2](#2252) - * [2.25.1](#2251) - * [2.25.0](#2250) - * [2.24.0](#2240) - * [2.23.2](#2232) - * [2.23.1](#2231) - * [2.23.0](#2230) - * [2.22.4](#2224) - * [2.22.3](#2223) - * [2.22.2](#2222) - * [2.22.1](#2221) - * [2.22.0](#2220) - * [2.21.3](#2213) - * [2.21.2](#2212) - * [2.21.1](#2211) - * [2.21.0](#2210) - * [2.20.2](#2202) - * [2.20.1](#2201) - * [2.20.0](#2200) - * [2.19.0](#2190) - * [2.18.1](#2181) - * [2.18.0](#2180) - * [2.17.2](#2172) - * [2.17.1](#2171) - * [2.17.0](#2170) - * [2.16.1](#2161) - * [2.16.0](#2160) - * [2.15.4](#2154) - * [2.15.3](#2153) - * [2.15.2](#2152) - * [2.15.1](#2151) - * [2.15.0](#2150) - * [2.14.1](#2141) - * [2.14.0](#2140) - * [2.13.2](#2132) - * [2.13.1](#2131) - * [2.13.0](#2130) - * [2.12.1](#2121) - * [2.12.0](#2120) - * [2.11.0](#2110) - * [2.10.2](#2102) - * [2.10.1](#2101) - * [2.10.0](#2100) - * [2.9.0](#290) - * [2.8.1](#281) - * [2.8.0](#280) - * [2.7.2](#272) - * [2.7.1](#271) - * [2.7.0](#270) - * [2.6.3](#263) - * [2.6.2](#262) - * [2.6.1](#261) - * [2.6.0](#260) - * [2.5.4](#254) - * [2.5.3](#253) - * [2.5.2](#252) - * [2.5.1](#251) - * [2.5.0](#250) - * [2.4.0](#240) - * [2.3.0](#230) - * [2.2.1](#221) - * [2.2.0](#220) - * [2.1.5](#215) - * [2.1.3 / 2.1.4](#213--214) - * [2.1.2](#212) - * [2.1.1](#211) - * [2.1.0](#210) - * [2.0.3](#203) - * [2.0.2](#202) - * [2.0.1](#201) - * [2.0.0](#200) - * [New Functionality](#new-functionality) - * [Breaking Changes in 2.0.0](#breaking-changes-in-200) - * [Gmail Delegation Management Removed](#gmail-delegation-management-removed) - * [Functions Removed](#functions-removed) - * [Functions Aliased](#functions-aliased) + * [2.33.0 - 2019-09-26](#2330---2019-09-26) + * [2.32.3 - 2019-09-18](#2323---2019-09-18) + * [2.32.2 - 2019-09-15](#2322---2019-09-15) + * [2.32.1 - 2019-09-14](#2321---2019-09-14) + * [2.32.0 - 2019-09-12](#2320---2019-09-12) + * [2.31.1 - 2019-08-30](#2311---2019-08-30) + * [2.31.0](#2310) + * [2.30.2](#2302) + * [2.30.1](#2301) + * [2.30.0](#2300) + * [2.29.0](#2290) + * [2.28.2](#2282) + * [2.28.1](#2281) + * [2.28.0](#2280) + * [2.27.0](#2270) + * [2.26.4](#2264) + * [2.26.3](#2263) + * [2.26.2](#2262) + * [2.26.1](#2261) + * [2.26.0](#2260) + * [2.25.3](#2253) + * [2.25.2](#2252) + * [2.25.1](#2251) + * [2.25.0](#2250) + * [2.24.0](#2240) + * [2.23.2](#2232) + * [2.23.1](#2231) + * [2.23.0](#2230) + * [2.22.4](#2224) + * [2.22.3](#2223) + * [2.22.2](#2222) + * [2.22.1](#2221) + * [2.22.0](#2220) + * [2.21.3](#2213) + * [2.21.2](#2212) + * [2.21.1](#2211) + * [2.21.0](#2210) + * [2.20.2](#2202) + * [2.20.1](#2201) + * [2.20.0](#2200) + * [2.19.0](#2190) + * [2.18.1](#2181) + * [2.18.0](#2180) + * [2.17.2](#2172) + * [2.17.1](#2171) + * [2.17.0](#2170) + * [2.16.1](#2161) + * [2.16.0](#2160) + * [2.15.4](#2154) + * [2.15.3](#2153) + * [2.15.2](#2152) + * [2.15.1](#2151) + * [2.15.0](#2150) + * [2.14.1](#2141) + * [2.14.0](#2140) + * [2.13.2](#2132) + * [2.13.1](#2131) + * [2.13.0](#2130) + * [2.12.1](#2121) + * [2.12.0](#2120) + * [2.11.0](#2110) + * [2.10.2](#2102) + * [2.10.1](#2101) + * [2.10.0](#2100) + * [2.9.0](#290) + * [2.8.1](#281) + * [2.8.0](#280) + * [2.7.2](#272) + * [2.7.1](#271) + * [2.7.0](#270) + * [2.6.3](#263) + * [2.6.2](#262) + * [2.6.1](#261) + * [2.6.0](#260) + * [2.5.4](#254) + * [2.5.3](#253) + * [2.5.2](#252) + * [2.5.1](#251) + * [2.5.0](#250) + * [2.4.0](#240) + * [2.3.0](#230) + * [2.2.1](#221) + * [2.2.0](#220) + * [2.1.5](#215) + * [2.1.3 / 2.1.4](#213--214) + * [2.1.2](#212) + * [2.1.1](#211) + * [2.1.0](#210) + * [2.0.3](#203) + * [2.0.2](#202) + * [2.0.1](#201) + * [2.0.0](#200) + * [New Functionality](#new-functionality) + * [Breaking Changes in 2.0.0](#breaking-changes-in-200) + * [Gmail Delegation Management Removed](#gmail-delegation-management-removed) + * [Functions Removed](#functions-removed) + * [Functions Aliased](#functions-aliased) *** @@ -104,7 +104,7 @@ ## 2.33.0 - 2019-09-26 * [Issue #236](https://github.com/scrthq/PSGSuite/issues/236) - * Fixed: Custom converter for Configuration metadata defaults to `ConvertTo-SecureString` as the preferred function instead of the custom `Secure`. `Secure` is still supported for backwards compatibility. + * Fixed: Custom converter for Configuration metadata defaults to `ConvertTo-SecureString` as the preferred function instead of the custom `Secure`. `Secure` is still supported for backwards compatibility. ## 2.32.3 - 2019-09-18 diff --git a/README.md b/README.md index 0c77ba13..b180c93a 100644 --- a/README.md +++ b/README.md @@ -161,4 +161,4 @@ All other functions are either intact or have an alias included to support backw #### 2.33.0 - 2019-09-26 * [Issue #236](https://github.com/scrthq/PSGSuite/issues/236) - * Fixed: Custom converter for Configuration metadata defaults to `ConvertTo-SecureString` as the preferred function instead of the custom `Secure`. `Secure` is still supported for backwards compatibility. + * Fixed: Custom converter for Configuration metadata defaults to `ConvertTo-SecureString` as the preferred function instead of the custom `Secure`. `Secure` is still supported for backwards compatibility.