Skip to content

Commit cbf0c6d

Browse files
authored
Merge pull request #180 from microsoftgraph/dev
0.5.0 Release
2 parents ad70271 + 347f3b4 commit cbf0c6d

File tree

252 files changed

+162603
-6738
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+162603
-6738
lines changed

CONTRIBUTING.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Contributing
2+
3+
When contributing to this repository, please first open an an issue describing the update you wish to make, and read over our guidelines.
4+
5+
There are a few different recommended paths to get contributions into the released version of this SDK.
6+
7+
## Filing Issues
8+
The best way to get started with a contribution is to start a dialog with us. Sometimes features will be under development or out of scope for this SDK and it's best to check before starting work on contribution, especially for large work items.
9+
10+
## Adding Scenario-Based Cmdlets
11+
- Clone the repo - https://github.com/microsoftgraph/msgraph-sdk-powershell.git.
12+
- Identify the module(s) that you want add the custom cmdlets to. E.g. [Groups.DirectoryObject](https://github.com/microsoftgraph/msgraph-sdk-powershell/tree/dev/src/Beta/Groups.DirectoryObject/Groups.DirectoryObject).
13+
- Navigate to the module’s custom folder. E.g. [Groups.DirectoryObject/custom](https://github.com/microsoftgraph/msgraph-sdk-powershell/tree/dev/src/Beta/Groups.DirectoryObject/Groups.DirectoryObject/custom). In here, you will find a readme.md that has basic instructions on how to add custom cmdlets. A full guide can be found [here](https://github.com/Azure/autorest/blob/master/docs/powershell/customization.md#creating-a-new-cmdlet).
14+
- In the custom directory, add your custom cmdlet naming the file as `{Verb}Mg{Subject}_{Variant}.(cs|ps)`. This file will contain the implementation of your custom cmdlet. You can refer to [NewMgGroupMember_Create.cs](https://github.com/microsoftgraph/msgraph-sdk-powershell/blob/dev/src/Beta/Groups.DirectoryObject/Groups.DirectoryObject/custom/NewMgGroupMember_Create.cs) as an example.
15+
- Once done, bump up the module version number in the module’s root [readme.md](https://github.com/microsoftgraph/msgraph-sdk-powershell/blob/dev/src/Beta/Groups.DirectoryObject/Groups.DirectoryObject/readme.md#versioning) then run `.\msgraph-sdk-powershell\tools\GenerateModules.ps1 -BetaGraphVersion -RepositoryApiKey *** -Pack -Build` to create, build and export the cmdlets to `..\exports` folder.
16+
17+
## Modifying Existing Cmdlets
18+
When it comes to modifying existing cmdlets, we recommend you use [AutoREST directive](https://github.com/Azure/autorest.powershell/blob/master/docs/directives.md#cmdlet-hiding-exportation-suppression).
19+
- Identify cmdlets you want to modify, and the modules they reside in.
20+
- In the module’s `readme.md`, add your directive in the AutoREST configuration sections to modify the lower-level cmdlets.
21+
22+

config/ModuleMetadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"tags": "MicrosoftGraph;Microsoft;Office365;Graph;PowerShell;GraphServiceClient;Outlook;OneDrive;AzureAD;GraphAPI;Productivity;SharePoint;Intune;SDK;",
1111
"releaseNotes": "See https://aka.ms/GraphPowerShell-Release.",
1212
"assemblyOriginatorKeyFile": "35MSSharedLib1024.snk",
13-
"version": "0.2.1"
13+
"version": "0.5.0"
1414
}

config/ModulesMapping.jsonc

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"Analytics": "^activitystatistics\\.|^users.userAnalytics$|^users.officeGraphInsights$",
33
"Bookings": "^bookingBusinesses\\.|^bookingCurrencies\\.",
44
"CloudCommunications": "^communications\\.",
5+
"DevicesApps.DeviceAppManagement": "^deviceAppManagement\\.",
56
"DevicesApps.MobileAppManagement": "^users.managedAppRegistration$|^users.windowsInformationProtectionDeviceRegistration$",
67
"DevicesApps.OfficeConfiguration": "^officeConfiguration\\.",
78
"DevicesApps.SharedResources": "^users.mobileAppTroubleshootingEvent$",
@@ -10,6 +11,7 @@
1011
"Files.Permissions": "^groups.resourceSpecificPermissionGrant$", // Missing in docs
1112
"Files.Shares": "^shares\\.",
1213
"Financials": "^financials\\.",
14+
"Groups.Actions": "^groups.Actions$",
1315
"Groups.Calendar": "^groups.calendar$|^groups.event$",
1416
"Groups.Conversation": "^groups.conversation$",
1517
"Groups.ConversationThread": "^groups.conversationThread$",
@@ -29,6 +31,7 @@
2931
"Identity.Application": "^applications\\.|^applicationTemplates\\.",
3032
"Identity.AppRoleAssignments": "^appRoleAssignments\\.|^users.appRoleAssignment$|^groups.appRoleAssignment$",
3133
"Identity.AuditLogs": "^auditLogs\\.",
34+
"Identity.AuthenticationMethods": "^users.authentication$",
3235
"Identity.AzureADPIM": "^privilegedRoles\\.|^privilegedRoleAssignments\\.|^privilegedOperationEvents\\.|^privilegedApproval\\.|^privilegedRoleAssignmentRequests\\.",
3336
"Identity.CertificateBasedAuthConfiguration": "^certificateBasedAuthConfiguration\\.",
3437
"Identity.ConditionalAccess": "^conditionalAccess\\.",
@@ -64,7 +67,9 @@
6467
"SchemaExtensions": "^schemaExtensions\\.",
6568
"Search": "^search\\.|^external\\.|^connections\\.",
6669
"Security": "^Security\\.",
70+
"Sites.Actions": "^sites.Actions$",
6771
"Sites.Drive": "^sites.drive$",
72+
"Sites.Functions": "^sites.Functions$",
6873
"Sites.List": "^sites.list$",
6974
"Sites.OneNote": "^sites.onenote$",
7075
"Sites.Pages": "^sites.sitePage$",
@@ -75,6 +80,7 @@
7580
"Teams.Chats": "^chats\\.|^users.chat$",
7681
"Teams.Team": "^teams\\.|^teamsTemplates\\.|^teamwork\\.|^groups.team$",
7782
"Teams.Teamwork": "^users.userTeamwork$",
83+
"Users.Actions": "^users.Actions$",
7884
"Users.ActivityFeed": "^users.userActivity$",
7985
"Users.Calendar": "^users.calendar$|^users.calendarGroup$|^users.event$",
8086
"Users.Contacts": "^users.contact$|^users.contactFolder$",
@@ -96,16 +102,8 @@
96102
"Users.User": "^users.user$|^users.presence$",
97103
"Users.UserSettings": "^users.userSettings$",
98104

99-
// Contains Duplicate Cmdlet
100-
// "Sites.Functions": "^sites.Functions$",
101-
// "Sites.Actions": "^sites.Actions$",
102-
103105
// Fails to build.
104-
// "Users.Actions": "^users.Actions$",
105-
// "DevicesApps.DeviceManagement": "^deviceManagement\\.|^users.deviceEnrollmentConfiguration$|^users.deviceManagementTroubleshootingEvent$|^users.managedDevice$|^users.mobileAppIntentAndState$",
106-
// "Groups.Actions": "^groups.Actions$",
107-
// "DevicesApps.DeviceAppManagement": "^deviceAppManagement\\.",
108-
106+
//"DevicesApps.DeviceManagement": "^deviceManagement\\.|^users.deviceEnrollmentConfiguration$|^users.deviceManagementTroubleshootingEvent$|^users.managedDevice$|^users.mobileAppIntentAndState$",
109107
// "Workbooks": "^workbooks\\.", - Too large
110108

111109
// Invalid / No longer supported

0 commit comments

Comments
 (0)