Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/Migrations/Migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,32 @@ require:

# Rename commands with 'SolutionMigrationCrossTenantMigrationJob<x>' to 'CrossTenantMigrationJob<x>'
directive:
# Wrapper migration: directive 1 is implemented by the job-scoped Migration prefix
# strip after the existing Solution strip. Exact beta route/old/new ID evidence is
# in wrapper/Migrations_directiveMigrationMap.json; MigrationsDirectiveTests pins it.
# Keep all shared AutoRest directives active until that pipeline is retired.
- where:
subject: (^SolutionMigrationCrossTenantMigrationJob)(.*)
set:
subject: CrossTenantMigrationJob$2
# Remove all the 'DisplayName','SolutionMigration', and 'Count' commands, they are redundant/unsupported
# Wrapper migration: directive 2 suppresses the three root operations, six
# alternate-displayName operations and both count GETs, not the job/user reads.
- where:
subject: (DisplayName$|SolutionMigration$|Count$)
remove: true
# Remove extra 'Remove' commands, only jobs can be removed
# Wrapper migration: directive 3 suppresses only the user-item DELETE; job DELETE
# and the user cancel action remain supported.
- where:
verb: Remove
subject: CrossTenantMigrationJob.+$
remove: true
# Remove New/Update-CrossTenantMigrationJobUser, they are not supported operations
# Wrapper migration: directive 4 suppresses user collection POST and item PATCH.
# Scope: beta only; v1.0 is excluded, not an API-absence claim. All profile-local
# readmes and src/readme.graph.md are ignored. Parameter aliases/transforms and
# schema/response directives remain Deferred (none occur in this shared file).
- where:
verb: (New|Update)
subject: CrossTenantMigrationJobUser$
Expand Down
6 changes: 3 additions & 3 deletions src/Migrations/wrapper/Beta/Client/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"descriptionHash": "3C99F5698BBD027BCD0240A390038BF3E5B04140EA2CB8784DA0B6AD7BC0535C01E8DEF2A52FD0F2C7EEA74CF8A0A00F50511A32D72BE70BBE6B4E9A821FB0D2",
"descriptionLocation": "../../../../../openApiDocs_KiotaCompat/Beta/Migrations.yml",
"descriptionHash": "03F8407E7C4C77D550F87AA71738503CADEE4F9C2D0D4011E4B72AF999326AD460A4B129A50B2C953BDF2EEA408D3B2E02DA2004A313F4BE52068F8A1D21955A",
"descriptionLocation": "../../../../../openApiDocs_KiotaCompat/beta/Migrations.yml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.34.1",
"kiotaVersion": "1.36.1",
"clientClassName": "ApiClient",
"typeAccessModifier": "Public",
"clientNamespaceName": "Microsoft.Graph.PowerShell.Migrations.Client",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@
namespace Microsoft.Graph.PowerShell.Migrations
{
[GraphRoute("GET", "/solutions/migrations/crossTenantMigrationJobs")]
[Cmdlet(VerbsCommon.Get, "MgMigrationCrossTenantMigrationJob", DefaultParameterSetName = "List")]
[Cmdlet(VerbsCommon.Get, "MgCrossTenantMigrationJob", DefaultParameterSetName = "List")]
[OutputType(typeof(Microsoft.Graph.PowerShell.Migrations.Client.Models.CrossTenantMigrationJobCollectionResponse), ParameterSetName = new[] { "List" })]
[OutputType(typeof(Microsoft.Graph.PowerShell.Migrations.Client.Models.CrossTenantMigrationJob), ParameterSetName = new[] { "Get" })]
public class GetMgMigrationCrossTenantMigrationJobCommand : GraphClientCmdlet
public class GetMgCrossTenantMigrationJobCommand : GraphClientCmdlet
{
[Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)]
public string CrossTenantMigrationJobId { get; set; } = string.Empty;




[Parameter(Mandatory = false)]
[Alias("Select")]
public string[]? Property { get; set; }
Expand Down Expand Up @@ -56,11 +57,11 @@ public class GetMgMigrationCrossTenantMigrationJobCommand : GraphClientCmdlet



// Delegates to Get-MgMigrationCrossTenantMigrationJob_Get or Get-MgMigrationCrossTenantMigrationJob_List, the two cmdlets
// Delegates to Get-MgCrossTenantMigrationJob_Get or Get-MgCrossTenantMigrationJob_List, the two cmdlets
// that actually call Graph.
protected override void ProcessRecord()
{
var internalCmdletName = ParameterSetName == "Get" ? "Get-MgMigrationCrossTenantMigrationJob_Get" : "Get-MgMigrationCrossTenantMigrationJob_List";
var internalCmdletName = ParameterSetName == "Get" ? "Get-MgCrossTenantMigrationJob_Get" : "Get-MgCrossTenantMigrationJob_List";
try
{
InvokeCommand.InvokeScript(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
namespace Microsoft.Graph.PowerShell.Migrations
{
[GraphRoute("GET", "/solutions/migrations/crossTenantMigrationJobs/{crossTenantMigrationJob-id}/users")]
[Cmdlet(VerbsCommon.Get, "MgMigrationCrossTenantMigrationJobUser", DefaultParameterSetName = "List")]
[Cmdlet(VerbsCommon.Get, "MgCrossTenantMigrationJobUser", DefaultParameterSetName = "List")]
[OutputType(typeof(Microsoft.Graph.PowerShell.Migrations.Client.Models.CrossTenantMigrationTaskCollectionResponse), ParameterSetName = new[] { "List" })]
[OutputType(typeof(Microsoft.Graph.PowerShell.Migrations.Client.Models.CrossTenantMigrationTask), ParameterSetName = new[] { "Get" })]
public class GetMgMigrationCrossTenantMigrationJobUserCommand : GraphClientCmdlet
public class GetMgCrossTenantMigrationJobUserCommand : GraphClientCmdlet
{
[Parameter(Mandatory = true, Position = 0)]
public string CrossTenantMigrationJobId { get; set; } = string.Empty;
Expand All @@ -21,6 +21,7 @@ public class GetMgMigrationCrossTenantMigrationJobUserCommand : GraphClientCmdle




[Parameter(Mandatory = false)]
[Alias("Select")]
public string[]? Property { get; set; }
Expand Down Expand Up @@ -58,11 +59,11 @@ public class GetMgMigrationCrossTenantMigrationJobUserCommand : GraphClientCmdle



// Delegates to Get-MgMigrationCrossTenantMigrationJobUser_Get or Get-MgMigrationCrossTenantMigrationJobUser_List, the two cmdlets
// Delegates to Get-MgCrossTenantMigrationJobUser_Get or Get-MgCrossTenantMigrationJobUser_List, the two cmdlets
// that actually call Graph.
protected override void ProcessRecord()
{
var internalCmdletName = ParameterSetName == "Get" ? "Get-MgMigrationCrossTenantMigrationJobUser_Get" : "Get-MgMigrationCrossTenantMigrationJobUser_List";
var internalCmdletName = ParameterSetName == "Get" ? "Get-MgCrossTenantMigrationJobUser_Get" : "Get-MgCrossTenantMigrationJobUser_List";
try
{
InvokeCommand.InvokeScript(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
namespace Microsoft.Graph.PowerShell.Migrations
{
[GraphRoute("GET", "/solutions/migrations/crossTenantMigrationJobs/{crossTenantMigrationJob-id}/users/{crossTenantMigrationTask-id}")]
[Cmdlet(VerbsCommon.Get, "MgMigrationCrossTenantMigrationJobUser_Get")]
[Cmdlet(VerbsCommon.Get, "MgCrossTenantMigrationJobUser_Get")]
[OutputType(typeof(Microsoft.Graph.PowerShell.Migrations.Client.Models.CrossTenantMigrationTask))]
public class GetMgMigrationCrossTenantMigrationJobUser_GetCommand : GraphClientCmdlet
public class GetMgCrossTenantMigrationJobUser_GetCommand : GraphClientCmdlet
{
[Parameter(Mandatory = true, Position = 0)]
public string CrossTenantMigrationJobId { get; set; } = string.Empty;
Expand All @@ -36,7 +36,7 @@ public class GetMgMigrationCrossTenantMigrationJobUser_GetCommand : GraphClientC
protected override void ProcessRecord()
{

var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("beta");
var client = new ApiClient(requestAdapter);

Microsoft.Graph.PowerShell.Migrations.Client.Models.CrossTenantMigrationTask? result;
Expand All @@ -52,6 +52,7 @@ protected override void ProcessRecord()




AddRequestHeaders(requestConfiguration.Headers);
}).GetAwaiter().GetResult();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
namespace Microsoft.Graph.PowerShell.Migrations
{
[GraphRoute("GET", "/solutions/migrations/crossTenantMigrationJobs/{crossTenantMigrationJob-id}/users")]
[Cmdlet(VerbsCommon.Get, "MgMigrationCrossTenantMigrationJobUser_List")]
[Cmdlet(VerbsCommon.Get, "MgCrossTenantMigrationJobUser_List")]
[OutputType(typeof(Microsoft.Graph.PowerShell.Migrations.Client.Models.CrossTenantMigrationTask))]
public class GetMgMigrationCrossTenantMigrationJobUser_ListCommand : GraphClientCmdlet
public class GetMgCrossTenantMigrationJobUser_ListCommand : GraphClientCmdlet
{
[Parameter(Mandatory = true, Position = 0)]
public string CrossTenantMigrationJobId { get; set; } = string.Empty;
Expand Down Expand Up @@ -60,7 +60,7 @@ public class GetMgMigrationCrossTenantMigrationJobUser_ListCommand : GraphClient
protected override void ProcessRecord()
{

var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("beta");
var client = new ApiClient(requestAdapter);

Microsoft.Graph.PowerShell.Migrations.Client.Models.CrossTenantMigrationTaskCollectionResponse? result;
Expand Down Expand Up @@ -94,6 +94,7 @@ protected override void ProcessRecord()




AddRequestHeaders(requestConfiguration.Headers);
}).GetAwaiter().GetResult();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
namespace Microsoft.Graph.PowerShell.Migrations
{
[GraphRoute("GET", "/solutions/migrations/crossTenantMigrationJobs/{crossTenantMigrationJob-id}")]
[Cmdlet(VerbsCommon.Get, "MgMigrationCrossTenantMigrationJob_Get")]
[Cmdlet(VerbsCommon.Get, "MgCrossTenantMigrationJob_Get")]
[OutputType(typeof(Microsoft.Graph.PowerShell.Migrations.Client.Models.CrossTenantMigrationJob))]
public class GetMgMigrationCrossTenantMigrationJob_GetCommand : GraphClientCmdlet
public class GetMgCrossTenantMigrationJob_GetCommand : GraphClientCmdlet
{
[Parameter(Mandatory = true, Position = 0)]
public string CrossTenantMigrationJobId { get; set; } = string.Empty;
Expand All @@ -34,7 +34,7 @@ public class GetMgMigrationCrossTenantMigrationJob_GetCommand : GraphClientCmdle
protected override void ProcessRecord()
{

var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("beta");
var client = new ApiClient(requestAdapter);

Microsoft.Graph.PowerShell.Migrations.Client.Models.CrossTenantMigrationJob? result;
Expand All @@ -50,6 +50,7 @@ protected override void ProcessRecord()




AddRequestHeaders(requestConfiguration.Headers);
}).GetAwaiter().GetResult();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
namespace Microsoft.Graph.PowerShell.Migrations
{
[GraphRoute("GET", "/solutions/migrations/crossTenantMigrationJobs")]
[Cmdlet(VerbsCommon.Get, "MgMigrationCrossTenantMigrationJob_List")]
[Cmdlet(VerbsCommon.Get, "MgCrossTenantMigrationJob_List")]
[OutputType(typeof(Microsoft.Graph.PowerShell.Migrations.Client.Models.CrossTenantMigrationJob))]
public class GetMgMigrationCrossTenantMigrationJob_ListCommand : GraphClientCmdlet
public class GetMgCrossTenantMigrationJob_ListCommand : GraphClientCmdlet
{


Expand Down Expand Up @@ -59,7 +59,7 @@ public class GetMgMigrationCrossTenantMigrationJob_ListCommand : GraphClientCmdl
protected override void ProcessRecord()
{

var requestAdapter = GetRequestAdapter();
var requestAdapter = GetRequestAdapter("beta");
var client = new ApiClient(requestAdapter);

Microsoft.Graph.PowerShell.Migrations.Client.Models.CrossTenantMigrationJobCollectionResponse? result;
Expand Down Expand Up @@ -93,6 +93,7 @@ protected override void ProcessRecord()




AddRequestHeaders(requestConfiguration.Headers);
}).GetAwaiter().GetResult();

Expand Down
64 changes: 0 additions & 64 deletions src/Migrations/wrapper/Beta/Cmdlets/GetMgMigration.g.cs

This file was deleted.

This file was deleted.

Loading
Loading