Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
1b309f6
Migrate shared DirectoryManagement cmdlet directives
ramsessanchez Oct 22, 2026
1d5f392
Record approved obsolete directory lineage disposition
ramsessanchez Oct 22, 2026
3aa22d3
Regenerate DirectoryManagement v1.0 client and cmdlets
ramsessanchez Oct 22, 2026
8e3f52e
Merge powershell-v3 for current operation variant API
ramsessanchez Oct 30, 2026
ec4eb03
Align DirectoryManagement migration with merged v3 APIs
ramsessanchez Oct 30, 2026
2b9ab3b
Regenerate DirectoryManagement v1.0 on merged variant framework
ramsessanchez Oct 30, 2026
6e14796
Generate DirectoryManagement beta client and cmdlets
ramsessanchez Oct 30, 2026
c1b48f0
Verify independent policies lineage from both actual source specs
ramsessanchez Oct 30, 2026
9d5d64c
Merge required-query and Authentication target for DirectoryManagemen…
ramsessanchez Nov 5, 2026
ee36911
Verify DirectoryManagement native Query-prefixed input contracts
ramsessanchez Nov 5, 2026
f112b2e
Regenerate DirectoryManagement v1.0 after required-query merge
ramsessanchez Nov 5, 2026
7b90abd
Regenerate DirectoryManagement beta with mandatory native QueryId
ramsessanchez Nov 5, 2026
ccfbe65
Merge no-readback PATCH target for final DirectoryManagement validation
ramsessanchez Nov 6, 2026
9cd2c58
Pin independent DirectoryManagement PATCH result behavior
ramsessanchez Nov 6, 2026
1a0bbcd
Regenerate DirectoryManagement v1.0 with independent PATCH results
ramsessanchez Nov 6, 2026
564e683
Regenerate DirectoryManagement beta with independent PATCH results
ramsessanchez Nov 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -17,39 +17,57 @@ require:

``` yaml
directive:
# Wrapper migration: all 11 shared groups are reviewed in the adjacent wrapper
# Identity.DirectoryManagement_directiveMigrationMap.json; module regression tests
# pin both profiles. Keep these AutoRest directives active until pipeline retirement.
# Group 1: no original legacy or compatible operation-ID match in either module spec.
# This is an unmatched selector, not evidence that a converted ID proves API absence.
- remove-path-by-operation: ^tenantRelationship\.managedTenant\.managementTemplateStepVersion\.deployment_changeDeploymentStatus$
# Remove cmdlets.
# Group 2: suppress GET /directory/deletedItems only; preserve item GET and typed casts.
- where:
verb: Get
variant: List
subject: ^DirectoryDeletedItem$
remove: true
# Group 3: suppress only the untyped /directory/deletedItems/$count.
- where:
verb: Get
subject: ^DirectoryDeletedItem(Count)$
remove: true
# Group 4: neither source profile has a deletedItems delta function; contacts/template
# delta functions and deletedItems actions are different lineages and remain untouched.
- where:
verb: Invoke
subject: (^Delta)(DirectoryDeletedItem)
remove: true
# Rename cmdlets with duplicates in their name.
# Group 5: structural route naming already emits the single template noun for CRUD.
- where:
subject: ^(DirectorySettingTemplate|DirectoryRoleTemplate)(\1)+
set:
subject: $1
# Group 6: structural /contacts naming already emits Contact for the orgContact CRUD.
- where:
subject: (^Contact)(OrgContact$)
set:
subject: $1
# Group 7: exact /settings collection/item overrides emit DirectorySetting in beta.
# Count and nested resources are not selected; v1.0 has no /settings lineage.
- where:
subject: ^(Setting)(DirectorySetting)$
set:
subject: $2
# Alias DirectoryDeletedItems cmdlets.
# Groups 8 and 10 are a rename sequence around group 9: the final noun retains
# DirectoryDeletedItemAs<Type>, which structural cast naming already supplies.
- where:
subject: ^(DirectoryDeleted)ItemAs(.*)$
set:
subject: $1$2
# Group 9: cmdlet aliases remain deferred (the inventory classifies alias directives
# as DeferredParameter). Do not implement aliases, parameter transforms, or
# schema/response rewrites in this cmdlet-surface migration.
- where:
subject: ^DirectoryDeleted(application|administrativeUnit|appRoleAssignment|directoryObject|directoryRole|device|group|orgContact|servicePrincipal|user)$
set:
Expand All @@ -59,5 +77,11 @@ directive:
set:
subject: $1ItemAs$2
##Prevent cmdlets with the below operation Ids from being generated to allow for aliasing as a result of breaking changes in 2.18.0 and 2.17.0.
# Group 11: bridge the full original legacy selector set, not literal converted IDs.
# Four collection-addressed DELETE $ref routes survive in each profile and are
# suppressed; item-addressed DELETE $ref, GET, and POST neighbors remain available.
# The beta directory/featureRolloutPolicies lineage is a reviewed removed duplicate
# with zero compatible counterparts. The independently pre-existing Identity.SignIns
# policies/featureRolloutPolicies lineage is unchanged, not a root-relocation mapping.
- remove-path-by-operation: ^device_DeleteRegisteredOwnerGraphBPreRef$|^device_DeleteRegisteredUserGraphBPreRef$|^directory.administrativeUnit_DeleteMemberGraphBPreRef$|^directoryRole_DeleteMemberGraphBPreRef$|^directory.featureRolloutPolicy_ListAppliesToGraphBPreRef$
```
Original file line number Diff line number Diff line change
@@ -1,11 +1,52 @@
using System.Collections.Generic;
using System.Net.Http;

