diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilder.cs
index 6e255410936f..8abcd1d553fe 100644
--- a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilder.cs
@@ -35,6 +35,29 @@ public MailboxItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
{
}
///
+ /// Delete navigation property items for admin
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToDeleteRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
/// The collection of items in this folder.
///
/// A
@@ -59,6 +82,26 @@ public MailboxItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.MailboxItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
+ /// Delete navigation property items for admin
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
/// The collection of items in this folder.
///
/// A
@@ -89,6 +132,14 @@ public RequestInformation ToGetRequestInformation(Action
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MailboxItemItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
/// The collection of items in this folder.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Item/MailboxItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Item/MailboxItemItemRequestBuilder.cs
index 5630aa94c227..30169dc5aab5 100644
--- a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Item/MailboxItemItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Item/MailboxItemItemRequestBuilder.cs
@@ -35,6 +35,30 @@ public MailboxItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
{
}
///
+ /// Delete a mailboxItem from a mailboxFolder in a mailbox. Use the disposalType query parameter to specify whether to soft-delete or hard-delete the item.
+ /// Find more info here
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToDeleteRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
/// Read the properties and relationships of a mailboxItem object.
/// Find more info here
///
@@ -60,6 +84,26 @@ public MailboxItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt
return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.MailboxItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
+ /// Delete a mailboxItem from a mailboxFolder in a mailbox. Use the disposalType query parameter to specify whether to soft-delete or hard-delete the item.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
/// Read the properties and relationships of a mailboxItem object.
///
/// A
@@ -90,6 +134,14 @@ public RequestInformation ToGetRequestInformation(Action
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MailboxItemItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
/// Read the properties and relationships of a mailboxItem object.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
diff --git a/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs
index d31c52cb72f7..90ec3005d171 100644
--- a/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs
@@ -3,6 +3,7 @@
using Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.AdmitFromLobby;
using Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.Mute;
using Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.RemoveFromLobby;
+using Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.ReportSyntheticMedia;
using Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.StartHoldMusic;
using Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.StopHoldMusic;
using Microsoft.Graph.Beta.Models.ODataErrors;
@@ -38,6 +39,11 @@ public partial class ParticipantItemRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.RemoveFromLobby.RemoveFromLobbyRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to call the reportSyntheticMedia method.
+ public global::Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaRequestBuilder ReportSyntheticMedia
+ {
+ get => new global::Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to call the startHoldMusic method.
public global::Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.StartHoldMusic.StartHoldMusicRequestBuilder StartHoldMusic
{
diff --git a/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Item/ReportSyntheticMedia/ReportSyntheticMediaPostRequestBody.cs b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Item/ReportSyntheticMedia/ReportSyntheticMediaPostRequestBody.cs
new file mode 100644
index 000000000000..034ef97df744
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Item/ReportSyntheticMedia/ReportSyntheticMediaPostRequestBody.cs
@@ -0,0 +1,141 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.ReportSyntheticMedia
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class ReportSyntheticMediaPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
+ #pragma warning restore CS1591
+ {
+ /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ public IDictionary AdditionalData
+ {
+ get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
+ set { BackingStore.Set("AdditionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The contentMetadata property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::Microsoft.Graph.Beta.Models.MediaMetadata? ContentMetadata
+ {
+ get { return BackingStore?.Get("contentMetadata"); }
+ set { BackingStore?.Set("contentMetadata", value); }
+ }
+#nullable restore
+#else
+ public global::Microsoft.Graph.Beta.Models.MediaMetadata ContentMetadata
+ {
+ get { return BackingStore?.Get("contentMetadata"); }
+ set { BackingStore?.Set("contentMetadata", value); }
+ }
+#endif
+ /// The detectionDateTime property
+ public DateTimeOffset? DetectionDateTime
+ {
+ get { return BackingStore?.Get("detectionDateTime"); }
+ set { BackingStore?.Set("detectionDateTime", value); }
+ }
+ /// The detections property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Detections
+ {
+ get { return BackingStore?.Get?>("detections"); }
+ set { BackingStore?.Set("detections", value); }
+ }
+#nullable restore
+#else
+ public List Detections
+ {
+ get { return BackingStore?.Get>("detections"); }
+ set { BackingStore?.Set("detections", value); }
+ }
+#endif
+ /// The id property
+ public Guid? Id
+ {
+ get { return BackingStore?.Get("id"); }
+ set { BackingStore?.Set("id", value); }
+ }
+ /// The isMalicious property
+ public bool? IsMalicious
+ {
+ get { return BackingStore?.Get("isMalicious"); }
+ set { BackingStore?.Set("isMalicious", value); }
+ }
+ /// The overallConfidence property
+ public double? OverallConfidence
+ {
+ get { return BackingStore?.Get("overallConfidence"); }
+ set { BackingStore?.Set("overallConfidence", value); }
+ }
+ /// The severity property
+ public global::Microsoft.Graph.Beta.Models.DetectionSeverity? Severity
+ {
+ get { return BackingStore?.Get("severity"); }
+ set { BackingStore?.Set("severity", value); }
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public ReportSyntheticMediaPostRequestBody()
+ {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ IsMalicious = false;
+ }
+ ///
+ /// Creates a new instance of the appropriate class based on discriminator value
+ ///
+ /// A
+ /// The parse node to use to read the discriminator value and create the object
+ public static global::Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "contentMetadata", n => { ContentMetadata = n.GetObjectValue(global::Microsoft.Graph.Beta.Models.MediaMetadata.CreateFromDiscriminatorValue); } },
+ { "detectionDateTime", n => { DetectionDateTime = n.GetDateTimeOffsetValue(); } },
+ { "detections", n => { Detections = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Beta.Models.SyntheticMediaDetectionDetail.CreateFromDiscriminatorValue)?.AsList(); } },
+ { "id", n => { Id = n.GetGuidValue(); } },
+ { "isMalicious", n => { IsMalicious = n.GetBoolValue(); } },
+ { "overallConfidence", n => { OverallConfidence = n.GetDoubleValue(); } },
+ { "severity", n => { Severity = n.GetEnumValue(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ writer.WriteObjectValue("contentMetadata", ContentMetadata);
+ writer.WriteDateTimeOffsetValue("detectionDateTime", DetectionDateTime);
+ writer.WriteCollectionOfObjectValues("detections", Detections);
+ writer.WriteGuidValue("id", Id);
+ writer.WriteBoolValue("isMalicious", IsMalicious);
+ writer.WriteDoubleValue("overallConfidence", OverallConfidence);
+ writer.WriteEnumValue("severity", Severity);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Item/ReportSyntheticMedia/ReportSyntheticMediaRequestBuilder.cs b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Item/ReportSyntheticMedia/ReportSyntheticMediaRequestBuilder.cs
new file mode 100644
index 000000000000..205dd1315dc2
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Item/ReportSyntheticMedia/ReportSyntheticMediaRequestBuilder.cs
@@ -0,0 +1,101 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.ReportSyntheticMedia
+{
+ ///
+ /// Provides operations to call the reportSyntheticMedia method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ReportSyntheticMediaRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public ReportSyntheticMediaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/app/calls/{call%2Did}/participants/{participant%2Did}/reportSyntheticMedia", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public ReportSyntheticMediaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/app/calls/{call%2Did}/participants/{participant%2Did}/reportSyntheticMedia", rawUrl)
+ {
+ }
+ ///
+ /// Invoke action reportSyntheticMedia
+ ///
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Invoke action reportSyntheticMedia
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.App.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ReportSyntheticMediaRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs
index 30b2775b4879..05d00c43ae34 100644
--- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ParticipantItemRequestBuilder.cs
@@ -3,6 +3,7 @@
using Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.AdmitFromLobby;
using Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.Mute;
using Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.RemoveFromLobby;
+using Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.ReportSyntheticMedia;
using Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.StartHoldMusic;
using Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.StopHoldMusic;
using Microsoft.Graph.Beta.Models.ODataErrors;
@@ -38,6 +39,11 @@ public partial class ParticipantItemRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.RemoveFromLobby.RemoveFromLobbyRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to call the reportSyntheticMedia method.
+ public global::Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaRequestBuilder ReportSyntheticMedia
+ {
+ get => new global::Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to call the startHoldMusic method.
public global::Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.StartHoldMusic.StartHoldMusicRequestBuilder StartHoldMusic
{
diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ReportSyntheticMedia/ReportSyntheticMediaPostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ReportSyntheticMedia/ReportSyntheticMediaPostRequestBody.cs
new file mode 100644
index 000000000000..b9e971ef04a7
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ReportSyntheticMedia/ReportSyntheticMediaPostRequestBody.cs
@@ -0,0 +1,141 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.ReportSyntheticMedia
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class ReportSyntheticMediaPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
+ #pragma warning restore CS1591
+ {
+ /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ public IDictionary AdditionalData
+ {
+ get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
+ set { BackingStore.Set("AdditionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The contentMetadata property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public global::Microsoft.Graph.Beta.Models.MediaMetadata? ContentMetadata
+ {
+ get { return BackingStore?.Get("contentMetadata"); }
+ set { BackingStore?.Set("contentMetadata", value); }
+ }
+#nullable restore
+#else
+ public global::Microsoft.Graph.Beta.Models.MediaMetadata ContentMetadata
+ {
+ get { return BackingStore?.Get("contentMetadata"); }
+ set { BackingStore?.Set("contentMetadata", value); }
+ }
+#endif
+ /// The detectionDateTime property
+ public DateTimeOffset? DetectionDateTime
+ {
+ get { return BackingStore?.Get("detectionDateTime"); }
+ set { BackingStore?.Set("detectionDateTime", value); }
+ }
+ /// The detections property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Detections
+ {
+ get { return BackingStore?.Get?>("detections"); }
+ set { BackingStore?.Set("detections", value); }
+ }
+#nullable restore
+#else
+ public List Detections
+ {
+ get { return BackingStore?.Get>("detections"); }
+ set { BackingStore?.Set("detections", value); }
+ }
+#endif
+ /// The id property
+ public Guid? Id
+ {
+ get { return BackingStore?.Get("id"); }
+ set { BackingStore?.Set("id", value); }
+ }
+ /// The isMalicious property
+ public bool? IsMalicious
+ {
+ get { return BackingStore?.Get("isMalicious"); }
+ set { BackingStore?.Set("isMalicious", value); }
+ }
+ /// The overallConfidence property
+ public double? OverallConfidence
+ {
+ get { return BackingStore?.Get("overallConfidence"); }
+ set { BackingStore?.Set("overallConfidence", value); }
+ }
+ /// The severity property
+ public global::Microsoft.Graph.Beta.Models.DetectionSeverity? Severity
+ {
+ get { return BackingStore?.Get("severity"); }
+ set { BackingStore?.Set("severity", value); }
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public ReportSyntheticMediaPostRequestBody()
+ {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ IsMalicious = false;
+ }
+ ///
+ /// Creates a new instance of the appropriate class based on discriminator value
+ ///
+ /// A
+ /// The parse node to use to read the discriminator value and create the object
+ public static global::Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "contentMetadata", n => { ContentMetadata = n.GetObjectValue(global::Microsoft.Graph.Beta.Models.MediaMetadata.CreateFromDiscriminatorValue); } },
+ { "detectionDateTime", n => { DetectionDateTime = n.GetDateTimeOffsetValue(); } },
+ { "detections", n => { Detections = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Beta.Models.SyntheticMediaDetectionDetail.CreateFromDiscriminatorValue)?.AsList(); } },
+ { "id", n => { Id = n.GetGuidValue(); } },
+ { "isMalicious", n => { IsMalicious = n.GetBoolValue(); } },
+ { "overallConfidence", n => { OverallConfidence = n.GetDoubleValue(); } },
+ { "severity", n => { Severity = n.GetEnumValue(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ writer.WriteObjectValue("contentMetadata", ContentMetadata);
+ writer.WriteDateTimeOffsetValue("detectionDateTime", DetectionDateTime);
+ writer.WriteCollectionOfObjectValues("detections", Detections);
+ writer.WriteGuidValue("id", Id);
+ writer.WriteBoolValue("isMalicious", IsMalicious);
+ writer.WriteDoubleValue("overallConfidence", OverallConfidence);
+ writer.WriteEnumValue("severity", Severity);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ReportSyntheticMedia/ReportSyntheticMediaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ReportSyntheticMedia/ReportSyntheticMediaRequestBuilder.cs
new file mode 100644
index 000000000000..a95de3d40b5f
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Item/ReportSyntheticMedia/ReportSyntheticMediaRequestBuilder.cs
@@ -0,0 +1,101 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.ReportSyntheticMedia
+{
+ ///
+ /// Provides operations to call the reportSyntheticMedia method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ReportSyntheticMediaRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public ReportSyntheticMediaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/reportSyntheticMedia", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public ReportSyntheticMediaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/reportSyntheticMedia", rawUrl)
+ {
+ }
+ ///
+ /// Invoke action reportSyntheticMedia
+ ///
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Invoke action reportSyntheticMedia
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.Communications.Calls.Item.Participants.Item.ReportSyntheticMedia.ReportSyntheticMediaRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ReportSyntheticMediaRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs
index e63b0099c740..aa71dca73e94 100644
--- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs
@@ -19,6 +19,7 @@
using Microsoft.Graph.Beta.DirectoryNamespace.RecommendationConfiguration;
using Microsoft.Graph.Beta.DirectoryNamespace.Recommendations;
using Microsoft.Graph.Beta.DirectoryNamespace.Recovery;
+using Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups;
using Microsoft.Graph.Beta.DirectoryNamespace.SharedEmailDomains;
using Microsoft.Graph.Beta.DirectoryNamespace.Subscriptions;
using Microsoft.Graph.Beta.DirectoryNamespace.SubscriptionsWithCommerceSubscriptionId;
@@ -138,6 +139,11 @@ public partial class DirectoryRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Beta.DirectoryNamespace.Recovery.RecoveryRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
+ public global::Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.RemoteTenantGroupsRequestBuilder RemoteTenantGroups
+ {
+ get => new global::Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.RemoteTenantGroupsRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to manage the sharedEmailDomains property of the microsoft.graph.directory entity.
public global::Microsoft.Graph.Beta.DirectoryNamespace.SharedEmailDomains.SharedEmailDomainsRequestBuilder SharedEmailDomains
{
diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/Count/CountRequestBuilder.cs
new file mode 100644
index 000000000000..a00f6f2b75c1
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/Count/CountRequestBuilder.cs
@@ -0,0 +1,127 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.Count
+{
+ ///
+ /// Provides operations to count the resources in the collection.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups/$count{?%24filter,%24search}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups/$count{?%24filter,%24search}", rawUrl)
+ {
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+ public global::Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.Count.CountRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.Count.CountRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetQueryParameters
+ {
+ /// Filter items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24filter")]
+ public string? Filter { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24filter")]
+ public string Filter { get; set; }
+#endif
+ /// Search items by search phrases
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24search")]
+ public string? Search { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24search")]
+ public string Search { get; set; }
+#endif
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/Item/RemoteTenantGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/Item/RemoteTenantGroupItemRequestBuilder.cs
new file mode 100644
index 000000000000..8068f5dbd94d
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/Item/RemoteTenantGroupItemRequestBuilder.cs
@@ -0,0 +1,237 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.Item
+{
+ ///
+ /// Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RemoteTenantGroupItemRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public RemoteTenantGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups/{remoteTenantGroup%2Did}{?%24expand,%24select}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public RemoteTenantGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups/{remoteTenantGroup%2Did}{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// Delete navigation property remoteTenantGroups for directory
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToDeleteRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Read the properties and relationships of a remoteTenantGroup object.
+ /// Find more info here
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.RemoteTenantGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Update the navigation property remoteTenantGroups in directory
+ ///
+ /// A
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PatchAsync(global::Microsoft.Graph.Beta.Models.RemoteTenantGroup body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PatchAsync(global::Microsoft.Graph.Beta.Models.RemoteTenantGroup body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.RemoteTenantGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Delete navigation property remoteTenantGroups for directory
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Read the properties and relationships of a remoteTenantGroup object.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Update the navigation property remoteTenantGroups in directory
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Beta.Models.RemoteTenantGroup body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Beta.Models.RemoteTenantGroup body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+ public global::Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.Item.RemoteTenantGroupItemRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.Item.RemoteTenantGroupItemRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RemoteTenantGroupItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Read the properties and relationships of a remoteTenantGroup object.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RemoteTenantGroupItemRequestBuilderGetQueryParameters
+ {
+ /// Expand related entities
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24expand")]
+ public string[]? Expand { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24expand")]
+ public string[] Expand { get; set; }
+#endif
+ /// Select properties to be returned
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24select")]
+ public string[]? Select { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24select")]
+ public string[] Select { get; set; }
+#endif
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RemoteTenantGroupItemRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RemoteTenantGroupItemRequestBuilderPatchRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Users/Item/DistributionLists/Item/DistributionListMembers/DistributionListMembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/RemoteTenantGroupsRequestBuilder.cs
similarity index 55%
rename from src/Microsoft.Graph/Generated/Users/Item/DistributionLists/Item/DistributionListMembers/DistributionListMembersRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/RemoteTenantGroupsRequestBuilder.cs
index 82dfcce32c84..79a54315f6ef 100644
--- a/src/Microsoft.Graph/Generated/Users/Item/DistributionLists/Item/DistributionListMembers/DistributionListMembersRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/RemoteTenantGroupsRequestBuilder.cs
@@ -1,9 +1,9 @@
//
#pragma warning disable CS0618
+using Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.Count;
+using Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.Item;
using Microsoft.Graph.Beta.Models.ODataErrors;
using Microsoft.Graph.Beta.Models;
-using Microsoft.Graph.Beta.Users.Item.DistributionLists.Item.DistributionListMembers.Count;
-using Microsoft.Graph.Beta.Users.Item.DistributionLists.Item.DistributionListMembers.Item;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
@@ -12,61 +12,65 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace Microsoft.Graph.Beta.Users.Item.DistributionLists.Item.DistributionListMembers
+namespace Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups
{
///
- /// Provides operations to manage the distributionListMembers property of the microsoft.graph.distributionList entity.
+ /// Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class DistributionListMembersRequestBuilder : BaseRequestBuilder
+ public partial class RemoteTenantGroupsRequestBuilder : BaseRequestBuilder
{
/// Provides operations to count the resources in the collection.
- public global::Microsoft.Graph.Beta.Users.Item.DistributionLists.Item.DistributionListMembers.Count.CountRequestBuilder Count
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+ public global::Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.Count.CountRequestBuilder Count
{
- get => new global::Microsoft.Graph.Beta.Users.Item.DistributionLists.Item.DistributionListMembers.Count.CountRequestBuilder(PathParameters, RequestAdapter);
+ get => new global::Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.Count.CountRequestBuilder(PathParameters, RequestAdapter);
}
- /// Provides operations to manage the distributionListMembers property of the microsoft.graph.distributionList entity.
- /// The unique identifier of distributionListMember
- /// A
- public global::Microsoft.Graph.Beta.Users.Item.DistributionLists.Item.DistributionListMembers.Item.DistributionListMemberItemRequestBuilder this[string position]
+ /// Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
+ /// The unique identifier of remoteTenantGroup
+ /// A
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+ public global::Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.Item.RemoteTenantGroupItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
- urlTplParams.Add("distributionListMember%2Did", position);
- return new global::Microsoft.Graph.Beta.Users.Item.DistributionLists.Item.DistributionListMembers.Item.DistributionListMemberItemRequestBuilder(urlTplParams, RequestAdapter);
+ urlTplParams.Add("remoteTenantGroup%2Did", position);
+ return new global::Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.Item.RemoteTenantGroupItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public DistributionListMembersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/distributionLists/{distributionList%2Did}/distributionListMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
+ public RemoteTenantGroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
- public DistributionListMembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/distributionLists/{distributionList%2Did}/distributionListMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ public RemoteTenantGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
{
}
///
- /// The expanded members of the distribution list. Each member contains detailed information including resolved email addresses. Read-only.
+ /// Get a list of the remoteTenantGroup objects and their properties.
+ /// Find more info here
///
- /// A
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
/// When receiving a 4XX or 5XX status code
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
@@ -74,23 +78,24 @@ public DistributionListMembersRequestBuilder(string rawUrl, IRequestAdapter requ
{
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.DistributionListMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.RemoteTenantGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Create new navigation property to distributionListMembers for users
+ /// Create new navigation property to remoteTenantGroups for directory
///
- /// A
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
/// When receiving a 4XX or 5XX status code
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(global::Microsoft.Graph.Beta.Models.DistributionListMember body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::Microsoft.Graph.Beta.Models.RemoteTenantGroup body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(global::Microsoft.Graph.Beta.Models.DistributionListMember body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::Microsoft.Graph.Beta.Models.RemoteTenantGroup body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
@@ -99,20 +104,21 @@ public DistributionListMembersRequestBuilder(string rawUrl, IRequestAdapter requ
{
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.DistributionListMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.RemoteTenantGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// The expanded members of the distribution list. Each member contains detailed information including resolved email addresses. Read-only.
+ /// Get a list of the remoteTenantGroup objects and their properties.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -121,18 +127,19 @@ public RequestInformation ToGetRequestInformation(Action
- /// Create new navigation property to distributionListMembers for users
+ /// Create new navigation property to remoteTenantGroups for directory
///
/// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.Models.DistributionListMember body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.Models.RemoteTenantGroup body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.Models.DistributionListMember body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.Models.RemoteTenantGroup body, Action> requestConfiguration = default)
{
#endif
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
@@ -145,17 +152,18 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public global::Microsoft.Graph.Beta.Users.Item.DistributionLists.Item.DistributionListMembers.DistributionListMembersRequestBuilder WithUrl(string rawUrl)
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+ public global::Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.RemoteTenantGroupsRequestBuilder WithUrl(string rawUrl)
{
- return new global::Microsoft.Graph.Beta.Users.Item.DistributionLists.Item.DistributionListMembers.DistributionListMembersRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Microsoft.Graph.Beta.DirectoryNamespace.RemoteTenantGroups.RemoteTenantGroupsRequestBuilder(rawUrl, RequestAdapter);
}
///
- /// The expanded members of the distribution list. Each member contains detailed information including resolved email addresses. Read-only.
+ /// Get a list of the remoteTenantGroup objects and their properties.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class DistributionListMembersRequestBuilderGetQueryParameters
+ public partial class RemoteTenantGroupsRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -222,7 +230,7 @@ public partial class DistributionListMembersRequestBuilderGetQueryParameters
///
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class DistributionListMembersRequestBuilderGetRequestConfiguration : RequestConfiguration
+ public partial class RemoteTenantGroupsRequestBuilderGetRequestConfiguration : RequestConfiguration
{
}
///
@@ -230,7 +238,7 @@ public partial class DistributionListMembersRequestBuilderGetRequestConfiguratio
///
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class DistributionListMembersRequestBuilderPostRequestConfiguration : RequestConfiguration
+ public partial class RemoteTenantGroupsRequestBuilderPostRequestConfiguration : RequestConfiguration
{
}
}
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.cs
index 2be20210c393..a2bfc451f722 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.cs
@@ -5,6 +5,7 @@
using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.HistoryDefinitions;
using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances;
using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Policy;
+using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Unified;
using Microsoft.Graph.Beta.Models.ODataErrors;
using Microsoft.Graph.Beta.Models;
using Microsoft.Kiota.Abstractions.Extensions;
@@ -48,6 +49,11 @@ public partial class AccessReviewsRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Policy.PolicyRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to manage the unified property of the microsoft.graph.accessReviewSet entity.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Unified.UnifiedRequestBuilder Unified
+ {
+ get => new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Unified.UnifiedRequestBuilder(PathParameters, RequestAdapter);
+ }
///
/// Instantiates a new and sets the default values.
///
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Decisions/Item/Instance/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Decisions/Item/Instance/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs
new file mode 100644
index 000000000000..9560769dd53b
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Decisions/Item/Instance/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs
@@ -0,0 +1,97 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.AcceptRecommendations
+{
+ ///
+ /// Provides operations to call the acceptRecommendations method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AcceptRecommendationsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public AcceptRecommendationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/decisions/{accessReviewInstanceDecisionItem%2Did}/instance/stages/{accessReviewStage%2Did}/acceptRecommendations", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public AcceptRecommendationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/decisions/{accessReviewInstanceDecisionItem%2Did}/instance/stages/{accessReviewStage%2Did}/acceptRecommendations", rawUrl)
+ {
+ }
+ ///
+ /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance.
+ /// Find more info here
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToPostRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AcceptRecommendationsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Decisions/Item/Instance/Stages/Item/AccessReviewStageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Decisions/Item/Instance/Stages/Item/AccessReviewStageItemRequestBuilder.cs
index 8a5a4265b5ed..e8836be90cd0 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Decisions/Item/Instance/Stages/Item/AccessReviewStageItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Decisions/Item/Instance/Stages/Item/AccessReviewStageItemRequestBuilder.cs
@@ -1,5 +1,7 @@
//
#pragma warning disable CS0618
+using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.AcceptRecommendations;
+using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions;
using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.Decisions;
using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.Stop;
using Microsoft.Graph.Beta.Models.ODataErrors;
@@ -20,6 +22,16 @@ namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.I
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class AccessReviewStageItemRequestBuilder : BaseRequestBuilder
{
+ /// Provides operations to call the acceptRecommendations method.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder AcceptRecommendations
+ {
+ get => new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to call the batchRecordDecisions method.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder BatchRecordDecisions
+ {
+ get => new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to manage the decisions property of the microsoft.graph.accessReviewStage entity.
public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.Decisions.DecisionsRequestBuilder Decisions
{
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs
new file mode 100644
index 000000000000..d6d3db8c8e91
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs
@@ -0,0 +1,135 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class BatchRecordDecisionsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
+ #pragma warning restore CS1591
+ {
+ /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ public IDictionary AdditionalData
+ {
+ get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
+ set { BackingStore.Set("AdditionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The decision property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Decision
+ {
+ get { return BackingStore?.Get("decision"); }
+ set { BackingStore?.Set("decision", value); }
+ }
+#nullable restore
+#else
+ public string Decision
+ {
+ get { return BackingStore?.Get("decision"); }
+ set { BackingStore?.Set("decision", value); }
+ }
+#endif
+ /// The justification property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Justification
+ {
+ get { return BackingStore?.Get("justification"); }
+ set { BackingStore?.Set("justification", value); }
+ }
+#nullable restore
+#else
+ public string Justification
+ {
+ get { return BackingStore?.Get("justification"); }
+ set { BackingStore?.Set("justification", value); }
+ }
+#endif
+ /// The principalId property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? PrincipalId
+ {
+ get { return BackingStore?.Get("principalId"); }
+ set { BackingStore?.Set("principalId", value); }
+ }
+#nullable restore
+#else
+ public string PrincipalId
+ {
+ get { return BackingStore?.Get("principalId"); }
+ set { BackingStore?.Set("principalId", value); }
+ }
+#endif
+ /// The resourceId property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? ResourceId
+ {
+ get { return BackingStore?.Get("resourceId"); }
+ set { BackingStore?.Set("resourceId", value); }
+ }
+#nullable restore
+#else
+ public string ResourceId
+ {
+ get { return BackingStore?.Get("resourceId"); }
+ set { BackingStore?.Set("resourceId", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public BatchRecordDecisionsPostRequestBody()
+ {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ }
+ ///
+ /// Creates a new instance of the appropriate class based on discriminator value
+ ///
+ /// A
+ /// The parse node to use to read the discriminator value and create the object
+ public static global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "decision", n => { Decision = n.GetStringValue(); } },
+ { "justification", n => { Justification = n.GetStringValue(); } },
+ { "principalId", n => { PrincipalId = n.GetStringValue(); } },
+ { "resourceId", n => { ResourceId = n.GetStringValue(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ writer.WriteStringValue("decision", Decision);
+ writer.WriteStringValue("justification", Justification);
+ writer.WriteStringValue("principalId", PrincipalId);
+ writer.WriteStringValue("resourceId", ResourceId);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs
new file mode 100644
index 000000000000..c15250457c3e
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs
@@ -0,0 +1,102 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions
+{
+ ///
+ /// Provides operations to call the batchRecordDecisions method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class BatchRecordDecisionsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public BatchRecordDecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/decisions/{accessReviewInstanceDecisionItem%2Did}/instance/stages/{accessReviewStage%2Did}/batchRecordDecisions", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public BatchRecordDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/decisions/{accessReviewInstanceDecisionItem%2Did}/instance/stages/{accessReviewStage%2Did}/batchRecordDecisions", rawUrl)
+ {
+ }
+ ///
+ /// Record decisions in bulk for all accessReviewInstanceDecisionItem objects within a single accessReviewStage of a multi-stage accessReviewInstance, by using principalId, resourceId, or neither. This action records decisions for a specific stage only, unlike accessReviewInstance: batchRecordDecisions, which operates across the entire instance.
+ /// Find more info here
+ ///
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Record decisions in bulk for all accessReviewInstanceDecisionItem objects within a single accessReviewStage of a multi-stage accessReviewInstance, by using principalId, resourceId, or neither. This action records decisions for a specific stage only, unlike accessReviewInstance: batchRecordDecisions, which operates across the entire instance.
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class BatchRecordDecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Instance/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Instance/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs
new file mode 100644
index 000000000000..be8faabda9aa
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Instance/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs
@@ -0,0 +1,97 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.AcceptRecommendations
+{
+ ///
+ /// Provides operations to call the acceptRecommendations method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AcceptRecommendationsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public AcceptRecommendationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/instance/stages/{accessReviewStage%2Did}/acceptRecommendations", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public AcceptRecommendationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/instance/stages/{accessReviewStage%2Did}/acceptRecommendations", rawUrl)
+ {
+ }
+ ///
+ /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance.
+ /// Find more info here
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToPostRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AcceptRecommendationsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Instance/Stages/Item/AccessReviewStageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Instance/Stages/Item/AccessReviewStageItemRequestBuilder.cs
index 1e9ceb7e696b..7216c4253126 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Instance/Stages/Item/AccessReviewStageItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Instance/Stages/Item/AccessReviewStageItemRequestBuilder.cs
@@ -1,5 +1,7 @@
//
#pragma warning disable CS0618
+using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.AcceptRecommendations;
+using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions;
using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.Decisions;
using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.Stop;
using Microsoft.Graph.Beta.Models.ODataErrors;
@@ -20,6 +22,16 @@ namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class AccessReviewStageItemRequestBuilder : BaseRequestBuilder
{
+ /// Provides operations to call the acceptRecommendations method.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder AcceptRecommendations
+ {
+ get => new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to call the batchRecordDecisions method.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder BatchRecordDecisions
+ {
+ get => new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to manage the decisions property of the microsoft.graph.accessReviewStage entity.
public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.Decisions.DecisionsRequestBuilder Decisions
{
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs
new file mode 100644
index 000000000000..294985ac8ffb
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs
@@ -0,0 +1,135 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class BatchRecordDecisionsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
+ #pragma warning restore CS1591
+ {
+ /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ public IDictionary AdditionalData
+ {
+ get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
+ set { BackingStore.Set("AdditionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The decision property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Decision
+ {
+ get { return BackingStore?.Get("decision"); }
+ set { BackingStore?.Set("decision", value); }
+ }
+#nullable restore
+#else
+ public string Decision
+ {
+ get { return BackingStore?.Get("decision"); }
+ set { BackingStore?.Set("decision", value); }
+ }
+#endif
+ /// The justification property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Justification
+ {
+ get { return BackingStore?.Get("justification"); }
+ set { BackingStore?.Set("justification", value); }
+ }
+#nullable restore
+#else
+ public string Justification
+ {
+ get { return BackingStore?.Get("justification"); }
+ set { BackingStore?.Set("justification", value); }
+ }
+#endif
+ /// The principalId property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? PrincipalId
+ {
+ get { return BackingStore?.Get("principalId"); }
+ set { BackingStore?.Set("principalId", value); }
+ }
+#nullable restore
+#else
+ public string PrincipalId
+ {
+ get { return BackingStore?.Get("principalId"); }
+ set { BackingStore?.Set("principalId", value); }
+ }
+#endif
+ /// The resourceId property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? ResourceId
+ {
+ get { return BackingStore?.Get("resourceId"); }
+ set { BackingStore?.Set("resourceId", value); }
+ }
+#nullable restore
+#else
+ public string ResourceId
+ {
+ get { return BackingStore?.Get("resourceId"); }
+ set { BackingStore?.Set("resourceId", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public BatchRecordDecisionsPostRequestBody()
+ {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ }
+ ///
+ /// Creates a new instance of the appropriate class based on discriminator value
+ ///
+ /// A
+ /// The parse node to use to read the discriminator value and create the object
+ public static global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "decision", n => { Decision = n.GetStringValue(); } },
+ { "justification", n => { Justification = n.GetStringValue(); } },
+ { "principalId", n => { PrincipalId = n.GetStringValue(); } },
+ { "resourceId", n => { ResourceId = n.GetStringValue(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ writer.WriteStringValue("decision", Decision);
+ writer.WriteStringValue("justification", Justification);
+ writer.WriteStringValue("principalId", PrincipalId);
+ writer.WriteStringValue("resourceId", ResourceId);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs
new file mode 100644
index 000000000000..f16973189d16
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs
@@ -0,0 +1,102 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions
+{
+ ///
+ /// Provides operations to call the batchRecordDecisions method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class BatchRecordDecisionsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public BatchRecordDecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/instance/stages/{accessReviewStage%2Did}/batchRecordDecisions", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public BatchRecordDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/instance/stages/{accessReviewStage%2Did}/batchRecordDecisions", rawUrl)
+ {
+ }
+ ///
+ /// Record decisions in bulk for all accessReviewInstanceDecisionItem objects within a single accessReviewStage of a multi-stage accessReviewInstance, by using principalId, resourceId, or neither. This action records decisions for a specific stage only, unlike accessReviewInstance: batchRecordDecisions, which operates across the entire instance.
+ /// Find more info here
+ ///
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Record decisions in bulk for all accessReviewInstanceDecisionItem objects within a single accessReviewStage of a multi-stage accessReviewInstance, by using principalId, resourceId, or neither. This action records decisions for a specific stage only, unlike accessReviewInstance: batchRecordDecisions, which operates across the entire instance.
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class BatchRecordDecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs
new file mode 100644
index 000000000000..e3e47fe82676
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs
@@ -0,0 +1,97 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations
+{
+ ///
+ /// Provides operations to call the acceptRecommendations method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AcceptRecommendationsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public AcceptRecommendationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/acceptRecommendations", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public AcceptRecommendationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/acceptRecommendations", rawUrl)
+ {
+ }
+ ///
+ /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance.
+ /// Find more info here
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToPostRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AcceptRecommendationsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs
index cd9ad2a700f6..c073c771d364 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs
@@ -1,5 +1,7 @@
//
#pragma warning disable CS0618
+using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations;
+using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions;
using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.Decisions;
using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.Stop;
using Microsoft.Graph.Beta.Models.ODataErrors;
@@ -20,6 +22,16 @@ namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class AccessReviewStageItemRequestBuilder : BaseRequestBuilder
{
+ /// Provides operations to call the acceptRecommendations method.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder AcceptRecommendations
+ {
+ get => new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to call the batchRecordDecisions method.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder BatchRecordDecisions
+ {
+ get => new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to manage the decisions property of the microsoft.graph.accessReviewStage entity.
public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.Decisions.DecisionsRequestBuilder Decisions
{
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs
new file mode 100644
index 000000000000..68323040c0e6
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs
@@ -0,0 +1,135 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class BatchRecordDecisionsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
+ #pragma warning restore CS1591
+ {
+ /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ public IDictionary AdditionalData
+ {
+ get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
+ set { BackingStore.Set("AdditionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The decision property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Decision
+ {
+ get { return BackingStore?.Get("decision"); }
+ set { BackingStore?.Set("decision", value); }
+ }
+#nullable restore
+#else
+ public string Decision
+ {
+ get { return BackingStore?.Get("decision"); }
+ set { BackingStore?.Set("decision", value); }
+ }
+#endif
+ /// The justification property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Justification
+ {
+ get { return BackingStore?.Get("justification"); }
+ set { BackingStore?.Set("justification", value); }
+ }
+#nullable restore
+#else
+ public string Justification
+ {
+ get { return BackingStore?.Get("justification"); }
+ set { BackingStore?.Set("justification", value); }
+ }
+#endif
+ /// The principalId property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? PrincipalId
+ {
+ get { return BackingStore?.Get("principalId"); }
+ set { BackingStore?.Set("principalId", value); }
+ }
+#nullable restore
+#else
+ public string PrincipalId
+ {
+ get { return BackingStore?.Get("principalId"); }
+ set { BackingStore?.Set("principalId", value); }
+ }
+#endif
+ /// The resourceId property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? ResourceId
+ {
+ get { return BackingStore?.Get("resourceId"); }
+ set { BackingStore?.Set("resourceId", value); }
+ }
+#nullable restore
+#else
+ public string ResourceId
+ {
+ get { return BackingStore?.Get("resourceId"); }
+ set { BackingStore?.Set("resourceId", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public BatchRecordDecisionsPostRequestBody()
+ {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ }
+ ///
+ /// Creates a new instance of the appropriate class based on discriminator value
+ ///
+ /// A
+ /// The parse node to use to read the discriminator value and create the object
+ public static global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "decision", n => { Decision = n.GetStringValue(); } },
+ { "justification", n => { Justification = n.GetStringValue(); } },
+ { "principalId", n => { PrincipalId = n.GetStringValue(); } },
+ { "resourceId", n => { ResourceId = n.GetStringValue(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ writer.WriteStringValue("decision", Decision);
+ writer.WriteStringValue("justification", Justification);
+ writer.WriteStringValue("principalId", PrincipalId);
+ writer.WriteStringValue("resourceId", ResourceId);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs
new file mode 100644
index 000000000000..c7ed11f39270
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs
@@ -0,0 +1,102 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions
+{
+ ///
+ /// Provides operations to call the batchRecordDecisions method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class BatchRecordDecisionsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public BatchRecordDecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/batchRecordDecisions", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public BatchRecordDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/batchRecordDecisions", rawUrl)
+ {
+ }
+ ///
+ /// Record decisions in bulk for all accessReviewInstanceDecisionItem objects within a single accessReviewStage of a multi-stage accessReviewInstance, by using principalId, resourceId, or neither. This action records decisions for a specific stage only, unlike accessReviewInstance: batchRecordDecisions, which operates across the entire instance.
+ /// Find more info here
+ ///
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Record decisions in bulk for all accessReviewInstanceDecisionItem objects within a single accessReviewStage of a multi-stage accessReviewInstance, by using principalId, resourceId, or neither. This action records decisions for a specific stage only, unlike accessReviewInstance: batchRecordDecisions, which operates across the entire instance.
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class BatchRecordDecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Instances/Item/Decisions/Item/Instance/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Instances/Item/Decisions/Item/Instance/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs
new file mode 100644
index 000000000000..b988fb3cb348
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Instances/Item/Decisions/Item/Instance/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs
@@ -0,0 +1,97 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.AcceptRecommendations
+{
+ ///
+ /// Provides operations to call the acceptRecommendations method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AcceptRecommendationsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public AcceptRecommendationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/instance/stages/{accessReviewStage%2Did}/acceptRecommendations", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public AcceptRecommendationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/instance/stages/{accessReviewStage%2Did}/acceptRecommendations", rawUrl)
+ {
+ }
+ ///
+ /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance.
+ /// Find more info here
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToPostRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AcceptRecommendationsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Instances/Item/Decisions/Item/Instance/Stages/Item/AccessReviewStageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Instances/Item/Decisions/Item/Instance/Stages/Item/AccessReviewStageItemRequestBuilder.cs
index d72c3edde0fe..8f983f5bd152 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Instances/Item/Decisions/Item/Instance/Stages/Item/AccessReviewStageItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Instances/Item/Decisions/Item/Instance/Stages/Item/AccessReviewStageItemRequestBuilder.cs
@@ -1,5 +1,7 @@
//
#pragma warning disable CS0618
+using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.AcceptRecommendations;
+using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions;
using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.Decisions;
using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.Stop;
using Microsoft.Graph.Beta.Models.ODataErrors;
@@ -20,6 +22,16 @@ namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.D
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class AccessReviewStageItemRequestBuilder : BaseRequestBuilder
{
+ /// Provides operations to call the acceptRecommendations method.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder AcceptRecommendations
+ {
+ get => new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to call the batchRecordDecisions method.
+ public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder BatchRecordDecisions
+ {
+ get => new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to manage the decisions property of the microsoft.graph.accessReviewStage entity.
public global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.Decisions.DecisionsRequestBuilder Decisions
{
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Instances/Item/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Instances/Item/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs
new file mode 100644
index 000000000000..5f7a04f46338
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Instances/Item/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs
@@ -0,0 +1,135 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class BatchRecordDecisionsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
+ #pragma warning restore CS1591
+ {
+ /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ public IDictionary AdditionalData
+ {
+ get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
+ set { BackingStore.Set("AdditionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The decision property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Decision
+ {
+ get { return BackingStore?.Get("decision"); }
+ set { BackingStore?.Set("decision", value); }
+ }
+#nullable restore
+#else
+ public string Decision
+ {
+ get { return BackingStore?.Get("decision"); }
+ set { BackingStore?.Set("decision", value); }
+ }
+#endif
+ /// The justification property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Justification
+ {
+ get { return BackingStore?.Get("justification"); }
+ set { BackingStore?.Set("justification", value); }
+ }
+#nullable restore
+#else
+ public string Justification
+ {
+ get { return BackingStore?.Get("justification"); }
+ set { BackingStore?.Set("justification", value); }
+ }
+#endif
+ /// The principalId property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? PrincipalId
+ {
+ get { return BackingStore?.Get("principalId"); }
+ set { BackingStore?.Set("principalId", value); }
+ }
+#nullable restore
+#else
+ public string PrincipalId
+ {
+ get { return BackingStore?.Get("principalId"); }
+ set { BackingStore?.Set("principalId", value); }
+ }
+#endif
+ /// The resourceId property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? ResourceId
+ {
+ get { return BackingStore?.Get("resourceId"); }
+ set { BackingStore?.Set("resourceId", value); }
+ }
+#nullable restore
+#else
+ public string ResourceId
+ {
+ get { return BackingStore?.Get("resourceId"); }
+ set { BackingStore?.Set("resourceId", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public BatchRecordDecisionsPostRequestBody()
+ {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ }
+ ///
+ /// Creates a new instance of the appropriate class based on discriminator value
+ ///
+ /// A
+ /// The parse node to use to read the discriminator value and create the object
+ public static global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "decision", n => { Decision = n.GetStringValue(); } },
+ { "justification", n => { Justification = n.GetStringValue(); } },
+ { "principalId", n => { PrincipalId = n.GetStringValue(); } },
+ { "resourceId", n => { ResourceId = n.GetStringValue(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ writer.WriteStringValue("decision", Decision);
+ writer.WriteStringValue("justification", Justification);
+ writer.WriteStringValue("principalId", PrincipalId);
+ writer.WriteStringValue("resourceId", ResourceId);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Instances/Item/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Instances/Item/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs
new file mode 100644
index 000000000000..0da1f3e954c7
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/AccessReviews/Instances/Item/Decisions/Item/Instance/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs
@@ -0,0 +1,102 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Instances.Item.Decisions.Item.Instance.Stages.Item.BatchRecordDecisions
+{
+ ///
+ /// Provides operations to call the batchRecordDecisions method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class BatchRecordDecisionsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public BatchRecordDecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/instance/stages/{accessReviewStage%2Did}/batchRecordDecisions", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new