Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
f0f1c65
Migrate Education shared directive suppressions
ramsessanchez Oct 22, 2026
b8340bc
Regenerate Education v1.0 client and cmdlets
ramsessanchez Oct 22, 2026
305c924
Preserve published Education category count and delta routes
ramsessanchez Oct 22, 2026
a59e54b
Generate Education beta client and cmdlets
ramsessanchez Oct 22, 2026
7ffb832
Merge current powershell-v3 for Education migration validation
ramsessanchez Oct 27, 2026
1422b41
Refresh Education mappings for aligned compatible operation IDs
ramsessanchez Oct 27, 2026
1d6a69b
Regenerate Education v1.0 from refreshed compatible spec
ramsessanchez Oct 27, 2026
5c02be7
Regenerate Education beta from refreshed compatible spec
ramsessanchez Oct 27, 2026
09c047c
Merge post-3849 powershell-v3 for Education revalidation
ramsessanchez Oct 30, 2026
4536380
Update Education tests for separate oracle profile context
ramsessanchez Oct 30, 2026
ae433c4
Revalidate Education v1.0 full generation after #3849
ramsessanchez Oct 30, 2026
e927790
Revalidate Education beta full generation after #3849
ramsessanchez Oct 30, 2026
d8d308c
Merge Authentication 3891 target for Education revalidation
ramsessanchez Nov 3, 2026
50e20cc
Pin Education emitted transport profile after Authentication sync
ramsessanchez Nov 3, 2026
a509ec0
Regenerate Education v1.0 after Authentication 2.41.2 integration
ramsessanchez Nov 3, 2026
25a6c98
Regenerate Education beta after Authentication 2.41.2 integration
ramsessanchez Nov 3, 2026
4b96119
Merge final PATCH single-operation target for Education validation
ramsessanchez Nov 6, 2026
c743fa0
Pin Education single-operation PATCH and retained query suppressions
ramsessanchez Nov 6, 2026
5396d39
Regenerate Education v1.0 for single-operation PATCH results
ramsessanchez Nov 6, 2026
51d0b1b
Regenerate Education beta for single-operation 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
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions src/Education/Education.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ require:
``` yaml
# Directives go here!
directive:
# Wrapper migration: the adjacent wrapper/Education_directiveMigrationMap.json
# bridges all seven actual legacy DELETE matches in each profile to compatible
# collection /$ref operations by exact method/path. The refreshed compatible IDs
# now match the original selector exactly: seven survivors, no missed operations.
# Education_cmdletConfigurations.cs suppresses only those DELETE operations in
# v1.0 and beta, including data-off runs. Existing v1.0 collision suppressions agree;
# GET/POST collection references and item-reference DELETE remain available.
# EducationDirectiveMigrationTests pins both profiles and neighboring operations.
# No shared parameter/schema directives are present; profile-local readmes and
# src/readme.graph.md are outside this migration. Keep this AutoRest directive
# active until the service-module pipeline is retired.
#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.
- remove-path-by-operation: ^education.class.assignment_DeleteCategoryGraphBPreRef$|^education.class_DeleteMemberGraphBPreRef$|^education.class_DeleteTeacherGraphBPreRef$|^education.me.assignment_DeleteCategoryGraphBPreRef$|^education.school_DeleteClassGraphBPreRef$|^education.school_DeleteUserGraphBPreRef$|^education.user.assignment_DeleteCategoryGraphBPreRef$
```
21 changes: 21 additions & 0 deletions src/Education/wrapper/Education_cmdletConfigurations.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
using System.Collections.Generic;
using System.Net.Http;

namespace WrapperGenerator;