namespace WrapperGenerator;

public static partial class CmdletConfigurator
{
private static readonly List<Entry> IdentityDirectoryManagementCmdletConfigurations =
[
// Shared Identity.DirectoryManagement.md groups 2-3 remove only the untyped list/count.
new(OverrideKind.SuppressOperation, HttpMethod.Get, "/directory/deleteditems", PathMatch.Exact, null,
Reason: "shared directive: Get DirectoryDeletedItem List"),
new(OverrideKind.SuppressOperation, HttpMethod.Get, "/directory/deleteditems/$count", PathMatch.Exact, null,
Reason: "shared directive: Get DirectoryDeletedItemCount"),

// Group 11 keeps the item-addressed reference deletes, not the legacy collection variants.
// v1.0 derived collision data already agrees; these also cover beta and structural-only runs.
new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/devices/{}/registeredowners/$ref", PathMatch.Exact, null,
Reason: "shared directive: device_DeleteRegisteredOwnerGraphBPreRef"),
new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/devices/{}/registeredusers/$ref", PathMatch.Exact, null,
Reason: "shared directive: device_DeleteRegisteredUserGraphBPreRef"),
new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/directory/administrativeunits/{}/members/$ref", PathMatch.Exact, null,
Reason: "shared directive: directory.administrativeUnit_DeleteMemberGraphBPreRef"),
new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/directoryroles/{}/members/$ref", PathMatch.Exact, null,
Reason: "shared directive: directoryRole_DeleteMemberGraphBPreRef"),

// Group 7 renames the beta setting entity, but not SettingCount or nested resources.
new(OverrideKind.ReplaceNoun, Method: null, "/settings", PathMatch.Exact, "DirectorySetting",
Reason: "shared directive: SettingDirectorySetting -> DirectorySetting"),
new(OverrideKind.ReplaceNoun, Method: null, "/settings/{}", PathMatch.Exact, "DirectorySetting",
Reason: "shared directive: SettingDirectorySetting -> DirectorySetting"),

// These distinct operations have incompatible bodies/results, not natural-ID variants.
new(OverrideKind.ReplaceNoun, HttpMethod.Post, "/directory/impactedresources/addtag", PathMatch.Exact,
"DirectoryImpactedResourceAddTagByResourceId",
Reason: "collection addTag takes resourceIds[] and returns impactedResources; item addTag returns a recommendationTag"),
new(OverrideKind.ReplaceNoun, HttpMethod.Post, "/directory/impactedresources/removetag", PathMatch.Exact,
"DirectoryImpactedResourceRemoveTagByDisplayName",
Reason: "collection removeTag takes displayName and resourceIds[]; item removeTag takes tagId"),
new(OverrideKind.ReplaceNoun, HttpMethod.Post, "/directory/recommendations/{}/impactedresources/addtag", PathMatch.Exact,
"DirectoryRecommendationImpactedResourceAddTagByResourceId",
Reason: "recommendation collection addTag takes resourceIds[] and returns impactedResources"),
new(OverrideKind.ReplaceNoun, HttpMethod.Post, "/directory/recommendations/{}/impactedresources/removetag", PathMatch.Exact,
"DirectoryRecommendationImpactedResourceRemoveTagByDisplayName",
Reason: "recommendation collection removeTag takes displayName and resourceIds[] rather than an item tagId"),
new(OverrideKind.ReplaceNoun, HttpMethod.Delete, "/administrativeunits/{}/members/$ref", PathMatch.Exact,
"AdministrativeUnitMemberReferenceByUri",
Reason: "collection reference delete requires query @id (the delete Uri); item reference delete requires DirectoryObjectId"),

// ---- Naming-parity sweep (2026-08-13): one of the two rules proved safe. ----
//
// Both safe rules were measured against the whole corpus first: each fixes real
Expand Down
Loading
Loading