diff --git a/src/Applications/Applications/Microsoft.Graph.Applications.psd1 b/src/Applications/Applications/Microsoft.Graph.Applications.psd1 index 5fbae8dba2d..2d58e1d3bc5 100644 --- a/src/Applications/Applications/Microsoft.Graph.Applications.psd1 +++ b/src/Applications/Applications/Microsoft.Graph.Applications.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 8/25/2020 +# Generated on: 1/25/2021 # @{ @@ -12,13 +12,13 @@ RootModule = './Microsoft.Graph.Applications.psm1' # Version number of this module. -ModuleVersion = '0.9.2' +ModuleVersion = '1.2.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' # ID used to uniquely identify this module -GUID = 'a014f2cc-f37d-45f2-81bc-8062e00945ca' +GUID = 'b7e0ec6f-c535-43f3-ae90-08bd6a7851fa' # Author of this module Author = 'Microsoft Corporation' @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '0.9.1'; }) +RequiredModules = @(@{ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '1.2.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Microsoft.Graph.Applications.private.dll' @@ -82,8 +82,8 @@ FunctionsToExport = 'Add-MgApplicationKey', 'Add-MgApplicationPassword', 'Get-MgApplication', 'Get-MgApplicationAvailableExtensionProperty', 'Get-MgApplicationById', 'Get-MgApplicationConnectorGroup', 'Get-MgApplicationConnectorGroupByRef', - 'Get-MgApplicationCreatedOnBehalf', - 'Get-MgApplicationCreatedOnBehalfByRef', 'Get-MgApplicationDelta', + 'Get-MgApplicationCreatedOnBehalfOf', + 'Get-MgApplicationCreatedOnBehalfOfByRef', 'Get-MgApplicationDelta', 'Get-MgApplicationExtensionProperty', 'Get-MgApplicationHomeRealmDiscoveryPolicy', 'Get-MgApplicationHomeRealmDiscoveryPolicyByRef', @@ -110,6 +110,10 @@ FunctionsToExport = 'Add-MgApplicationKey', 'Add-MgApplicationPassword', 'Get-MgOnPremisePublishingProfileAgentGroupPublishedResourceAgentGroup', 'Get-MgOnPremisePublishingProfileConnector', 'Get-MgOnPremisePublishingProfileConnectorGroup', + 'Get-MgOnPremisePublishingProfileConnectorGroupApplication', + 'Get-MgOnPremisePublishingProfileConnectorGroupApplicationByRef', + 'Get-MgOnPremisePublishingProfileConnectorGroupMember', + 'Get-MgOnPremisePublishingProfileConnectorMemberOf', 'Get-MgOnPremisePublishingProfilePublishedResource', 'Get-MgOnPremisePublishingProfilePublishedResourceAgentGroup', 'Get-MgOnPremisePublishingProfilePublishedResourceAgentGroupAgent', @@ -122,13 +126,15 @@ FunctionsToExport = 'Add-MgApplicationKey', 'Add-MgApplicationPassword', 'Get-MgServicePrincipalClaimMappingPolicyByRef', 'Get-MgServicePrincipalCreatedObject', 'Get-MgServicePrincipalCreatedObjectByRef', + 'Get-MgServicePrincipalDelegatedPermissionClassification', 'Get-MgServicePrincipalDelta', 'Get-MgServicePrincipalEndpoint', 'Get-MgServicePrincipalHomeRealmDiscoveryPolicy', 'Get-MgServicePrincipalHomeRealmDiscoveryPolicyByRef', 'Get-MgServicePrincipalLicenseDetail', - 'Get-MgServicePrincipalMember', 'Get-MgServicePrincipalMemberByRef', 'Get-MgServicePrincipalMemberGroup', 'Get-MgServicePrincipalMemberObject', + 'Get-MgServicePrincipalMemberOf', + 'Get-MgServicePrincipalMemberOfByRef', 'Get-MgServicePrincipalOauth2PermissionGrant', 'Get-MgServicePrincipalOauth2PermissionGrantByRef', 'Get-MgServicePrincipalOwnedObject', @@ -147,8 +153,8 @@ FunctionsToExport = 'Add-MgApplicationKey', 'Add-MgApplicationPassword', 'Get-MgServicePrincipalTokenIssuancePolicyByRef', 'Get-MgServicePrincipalTokenLifetimePolicy', 'Get-MgServicePrincipalTokenLifetimePolicyByRef', - 'Get-MgServicePrincipalTransitiveMember', - 'Get-MgServicePrincipalTransitiveMemberByRef', + 'Get-MgServicePrincipalTransitiveMemberOf', + 'Get-MgServicePrincipalTransitiveMemberOfByRef', 'Get-MgServicePrincipalUserOwnedObject', 'Get-MgUserAppRoleAssignment', 'Invoke-MgFilterApplicationSynchronizationJobSchemaOperator', @@ -183,6 +189,8 @@ FunctionsToExport = 'Add-MgApplicationKey', 'Add-MgApplicationPassword', 'New-MgOnPremisePublishingProfileAgentGroupPublishedResourceAgentGroup', 'New-MgOnPremisePublishingProfileConnector', 'New-MgOnPremisePublishingProfileConnectorGroup', + 'New-MgOnPremisePublishingProfileConnectorGroupApplicationByRef', + 'New-MgOnPremisePublishingProfileConnectorMemberOf', 'New-MgOnPremisePublishingProfilePublishedResource', 'New-MgOnPremisePublishingProfilePublishedResourceAgentGroup', 'New-MgOnPremisePublishingProfilePublishedResourceAgentGroupAgent', @@ -191,10 +199,11 @@ FunctionsToExport = 'Add-MgApplicationKey', 'Add-MgApplicationPassword', 'New-MgServicePrincipalAppRoleAssignment', 'New-MgServicePrincipalClaimMappingPolicyByRef', 'New-MgServicePrincipalCreatedObjectByRef', + 'New-MgServicePrincipalDelegatedPermissionClassification', 'New-MgServicePrincipalEndpoint', 'New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef', 'New-MgServicePrincipalLicenseDetail', - 'New-MgServicePrincipalMemberByRef', + 'New-MgServicePrincipalMemberOfByRef', 'New-MgServicePrincipalOauth2PermissionGrantByRef', 'New-MgServicePrincipalOwnedObjectByRef', 'New-MgServicePrincipalOwnerByRef', @@ -206,11 +215,11 @@ FunctionsToExport = 'Add-MgApplicationKey', 'Add-MgApplicationPassword', 'New-MgServicePrincipalSynchronizationTemplateSchemaDirectory', 'New-MgServicePrincipalTokenIssuancePolicyByRef', 'New-MgServicePrincipalTokenLifetimePolicyByRef', - 'New-MgServicePrincipalTransitiveMemberByRef', + 'New-MgServicePrincipalTransitiveMemberOfByRef', 'New-MgUserAppRoleAssignment', 'Ping-MgApplicationsSynchronization', 'Ping-MgServicePrincipalsSynchronization', 'Remove-MgApplication', 'Remove-MgApplicationConnectorGroupByRef', - 'Remove-MgApplicationCreatedOnBehalfByRef', + 'Remove-MgApplicationCreatedOnBehalfOfByRef', 'Remove-MgApplicationExtensionProperty', 'Remove-MgApplicationKey', 'Remove-MgApplicationPassword', 'Remove-MgApplicationSynchronization', @@ -229,6 +238,7 @@ FunctionsToExport = 'Add-MgApplicationKey', 'Add-MgApplicationPassword', 'Remove-MgOnPremisePublishingProfileAgentGroupPublishedResourceAgentGroup', 'Remove-MgOnPremisePublishingProfileConnector', 'Remove-MgOnPremisePublishingProfileConnectorGroup', + 'Remove-MgOnPremisePublishingProfileConnectorMemberOf', 'Remove-MgOnPremisePublishingProfilePublishedResource', 'Remove-MgOnPremisePublishingProfilePublishedResourceAgentGroup', 'Remove-MgOnPremisePublishingProfilePublishedResourceAgentGroupAgent', @@ -236,6 +246,7 @@ FunctionsToExport = 'Add-MgApplicationKey', 'Add-MgApplicationPassword', 'Remove-MgServicePrincipal', 'Remove-MgServicePrincipalAppRoleAssignedTo', 'Remove-MgServicePrincipalAppRoleAssignment', + 'Remove-MgServicePrincipalDelegatedPermissionClassification', 'Remove-MgServicePrincipalEndpoint', 'Remove-MgServicePrincipalKey', 'Remove-MgServicePrincipalLicenseDetail', 'Remove-MgServicePrincipalPassword', @@ -252,7 +263,7 @@ FunctionsToExport = 'Add-MgApplicationKey', 'Add-MgApplicationPassword', 'Restart-MgServicePrincipalSynchronizationJob', 'Restore-MgApplication', 'Restore-MgServicePrincipal', 'Set-MgApplicationConnectorGroupByRef', - 'Set-MgApplicationCreatedOnBehalfByRef', 'Set-MgApplicationLogo', + 'Set-MgApplicationCreatedOnBehalfOfByRef', 'Set-MgApplicationLogo', 'Start-MgApplicationSynchronizationJob', 'Start-MgServicePrincipalSynchronizationJob', 'Stop-MgApplicationSynchronizationJob', @@ -280,6 +291,7 @@ FunctionsToExport = 'Add-MgApplicationKey', 'Add-MgApplicationPassword', 'Update-MgOnPremisePublishingProfileAgentGroupPublishedResourceAgentGroup', 'Update-MgOnPremisePublishingProfileConnector', 'Update-MgOnPremisePublishingProfileConnectorGroup', + 'Update-MgOnPremisePublishingProfileConnectorMemberOf', 'Update-MgOnPremisePublishingProfilePublishedResource', 'Update-MgOnPremisePublishingProfilePublishedResourceAgentGroup', 'Update-MgOnPremisePublishingProfilePublishedResourceAgentGroupAgent', @@ -287,6 +299,7 @@ FunctionsToExport = 'Add-MgApplicationKey', 'Add-MgApplicationPassword', 'Update-MgServicePrincipal', 'Update-MgServicePrincipalAppRoleAssignedTo', 'Update-MgServicePrincipalAppRoleAssignment', + 'Update-MgServicePrincipalDelegatedPermissionClassification', 'Update-MgServicePrincipalEndpoint', 'Update-MgServicePrincipalLicenseDetail', 'Update-MgServicePrincipalPasswordSingleSignOnCredentials', @@ -306,7 +319,15 @@ CmdletsToExport = @() # VariablesToExport = @() # Aliases 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 aliases to export. -AliasesToExport = '*' +AliasesToExport = 'Get-MgApplicationCreatedOnBehalf', + 'Get-MgApplicationCreatedOnBehalfByRef', + 'Get-MgServicePrincipalMember', 'Get-MgServicePrincipalMemberByRef', + 'Get-MgServicePrincipalTransitiveMember', + 'Get-MgServicePrincipalTransitiveMemberByRef', + 'New-MgServicePrincipalMemberByRef', + 'New-MgServicePrincipalTransitiveMemberByRef', + 'Remove-MgApplicationCreatedOnBehalfByRef', + 'Set-MgApplicationCreatedOnBehalfByRef' # DSC resources to export from this module # DscResourcesToExport = @() @@ -335,7 +356,7 @@ PrivateData = @{ ProjectUri = 'https://github.com/microsoftgraph/msgraph-sdk-powershell' # A URL to an icon representing this module. - IconUri = 'https://raw.githubusercontent.com/microsoftgraph/g-raph/master/g-raph.png' + IconUri = 'https://raw.githubusercontent.com/microsoftgraph/msgraph-sdk-powershell/master/documentation/images/graph_color256.png' # ReleaseNotes of this module ReleaseNotes = 'See https://aka.ms/GraphPowerShell-Release.' diff --git a/src/Applications/Applications/readme.md b/src/Applications/Applications/readme.md index 2f514bc65df..57a26a13453 100644 --- a/src/Applications/Applications/readme.md +++ b/src/Applications/Applications/readme.md @@ -47,6 +47,15 @@ directive: subject: (Application|ServicePrincipal)SynchronizationJobCredentials variant: Validate1|ValidateExpanded1|ValidateViaIdentity1|ValidateViaIdentityExpanded1 remove: true +# Alias then rename cmdlets to avoid breaking change. + - where: + subject: ^(ServicePrincipal|Application)(Member|TransitiveMember|CreatedOnBehalf)$ + set: + alias: ${verb}-Mg${subject} + - where: + subject: ^(ServicePrincipal|Application)(Member|TransitiveMember|CreatedOnBehalf)$ + set: + subject: $1$2Of # Rename wrongly named cmdlets - where: verb: Get diff --git a/src/Groups/Groups/Microsoft.Graph.Groups.psd1 b/src/Groups/Groups/Microsoft.Graph.Groups.psd1 index 3d2840e7055..27cb7aafe20 100644 --- a/src/Groups/Groups/Microsoft.Graph.Groups.psd1 +++ b/src/Groups/Groups/Microsoft.Graph.Groups.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 8/25/2020 +# Generated on: 1/25/2021 # @{ @@ -12,13 +12,13 @@ RootModule = './Microsoft.Graph.Groups.psm1' # Version number of this module. -ModuleVersion = '0.9.2' +ModuleVersion = '1.2.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' # ID used to uniquely identify this module -GUID = '804f073f-e282-4562-9171-7d6fe134987e' +GUID = '0b410dab-6817-40dd-b2da-4f6519946b47' # Author of this module Author = 'Microsoft Corporation' @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '0.9.1'; }) +RequiredModules = @(@{ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '1.2.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Microsoft.Graph.Groups.private.dll' @@ -85,7 +85,7 @@ FunctionsToExport = 'Add-MgGroupFavorite', 'Add-MgGroupToLifecyclePolicy', 'Get-MgGroupConversationThreadPostMention', 'Get-MgGroupConversationThreadPostMultiValueExtendedProperty', 'Get-MgGroupConversationThreadPostSingleValueExtendedProperty', - 'Get-MgGroupCreatedOnBehalf', 'Get-MgGroupCreatedOnBehalfByRef', + 'Get-MgGroupCreatedOnBehalfOf', 'Get-MgGroupCreatedOnBehalfOfByRef', 'Get-MgGroupDelta', 'Get-MgGroupEndpoint', 'Get-MgGroupEventDelta', 'Get-MgGroupExtension', 'Get-MgGroupLifecyclePolicy', 'Get-MgGroupMember', 'Get-MgGroupMemberByRef', @@ -96,7 +96,8 @@ FunctionsToExport = 'Add-MgGroupFavorite', 'Add-MgGroupToLifecyclePolicy', 'Get-MgGroupOnenoteNotebookFromWebUrl', 'Get-MgGroupOnenoteRecentNotebook', 'Get-MgGroupOwner', 'Get-MgGroupOwnerByRef', 'Get-MgGroupPermissionGrant', - 'Get-MgGroupPhoto', 'Get-MgGroupRejectedSender', 'Get-MgGroupSetting', + 'Get-MgGroupPhoto', 'Get-MgGroupPhotoContent', + 'Get-MgGroupRejectedSender', 'Get-MgGroupSetting', 'Get-MgGroupThread', 'Get-MgGroupThreadPost', 'Get-MgGroupThreadPostAttachment', 'Get-MgGroupThreadPostExtension', 'Get-MgGroupThreadPostMention', @@ -157,7 +158,7 @@ FunctionsToExport = 'Add-MgGroupFavorite', 'Add-MgGroupToLifecyclePolicy', 'Remove-MgGroupConversationThreadPostMention', 'Remove-MgGroupConversationThreadPostMultiValueExtendedProperty', 'Remove-MgGroupConversationThreadPostSingleValueExtendedProperty', - 'Remove-MgGroupCreatedOnBehalfByRef', 'Remove-MgGroupEndpoint', + 'Remove-MgGroupCreatedOnBehalfOfByRef', 'Remove-MgGroupEndpoint', 'Remove-MgGroupExtension', 'Remove-MgGroupFavorite', 'Remove-MgGroupFromLifecyclePolicy', 'Remove-MgGroupLifecyclePolicy', 'Remove-MgGroupPermissionGrant', @@ -169,12 +170,12 @@ FunctionsToExport = 'Add-MgGroupFavorite', 'Add-MgGroupToLifecyclePolicy', 'Remove-MgGroupThreadPostMultiValueExtendedProperty', 'Remove-MgGroupThreadPostSingleValueExtendedProperty', 'Remove-MgUserJoinedGroup', 'Reset-MgGroupUnseenCount', - 'Restore-MgGroup', 'Set-MgGroupCreatedOnBehalfByRef', - 'Set-MgGroupLicense', 'Stop-MgGroupCalendarEvent', - 'Stop-MgGroupEvent', 'Test-MgGroupDynamicMembership', - 'Test-MgGroupProperty', 'Update-MgGroup', - 'Update-MgGroupAcceptedSender', 'Update-MgGroupConversation', - 'Update-MgGroupConversationThread', + 'Restore-MgGroup', 'Set-MgGroupCreatedOnBehalfOfByRef', + 'Set-MgGroupLicense', 'Set-MgGroupPhotoContent', + 'Stop-MgGroupCalendarEvent', 'Stop-MgGroupEvent', + 'Test-MgGroupDynamicMembership', 'Test-MgGroupProperty', + 'Update-MgGroup', 'Update-MgGroupAcceptedSender', + 'Update-MgGroupConversation', 'Update-MgGroupConversationThread', 'Update-MgGroupConversationThreadPost', 'Update-MgGroupConversationThreadPostAttachment', 'Update-MgGroupConversationThreadPostExtension', @@ -200,7 +201,9 @@ CmdletsToExport = @() # VariablesToExport = @() # Aliases 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 aliases to export. -AliasesToExport = '*' +AliasesToExport = 'Get-MgGroupCreatedOnBehalf', 'Get-MgGroupCreatedOnBehalfByRef', + 'Remove-MgGroupCreatedOnBehalfByRef', + 'Set-MgGroupCreatedOnBehalfByRef' # DSC resources to export from this module # DscResourcesToExport = @() @@ -229,7 +232,7 @@ PrivateData = @{ ProjectUri = 'https://github.com/microsoftgraph/msgraph-sdk-powershell' # A URL to an icon representing this module. - IconUri = 'https://raw.githubusercontent.com/microsoftgraph/g-raph/master/g-raph.png' + IconUri = 'https://raw.githubusercontent.com/microsoftgraph/msgraph-sdk-powershell/master/documentation/images/graph_color256.png' # ReleaseNotes of this module ReleaseNotes = 'See https://aka.ms/GraphPowerShell-Release.' diff --git a/src/Groups/Groups/readme.md b/src/Groups/Groups/readme.md index 98b1818472a..a29c09749c3 100644 --- a/src/Groups/Groups/readme.md +++ b/src/Groups/Groups/readme.md @@ -124,7 +124,15 @@ directive: subject: ^(GroupOnenoteNotebookSectionGroupSectionPage)$ set: subject: $1Content - +# Alias then rename cmdlets to avoid breaking change. + - where: + subject: ^(Group)(CreatedOnBehalf)$ + set: + alias: ${verb}-Mg${subject} + - where: + subject: ^(Group)(CreatedOnBehalf)$ + set: + subject: $1$2Of ``` ### Versioning diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/Microsoft.Graph.Identity.DirectoryManagement.psd1 b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/Microsoft.Graph.Identity.DirectoryManagement.psd1 index c033dd5653d..9b8b7b2d109 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/Microsoft.Graph.Identity.DirectoryManagement.psd1 +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/Microsoft.Graph.Identity.DirectoryManagement.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 8/25/2020 +# Generated on: 1/25/2021 # @{ @@ -12,13 +12,13 @@ RootModule = './Microsoft.Graph.Identity.DirectoryManagement.psm1' # Version number of this module. -ModuleVersion = '0.9.2' +ModuleVersion = '1.2.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' # ID used to uniquely identify this module -GUID = '6337ab02-706b-4234-903e-0e869d211f59' +GUID = '425a1701-eeb7-4d6f-8ff4-5f58497e4f0e' # Author of this module Author = 'Microsoft Corporation' @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '0.9.1'; }) +RequiredModules = @(@{ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '1.2.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Microsoft.Graph.Identity.DirectoryManagement.private.dll' @@ -93,23 +93,30 @@ FunctionsToExport = 'Confirm-MgAdministrativeUnitMemberGroup', 'Get-MgContactAvailableExtensionProperty', 'Get-MgContactById', 'Get-MgContactDelta', 'Get-MgContactDirectReport', 'Get-MgContactDirectReportByRef', 'Get-MgContactManager', - 'Get-MgContactManagerByRef', 'Get-MgContactMember', - 'Get-MgContactMemberByRef', 'Get-MgContactMemberGroup', - 'Get-MgContactMemberObject', 'Get-MgContactTransitiveMember', - 'Get-MgContactTransitiveMemberByRef', + 'Get-MgContactManagerByRef', 'Get-MgContactMemberGroup', + 'Get-MgContactMemberObject', 'Get-MgContactMemberOf', + 'Get-MgContactMemberOfByRef', 'Get-MgContactTransitiveMemberOf', + 'Get-MgContactTransitiveMemberOfByRef', 'Get-MgContactUserOwnedObject', 'Get-MgContract', 'Get-MgContractAvailableExtensionProperty', 'Get-MgContractById', 'Get-MgContractMemberGroup', 'Get-MgContractMemberObject', 'Get-MgContractUserOwnedObject', 'Get-MgDevice', 'Get-MgDeviceAvailableExtensionProperty', 'Get-MgDeviceById', - 'Get-MgDeviceCommand', 'Get-MgDeviceExtension', 'Get-MgDeviceMember', - 'Get-MgDeviceMemberByRef', 'Get-MgDeviceMemberGroup', - 'Get-MgDeviceMemberObject', 'Get-MgDeviceRegisteredOwner', - 'Get-MgDeviceRegisteredOwnerByRef', 'Get-MgDeviceRegisteredUser', - 'Get-MgDeviceRegisteredUserByRef', 'Get-MgDeviceTransitiveMember', - 'Get-MgDeviceTransitiveMemberByRef', 'Get-MgDeviceUserOwnedObject', - 'Get-MgDirectory', 'Get-MgDirectoryDeletedItem', - 'Get-MgDirectoryFeatureRolloutPolicy', + 'Get-MgDeviceCommand', 'Get-MgDeviceExtension', + 'Get-MgDeviceMemberGroup', 'Get-MgDeviceMemberObject', + 'Get-MgDeviceMemberOf', 'Get-MgDeviceMemberOfByRef', + 'Get-MgDeviceRegisteredOwner', 'Get-MgDeviceRegisteredOwnerByRef', + 'Get-MgDeviceRegisteredUser', 'Get-MgDeviceRegisteredUserByRef', + 'Get-MgDeviceTransitiveMemberOf', + 'Get-MgDeviceTransitiveMemberOfByRef', + 'Get-MgDeviceUserOwnedObject', 'Get-MgDirectory', + 'Get-MgDirectoryAdministrativeUnit', + 'Get-MgDirectoryAdministrativeUnitDelta', + 'Get-MgDirectoryAdministrativeUnitExtension', + 'Get-MgDirectoryAdministrativeUnitMember', + 'Get-MgDirectoryAdministrativeUnitMemberByRef', + 'Get-MgDirectoryAdministrativeUnitScopedRoleMember', + 'Get-MgDirectoryDeletedItem', 'Get-MgDirectoryFeatureRolloutPolicy', 'Get-MgDirectoryFeatureRolloutPolicyApplyTo', 'Get-MgDirectoryRole', 'Get-MgDirectoryRoleAvailableExtensionProperty', 'Get-MgDirectoryRoleById', 'Get-MgDirectoryRoleDelta', @@ -126,51 +133,70 @@ FunctionsToExport = 'Confirm-MgAdministrativeUnitMemberGroup', 'Get-MgDirectorySettingTemplateById', 'Get-MgDirectorySettingTemplateMemberGroup', 'Get-MgDirectorySettingTemplateMemberObject', - 'Get-MgDirectorySettingTemplateUserOwnedObject', 'Get-MgDomain', + 'Get-MgDirectorySettingTemplateUserOwnedObject', + 'Get-MgDirectorySharedEmailDomain', 'Get-MgDomain', 'Get-MgDomainNameerenceByRef', 'Get-MgDomainRefDomainNameerenceByRef', 'Get-MgDomainServiceConfigurationRecord', + 'Get-MgDomainSharedEmailDomainInvitation', 'Get-MgDomainVerificationDnsRecord', 'Get-MgOrganization', 'Get-MgOrganizationAvailableExtensionProperty', 'Get-MgOrganizationBranding', 'Get-MgOrganizationById', 'Get-MgOrganizationExtension', 'Get-MgOrganizationMemberGroup', - 'Get-MgOrganizationMemberObject', + 'Get-MgOrganizationMemberObject', 'Get-MgOrganizationSetting', + 'Get-MgOrganizationSettingItemInsight', + 'Get-MgOrganizationSettingProfileCardProperty', 'Get-MgOrganizationUserOwnedObject', 'Get-MgSubscribedSku', - 'Get-MgUserScopedRoleMember', 'Invoke-MgForceDomainDelete', + 'Get-MgUserScopedRoleMemberOf', 'Invoke-MgForceDomainDelete', 'New-MgAdministrativeUnit', 'New-MgAdministrativeUnitExtension', 'New-MgAdministrativeUnitMemberByRef', 'New-MgAdministrativeUnitScopedRoleMember', 'New-MgContact', - 'New-MgContactDirectReportByRef', 'New-MgContactMemberByRef', - 'New-MgContactTransitiveMemberByRef', 'New-MgContract', + 'New-MgContactDirectReportByRef', 'New-MgContactMemberOfByRef', + 'New-MgContactTransitiveMemberOfByRef', 'New-MgContract', 'New-MgDevice', 'New-MgDeviceCommand', 'New-MgDeviceExtension', - 'New-MgDeviceMemberByRef', 'New-MgDeviceRegisteredOwnerByRef', + 'New-MgDeviceMemberOfByRef', 'New-MgDeviceRegisteredOwnerByRef', 'New-MgDeviceRegisteredUserByRef', - 'New-MgDeviceTransitiveMemberByRef', 'New-MgDirectoryDeletedItem', - 'New-MgDirectoryFeatureRolloutPolicy', + 'New-MgDeviceTransitiveMemberOfByRef', + 'New-MgDirectoryAdministrativeUnit', + 'New-MgDirectoryAdministrativeUnitExtension', + 'New-MgDirectoryAdministrativeUnitMemberByRef', + 'New-MgDirectoryAdministrativeUnitScopedRoleMember', + 'New-MgDirectoryDeletedItem', 'New-MgDirectoryFeatureRolloutPolicy', 'New-MgDirectoryFeatureRolloutPolicyApplyTo', 'New-MgDirectoryRole', 'New-MgDirectoryRoleMemberByRef', 'New-MgDirectoryRoleScopedMember', 'New-MgDirectoryRoleTemplate', 'New-MgDirectorySetting', - 'New-MgDirectorySettingTemplate', 'New-MgDomain', + 'New-MgDirectorySettingTemplate', + 'New-MgDirectorySharedEmailDomain', 'New-MgDomain', 'New-MgDomainRefDomainNameerenceByRef', 'New-MgDomainServiceConfigurationRecord', + 'New-MgDomainSharedEmailDomainInvitation', 'New-MgDomainVerificationDnsRecord', 'New-MgOrganization', - 'New-MgOrganizationBranding', 'New-MgOrganizationExtension', - 'New-MgSubscribedSku', 'New-MgUserScopedRoleMember', + 'New-MgOrganizationExtension', + 'New-MgOrganizationSettingProfileCardProperty', + 'New-MgSubscribedSku', 'New-MgUserScopedRoleMemberOf', 'Remove-MgAdministrativeUnit', 'Remove-MgAdministrativeUnitExtension', 'Remove-MgAdministrativeUnitScopedRoleMember', 'Remove-MgContact', 'Remove-MgContactManagerByRef', 'Remove-MgContract', 'Remove-MgDevice', 'Remove-MgDeviceCommand', - 'Remove-MgDeviceExtension', 'Remove-MgDirectoryDeletedItem', + 'Remove-MgDeviceExtension', 'Remove-MgDirectoryAdministrativeUnit', + 'Remove-MgDirectoryAdministrativeUnitExtension', + 'Remove-MgDirectoryAdministrativeUnitScopedRoleMember', + 'Remove-MgDirectoryDeletedItem', 'Remove-MgDirectoryFeatureRolloutPolicy', 'Remove-MgDirectoryFeatureRolloutPolicyApplyTo', 'Remove-MgDirectoryRole', 'Remove-MgDirectoryRoleScopedMember', 'Remove-MgDirectoryRoleTemplate', 'Remove-MgDirectorySetting', - 'Remove-MgDirectorySettingTemplate', 'Remove-MgDomain', + 'Remove-MgDirectorySettingTemplate', + 'Remove-MgDirectorySharedEmailDomain', 'Remove-MgDomain', 'Remove-MgDomainServiceConfigurationRecord', + 'Remove-MgDomainSharedEmailDomainInvitation', 'Remove-MgDomainVerificationDnsRecord', 'Remove-MgOrganization', 'Remove-MgOrganizationBranding', 'Remove-MgOrganizationExtension', - 'Remove-MgSubscribedSku', 'Remove-MgUserScopedRoleMember', + 'Remove-MgOrganizationSetting', + 'Remove-MgOrganizationSettingItemInsight', + 'Remove-MgOrganizationSettingProfileCardProperty', + 'Remove-MgSubscribedSku', 'Remove-MgUserScopedRoleMemberOf', 'Restore-MgAdministrativeUnit', 'Restore-MgContact', 'Restore-MgContract', 'Restore-MgDevice', 'Restore-MgDirectoryRole', 'Restore-MgDirectoryRoleTemplate', @@ -187,16 +213,24 @@ FunctionsToExport = 'Confirm-MgAdministrativeUnitMemberGroup', 'Update-MgAdministrativeUnitScopedRoleMember', 'Update-MgContact', 'Update-MgContract', 'Update-MgDevice', 'Update-MgDeviceCommand', 'Update-MgDeviceExtension', 'Update-MgDirectory', + 'Update-MgDirectoryAdministrativeUnit', + 'Update-MgDirectoryAdministrativeUnitExtension', + 'Update-MgDirectoryAdministrativeUnitScopedRoleMember', 'Update-MgDirectoryDeletedItem', 'Update-MgDirectoryFeatureRolloutPolicy', 'Update-MgDirectoryFeatureRolloutPolicyApplyTo', 'Update-MgDirectoryRole', 'Update-MgDirectoryRoleScopedMember', 'Update-MgDirectoryRoleTemplate', 'Update-MgDirectorySetting', - 'Update-MgDirectorySettingTemplate', 'Update-MgDomain', + 'Update-MgDirectorySettingTemplate', + 'Update-MgDirectorySharedEmailDomain', 'Update-MgDomain', 'Update-MgDomainServiceConfigurationRecord', + 'Update-MgDomainSharedEmailDomainInvitation', 'Update-MgDomainVerificationDnsRecord', 'Update-MgOrganization', 'Update-MgOrganizationBranding', 'Update-MgOrganizationExtension', - 'Update-MgSubscribedSku', 'Update-MgUserScopedRoleMember' + 'Update-MgOrganizationSetting', + 'Update-MgOrganizationSettingItemInsight', + 'Update-MgOrganizationSettingProfileCardProperty', + 'Update-MgSubscribedSku', 'Update-MgUserScopedRoleMemberOf' # 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. CmdletsToExport = @() @@ -205,7 +239,15 @@ CmdletsToExport = @() # VariablesToExport = @() # Aliases 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 aliases to export. -AliasesToExport = '*' +AliasesToExport = 'Get-MgContactMember', 'Get-MgContactMemberByRef', + 'Get-MgContactTransitiveMember', + 'Get-MgContactTransitiveMemberByRef', 'Get-MgDeviceMember', + 'Get-MgDeviceMemberByRef', 'Get-MgDeviceTransitiveMember', + 'Get-MgDeviceTransitiveMemberByRef', 'Get-MgUserScopedRoleMember', + 'New-MgContactMemberByRef', 'New-MgContactTransitiveMemberByRef', + 'New-MgDeviceMemberByRef', 'New-MgDeviceTransitiveMemberByRef', + 'New-MgUserScopedRoleMember', 'Remove-MgUserScopedRoleMember', + 'Update-MgUserScopedRoleMember' # DSC resources to export from this module # DscResourcesToExport = @() @@ -234,7 +276,7 @@ PrivateData = @{ ProjectUri = 'https://github.com/microsoftgraph/msgraph-sdk-powershell' # A URL to an icon representing this module. - IconUri = 'https://raw.githubusercontent.com/microsoftgraph/g-raph/master/g-raph.png' + IconUri = 'https://raw.githubusercontent.com/microsoftgraph/msgraph-sdk-powershell/master/documentation/images/graph_color256.png' # ReleaseNotes of this module ReleaseNotes = 'See https://aka.ms/GraphPowerShell-Release.' diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/readme.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/readme.md index 3a5ff69c5a6..f6c3593bd74 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/readme.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/readme.md @@ -38,6 +38,24 @@ subject-prefix: '' ``` yaml directive: +# Alias then rename cmdlets to avoid breaking change. + - where: + subject: ^UserScopedRoleMember$ + set: + alias: ${verb}-Mg${subject} + - where: + subject: ^UserScopedRoleMember$ + set: + subject: UserScopedRoleMemberOf + - where: + subject: ^(Contact|Device)(Member|TransitiveMember)$ + set: + alias: ${verb}-Mg${subject} + - where: + subject: ^(Contact|Device)(Member|TransitiveMember)$ + set: + subject: $1$2Of +# Rename cmdlets - where: verb: Get subject: (^DirectorySettingTemplate$) diff --git a/src/Users/Users/Microsoft.Graph.Users.psd1 b/src/Users/Users/Microsoft.Graph.Users.psd1 index e4f8ccd1f96..e04f1fa6161 100644 --- a/src/Users/Users/Microsoft.Graph.Users.psd1 +++ b/src/Users/Users/Microsoft.Graph.Users.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 9/18/2020 +# Generated on: 1/25/2021 # @{ @@ -12,13 +12,13 @@ RootModule = './Microsoft.Graph.Users.psm1' # Version number of this module. -ModuleVersion = '0.9.2' +ModuleVersion = '1.2.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' # ID used to uniquely identify this module -GUID = '12eb6ba7-09b5-47d3-a8ed-d3b7d64c542b' +GUID = '1d79a711-ac42-46b7-9e16-c90f2f7460bb' # Author of this module Author = 'Microsoft Corporation' @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '0.9.1'; }) +RequiredModules = @(@{ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '1.2.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = './bin/Microsoft.Graph.Users.private.dll' @@ -73,9 +73,10 @@ FunctionsToExport = 'Get-MgUser', 'Get-MgUserCreatedObject', 'Get-MgUserCreatedObjectByRef', 'Get-MgUserDirectReport', 'Get-MgUserDirectReportByRef', 'Get-MgUserExtension', 'Get-MgUserLicenseDetail', 'Get-MgUserManager', - 'Get-MgUserManagerByRef', 'Get-MgUserMember', 'Get-MgUserMemberByRef', - 'Get-MgUserNotification', 'Get-MgUserOauth2PermissionGrant', - 'Get-MgUserOauth2PermissionGrantByRef', 'Get-MgUserOutlook', + 'Get-MgUserManagerByRef', 'Get-MgUserMemberOf', + 'Get-MgUserMemberOfByRef', 'Get-MgUserNotification', + 'Get-MgUserOauth2PermissionGrant', + 'Get-MgUserOauth2PermissionGrantByRef', 'Get-MgUserOutlookMasterCategory', 'Get-MgUserOutlookTask', 'Get-MgUserOutlookTaskAttachment', 'Get-MgUserOutlookTaskFolder', 'Get-MgUserOutlookTaskFolderMultiValueExtendedProperty', @@ -96,17 +97,17 @@ FunctionsToExport = 'Get-MgUser', 'Get-MgUserCreatedObject', 'Get-MgUserOutlookTaskSingleValueExtendedProperty', 'Get-MgUserOwnedDevice', 'Get-MgUserOwnedDeviceByRef', 'Get-MgUserOwnedObject', 'Get-MgUserOwnedObjectByRef', - 'Get-MgUserPhoto', 'Get-MgUserRegisteredDevice', - 'Get-MgUserRegisteredDeviceByRef', 'Get-MgUserSetting', - 'Get-MgUserSettingRegionalAndLanguageSetting', + 'Get-MgUserPhoto', 'Get-MgUserPhotoContent', + 'Get-MgUserRegisteredDevice', 'Get-MgUserRegisteredDeviceByRef', + 'Get-MgUserSetting', 'Get-MgUserSettingRegionalAndLanguageSetting', 'Get-MgUserSettingShiftPerenceByRef', 'Get-MgUserTodoList', 'Get-MgUserTodoListExtension', 'Get-MgUserTodoListTask', 'Get-MgUserTodoListTaskExtension', 'Get-MgUserTodoListTaskLinkedResource', - 'Get-MgUserTransitiveMember', 'Get-MgUserTransitiveMemberByRef', + 'Get-MgUserTransitiveMemberOf', 'Get-MgUserTransitiveMemberOfByRef', 'New-MgUser', 'New-MgUserCreatedObjectByRef', 'New-MgUserDirectReportByRef', 'New-MgUserExtension', - 'New-MgUserLicenseDetail', 'New-MgUserMemberByRef', + 'New-MgUserLicenseDetail', 'New-MgUserMemberOfByRef', 'New-MgUserNotification', 'New-MgUserOauth2PermissionGrantByRef', 'New-MgUserOutlookMasterCategory', 'New-MgUserOutlookTask', 'New-MgUserOutlookTaskAttachment', 'New-MgUserOutlookTaskFolder', @@ -131,11 +132,11 @@ FunctionsToExport = 'Get-MgUser', 'Get-MgUserCreatedObject', 'New-MgUserTodoList', 'New-MgUserTodoListExtension', 'New-MgUserTodoListTask', 'New-MgUserTodoListTaskExtension', 'New-MgUserTodoListTaskLinkedResource', - 'New-MgUserTransitiveMemberByRef', 'Remove-MgUser', + 'New-MgUserTransitiveMemberOfByRef', 'Remove-MgUser', 'Remove-MgUserExtension', 'Remove-MgUserLicenseDetail', 'Remove-MgUserManagerByRef', 'Remove-MgUserNotification', - 'Remove-MgUserOutlook', 'Remove-MgUserOutlookMasterCategory', - 'Remove-MgUserOutlookTask', 'Remove-MgUserOutlookTaskAttachment', + 'Remove-MgUserOutlookMasterCategory', 'Remove-MgUserOutlookTask', + 'Remove-MgUserOutlookTaskAttachment', 'Remove-MgUserOutlookTaskFolder', 'Remove-MgUserOutlookTaskFolderMultiValueExtendedProperty', 'Remove-MgUserOutlookTaskFolderSingleValueExtendedProperty', @@ -159,10 +160,10 @@ FunctionsToExport = 'Get-MgUser', 'Get-MgUserCreatedObject', 'Remove-MgUserTodoListExtension', 'Remove-MgUserTodoListTask', 'Remove-MgUserTodoListTaskExtension', 'Remove-MgUserTodoListTaskLinkedResource', 'Set-MgUserManagerByRef', - 'Update-MgUser', 'Update-MgUserExtension', + 'Set-MgUserPhotoContent', 'Update-MgUser', 'Update-MgUserExtension', 'Update-MgUserLicenseDetail', 'Update-MgUserNotification', - 'Update-MgUserOutlook', 'Update-MgUserOutlookMasterCategory', - 'Update-MgUserOutlookTask', 'Update-MgUserOutlookTaskAttachment', + 'Update-MgUserOutlookMasterCategory', 'Update-MgUserOutlookTask', + 'Update-MgUserOutlookTaskAttachment', 'Update-MgUserOutlookTaskFolder', 'Update-MgUserOutlookTaskFolderMultiValueExtendedProperty', 'Update-MgUserOutlookTaskFolderSingleValueExtendedProperty', @@ -194,7 +195,9 @@ CmdletsToExport = @() # VariablesToExport = @() # Aliases 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 aliases to export. -AliasesToExport = '*' +AliasesToExport = 'Get-MgUserMember', 'Get-MgUserMemberByRef', + 'Get-MgUserTransitiveMember', 'Get-MgUserTransitiveMemberByRef', + 'New-MgUserMemberByRef', 'New-MgUserTransitiveMemberByRef' # DSC resources to export from this module # DscResourcesToExport = @() @@ -223,7 +226,7 @@ PrivateData = @{ ProjectUri = 'https://github.com/microsoftgraph/msgraph-sdk-powershell' # A URL to an icon representing this module. - IconUri = 'https://raw.githubusercontent.com/microsoftgraph/g-raph/master/g-raph.png' + IconUri = 'https://raw.githubusercontent.com/microsoftgraph/msgraph-sdk-powershell/master/documentation/images/graph_color256.png' # ReleaseNotes of this module ReleaseNotes = 'See https://aka.ms/GraphPowerShell-Release.' diff --git a/src/Users/Users/readme.md b/src/Users/Users/readme.md index 624d34c99dd..812f839b683 100644 --- a/src/Users/Users/readme.md +++ b/src/Users/Users/readme.md @@ -40,6 +40,15 @@ subject-prefix: '' directive: # Remove invalid root paths e.g. users{id}/todo - remove-path-by-operation: users_(Get|Create|Update|Delete|Set)(Todo|outlook) +# Alias then rename cmdlets to avoid breaking change. + - where: + subject: ^User(Member|TransitiveMember)$ + set: + alias: ${verb}-Mg${subject} + - where: + subject: ^User(Member|TransitiveMember)$ + set: + subject: User$1Of ``` ### Versioning diff --git a/src/readme.graph.md b/src/readme.graph.md index 5cafd59f60e..518d25e3420 100644 --- a/src/readme.graph.md +++ b/src/readme.graph.md @@ -423,6 +423,23 @@ directive: variant: ^List$|^List2$ set: subject: GroupTransitiveMemberOfByRef +# Alias then rename cmdlets to avoid breaking change. + - where: + subject: ^(User|ServicePrincipal|Contact|Device)(Member|TransitiveMember)ByRef$ + set: + alias: ${verb}-Mg${subject} + - where: + subject: ^(User|ServicePrincipal|Contact|Device)(Member|TransitiveMember)ByRef$ + set: + subject: $1$2OfByRef + - where: + subject: ^(Application|Group)(CreatedOnBehalf)ByRef$ + set: + alias: ${verb}-Mg${subject} + - where: + subject: ^(Application|Group)(CreatedOnBehalf)ByRef$ + set: + subject: $1$2OfByRef # Modify generated .json.cs model classes. - from: source-file-csharp where: $