public static partial class CmdletConfigurator
{
private static readonly List<Entry> EducationCmdletConfigurations =
[
// Education.md suppresses collection-reference DELETE, not item-reference DELETE.
// v1.0 collision data already covers these; curated entries also cover beta and data-off runs.
new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/education/classes/{}/assignments/{}/categories/$ref", Match: PathMatch.Exact, Value: null,
Reason: "Education.md shared remove-path-by-operation; Education_directiveMigrationMap.json bridges both profiles"),
new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/education/classes/{}/members/$ref", Match: PathMatch.Exact, Value: null,
Reason: "Education.md shared remove-path-by-operation; Education_directiveMigrationMap.json bridges both profiles"),
new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/education/classes/{}/teachers/$ref", Match: PathMatch.Exact, Value: null,
Reason: "Education.md shared remove-path-by-operation; Education_directiveMigrationMap.json bridges both profiles"),
new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/education/me/assignments/{}/categories/$ref", Match: PathMatch.Exact, Value: null,
Reason: "Education.md shared remove-path-by-operation; Education_directiveMigrationMap.json bridges both profiles"),
new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/education/schools/{}/classes/$ref", Match: PathMatch.Exact, Value: null,
Reason: "Education.md shared remove-path-by-operation; Education_directiveMigrationMap.json bridges both profiles"),
new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/education/schools/{}/users/$ref", Match: PathMatch.Exact, Value: null,
Reason: "Education.md shared remove-path-by-operation; Education_directiveMigrationMap.json bridges both profiles"),
new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/education/users/{}/assignments/{}/categories/$ref", Match: PathMatch.Exact, Value: null,
Reason: "Education.md shared remove-path-by-operation; Education_directiveMigrationMap.json bridges both profiles"),
new(OverrideKind.SuppressOperation, HttpMethod.Get, "/education/classes/{}/assignments/{}/categories/$count", Match: PathMatch.Exact, Value: null,
Reason: "oracle: v1.0 and beta CategoryCount ship only from /education/classes/{}/assignmentCategories/$count; matches v1.0 collision data"),
new(OverrideKind.SuppressOperation, HttpMethod.Get, "/education/classes/{}/assignments/{}/categories/delta", Match: PathMatch.Exact, Value: null,
Reason: "oracle: v1.0 and beta CategoryDelta ship only from /education/classes/{}/assignmentCategories/delta; matches v1.0 collision data"),
new(OverrideKind.SuppressOperation, Method: null, "/education/classes/{}/assignments/{}/categories", Match: PathMatch.Exact, Value: null,
Reason: "oracle: the plain path ships nothing; the shipped surface is the $ref route"),
new(OverrideKind.SuppressOperation, Method: null, "/education/users/{}/user", Match: PathMatch.Exact, Value: null,
Expand Down
96 changes: 96 additions & 0 deletions src/Education/wrapper/Education_directiveMigrationMap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"mappings": [
{
"module": "Education",
"directiveIndex": 1,
"classification": "OperationIdSuppression",
"sourceContains": "remove-path-by-operation: ^education.class.assignment_DeleteCategoryGraphBPreRef$|^education.class_DeleteMemberGraphBPreRef$|^education.class_DeleteTeacherGraphBPreRef$|^education.me.assignment_DeleteCategoryGraphBPreRef$|^education.school_DeleteClassGraphBPreRef$|^education.school_DeleteUserGraphBPreRef$|^education.user.assignment_DeleteCategoryGraphBPreRef$",
"implementation": "CmdletConfigurator",
"notes": "Suppress only the seven collection-reference DELETE operations selected by the active shared Education.md directive. All seven original actual legacy matches survive uniquely by unchanged method/path in each current compatible profile. After operation-ID alignment, the original regex also selects exactly those seven current operations; no survivors are missed and no operations were removed. The original legacy-to-converted-ID lineage remains in commit f0f1c6562869aa8a986544211c84dcb5ea814160; EducationDirectiveMigrationTests pins the complete original selection independently of the ledger. Existing collision-suppressions.v1.0.json already suppresses these seven routes, but beta has no derived suppression data. Exact curated DELETE entries cover beta and data-off generation without removing the existing plain-category and user-self-navigation suppressions. Preserve collection-reference GET/POST and item-reference DELETE. No shared deferred parameter/schema directives exist. Profile-local readmes and src/readme.graph.md are intentionally excluded.",
"profiles": {
"v1.0": {
"notes": "Reviewed the complete original seven-operation selection in openApiDocs/v1.0/Education.yml (blob 70cf3fb99240cb90e3914b3afb41527a96a9d8e4) against current openApiDocs_KiotaCompat/v1.0/Education.yml (blob 062d6659bf55e305f450d8dd79a9ea6cfafa4b5f). All seven survive by exact method/path and now retain their original legacy IDs. Current literal regex matches equal the complete survivor set, so this uses the existing literal mapping schema.",
"absenceExpected": false,
"operations": [
{
"method": "DELETE",
"path": "/education/classes/{educationClass-id}/assignments/{educationAssignment-id}/categories/$ref",
"operationId": "education.class.assignment_DeleteCategoryGraphBPreRef"
},
{
"method": "DELETE",
"path": "/education/classes/{educationClass-id}/members/$ref",
"operationId": "education.class_DeleteMemberGraphBPreRef"
},
{
"method": "DELETE",
"path": "/education/classes/{educationClass-id}/teachers/$ref",
"operationId": "education.class_DeleteTeacherGraphBPreRef"
},
{
"method": "DELETE",
"path": "/education/me/assignments/{educationAssignment-id}/categories/$ref",
"operationId": "education.me.assignment_DeleteCategoryGraphBPreRef"
},
{
"method": "DELETE",
"path": "/education/schools/{educationSchool-id}/classes/$ref",
"operationId": "education.school_DeleteClassGraphBPreRef"
},
{
"method": "DELETE",
"path": "/education/schools/{educationSchool-id}/users/$ref",
"operationId": "education.school_DeleteUserGraphBPreRef"
},
{
"method": "DELETE",
"path": "/education/users/{educationUser-id}/assignments/{educationAssignment-id}/categories/$ref",
"operationId": "education.user.assignment_DeleteCategoryGraphBPreRef"
}
]
},
"beta": {
"notes": "Reviewed the complete original seven-operation selection in openApiDocs/beta/Education.yml (blob 9e542b610385ae40648b13b8ccfab6e068b7b3ad) against current openApiDocs_KiotaCompat/beta/Education.yml (blob e440ad323d7887ad6c67c01a8bc877528f6966cb). All seven survive by exact method/path and now retain their original legacy IDs. Current literal regex matches equal the complete survivor set, so this uses the existing literal mapping schema.",
"absenceExpected": false,
"operations": [
{
"method": "DELETE",
"path": "/education/classes/{educationClass-id}/assignments/{educationAssignment-id}/categories/$ref",
"operationId": "education.class.assignment_DeleteCategoryGraphBPreRef"
},
{
"method": "DELETE",
"path": "/education/classes/{educationClass-id}/members/$ref",
"operationId": "education.class_DeleteMemberGraphBPreRef"
},
{
"method": "DELETE",
"path": "/education/classes/{educationClass-id}/teachers/$ref",
"operationId": "education.class_DeleteTeacherGraphBPreRef"
},
{
"method": "DELETE",
"path": "/education/me/assignments/{educationAssignment-id}/categories/$ref",
"operationId": "education.me.assignment_DeleteCategoryGraphBPreRef"
},
{
"method": "DELETE",
"path": "/education/schools/{educationSchool-id}/classes/$ref",
"operationId": "education.school_DeleteClassGraphBPreRef"
},
{
"method": "DELETE",
"path": "/education/schools/{educationSchool-id}/users/$ref",
"operationId": "education.school_DeleteUserGraphBPreRef"
},
{
"method": "DELETE",
"path": "/education/users/{educationUser-id}/assignments/{educationAssignment-id}/categories/$ref",
"operationId": "education.user.assignment_DeleteCategoryGraphBPreRef"
}
]
}
}
}
]
}
48 changes: 48 additions & 0 deletions src/Education/wrapper/beta/Client/ApiClient.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Graph.PowerShell.Education.Client.Education;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Serialization.Form;
using Microsoft.Kiota.Serialization.Json;
using Microsoft.Kiota.Serialization.Multipart;
using Microsoft.Kiota.Serialization.Text;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using System;
namespace Microsoft.Graph.PowerShell.Education.Client
{
/// <summary>
/// The main entry point of the SDK, exposes the configuration and the fluent API.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class ApiClient : BaseRequestBuilder
{
/// <summary>The education property</summary>
public global::Microsoft.Graph.PowerShell.Education.Client.Education.EducationRequestBuilder Education
{
get => new global::Microsoft.Graph.PowerShell.Education.Client.Education.EducationRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>
/// Instantiates a new <see cref="global::Microsoft.Graph.PowerShell.Education.Client.ApiClient"/> and sets the default values.
/// </summary>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public ApiClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary<string, object>())
{
ApiClientBuilder.RegisterDefaultSerializer<JsonSerializationWriterFactory>();
ApiClientBuilder.RegisterDefaultSerializer<TextSerializationWriterFactory>();
ApiClientBuilder.RegisterDefaultSerializer<FormSerializationWriterFactory>();
ApiClientBuilder.RegisterDefaultSerializer<MultipartSerializationWriterFactory>();
ApiClientBuilder.RegisterDefaultDeserializer<JsonParseNodeFactory>();
ApiClientBuilder.RegisterDefaultDeserializer<TextParseNodeFactory>();
ApiClientBuilder.RegisterDefaultDeserializer<FormParseNodeFactory>();
if (string.IsNullOrEmpty(RequestAdapter.BaseUrl))
{
RequestAdapter.BaseUrl = "https://graph.microsoft.com/beta";
}
PathParameters.TryAdd("baseurl", RequestAdapter.BaseUrl);
}
}
}
#pragma warning restore CS0618
28 changes: 28 additions & 0 deletions src/Education/wrapper/beta/Client/Client.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!-- Generated by tools/Build-WrapperModule.ps1. Regenerate rather than edit by hand. -->
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- netstandard2.0 because this assembly has to load in both PowerShell editions. The
compatibility contract is declared by the module every wrapper references,
src/Authentication/Authentication/Microsoft.Graph.Authentication.psd1: PowerShellVersion
'5.1' and CompatiblePSEditions 'Core','Desktop'. A module manifest binds one
un-conditioned dll path, so a single framework has to satisfy both editions: net472
covers Desktop only, net6.0/net8.0/net10.0 cover Core only, netstandard2.0 covers both.
Microsoft.Kiota.Bundle 2.0.0 ships a netstandard2.0 asset, and the generated client
compiles against it. -->
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<AssemblyName>Microsoft.Graph.Wrapper.Education.Client</AssemblyName>
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Kiota.Bundle" Version="2.0.0" />
<!-- Pinned above the version Microsoft.Kiota.Bundle pulls in transitively (8.0.0), which
carries CVE-2024-30105 and CVE-2024-43485. Same version Authentication.Core pins. -->
<PackageReference Include="System.Text.Json" Version="10.0.3" />
</ItemGroup>

</Project>
Loading
Loading