Skip to content

Commit 4530cfb

Browse files
ramsessanchezMicrosoft Graph DevX Tooling
andauthored
renamde namingOverrides to cmdletconfigurations and seperate configurations by module (#3797)
Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
1 parent 9b85120 commit 4530cfb

56 files changed

Lines changed: 696 additions & 407 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
using System.Collections.Generic;
2+
namespace WrapperGenerator;
3+
public static partial class CmdletConfigurator { private static readonly List<Entry> ApplicationsCmdletConfigurations = []; }
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
using System.Collections.Generic;
2+
namespace WrapperGenerator;
3+
public static partial class CmdletConfigurator { private static readonly List<Entry> BackupRestoreCmdletConfigurations = []; }
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System.Collections.Generic;
2+
3+
namespace WrapperGenerator;
4+
5+
public static partial class CmdletConfigurator
6+
{
7+
private static readonly List<Entry> BookingsCmdletConfigurations =
8+
[
9+
// The SDK ships no cmdlets for the /solutions root singleton itself (Get-MgSolution /
10+
// Update-MgSolution do not exist): src/Bookings/Bookings.md removes every solutionsRoot
11+
// operation with remove-path-by-operation ^solution\.solutionsRoot.*$. Exact-path, all
12+
// methods, so operations on children like /solutions/bookingBusinesses are unaffected.
13+
new(OverrideKind.SuppressOperation, Method: null, "/solutions", Match: PathMatch.Exact, Value: null,
14+
Reason: "Bookings.md remove-path-by-operation ^solution\\.solutionsRoot.*$"),
15+
16+
// Most nouns under /solutions/ drop the "Solution" prefix (for example
17+
// Get-MgBookingBusiness, Get-MgVirtualEventWebinar). BackupRestore is a known
18+
// exception where published cmdlets keep the Solution prefix.
19+
new(OverrideKind.StripNounPrefix, Method: null, "/solutions/", Match: PathMatch.Prefix, Value: "Solution",
20+
Reason: "Bookings/VirtualEvents naming pattern under /solutions/*; BackupRestore is explicitly excluded in ApplyNounOverrides"),
21+
22+
new(OverrideKind.SuppressOperation, Method: null, "/solutions/virtualevents", Match: PathMatch.Exact, Value: null,
23+
Reason: "oracle: the virtualEvents root node ships nothing; children ship (Get-MgVirtualEventWebinar)"),
24+
];
25+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
using System.Collections.Generic;
2+
namespace WrapperGenerator;
3+
public static partial class CmdletConfigurator { private static readonly List<Entry> BusinessScenarioCmdletConfigurations = []; }
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System.Collections.Generic;
2+
using System.Net.Http;
3+
4+
namespace WrapperGenerator;
5+
6+
public static partial class CmdletConfigurator
7+
{
8+
private static readonly List<Entry> CalendarCmdletConfigurations =
9+
[
10+
// The SDK ships no Update cmdlet for /users/{id}/calendar. Its pipeline removes the
11+
// operation outright, in src/Calendar/Calendar.md: remove-path-by-operation
12+
// user_UpdateCalendar. The wrapper must not invent a cmdlet the SDK chose to drop.
13+
new(OverrideKind.SuppressOperation, HttpMethod.Patch, "/users/{}/calendar", Match: PathMatch.Exact, Value: null,
14+
Reason: "Calendar.md remove-path-by-operation user_UpdateCalendar"),
15+
16+
// GET /users/{id}/calendar ships as Get-MgUserDefaultCalendar, renamed in
17+
// src/Calendar/Calendar.md: "^(User)(Calendar)$" -> "$1Default$2".
18+
new(OverrideKind.ReplaceNoun, HttpMethod.Get, "/users/{}/calendar", Match: PathMatch.Exact, Value: "UserDefaultCalendar",
19+
Reason: "Calendar.md directive renames UserCalendar to UserDefaultCalendar"),
20+
21+
// Calendar: the shipped default-calendar surface. Events under a NAMED calendar and
22+
// the default-calendar event item tree ship nothing; event items ship from
23+
// /users/{}/events (Get-MgUserEvent family).
24+
new(OverrideKind.ReplaceNoun, Method: null, "/users/{}/calendar/events", Match: PathMatch.Exact, Value: "UserDefaultCalendarEvent",
25+
Reason: "oracle: list/create ship as Get/New-MgUserDefaultCalendarEvent"),
26+
new(OverrideKind.SuppressOperation, Method: null, "/users/{}/calendar/events/{}", Match: PathMatch.Prefix, Value: null,
27+
Reason: "oracle: default-calendar event items ship nothing; items ship from /users/{}/events/{}"),
28+
new(OverrideKind.SuppressOperation, Method: null, "/users/{}/calendars/{}/events/{}", Match: PathMatch.Prefix, Value: null,
29+
Reason: "oracle: named-calendar event items ship nothing; items ship from /users/{}/events/{}"),
30+
new(OverrideKind.SuppressOperation, Method: null, "/users/{}/calendars/{}/calendarpermissions", Match: PathMatch.Prefix, Value: null,
31+
Reason: "oracle: permissions ship only from the default calendar (Get-MgUserCalendarPermission on /users/{}/calendar/calendarPermissions)"),
32+
];
33+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
using System.Collections.Generic;
2+
namespace WrapperGenerator;
3+
public static partial class CmdletConfigurator { private static readonly List<Entry> ChangeNotificationsCmdletConfigurations = []; }
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
using System.Collections.Generic;
2+
namespace WrapperGenerator;
3+
public static partial class CmdletConfigurator { private static readonly List<Entry> CloudCommunicationsCmdletConfigurations = []; }
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
using System.Collections.Generic;
2+
namespace WrapperGenerator;
3+
public static partial class CmdletConfigurator { private static readonly List<Entry> ComplianceCmdletConfigurations = []; }
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
using System.Collections.Generic;
2+
namespace WrapperGenerator;
3+
public static partial class CmdletConfigurator { private static readonly List<Entry> ConfigurationManagementCmdletConfigurations = []; }
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
using System.Collections.Generic;
2+
namespace WrapperGenerator;
3+
public static partial class CmdletConfigurator { private static readonly List<Entry> CrossDeviceExperiencesCmdletConfigurations = []; }

0 commit comments

Comments
 (0)