Skip to content

Commit 2d988e2

Browse files
authored
Merge pull request #385 from microsoftgraph/po/directiveUpdates
Directive Updates
2 parents 93f165b + f6ac2da commit 2d988e2

File tree

10 files changed

+136
-50
lines changed

10 files changed

+136
-50
lines changed

config/ModulesMapping.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"Security": "^Security\\.",
2828
"Sites": "^sites.site$|^sites.itemAnalytics$|^sites.columnDefinition$|^sites.contentType$|^sites.drive$|^sites.list$|^sites.sitePage$|^users.site$|^groups.site$|^sites.Functions$|^sites.Actions$",
2929
"Teams": "^teams\\.|^chats\\.|^users.chat$|^appCatalogs$|^users.userTeamwork$|^teamwork\\.|^users.team$|^users.userTeamwork$|^groups.team$",
30-
"Users": "^users.user$|^users.directoryObject$|^users.licenseDetails$|^users.notification$|^users.outlookUser$|^users.profilePhoto$|^users.userSettings$|^users.extension$|^users.oAuth2PermissionGrant$",
30+
"Users": "^users.user$|^users.directoryObject$|^users.licenseDetails$|^users.notification$|^users.outlookUser$|^users.profilePhoto$|^users.userSettings$|^users.extension$|^users.oAuth2PermissionGrant$|^users.todo$",
3131
"Users.Actions": "^users.Actions$",
3232
"Users.Functions": "^users.Functions$"
3333

src/Devices.CorporateManagement/Devices.CorporateManagement/Microsoft.Graph.Devices.CorporateManagement.psd1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 8/25/2020
6+
# Generated on: 9/17/2020
77
#
88

