Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
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
35 changes: 35 additions & 0 deletions src/Users.Actions/Users.Actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,88 +15,123 @@ require:

> see https://github.com/Azure/autorest/blob/master/docs/powershell/directives.md

The reviewed v3 migration covers this shared file only. All profile-local readmes
(including their Users.Actions directive groups) and `src/readme.graph.md` are
explicitly ignored. Neither API profile is excluded. Parameter/schema aliases and
transforms remain deferred, not implemented by this cmdlet-surface migration.
`wrapper/Users.Actions_directiveMigrationMap.json` records all 16 dispositions and
the complete actual legacy-to-compatible operation audit. An empty selection means
no matching operation in this module's same-profile specs, not removal from Graph.
The active AutoRest directives below are retained for the legacy pipeline.

``` yaml
directive:
# Remove invalid paths.
# Wrapper migration 1: original regex matches zero of the actual 20 v1.0 / 30 beta
# legacy operations. Full metadata-guarded path bridges are audited in the ledger;
# current compatible IDs are aligned; all 20 v1.0 / 33 beta IDs also match zero.
# Three compatible-only beta actions are audited separately. No suppression added.
- remove-path-by-operation: .*exceptionOccurrence.*|user\.joinedTeam.*|user\.onenote\..*.parent.*|user.*\.calendarView.*|.*\.notebook\.section.*|.*\.sectionGroup\.section.*|.*\.section\.page.*|user\.calendar\.event.*|user\.calendarGroup\.calendar.*|user\.calendar\.event.*|user\.event\.calendar\.event.*|user\.pendingAccessReviewInstance\.stage\.decision.*|user\.pendingAccessReviewInstance(\.decision|\.stage\.decision)\.instance.*
# Rename All due to https://github.com/Azure/autorest.powershell/issues/1002.
# Wrapper migration 2: exact POST removeAllDevicesFromManagement fallback preserves
# Remove-AllUserDeviceFromManagement in beta; authoritative v1.0 derived name stays.
- where:
verb: Remove
subject: ^(UserDeviceFromManagement)$
set:
subject: All$1
# Wrapper migration 3: exact beta POST invalidateAllRefreshTokens noun override.
# The corresponding action is absent from both actual v1.0 module specs.
- where:
verb: Invoke
subject: ^(Invalidate)(UserRefreshToken)$
set:
subject: $1All$2
# Remove cmdlets.
# Wrapper migration 4: exact beta POST getUserOwnedObjects verb/noun overrides
# preserve Get-UserOwnedObjectByType; no corresponding v1.0 module operation.
- where:
verb: Get
subject: ^(UserOwnedObject)$
set:
subject: $1ByType
# Wrapper migration 5: no matching onlineMeeting operation in either actual module
# spec; no speculative suppression of routes owned by another module.
- where:
verb: Get
subject: ^(UserOnlineMeeting)$
remove: true
# Wrapper migration 6: no matching createOrGet operation in either actual module
# spec. Profile-local directives remain ignored, not copied into wrapper config.
- where:
verb: New
subject: ^(UserOnlineMeeting)$
set:
verb: Invoke
subject: CreateOrGet$1
# Wrapper migration 7: no matching onenote page content route in either module spec.
- where:
verb: Update
subject: ^(UserOnenotePage)$
set:
subject: $1Content
# Wrapper migration 8: exact POST changePassword verb/noun fallback preserves
# Update-UserPassword in beta while retaining the existing v1.0 derived result.
- where:
verb: Rename
subject: ^(UserPassword)$
set:
verb: Update
subject: $1
# Wrapper migration 9: no getSchedule operation in either actual module spec.
# The numbered legacy variants are not guessed from unrelated calendar routes.
- where:
verb: Get
subject: ^(User)(CalendarSchedule)$
variant: ^Get$|^GetExpanded$|^GetViaIdentity$|^GetViaIdentityExpanded$
set:
subject: $1Default$2
# Wrapper migration 10: no message reply/replyAll operation in either module spec.
- where:
verb: Invoke
subject: ^(Reply)(UserMessage|UserMailFolderMessage|UserMailFolderChildFolderMessage)$
variant: ^Reply1$|^ReplyExpanded1$|^ReplyViaIdentity1$|^ReplyViaIdentityExpanded1$
set:
subject: $1All$2
# Wrapper migration 11: no createReply/createReplyAll operation in either module spec.
- where:
verb: New
subject: ^(User)(Message|MailFolderMessage|MailFolderChildFolderMessage)(Reply)$
variant: ^Create1$|^CreateExpanded1$|^CreateViaIdentity1$|^CreateViaIdentityExpanded1$
set:
subject: $1$2$3All
# https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-devicelogcollectionresponse?view=graph-rest-beta
# Wrapper migration 12: no managed-device log download action in either module spec.
- where:
verb: New
subject: ^(UserManagedDeviceLogCollection)Request(DownloadUrl)$
set:
subject: $1Response$2
# Wrapper migration 13: no windowsDefenderUpdateSignatures action in either module spec.
- where:
verb: Update
subject: ^(UserManagedDevice)$
set:
verb: New
subject: $1WindowsDefenderUpdateSignature
# Wrapper migration 14: no bulkRestoreCloudPc action in either actual module spec.
- where:
verb: Invoke
subject: ^Bulk(UserManagedDevice)RestoreCloudPc$
set:
subject: BulkRestore$1CloudPc
# Wrapper migration 15: no bulkReprovisionCloudPc action in either actual module spec.
- where:
verb: Invoke
subject: ^Bulk(UserManagedDevice)ReprovisionCloudPc$
set:
subject: BulkReprovision$1CloudPc
# Wrapper migration 16: no reprovisionCloudPc action in either actual module spec.
- where:
verb: Invoke
subject: ^Cloud(UserManagedDevice)$
Expand Down
108 changes: 108 additions & 0 deletions src/Users.Actions/wrapper/Beta/Client/Models/Bucket.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
using System;
namespace Microsoft.Graph.PowerShell.Users.Actions.Client.Models
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
public partial class Bucket : global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.PlannerDelta, IParsable
#pragma warning restore CS1591
{
/// <summary>Server-computed, read-only capability flags indicating which optional features are enabled for the entity.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.BucketCapability? Capabilities { get; private set; }
#nullable restore
#else
public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.BucketCapability Capabilities { get; private set; }
#endif
/// <summary>Read-only creation metadata for the entity.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.CreationInfo? CreationInfo { get; private set; }
#nullable restore
#else
public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.CreationInfo CreationInfo { get; private set; }
#endif
/// <summary>Title of the bucket.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? DisplayName { get; set; }
#nullable restore
#else
public string DisplayName { get; set; }
#endif
/// <summary>Custom extension field values set on the entity. Supports $select.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ExtensionFieldCollection? Extensions { get; set; }
#nullable restore
#else
public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ExtensionFieldCollection Extensions { get; set; }
#endif
/// <summary>Identity of the user (or application) who last modified the entity. Read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.IdentitySet? LastModifiedBy { get; set; }
#nullable restore
#else
public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.IdentitySet LastModifiedBy { get; set; }
#endif
/// <summary>Date and time the entity was last modified. The value is represented in ISO 8601 format and is always in UTC time. Read-only.</summary>
public DateTimeOffset? LastModifiedDateTime { get; set; }
/// <summary>ID of the plan that contains the bucket. Immutable after creation.</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? PlanId { get; set; }
#nullable restore
#else
public string PlanId { get; set; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.Bucket"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static new global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.Bucket CreateFromDiscriminatorValue(IParseNode parseNode)
{
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
return new global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.Bucket();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>(base.GetFieldDeserializers())
{
{ "capabilities", n => { Capabilities = n.GetObjectValue<global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.BucketCapability>(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.BucketCapability.CreateFromDiscriminatorValue); } },
{ "creationInfo", n => { CreationInfo = n.GetObjectValue<global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.CreationInfo>(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.CreationInfo.CreateFromDiscriminatorValue); } },
{ "displayName", n => { DisplayName = n.GetStringValue(); } },
{ "extensions", n => { Extensions = n.GetObjectValue<global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ExtensionFieldCollection>(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ExtensionFieldCollection.CreateFromDiscriminatorValue); } },
{ "lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue<global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.IdentitySet>(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.IdentitySet.CreateFromDiscriminatorValue); } },
{ "lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } },
{ "planId", n => { PlanId = n.GetStringValue(); } },
};
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public override void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteStringValue("displayName", DisplayName);
writer.WriteObjectValue<global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ExtensionFieldCollection>("extensions", Extensions);
writer.WriteObjectValue<global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.IdentitySet>("lastModifiedBy", LastModifiedBy);
writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime);
writer.WriteStringValue("planId", PlanId);
}
}
}
#pragma warning restore CS0618
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
using System;
namespace Microsoft.Graph.PowerShell.Users.Actions.Client.Models
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
public partial class BucketCapability : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>Indicates whether custom extension fields are enabled for the bucket.</summary>
public bool? Extensions { get; set; }
/// <summary>The OdataType property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? OdataType { get; set; }
#nullable restore
#else
public string OdataType { get; set; }
#endif
/// <summary>
/// Instantiates a new <see cref="global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.BucketCapability"/> and sets the default values.
/// </summary>
public BucketCapability()
{
AdditionalData = new Dictionary<string, object>();
}
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.BucketCapability"/></returns>
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.BucketCapability CreateFromDiscriminatorValue(IParseNode parseNode)
{
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
return new global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.BucketCapability();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>
{
{ "extensions", n => { Extensions = n.GetBoolValue(); } },
{ "@odata.type", n => { OdataType = n.GetStringValue(); } },
};
}
/// <summary>
/// Serializes information the current object
/// </summary>
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
writer.WriteBoolValue("extensions", Extensions);
writer.WriteStringValue("@odata.type", OdataType);
writer.WriteAdditionalData(AdditionalData);
}
}
}
#pragma warning restore CS0618
10 changes: 10 additions & 0 deletions src/Users.Actions/wrapper/Beta/Client/Models/CallAiInsight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ public partial class CallAiInsight : global::Microsoft.Graph.PowerShell.Users.Ac
#nullable restore
#else
public List<global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.MeetingNote> MeetingNotes { get; set; }
#endif
/// <summary>The recapUrl property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? RecapUrl { get; set; }
#nullable restore
#else
public string RecapUrl { get; set; }
#endif
/// <summary>The viewpoint property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand Down Expand Up @@ -80,6 +88,7 @@ public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{ "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } },
{ "endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } },
{ "meetingNotes", n => { MeetingNotes = n.GetCollectionOfObjectValues<global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.MeetingNote>(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.MeetingNote.CreateFromDiscriminatorValue)?.AsList(); } },
{ "recapUrl", n => { RecapUrl = n.GetStringValue(); } },
{ "viewpoint", n => { Viewpoint = n.GetObjectValue<global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.CallAiInsightViewPoint>(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.CallAiInsightViewPoint.CreateFromDiscriminatorValue); } },
};
}
Expand All @@ -97,6 +106,7 @@ public override void Serialize(ISerializationWriter writer)
writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime);
writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime);
writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.MeetingNote>("meetingNotes", MeetingNotes);
writer.WriteStringValue("recapUrl", RecapUrl);
writer.WriteObjectValue<global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.CallAiInsightViewPoint>("viewpoint", Viewpoint);
}
}
Expand Down
Loading
Loading