-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
!deploy v2.21.3 - fix for client_secrets.json auth on PowerShell Core…
… to Prompt instead, added OutputType to all relevant functions ## 2.21.3 * [Issue #131](#131) * Fixed: Changed `CodeReceiver` to use `PromptCodeReceiver` when client is PowerShell Core, as `LocalServerCodeReceiver` does not appear to redirect correctly and auth fails. Same behavior in Core regardless of OS. * Miscellaneous * Added: `OutputType` to all functions that return standard objects.
- Loading branch information
Showing
121 changed files
with
908 additions
and
765 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,63 +2,64 @@ function Add-GSCalendarSubscription { | |
<# | ||
.SYNOPSIS | ||
Adds a calendar to a users calendar list (aka subscribes to the specified calendar) | ||
.DESCRIPTION | ||
Adds a calendar to a users calendar list (aka subscribes to the specified calendar) | ||
.PARAMETER User | ||
The primary email or UserID of the user. You can exclude the '@domain.com' to insert the Domain in the config or use the special 'me' to indicate the AdminEmail in the config. | ||
.PARAMETER CalendarID | ||
The calendar ID of the calendar you would like to subscribe the user to | ||
.PARAMETER Selected | ||
Whether the calendar content shows up in the calendar UI. Optional. The default is False. | ||
.PARAMETER Hidden | ||
Whether the calendar has been hidden from the list. Optional. The default is False. | ||
.PARAMETER DefaultReminderMethod | ||
The method used by this reminder. Defaults to email. | ||
Possible values are: | ||
* "email" - Reminders are sent via email. | ||
* "sms" - Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored. | ||
* "popup" - Reminders are sent via a UI popup. | ||
.PARAMETER DefaultReminderMinutes | ||
Number of minutes before the start of the event when the reminder should trigger. Defaults to 30 minutes. | ||
Valid values are between 0 and 40320 (4 weeks in minutes). | ||
.PARAMETER DefaultNotificationMethod | ||
The method used to deliver the notification. Defaults to email. | ||
Possible values are: | ||
* "email" - Reminders are sent via email. | ||
* "sms" - Reminders are sent via SMS. This value is read-only and is ignored on inserts and updates. SMS reminders are only available for G Suite customers. | ||
.PARAMETER DefaultNotificationType | ||
The type of notification. Defaults to eventChange. | ||
Possible values are: | ||
* "eventCreation" - Notification sent when a new event is put on the calendar. | ||
* "eventChange" - Notification sent when an event is changed. | ||
* "eventCancellation" - Notification sent when an event is cancelled. | ||
* "eventResponse" - Notification sent when an event is changed. | ||
* "agenda" - An agenda with the events of the day (sent out in the morning). | ||
.PARAMETER Color | ||
The color of the calendar. | ||
.PARAMETER SummaryOverride | ||
The summary that the authenticated user has set for this calendar. | ||
.EXAMPLE | ||
Add-GSCalendarSubscription -User me -CalendarId [email protected] -Selected -Color Cyan | ||
Adds the calendar '[email protected]' to the AdminEmail user's calendar list | ||
#> | ||
[OutputType('Google.Apis.Calendar.v3.Data.CalendarListEntry')] | ||
[cmdletbinding()] | ||
Param | ||
( | ||
|
@@ -172,4 +173,4 @@ function Add-GSCalendarSubscription { | |
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ function New-GSCalendarACL { | |
Gives [email protected] reader access to jennyappleseed's calendar. | ||
#> | ||
[OutputType('Google.Apis.Calendar.v3.Data.AclRule')] | ||
[cmdletbinding(DefaultParameterSetName = "AttendeeEmails")] | ||
Param | ||
( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.