99
@{
@@ -18,7 +18,7 @@ ModuleVersion = '0.9.2'
1818
CompatiblePSEditions = 'Core', 'Desktop'
1919

2020
# ID used to uniquely identify this module
21-
GUID = 'c98c22c6-c6b6-45eb-933c-1bf07aaf050c'
21+
GUID = 'ac483866-d9f0-46c2-adf6-00c5b17eaca8'
2222

2323
# Author of this module
2424
Author = 'Microsoft Corporation'
@@ -163,7 +163,7 @@ FunctionsToExport =
163163
'Get-MgUserManagedDeviceConfigurationState',
164164
'Get-MgUserManagedDeviceDetectedApp',
165165
'Get-MgUserManagedDeviceDetectedAppByRef',
166-
'Get-MgUserManagedDeviceLogCollectionRequest',
166+
'Get-MgUserManagedDeviceLogCollectionResponse',
167167
'Get-MgUserManagedDeviceMobileAppConfigurationState',
168168
'Get-MgUserManagedDeviceSecurityBaselineState',
169169
'Get-MgUserManagedDeviceSecurityBaselineStateSettingState',
@@ -246,7 +246,7 @@ FunctionsToExport =
246246
'New-MgUserManagedDeviceCompliancePolicyState',
247247
'New-MgUserManagedDeviceConfigurationState',
248248
'New-MgUserManagedDeviceDetectedAppByRef',
249-
'New-MgUserManagedDeviceLogCollectionRequest',
249+
'New-MgUserManagedDeviceLogCollectionResponse',
250250
'New-MgUserManagedDeviceMobileAppConfigurationState',
251251
'New-MgUserManagedDeviceSecurityBaselineState',
252252
'New-MgUserManagedDeviceSecurityBaselineStateSettingState',
@@ -328,7 +328,7 @@ FunctionsToExport =
328328
'Remove-MgUserManagedDevice', 'Remove-MgUserManagedDeviceCategory',
329329
'Remove-MgUserManagedDeviceCompliancePolicyState',
330330
'Remove-MgUserManagedDeviceConfigurationState',
331-
'Remove-MgUserManagedDeviceLogCollectionRequest',
331+
'Remove-MgUserManagedDeviceLogCollectionResponse',
332332
'Remove-MgUserManagedDeviceMobileAppConfigurationState',
333333
'Remove-MgUserManagedDeviceSecurityBaselineState',
334334
'Remove-MgUserManagedDeviceSecurityBaselineStateSettingState',
@@ -432,7 +432,7 @@ FunctionsToExport =
432432
'Update-MgUserManagedDevice', 'Update-MgUserManagedDeviceCategory',
433433
'Update-MgUserManagedDeviceCompliancePolicyState',
434434
'Update-MgUserManagedDeviceConfigurationState',
435-
'Update-MgUserManagedDeviceLogCollectionRequest',
435+
'Update-MgUserManagedDeviceLogCollectionResponse',
436436
'Update-MgUserManagedDeviceMobileAppConfigurationState',
437437
'Update-MgUserManagedDeviceSecurityBaselineState',
438438
'Update-MgUserManagedDeviceSecurityBaselineStateSettingState',

src/Devices.CorporateManagement/Devices.CorporateManagement/readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ directive:
5252
variant: ^Update$|^UpdateExpanded$|^UpdateViaIdentity$|^UpdateViaIdentityExpanded$
5353
set:
5454
subject: $1Multiple$2
55+
# https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-devicelogcollectionresponse?view=graph-rest-beta
56+
- where:
57+
subject: ^(UserManagedDeviceLogCollection)(Request)$
58+
set:
59+
subject: $1Response
5560
- where:
5661
verb: Update
5762
subject: ^(DeviceAppManagement)(PolicySet)$

src/Users.Actions/Users.Actions/Microsoft.Graph.Users.Actions.psd1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 8/25/2020
6+
# Generated on: 9/17/2020
77
#
88

99
@{
@@ -18,7 +18,7 @@ ModuleVersion = '0.9.2'
1818
CompatiblePSEditions = 'Core', 'Desktop'
1919

2020
# ID used to uniquely identify this module
21-
GUID = 'c605bff5-3c5b-4a0e-a811-f367d7dd0081'
21+
GUID = 'b180ad1d-fdd5-4d04-ba6e-53a2b07836e3'
2222

2323
# Author of this module
2424
Author = 'Microsoft Corporation'
@@ -133,7 +133,8 @@ FunctionsToExport = 'Add-MgUserPendingAccessReviewInstanceDecision',
133133
'New-MgUserMailFolderMessageReply',
134134
'New-MgUserMailFolderMessageReplyAll',
135135
'New-MgUserManagedDeviceLogCollectionRequest',
136-
'New-MgUserManagedDeviceLogCollectionRequestDownloadUrl',
136+
'New-MgUserManagedDeviceLogCollectionResponseDownloadUrl',
137+
'New-MgUserManagedDeviceWindowsDefenderUpdateSignature',
137138
'New-MgUserMessageAttachmentUploadSession',
138139
'New-MgUserMessageForward', 'New-MgUserMessageReply',
139140
'New-MgUserMessageReplyAll',
@@ -164,7 +165,7 @@ FunctionsToExport = 'Add-MgUserPendingAccessReviewInstanceDecision',
164165
'Stop-MgUserPendingAccessReviewInstance',
165166
'Stop-MgUserPendingAccessReviewInstanceDefinition',
166167
'Sync-MgUserManagedDevice', 'Test-MgUserProperty',
167-
'Unblock-MgUserManagedApp', 'Update-MgUserManagedDevice',
168+
'Unblock-MgUserManagedApp',
168169
'Update-MgUserManagedDeviceWindowDeviceAccount',
169170
'Update-MgUserOnenotePageContent'
170171

src/Users.Actions/Users.Actions/readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ directive:
108108
variant: ^Create1$|^CreateExpanded1$|^CreateViaIdentity1$|^CreateViaIdentityExpanded1$|^Create3$|^CreateExpanded3$|^CreateViaIdentity3$|^CreateViaIdentityExpanded3$
109109
set:
110110
subject: $1$2All
111+
# https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-devicelogcollectionresponse?view=graph-rest-beta
112+
- where:
113+
verb: New
114+
subject: ^(UserManagedDeviceLogCollection)Request(DownloadUrl)$
115+
set:
116+
subject: $1Response$2
117+
- where:
118+
verb: Update
119+
subject: ^(UserManagedDevice)$
120+
set:
121+
verb: New
122+
subject: $1WindowsDefenderUpdateSignature
111123
```
112124
### Versioning
113125

src/Users.Functions/Users.Functions/Microsoft.Graph.Users.Functions.psd1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 8/25/2020
6+
# Generated on: 9/17/2020
77
#
88

99
@{
@@ -18,7 +18,7 @@ ModuleVersion = '0.9.2'
1818
CompatiblePSEditions = 'Core', 'Desktop'
1919

2020
# ID used to uniquely identify this module
21-
GUID = 'f54feaaa-5bc6-4ff3-82af-4e5309253203'
21+
GUID = 'c17c7aed-8a2a-4714-8151-0207714f2196'
2222

2323
# Author of this module
2424
Author = 'Microsoft Corporation'
@@ -84,11 +84,11 @@ FunctionsToExport = 'Export-MgUserDeviceAndAppManagementData623C',
8484
'Get-MgUserManagedAppBlockedUser',
8585
'Get-MgUserManagedAppDiagnosticStatuses',
8686
'Get-MgUserManagedAppPolicy',
87-
'Get-MgUserManagedAppRegistrationUserId', 'Get-MgUserManagedDevice',
87+
'Get-MgUserManagedAppRegistrationUserId',
8888
'Get-MgUserManagedDeviceFileVaultKey',
8989
'Get-MgUserManagedDeviceNonCompliantSetting',
90-
'Get-MgUserMessageDelta', 'Get-MgUserOnenoteRecentNotebook',
91-
'Get-MgUserPlannerAllDelta',
90+
'Get-MgUserManagedDeviceWithAppFailure', 'Get-MgUserMessageDelta',
91+
'Get-MgUserOnenoteRecentNotebook', 'Get-MgUserPlannerAllDelta',
9292
'Invoke-MgCalendarUserCalendarAllowedCalendarSharingRoles',
9393
'Invoke-MgCalendarUserEventCalendarAllowedCalendarSharingRoles',
9494
'Invoke-MgPendingUserApp', 'Invoke-MgPreviewUserOnenotePage',

src/Users.Functions/Users.Functions/readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ directive:
5252
subject: ^(CalendarUserEventCalendar|CalendarUserCalendar)$
5353
set:
5454
subject: $1AllowedCalendarSharingRoles
55+
- where:
56+
verb: Get
57+
subject: ^(UserManagedDevice)$
58+
set:
59+
subject: $1WithAppFailure
5560
```
5661
### Versioning
5762

src/Users/Users/Microsoft.Graph.Users.psd1

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 8/25/2020
6+
# Generated on: 9/18/2020
77
#
88

99
@{
@@ -18,7 +18,7 @@ ModuleVersion = '0.9.2'
1818
CompatiblePSEditions = 'Core', 'Desktop'
1919

2020
# ID used to uniquely identify this module
21-
GUID = '77e1512a-dd5b-47c8-9f02-e54fc5ef6c88'
21+
GUID = '12eb6ba7-09b5-47d3-a8ed-d3b7d64c542b'
2222

2323
# Author of this module
2424
Author = 'Microsoft Corporation'
@@ -99,12 +99,15 @@ FunctionsToExport = 'Get-MgUser', 'Get-MgUserCreatedObject',
9999
'Get-MgUserPhoto', 'Get-MgUserRegisteredDevice',
100100
'Get-MgUserRegisteredDeviceByRef', 'Get-MgUserSetting',
101101
'Get-MgUserSettingRegionalAndLanguageSetting',
102-
'Get-MgUserSettingShiftPerenceByRef', 'Get-MgUserTransitiveMember',
103-
'Get-MgUserTransitiveMemberByRef', 'New-MgUser',
104-
'New-MgUserCreatedObjectByRef', 'New-MgUserDirectReportByRef',
105-
'New-MgUserExtension', 'New-MgUserLicenseDetail',
106-
'New-MgUserMemberByRef', 'New-MgUserNotification',
107-
'New-MgUserOauth2PermissionGrantByRef',
102+
'Get-MgUserSettingShiftPerenceByRef', 'Get-MgUserTodoList',
103+
'Get-MgUserTodoListExtension', 'Get-MgUserTodoListTask',
104+
'Get-MgUserTodoListTaskExtension',
105+
'Get-MgUserTodoListTaskLinkedResource',
106+
'Get-MgUserTransitiveMember', 'Get-MgUserTransitiveMemberByRef',
107+
'New-MgUser', 'New-MgUserCreatedObjectByRef',
108+
'New-MgUserDirectReportByRef', 'New-MgUserExtension',
109+
'New-MgUserLicenseDetail', 'New-MgUserMemberByRef',
110+
'New-MgUserNotification', 'New-MgUserOauth2PermissionGrantByRef',
108111
'New-MgUserOutlookMasterCategory', 'New-MgUserOutlookTask',
109112
'New-MgUserOutlookTaskAttachment', 'New-MgUserOutlookTaskFolder',
110113
'New-MgUserOutlookTaskFolderMultiValueExtendedProperty',
@@ -125,6 +128,9 @@ FunctionsToExport = 'Get-MgUser', 'Get-MgUserCreatedObject',
125128
'New-MgUserOutlookTaskSingleValueExtendedProperty',
126129
'New-MgUserOwnedDeviceByRef', 'New-MgUserOwnedObjectByRef',
127130
'New-MgUserPhoto', 'New-MgUserRegisteredDeviceByRef',
131+
'New-MgUserTodoList', 'New-MgUserTodoListExtension',
132+
'New-MgUserTodoListTask', 'New-MgUserTodoListTaskExtension',
133+
'New-MgUserTodoListTaskLinkedResource',
128134
'New-MgUserTransitiveMemberByRef', 'Remove-MgUser',
129135
'Remove-MgUserExtension', 'Remove-MgUserLicenseDetail',
130136
'Remove-MgUserManagerByRef', 'Remove-MgUserNotification',
@@ -149,7 +155,10 @@ FunctionsToExport = 'Get-MgUser', 'Get-MgUserCreatedObject',
149155
'Remove-MgUserOutlookTaskSingleValueExtendedProperty',
150156
'Remove-MgUserPhoto', 'Remove-MgUserSetting',
151157
'Remove-MgUserSettingRegionalAndLanguageSetting',
152-
'Remove-MgUserSettingShiftPerenceByRef', 'Set-MgUserManagerByRef',
158+
'Remove-MgUserSettingShiftPerenceByRef', 'Remove-MgUserTodoList',
159+
'Remove-MgUserTodoListExtension', 'Remove-MgUserTodoListTask',
160+
'Remove-MgUserTodoListTaskExtension',
161+
'Remove-MgUserTodoListTaskLinkedResource', 'Set-MgUserManagerByRef',
153162
'Update-MgUser', 'Update-MgUserExtension',
154163
'Update-MgUserLicenseDetail', 'Update-MgUserNotification',
155164
'Update-MgUserOutlook', 'Update-MgUserOutlookMasterCategory',
@@ -173,7 +182,10 @@ FunctionsToExport = 'Get-MgUser', 'Get-MgUserCreatedObject',
173182
'Update-MgUserOutlookTaskSingleValueExtendedProperty',
174183
'Update-MgUserPhoto', 'Update-MgUserSetting',
175184
'Update-MgUserSettingRegionalAndLanguageSetting',
176-
'Update-MgUserSettingShiftPerenceByRef'
185+
'Update-MgUserSettingShiftPerenceByRef', 'Update-MgUserTodoList',
186+
'Update-MgUserTodoListExtension', 'Update-MgUserTodoListTask',
187+
'Update-MgUserTodoListTaskExtension',
188+
'Update-MgUserTodoListTaskLinkedResource'
177189

178190
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
179191
CmdletsToExport = @()

src/Users/Users/readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ subject-prefix: ''
3737
> see https://github.com/Azure/autorest/blob/master/docs/powershell/directives.md
3838
3939
``` yaml
40-
40+
directive:
41+
# Remove invalid root paths e.g. users{id}/todo
42+
- remove-path-by-operation: users_(Get|Create|Update|Delete|Set)(Todo|outlook)
4143
```
4244
### Versioning
4345

0 commit comments

Comments
 (0)