diff --git a/src/Microsoft.Graph/Generated/Admin/Teams/Policy/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/GetPolicyIdWithTypeWithNameGetResponse.cs b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/GetPolicyIdWithTypeWithNameGetResponse.cs
new file mode 100644
index 00000000000..65a435877e3
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/GetPolicyIdWithTypeWithNameGetResponse.cs
@@ -0,0 +1,66 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.TeamsAdministration;
+using Microsoft.Graph.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class GetPolicyIdWithTypeWithNameGetResponse : global::Microsoft.Graph.Models.BaseCollectionPaginationCountResponse, IParsable
+ #pragma warning restore CS1591
+ {
+ /// The value property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Value
+ {
+ get { return BackingStore?.Get?>("value"); }
+ set { BackingStore?.Set("value", value); }
+ }
+#nullable restore
+#else
+ public List Value
+ {
+ get { return BackingStore?.Get>("value"); }
+ set { BackingStore?.Set("value", value); }
+ }
+#endif
+ ///
+ /// 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 new global::Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameGetResponse();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public override IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>(base.GetFieldDeserializers())
+ {
+ { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.TeamsAdministration.PolicyIdentifierDetail.CreateFromDiscriminatorValue)?.AsList(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public override void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ base.Serialize(writer);
+ writer.WriteCollectionOfObjectValues("value", Value);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Teams/Policy/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/GetPolicyIdWithTypeWithNameResponse.cs b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/GetPolicyIdWithTypeWithNameResponse.cs
new file mode 100644
index 00000000000..f639901ad19
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/GetPolicyIdWithTypeWithNameResponse.cs
@@ -0,0 +1,28 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName
+{
+ [Obsolete("This class is obsolete. Use GetPolicyIdWithTypeWithNameGetResponse instead.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class GetPolicyIdWithTypeWithNameResponse : global::Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameGetResponse, IParsable
+ #pragma warning restore CS1591
+ {
+ ///
+ /// 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 new global::Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameResponse();
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Teams/Policy/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.cs
new file mode 100644
index 00000000000..d3dcad68aea
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName/MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.cs
@@ -0,0 +1,193 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.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.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName
+{
+ ///
+ /// Provides operations to call the getPolicyId method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Usage: name='{name}'
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ /// Usage: type='{type}'
+ public MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string name = "", string type = "") : base(requestAdapter, "{+baseurl}/admin/teams/policy/microsoft.graph.teamsAdministration.getPolicyId(type='{type}',name='{name}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
+ {
+ if (!string.IsNullOrWhiteSpace(name)) PathParameters.Add("name", name);
+ if (!string.IsNullOrWhiteSpace(type)) PathParameters.Add("type", type);
+ }
+ ///
+ /// 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 MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/teams/policy/microsoft.graph.teamsAdministration.getPolicyId(type='{type}',name='{name}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// Get the policy ID for a given policy name and policy type within Teams administration.
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task GetAsGetPolicyIdWithTypeWithNameGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task GetAsGetPolicyIdWithTypeWithNameGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get the policy ID for a given policy name and policy type within Teams administration.
+ /// 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("This method is obsolete. Use GetAsGetPolicyIdWithTypeWithNameGetResponseAsync instead.")]
+#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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get the policy ID for a given policy name and policy type within Teams administration.
+ ///
+ /// 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 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;
+ }
+ ///
+ /// 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.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get the policy ID for a given policy name and policy type within Teams administration.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters
+ {
+ /// Include count of items
+ [QueryParameter("%24count")]
+ public bool? Count { get; set; }
+ /// 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
+ /// 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
+ /// Order items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24orderby")]
+ public string[]? Orderby { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24orderby")]
+ public string[] Orderby { 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
+ /// 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
+ /// Skip the first n items
+ [QueryParameter("%24skip")]
+ public int? Skip { get; set; }
+ /// Show only the first n items
+ [QueryParameter("%24top")]
+ public int? Top { get; set; }
+ }
+ ///
+ /// 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 MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Teams/Policy/PolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/PolicyRequestBuilder.cs
new file mode 100644
index 00000000000..6eccb171aee
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/PolicyRequestBuilder.cs
@@ -0,0 +1,248 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName;
+using Microsoft.Graph.Admin.Teams.Policy.UserAssignments;
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.Models.TeamsAdministration;
+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.Admin.Teams.Policy
+{
+ ///
+ /// Provides operations to manage the policy property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class PolicyRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity.
+ public global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.UserAssignmentsRequestBuilder UserAssignments
+ {
+ get => new global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.UserAssignmentsRequestBuilder(PathParameters, RequestAdapter);
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public PolicyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/teams/policy{?%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 PolicyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/teams/policy{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// Delete navigation property policy 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
+#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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Represents a navigation property to the Teams policy assignment object.
+ ///
+ /// 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
+#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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Provides operations to call the getPolicyId method.
+ ///
+ /// A
+ /// Usage: name='{name}'
+ /// Usage: type='{type}'
+ public global::Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName(string name, string type)
+ {
+ if(string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name));
+ if(string.IsNullOrEmpty(type)) throw new ArgumentNullException(nameof(type));
+ return new global::Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder(PathParameters, RequestAdapter, name, type);
+ }
+ ///
+ /// Update the navigation property policy in admin
+ ///
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PatchAsync(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PatchAsync(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment 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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Delete navigation property policy for admin
+ ///
+ /// 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 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;
+ }
+ ///
+ /// Represents a navigation property to the Teams policy assignment object.
+ ///
+ /// 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 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 policy in admin
+ ///
+ /// 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 ToPatchRequestInformation(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment 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.
+ public global::Microsoft.Graph.Admin.Teams.Policy.PolicyRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Admin.Teams.Policy.PolicyRequestBuilder(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 PolicyRequestBuilderDeleteRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Represents a navigation property to the Teams policy assignment object.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class PolicyRequestBuilderGetQueryParameters
+ {
+ /// 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 PolicyRequestBuilderGetRequestConfiguration : 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 PolicyRequestBuilderPatchRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..2ca5aedf8b8
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/Count/CountRequestBuilder.cs
@@ -0,0 +1,124 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.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.Admin.Teams.Policy.UserAssignments.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}/admin/teams/policy/userAssignments/$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}/admin/teams/policy/userAssignments/$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
+#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.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.
+#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.
+ public global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.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/Admin/Teams/Policy/UserAssignments/Item/TeamsPolicyUserAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/Item/TeamsPolicyUserAssignmentItemRequestBuilder.cs
new file mode 100644
index 00000000000..9d11feea6fc
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/Item/TeamsPolicyUserAssignmentItemRequestBuilder.cs
@@ -0,0 +1,229 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.Models.TeamsAdministration;
+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.Admin.Teams.Policy.UserAssignments.Item
+{
+ ///
+ /// Provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class TeamsPolicyUserAssignmentItemRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public TeamsPolicyUserAssignmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/{teamsPolicyUserAssignment%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 TeamsPolicyUserAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/{teamsPolicyUserAssignment%2Did}{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// Delete navigation property userAssignments 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
+#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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// The collection of user policy assignments.
+ ///
+ /// 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
+#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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Update the navigation property userAssignments in admin
+ ///
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PatchAsync(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PatchAsync(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment 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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Delete navigation property userAssignments for admin
+ ///
+ /// 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 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 user policy assignments.
+ ///
+ /// 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 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 userAssignments in admin
+ ///
+ /// 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 ToPatchRequestInformation(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment 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.
+ public global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder(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 TeamsPolicyUserAssignmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// The collection of user policy assignments.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class TeamsPolicyUserAssignmentItemRequestBuilderGetQueryParameters
+ {
+ /// 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 TeamsPolicyUserAssignmentItemRequestBuilderGetRequestConfiguration : 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 TeamsPolicyUserAssignmentItemRequestBuilderPatchRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/MicrosoftGraphTeamsAdministrationAssign/AssignPostRequestBody.cs b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/MicrosoftGraphTeamsAdministrationAssign/AssignPostRequestBody.cs
new file mode 100644
index 00000000000..f91bc3cff6f
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/MicrosoftGraphTeamsAdministrationAssign/AssignPostRequestBody.cs
@@ -0,0 +1,82 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.TeamsAdministration;
+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.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class AssignPostRequestBody : 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 value property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Value
+ {
+ get { return BackingStore?.Get?>("value"); }
+ set { BackingStore?.Set("value", value); }
+ }
+#nullable restore
+#else
+ public List Value
+ {
+ get { return BackingStore?.Get>("value"); }
+ set { BackingStore?.Set("value", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public AssignPostRequestBody()
+ {
+ 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.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.AssignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.AssignPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment.CreateFromDiscriminatorValue)?.AsList(); } },
+ };
+ }
+ ///
+ /// 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.WriteCollectionOfObjectValues("value", Value);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/MicrosoftGraphTeamsAdministrationAssign/MicrosoftGraphTeamsAdministrationAssignRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/MicrosoftGraphTeamsAdministrationAssign/MicrosoftGraphTeamsAdministrationAssignRequestBuilder.cs
new file mode 100644
index 00000000000..5eec0b340f2
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/MicrosoftGraphTeamsAdministrationAssign/MicrosoftGraphTeamsAdministrationAssignRequestBuilder.cs
@@ -0,0 +1,102 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.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.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign
+{
+ ///
+ /// Provides operations to call the assign method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MicrosoftGraphTeamsAdministrationAssignRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public MicrosoftGraphTeamsAdministrationAssignRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/microsoft.graph.teamsAdministration.assign", 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 MicrosoftGraphTeamsAdministrationAssignRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/microsoft.graph.teamsAdministration.assign", rawUrl)
+ {
+ }
+ ///
+ /// Assign a Teams policy to a user using the user ID, policy type, and policy ID.
+ /// 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.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.AssignPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.AssignPostRequestBody 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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Assign a Teams policy to a user using the user ID, policy type, and policy ID.
+ ///
+ /// 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.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.AssignPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.AssignPostRequestBody 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.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder(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 MicrosoftGraphTeamsAdministrationAssignRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/MicrosoftGraphTeamsAdministrationUnassign/MicrosoftGraphTeamsAdministrationUnassignRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/MicrosoftGraphTeamsAdministrationUnassign/MicrosoftGraphTeamsAdministrationUnassignRequestBuilder.cs
new file mode 100644
index 00000000000..e1822e75e59
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/MicrosoftGraphTeamsAdministrationUnassign/MicrosoftGraphTeamsAdministrationUnassignRequestBuilder.cs
@@ -0,0 +1,102 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.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.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign
+{
+ ///
+ /// Provides operations to call the unassign method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MicrosoftGraphTeamsAdministrationUnassignRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public MicrosoftGraphTeamsAdministrationUnassignRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/microsoft.graph.teamsAdministration.unassign", 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 MicrosoftGraphTeamsAdministrationUnassignRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments/microsoft.graph.teamsAdministration.unassign", rawUrl)
+ {
+ }
+ ///
+ /// Unassign a Teams policy from a user using the user ID and policy type.
+ /// 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.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.UnassignPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.UnassignPostRequestBody 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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Unassign a Teams policy from a user using the user ID and policy type.
+ ///
+ /// 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.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.UnassignPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.UnassignPostRequestBody 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.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder(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 MicrosoftGraphTeamsAdministrationUnassignRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/MicrosoftGraphTeamsAdministrationUnassign/UnassignPostRequestBody.cs b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/MicrosoftGraphTeamsAdministrationUnassign/UnassignPostRequestBody.cs
new file mode 100644
index 00000000000..86e4d55d2ff
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/MicrosoftGraphTeamsAdministrationUnassign/UnassignPostRequestBody.cs
@@ -0,0 +1,82 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.TeamsAdministration;
+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.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class UnassignPostRequestBody : 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 value property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Value
+ {
+ get { return BackingStore?.Get?>("value"); }
+ set { BackingStore?.Set("value", value); }
+ }
+#nullable restore
+#else
+ public List Value
+ {
+ get { return BackingStore?.Get>("value"); }
+ set { BackingStore?.Set("value", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public UnassignPostRequestBody()
+ {
+ 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.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.UnassignPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.UnassignPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment.CreateFromDiscriminatorValue)?.AsList(); } },
+ };
+ }
+ ///
+ /// 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.WriteCollectionOfObjectValues("value", Value);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/UserAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/UserAssignmentsRequestBuilder.cs
new file mode 100644
index 00000000000..c98b311c34e
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Teams/Policy/UserAssignments/UserAssignmentsRequestBuilder.cs
@@ -0,0 +1,250 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count;
+using Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item;
+using Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign;
+using Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign;
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.Models.TeamsAdministration;
+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.Admin.Teams.Policy.UserAssignments
+{
+ ///
+ /// Provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class UserAssignmentsRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to count the resources in the collection.
+ public global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder Count
+ {
+ get => new global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to call the assign method.
+ public global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder MicrosoftGraphTeamsAdministrationAssign
+ {
+ get => new global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to call the unassign method.
+ public global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder MicrosoftGraphTeamsAdministrationUnassign
+ {
+ get => new global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the userAssignments property of the microsoft.graph.teamsAdministration.teamsPolicyAssignment entity.
+ /// The unique identifier of teamsPolicyUserAssignment
+ /// A
+ public global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder this[string position]
+ {
+ get
+ {
+ var urlTplParams = new Dictionary(PathParameters);
+ urlTplParams.Add("teamsPolicyUserAssignment%2Did", position);
+ return new global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder(urlTplParams, RequestAdapter);
+ }
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public UserAssignmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", 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 UserAssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/teams/policy/userAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// The collection of user policy assignments.
+ ///
+ /// 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
+#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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Create new navigation property to userAssignments for admin
+ ///
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment 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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// The collection of user policy assignments.
+ ///
+ /// 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 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;
+ }
+ ///
+ /// Create new navigation property to userAssignments for admin
+ ///
+ /// 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.Models.TeamsAdministration.TeamsPolicyUserAssignment body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment 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.Admin.Teams.Policy.UserAssignments.UserAssignmentsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Admin.Teams.Policy.UserAssignments.UserAssignmentsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// The collection of user policy assignments.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class UserAssignmentsRequestBuilderGetQueryParameters
+ {
+ /// Include count of items
+ [QueryParameter("%24count")]
+ public bool? Count { get; set; }
+ /// 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
+ /// 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
+ /// Order items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24orderby")]
+ public string[]? Orderby { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24orderby")]
+ public string[] Orderby { 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
+ /// 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
+ /// Skip the first n items
+ [QueryParameter("%24skip")]
+ public int? Skip { get; set; }
+ /// Show only the first n items
+ [QueryParameter("%24top")]
+ public int? Top { get; set; }
+ }
+ ///
+ /// 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 UserAssignmentsRequestBuilderGetRequestConfiguration : 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 UserAssignmentsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Teams/TeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Teams/TeamsRequestBuilder.cs
index d835c0f897e..f415876df25 100644
--- a/src/Microsoft.Graph/Generated/Admin/Teams/TeamsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Admin/Teams/TeamsRequestBuilder.cs
@@ -1,5 +1,6 @@
//
#pragma warning disable CS0618
+using Microsoft.Graph.Admin.Teams.Policy;
using Microsoft.Graph.Admin.Teams.UserConfigurations;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Graph.Models.TeamsAdministration;
@@ -19,6 +20,11 @@ namespace Microsoft.Graph.Admin.Teams
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class TeamsRequestBuilder : BaseRequestBuilder
{
+ /// Provides operations to manage the policy property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity.
+ public global::Microsoft.Graph.Admin.Teams.Policy.PolicyRequestBuilder Policy
+ {
+ get => new global::Microsoft.Graph.Admin.Teams.Policy.PolicyRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to manage the userConfigurations property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity.
public global::Microsoft.Graph.Admin.Teams.UserConfigurations.UserConfigurationsRequestBuilder UserConfigurations
{
@@ -63,7 +69,7 @@ public async Task DeleteAsync(Action
- /// Represents a collection of user configurations.
+ /// A container for Teams administration functionalities, such as user configurations and policy assignments.
///
/// A
/// Cancellation token to use when cancelling requests
@@ -130,7 +136,7 @@ public RequestInformation ToDeleteRequestInformation(Action
- /// Represents a collection of user configurations.
+ /// A container for Teams administration functionalities, such as user configurations and policy assignments.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -188,7 +194,7 @@ public partial class TeamsRequestBuilderDeleteRequestConfiguration : RequestConf
{
}
///
- /// Represents a collection of user configurations.
+ /// A container for Teams administration functionalities, such as user configurations and policy assignments.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class TeamsRequestBuilderGetQueryParameters
diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/AuthenticationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/AuthenticationRequestBuilder.cs
index 0937f83b92c..6b6702af988 100644
--- a/src/Microsoft.Graph/Generated/Me/Authentication/AuthenticationRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Me/Authentication/AuthenticationRequestBuilder.cs
@@ -1,6 +1,7 @@
//
#pragma warning disable CS0618
using Microsoft.Graph.Me.Authentication.EmailMethods;
+using Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods;
using Microsoft.Graph.Me.Authentication.Fido2Methods;
using Microsoft.Graph.Me.Authentication.Methods;
using Microsoft.Graph.Me.Authentication.MicrosoftAuthenticatorMethods;
@@ -34,6 +35,11 @@ public partial class AuthenticationRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Me.Authentication.EmailMethods.EmailMethodsRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity.
+ public global::Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.ExternalAuthenticationMethodsRequestBuilder ExternalAuthenticationMethods
+ {
+ get => new global::Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.ExternalAuthenticationMethodsRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to manage the fido2Methods property of the microsoft.graph.authentication entity.
public global::Microsoft.Graph.Me.Authentication.Fido2Methods.Fido2MethodsRequestBuilder Fido2Methods
{
diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/ExternalAuthenticationMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/ExternalAuthenticationMethods/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..289281f94ce
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Me/Authentication/ExternalAuthenticationMethods/Count/CountRequestBuilder.cs
@@ -0,0 +1,124 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.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.Me.Authentication.ExternalAuthenticationMethods.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}/me/authentication/externalAuthenticationMethods/$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}/me/authentication/externalAuthenticationMethods/$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
+#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.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.
+#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.
+ public global::Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.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/Me/Authentication/ExternalAuthenticationMethods/ExternalAuthenticationMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/ExternalAuthenticationMethods/ExternalAuthenticationMethodsRequestBuilder.cs
new file mode 100644
index 00000000000..fff5ce310a1
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Me/Authentication/ExternalAuthenticationMethods/ExternalAuthenticationMethodsRequestBuilder.cs
@@ -0,0 +1,239 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count;
+using Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item;
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.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.Me.Authentication.ExternalAuthenticationMethods
+{
+ ///
+ /// Provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ExternalAuthenticationMethodsRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to count the resources in the collection.
+ public global::Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder Count
+ {
+ get => new global::Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity.
+ /// The unique identifier of externalAuthenticationMethod
+ /// A
+ public global::Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder this[string position]
+ {
+ get
+ {
+ var urlTplParams = new Dictionary(PathParameters);
+ urlTplParams.Add("externalAuthenticationMethod%2Did", position);
+ return new global::Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder(urlTplParams, RequestAdapter);
+ }
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public ExternalAuthenticationMethodsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/externalAuthenticationMethods{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", 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 ExternalAuthenticationMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/externalAuthenticationMethods{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// Get a list of the externalAuthenticationMethod objects and their properties.
+ /// 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
+#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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.ExternalAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Create new navigation property to externalAuthenticationMethods for me
+ ///
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Models.ExternalAuthenticationMethod body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Models.ExternalAuthenticationMethod 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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.ExternalAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get a list of the externalAuthenticationMethod objects and their properties.
+ ///
+ /// 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 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;
+ }
+ ///
+ /// Create new navigation property to externalAuthenticationMethods for me
+ ///
+ /// 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.Models.ExternalAuthenticationMethod body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Models.ExternalAuthenticationMethod 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.Me.Authentication.ExternalAuthenticationMethods.ExternalAuthenticationMethodsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.ExternalAuthenticationMethodsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get a list of the externalAuthenticationMethod objects and their properties.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ExternalAuthenticationMethodsRequestBuilderGetQueryParameters
+ {
+ /// Include count of items
+ [QueryParameter("%24count")]
+ public bool? Count { get; set; }
+ /// 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
+ /// 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
+ /// Order items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24orderby")]
+ public string[]? Orderby { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24orderby")]
+ public string[] Orderby { 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
+ /// 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
+ /// Skip the first n items
+ [QueryParameter("%24skip")]
+ public int? Skip { get; set; }
+ /// Show only the first n items
+ [QueryParameter("%24top")]
+ public int? Top { get; set; }
+ }
+ ///
+ /// 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 ExternalAuthenticationMethodsRequestBuilderGetRequestConfiguration : 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 ExternalAuthenticationMethodsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/ExternalAuthenticationMethods/Item/ExternalAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/ExternalAuthenticationMethods/Item/ExternalAuthenticationMethodItemRequestBuilder.cs
new file mode 100644
index 00000000000..cf2263c396b
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Me/Authentication/ExternalAuthenticationMethods/Item/ExternalAuthenticationMethodItemRequestBuilder.cs
@@ -0,0 +1,230 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.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.Me.Authentication.ExternalAuthenticationMethods.Item
+{
+ ///
+ /// Provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ExternalAuthenticationMethodItemRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public ExternalAuthenticationMethodItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/externalAuthenticationMethods/{externalAuthenticationMethod%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 ExternalAuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/externalAuthenticationMethods/{externalAuthenticationMethod%2Did}{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// Delete navigation property externalAuthenticationMethods for me
+ ///
+ /// 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 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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Read the properties and relationships of an externalAuthenticationMethod 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
+#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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.ExternalAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Update the navigation property externalAuthenticationMethods in me
+ ///
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PatchAsync(global::Microsoft.Graph.Models.ExternalAuthenticationMethod body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PatchAsync(global::Microsoft.Graph.Models.ExternalAuthenticationMethod 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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.ExternalAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Delete navigation property externalAuthenticationMethods for me
+ ///
+ /// 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 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 an externalAuthenticationMethod object.
+ ///
+ /// 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 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 externalAuthenticationMethods in me
+ ///
+ /// 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 ToPatchRequestInformation(global::Microsoft.Graph.Models.ExternalAuthenticationMethod body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.ExternalAuthenticationMethod 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.
+ public global::Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder(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 ExternalAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Read the properties and relationships of an externalAuthenticationMethod object.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ExternalAuthenticationMethodItemRequestBuilderGetQueryParameters
+ {
+ /// 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 ExternalAuthenticationMethodItemRequestBuilderGetRequestConfiguration : 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 ExternalAuthenticationMethodItemRequestBuilderPatchRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Models/Admin.cs b/src/Microsoft.Graph/Generated/Models/Admin.cs
index f6425b4c748..9a798f7f60b 100644
--- a/src/Microsoft.Graph/Generated/Models/Admin.cs
+++ b/src/Microsoft.Graph/Generated/Models/Admin.cs
@@ -134,7 +134,7 @@ public string OdataType
set { BackingStore?.Set("sharepoint", value); }
}
#endif
- /// Represents a collection of user configurations.
+ /// A container for Teams administration functionalities, such as user configurations and policy assignments.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public global::Microsoft.Graph.Models.TeamsAdministration.TeamsAdminRoot? Teams
diff --git a/src/Microsoft.Graph/Generated/Models/AiAgentInfo.cs b/src/Microsoft.Graph/Generated/Models/AiAgentInfo.cs
new file mode 100644
index 00000000000..6bfd10dd63b
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Models/AiAgentInfo.cs
@@ -0,0 +1,64 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Models
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class AiAgentInfo : global::Microsoft.Graph.Models.AiInteractionEntity, IParsable
+ #pragma warning restore CS1591
+ {
+ /// The blueprintId property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? BlueprintId
+ {
+ get { return BackingStore?.Get("blueprintId"); }
+ set { BackingStore?.Set("blueprintId", value); }
+ }
+#nullable restore
+#else
+ public string BlueprintId
+ {
+ get { return BackingStore?.Get("blueprintId"); }
+ set { BackingStore?.Set("blueprintId", value); }
+ }
+#endif
+ ///
+ /// 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 new global::Microsoft.Graph.Models.AiAgentInfo CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Models.AiAgentInfo();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public override IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>(base.GetFieldDeserializers())
+ {
+ { "blueprintId", n => { BlueprintId = n.GetStringValue(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public override void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ base.Serialize(writer);
+ writer.WriteStringValue("blueprintId", BlueprintId);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Models/AiInteractionEntity.cs b/src/Microsoft.Graph/Generated/Models/AiInteractionEntity.cs
new file mode 100644
index 00000000000..59188d92b93
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Models/AiInteractionEntity.cs
@@ -0,0 +1,141 @@
+//
+#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.Models
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class AiInteractionEntity : 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 identifier property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Identifier
+ {
+ get { return BackingStore?.Get("identifier"); }
+ set { BackingStore?.Set("identifier", value); }
+ }
+#nullable restore
+#else
+ public string Identifier
+ {
+ get { return BackingStore?.Get("identifier"); }
+ set { BackingStore?.Set("identifier", value); }
+ }
+#endif
+ /// The name property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Name
+ {
+ get { return BackingStore?.Get("name"); }
+ set { BackingStore?.Set("name", value); }
+ }
+#nullable restore
+#else
+ public string Name
+ {
+ get { return BackingStore?.Get("name"); }
+ set { BackingStore?.Set("name", value); }
+ }
+#endif
+ /// The OdataType property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? OdataType
+ {
+ get { return BackingStore?.Get("@odata.type"); }
+ set { BackingStore?.Set("@odata.type", value); }
+ }
+#nullable restore
+#else
+ public string OdataType
+ {
+ get { return BackingStore?.Get("@odata.type"); }
+ set { BackingStore?.Set("@odata.type", value); }
+ }
+#endif
+ /// The version property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? Version
+ {
+ get { return BackingStore?.Get("version"); }
+ set { BackingStore?.Set("version", value); }
+ }
+#nullable restore
+#else
+ public string Version
+ {
+ get { return BackingStore?.Get("version"); }
+ set { BackingStore?.Set("version", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public AiInteractionEntity()
+ {
+ 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.Models.AiInteractionEntity CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue();
+ return mappingValue switch
+ {
+ "#microsoft.graph.aiAgentInfo" => new global::Microsoft.Graph.Models.AiAgentInfo(),
+ "#microsoft.graph.aiInteractionPlugin" => new global::Microsoft.Graph.Models.AiInteractionPlugin(),
+ _ => new global::Microsoft.Graph.Models.AiInteractionEntity(),
+ };
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "identifier", n => { Identifier = n.GetStringValue(); } },
+ { "name", n => { Name = n.GetStringValue(); } },
+ { "@odata.type", n => { OdataType = n.GetStringValue(); } },
+ { "version", n => { Version = 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("identifier", Identifier);
+ writer.WriteStringValue("name", Name);
+ writer.WriteStringValue("@odata.type", OdataType);
+ writer.WriteStringValue("version", Version);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Models/AiInteractionPlugin.cs b/src/Microsoft.Graph/Generated/Models/AiInteractionPlugin.cs
index 987b0eada08..68d90a15e05 100644
--- a/src/Microsoft.Graph/Generated/Models/AiInteractionPlugin.cs
+++ b/src/Microsoft.Graph/Generated/Models/AiInteractionPlugin.cs
@@ -2,7 +2,6 @@
#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;
@@ -10,95 +9,15 @@ namespace Microsoft.Graph.Models
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
- public partial class AiInteractionPlugin : IAdditionalDataHolder, IBackedModel, IParsable
+ public partial class AiInteractionPlugin : global::Microsoft.Graph.Models.AiInteractionEntity, 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 unique identifier of the plugin.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public string? Identifier
- {
- get { return BackingStore?.Get("identifier"); }
- set { BackingStore?.Set("identifier", value); }
- }
-#nullable restore
-#else
- public string Identifier
- {
- get { return BackingStore?.Get("identifier"); }
- set { BackingStore?.Set("identifier", value); }
- }
-#endif
- /// The display name of the plugin.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public string? Name
- {
- get { return BackingStore?.Get("name"); }
- set { BackingStore?.Set("name", value); }
- }
-#nullable restore
-#else
- public string Name
- {
- get { return BackingStore?.Get("name"); }
- set { BackingStore?.Set("name", value); }
- }
-#endif
- /// The OdataType property
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public string? OdataType
- {
- get { return BackingStore?.Get("@odata.type"); }
- set { BackingStore?.Set("@odata.type", value); }
- }
-#nullable restore
-#else
- public string OdataType
- {
- get { return BackingStore?.Get("@odata.type"); }
- set { BackingStore?.Set("@odata.type", value); }
- }
-#endif
- /// The version of the plugin used.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public string? Version
- {
- get { return BackingStore?.Get("version"); }
- set { BackingStore?.Set("version", value); }
- }
-#nullable restore
-#else
- public string Version
- {
- get { return BackingStore?.Get("version"); }
- set { BackingStore?.Set("version", value); }
- }
-#endif
- ///
- /// Instantiates a new and sets the default values.
- ///
- public AiInteractionPlugin()
- {
- 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.Models.AiInteractionPlugin CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static new global::Microsoft.Graph.Models.AiInteractionPlugin CreateFromDiscriminatorValue(IParseNode parseNode)
{
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
return new global::Microsoft.Graph.Models.AiInteractionPlugin();
@@ -107,28 +26,20 @@ public AiInteractionPlugin()
/// The deserialization information for the current model
///
/// A IDictionary<string, Action<IParseNode>>
- public virtual IDictionary> GetFieldDeserializers()
+ public override IDictionary> GetFieldDeserializers()
{
- return new Dictionary>
+ return new Dictionary>(base.GetFieldDeserializers())
{
- { "identifier", n => { Identifier = n.GetStringValue(); } },
- { "name", n => { Name = n.GetStringValue(); } },
- { "@odata.type", n => { OdataType = n.GetStringValue(); } },
- { "version", n => { Version = n.GetStringValue(); } },
};
}
///
/// Serializes information the current object
///
/// Serialization writer to use to serialize this model
- public virtual void Serialize(ISerializationWriter writer)
+ public override void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
- writer.WriteStringValue("identifier", Identifier);
- writer.WriteStringValue("name", Name);
- writer.WriteStringValue("@odata.type", OdataType);
- writer.WriteStringValue("version", Version);
- writer.WriteAdditionalData(AdditionalData);
+ base.Serialize(writer);
}
}
}
diff --git a/src/Microsoft.Graph/Generated/Models/Authentication.cs b/src/Microsoft.Graph/Generated/Models/Authentication.cs
index f8ef8427dbc..ea7d30fc852 100644
--- a/src/Microsoft.Graph/Generated/Models/Authentication.cs
+++ b/src/Microsoft.Graph/Generated/Models/Authentication.cs
@@ -27,6 +27,22 @@ public partial class Authentication : global::Microsoft.Graph.Models.Entity, IPa
get { return BackingStore?.Get>("emailMethods"); }
set { BackingStore?.Set("emailMethods", value); }
}
+#endif
+ /// Represents the external authentication methods registered to a user for authentication using an external identity provider.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? ExternalAuthenticationMethods
+ {
+ get { return BackingStore?.Get?>("externalAuthenticationMethods"); }
+ set { BackingStore?.Set("externalAuthenticationMethods", value); }
+ }
+#nullable restore
+#else
+ public List ExternalAuthenticationMethods
+ {
+ get { return BackingStore?.Get>("externalAuthenticationMethods"); }
+ set { BackingStore?.Set("externalAuthenticationMethods", value); }
+ }
#endif
/// Represents the FIDO2 security keys registered to a user for authentication.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -207,6 +223,7 @@ public override IDictionary> GetFieldDeserializers()
return new Dictionary>(base.GetFieldDeserializers())
{
{ "emailMethods", n => { EmailMethods = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.EmailAuthenticationMethod.CreateFromDiscriminatorValue)?.AsList(); } },
+ { "externalAuthenticationMethods", n => { ExternalAuthenticationMethods = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.ExternalAuthenticationMethod.CreateFromDiscriminatorValue)?.AsList(); } },
{ "fido2Methods", n => { Fido2Methods = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.Fido2AuthenticationMethod.CreateFromDiscriminatorValue)?.AsList(); } },
{ "methods", n => { Methods = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.AuthenticationMethod.CreateFromDiscriminatorValue)?.AsList(); } },
{ "microsoftAuthenticatorMethods", n => { MicrosoftAuthenticatorMethods = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.MicrosoftAuthenticatorAuthenticationMethod.CreateFromDiscriminatorValue)?.AsList(); } },
@@ -228,6 +245,7 @@ public override void Serialize(ISerializationWriter writer)
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteCollectionOfObjectValues("emailMethods", EmailMethods);
+ writer.WriteCollectionOfObjectValues("externalAuthenticationMethods", ExternalAuthenticationMethods);
writer.WriteCollectionOfObjectValues("fido2Methods", Fido2Methods);
writer.WriteCollectionOfObjectValues("methods", Methods);
writer.WriteCollectionOfObjectValues("microsoftAuthenticatorMethods", MicrosoftAuthenticatorMethods);
diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs
index d42cb43edac..a06c6539564 100644
--- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs
+++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs
@@ -12,6 +12,12 @@ namespace Microsoft.Graph.Models
public partial class AuthenticationMethod : global::Microsoft.Graph.Models.Entity, IParsable
#pragma warning restore CS1591
{
+ /// Represents the date and time when an entity was created. Read-only.
+ public DateTimeOffset? CreatedDateTime
+ {
+ get { return BackingStore?.Get("createdDateTime"); }
+ set { BackingStore?.Set("createdDateTime", value); }
+ }
///
/// Creates a new instance of the appropriate class based on discriminator value
///
@@ -24,6 +30,7 @@ public partial class AuthenticationMethod : global::Microsoft.Graph.Models.Entit
return mappingValue switch
{
"#microsoft.graph.emailAuthenticationMethod" => new global::Microsoft.Graph.Models.EmailAuthenticationMethod(),
+ "#microsoft.graph.externalAuthenticationMethod" => new global::Microsoft.Graph.Models.ExternalAuthenticationMethod(),
"#microsoft.graph.fido2AuthenticationMethod" => new global::Microsoft.Graph.Models.Fido2AuthenticationMethod(),
"#microsoft.graph.microsoftAuthenticatorAuthenticationMethod" => new global::Microsoft.Graph.Models.MicrosoftAuthenticatorAuthenticationMethod(),
"#microsoft.graph.passwordAuthenticationMethod" => new global::Microsoft.Graph.Models.PasswordAuthenticationMethod(),
@@ -43,6 +50,7 @@ public override IDictionary> GetFieldDeserializers()
{
return new Dictionary>(base.GetFieldDeserializers())
{
+ { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } },
};
}
///
@@ -53,6 +61,7 @@ public override void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
+ writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime);
}
}
}
diff --git a/src/Microsoft.Graph/Generated/Models/CloudPcDomainJoinConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CloudPcDomainJoinConfiguration.cs
index c17448c18e7..10f2fae7425 100644
--- a/src/Microsoft.Graph/Generated/Models/CloudPcDomainJoinConfiguration.cs
+++ b/src/Microsoft.Graph/Generated/Models/CloudPcDomainJoinConfiguration.cs
@@ -59,7 +59,7 @@ public string OnPremisesConnectionId
set { BackingStore?.Set("onPremisesConnectionId", value); }
}
#endif
- ///