This directory contains common AutoREST.PowerShell configurations for Calendar v1.0 and/or beta modules.
require:
- $(this-folder)/../readme.graph.mdsee https://github.com/Azure/autorest/blob/master/docs/powershell/directives.md
directive:
# Remove paths that are not valid.
- remove-path-by-operation: (user|group)_(Update|Delete)Calendar$|(user|group)..*_(Get|Create|Update|Delete)CalendarView$|(user|group).(calendar).calendarView.*$|user.calendar_(Get|Update|Delete)Event$|(user|group).(calendar).event.*$|(user|group)_.*CalendarView$|(user|group).calendarView.*$|user.calendarGroup_(Get|Update|Delete)Calendar$|user.calendarGroup.calendar.*$|(group|user).event_(Create|Update|Create)Calendar$|(user|group).event.calendar.*$|placeAsRoomList.room_(Get|Update|Delete)GraphBPrePlaceId$|placeAsRoomList.workspace_(Get|Update|Delete)GraphBPrePlaceId$
# Rename cmdlets.
- where:
verb: Invoke
subject: ^(CalendarUserEventCalendar|CalendarUserCalendar)$
set:
subject: $1AllowedCalendarSharingRoles
- where:
verb: Get
subject: ^(User)(Calendar)$
variant: ^Get$|^GetViaIdentity$
set:
subject: $1Default$2
- where:
subject: ^(User)(CalendarEvent)$
variant: ^List$|^Create$|^CreateExpanded$|^CreateViaIdentity$|^CreateViaIdentityExpanded$
set:
subject: $1Default$2
# Remove duplicate cmdlet
- where:
verb: Get
subject: ^(UserCalendarSchedule)$
remove: true
#Remove cmdlet to avoid conflicts where alias has been set:[#3241](https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/3241)
- where:
verb: Get
subject: ^UserCalendarEventDelta$
remove: true