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 - /// The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when they provision a Cloud PC, and the Cloud PC is put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. The possible values are: default, australia, canada, usCentral, usEast, usWest, france, germany, europeUnion, unitedKingdom, japan, asia, india, southAmerica, euap, usGovernment, usGovernmentDOD, unknownFutureValue, norway, switzerland, southKorea. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: norway, switzerland, southKorea. Read-only. + /// The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when they provision a Cloud PC, and the Cloud PC is put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. Read-only. public global::Microsoft.Graph.Models.CloudPcRegionGroup? RegionGroup { get { return BackingStore?.Get("regionGroup"); } diff --git a/src/Microsoft.Graph/Generated/Models/CloudPcOnPremisesConnectionHealthCheck.cs b/src/Microsoft.Graph/Generated/Models/CloudPcOnPremisesConnectionHealthCheck.cs index ae7e1d14118..f53a72b8666 100644 --- a/src/Microsoft.Graph/Generated/Models/CloudPcOnPremisesConnectionHealthCheck.cs +++ b/src/Microsoft.Graph/Generated/Models/CloudPcOnPremisesConnectionHealthCheck.cs @@ -75,7 +75,7 @@ public DateTimeOffset? EndDateTime get { return BackingStore?.Get("endDateTime"); } set { BackingStore?.Set("endDateTime", value); } } - /// The type of error that occurred during this health check. The possible values are: endpointConnectivityCheckCloudPcUrlNotAllowListed, endpointConnectivityCheckWVDUrlNotAllowListed, etc. (The all possible values can refer to cloudPcOnPremisesConnectionHealthCheckErrorType) Read-Only. + /// The type of error that occurred during this health check. Read-only. public global::Microsoft.Graph.Models.CloudPcOnPremisesConnectionHealthCheckErrorType? ErrorType { get { return BackingStore?.Get("errorType"); } diff --git a/src/Microsoft.Graph/Generated/Models/Entity.cs b/src/Microsoft.Graph/Generated/Models/Entity.cs index 3bc5e3b8b12..cf9faf54ad7 100644 --- a/src/Microsoft.Graph/Generated/Models/Entity.cs +++ b/src/Microsoft.Graph/Generated/Models/Entity.cs @@ -413,6 +413,7 @@ public Entity() "#microsoft.graph.exchangeRestoreSession" => new global::Microsoft.Graph.Models.ExchangeRestoreSession(), "#microsoft.graph.extension" => new global::Microsoft.Graph.Models.Extension(), "#microsoft.graph.extensionProperty" => new global::Microsoft.Graph.Models.ExtensionProperty(), + "#microsoft.graph.externalAuthenticationMethod" => new global::Microsoft.Graph.Models.ExternalAuthenticationMethod(), "#microsoft.graph.externalConnectors.connectionOperation" => new global::Microsoft.Graph.Models.ExternalConnectors.ConnectionOperation(), "#microsoft.graph.externalConnectors.externalActivity" => new global::Microsoft.Graph.Models.ExternalConnectors.ExternalActivity(), "#microsoft.graph.externalConnectors.externalActivityResult" => new global::Microsoft.Graph.Models.ExternalConnectors.ExternalActivityResult(), @@ -598,6 +599,7 @@ public Entity() "#microsoft.graph.oAuth2PermissionGrant" => new global::Microsoft.Graph.Models.OAuth2PermissionGrant(), "#microsoft.graph.offerShiftRequest" => new global::Microsoft.Graph.Models.OfferShiftRequest(), "#microsoft.graph.officeGraphInsights" => new global::Microsoft.Graph.Models.OfficeGraphInsights(), + "#microsoft.graph.oidcIdentityProvider" => new global::Microsoft.Graph.Models.OidcIdentityProvider(), "#microsoft.graph.onAttributeCollectionListener" => new global::Microsoft.Graph.Models.OnAttributeCollectionListener(), "#microsoft.graph.onAttributeCollectionStartCustomExtension" => new global::Microsoft.Graph.Models.OnAttributeCollectionStartCustomExtension(), "#microsoft.graph.onAttributeCollectionStartListener" => new global::Microsoft.Graph.Models.OnAttributeCollectionStartListener(), @@ -925,7 +927,10 @@ public Entity() "#microsoft.graph.taskFileAttachment" => new global::Microsoft.Graph.Models.TaskFileAttachment(), "#microsoft.graph.team" => new global::Microsoft.Graph.Models.Team(), "#microsoft.graph.teamInfo" => new global::Microsoft.Graph.Models.TeamInfo(), + "#microsoft.graph.teamsAdministration.policyIdentifierDetail" => new global::Microsoft.Graph.Models.TeamsAdministration.PolicyIdentifierDetail(), "#microsoft.graph.teamsAdministration.teamsAdminRoot" => new global::Microsoft.Graph.Models.TeamsAdministration.TeamsAdminRoot(), + "#microsoft.graph.teamsAdministration.teamsPolicyAssignment" => new global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment(), + "#microsoft.graph.teamsAdministration.teamsPolicyUserAssignment" => new global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment(), "#microsoft.graph.teamsAdministration.teamsUserConfiguration" => new global::Microsoft.Graph.Models.TeamsAdministration.TeamsUserConfiguration(), "#microsoft.graph.teamsApp" => new global::Microsoft.Graph.Models.TeamsApp(), "#microsoft.graph.teamsAppDefinition" => new global::Microsoft.Graph.Models.TeamsAppDefinition(), diff --git a/src/Microsoft.Graph/Generated/Models/ExternalAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/ExternalAuthenticationMethod.cs new file mode 100644 index 00000000000..107a64fe67c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ExternalAuthenticationMethod.cs @@ -0,0 +1,89 @@ +// +#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 ExternalAuthenticationMethod : global::Microsoft.Graph.Models.AuthenticationMethod, IParsable + #pragma warning restore CS1591 + { + /// A unique identifier used to manage the external auth method within Microsoft Entra ID. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ConfigurationId + { + get { return BackingStore?.Get("configurationId"); } + set { BackingStore?.Set("configurationId", value); } + } +#nullable restore +#else + public string ConfigurationId + { + get { return BackingStore?.Get("configurationId"); } + set { BackingStore?.Set("configurationId", value); } + } +#endif + /// Custom name given to the registered external authentication method. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName + { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName + { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ExternalAuthenticationMethod() : base() + { + OdataType = "#microsoft.graph.externalAuthenticationMethod"; + } + /// + /// 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.ExternalAuthenticationMethod CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.Models.ExternalAuthenticationMethod(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "configurationId", n => { ConfigurationId = n.GetStringValue(); } }, + { "displayName", n => { DisplayName = 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("configurationId", ConfigurationId); + writer.WriteStringValue("displayName", DisplayName); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Microsoft.Graph/Generated/Models/ExternalAuthenticationMethodCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ExternalAuthenticationMethodCollectionResponse.cs new file mode 100644 index 00000000000..73d4fac06a1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ExternalAuthenticationMethodCollectionResponse.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 ExternalAuthenticationMethodCollectionResponse : 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.Models.ExternalAuthenticationMethodCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.Models.ExternalAuthenticationMethodCollectionResponse(); + } + /// + /// 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.ExternalAuthenticationMethod.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/Models/Fido2AuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethod.cs index 7fd7cfdf110..dfd128aa4dc 100644 --- a/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/Fido2AuthenticationMethod.cs @@ -50,12 +50,6 @@ public List AttestationCertificates get { return BackingStore?.Get("attestationLevel"); } set { BackingStore?.Set("attestationLevel", value); } } - /// The timestamp when this key was registered to the user. - public DateTimeOffset? CreatedDateTime - { - get { return BackingStore?.Get("createdDateTime"); } - set { BackingStore?.Set("createdDateTime", value); } - } /// The display name of the key as given by the user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -116,7 +110,6 @@ public override IDictionary> GetFieldDeserializers() { "aaGuid", n => { AaGuid = n.GetStringValue(); } }, { "attestationCertificates", n => { AttestationCertificates = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "attestationLevel", n => { AttestationLevel = n.GetEnumValue(); } }, - { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "displayName", n => { DisplayName = n.GetStringValue(); } }, { "model", n => { Model = n.GetStringValue(); } }, }; @@ -132,7 +125,6 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("aaGuid", AaGuid); writer.WriteCollectionOfPrimitiveValues("attestationCertificates", AttestationCertificates); writer.WriteEnumValue("attestationLevel", AttestationLevel); - writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("model", Model); } diff --git a/src/Microsoft.Graph/Generated/Models/IdentityProviderBase.cs b/src/Microsoft.Graph/Generated/Models/IdentityProviderBase.cs index 6a40660e415..0d454f304f0 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityProviderBase.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityProviderBase.cs @@ -42,6 +42,7 @@ public string DisplayName "#microsoft.graph.appleManagedIdentityProvider" => new global::Microsoft.Graph.Models.AppleManagedIdentityProvider(), "#microsoft.graph.builtInIdentityProvider" => new global::Microsoft.Graph.Models.BuiltInIdentityProvider(), "#microsoft.graph.internalDomainFederation" => new global::Microsoft.Graph.Models.InternalDomainFederation(), + "#microsoft.graph.oidcIdentityProvider" => new global::Microsoft.Graph.Models.OidcIdentityProvider(), "#microsoft.graph.samlOrWsFedExternalDomainFederation" => new global::Microsoft.Graph.Models.SamlOrWsFedExternalDomainFederation(), "#microsoft.graph.samlOrWsFedProvider" => new global::Microsoft.Graph.Models.SamlOrWsFedProvider(), "#microsoft.graph.socialIdentityProvider" => new global::Microsoft.Graph.Models.SocialIdentityProvider(), diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs index 4754d396c9f..70d7473d561 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs @@ -12,12 +12,6 @@ namespace Microsoft.Graph.Models public partial class MicrosoftAuthenticatorAuthenticationMethod : global::Microsoft.Graph.Models.AuthenticationMethod, IParsable #pragma warning restore CS1591 { - /// The date and time that this app was registered. This property is null if the device isn't registered for passwordless Phone Sign-In. - public DateTimeOffset? CreatedDateTime - { - get { return BackingStore?.Get("createdDateTime"); } - set { BackingStore?.Set("createdDateTime", value); } - } /// The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -107,7 +101,6 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "device", n => { Device = n.GetObjectValue(global::Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue); } }, { "deviceTag", n => { DeviceTag = n.GetStringValue(); } }, { "displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -122,7 +115,6 @@ public override void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteObjectValue("device", Device); writer.WriteStringValue("deviceTag", DeviceTag); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/OidcAddressInboundClaims.cs b/src/Microsoft.Graph/Generated/Models/OidcAddressInboundClaims.cs new file mode 100644 index 00000000000..bb90323937f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OidcAddressInboundClaims.cs @@ -0,0 +1,171 @@ +// +#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 OidcAddressInboundClaims : 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 country property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Country + { + get { return BackingStore?.Get("country"); } + set { BackingStore?.Set("country", value); } + } +#nullable restore +#else + public string Country + { + get { return BackingStore?.Get("country"); } + set { BackingStore?.Set("country", value); } + } +#endif + /// The locality property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Locality + { + get { return BackingStore?.Get("locality"); } + set { BackingStore?.Set("locality", value); } + } +#nullable restore +#else + public string Locality + { + get { return BackingStore?.Get("locality"); } + set { BackingStore?.Set("locality", 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 postal_code property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PostalCode + { + get { return BackingStore?.Get("postal_code"); } + set { BackingStore?.Set("postal_code", value); } + } +#nullable restore +#else + public string PostalCode + { + get { return BackingStore?.Get("postal_code"); } + set { BackingStore?.Set("postal_code", value); } + } +#endif + /// The region property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Region + { + get { return BackingStore?.Get("region"); } + set { BackingStore?.Set("region", value); } + } +#nullable restore +#else + public string Region + { + get { return BackingStore?.Get("region"); } + set { BackingStore?.Set("region", value); } + } +#endif + /// The street_address property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? StreetAddress + { + get { return BackingStore?.Get("street_address"); } + set { BackingStore?.Set("street_address", value); } + } +#nullable restore +#else + public string StreetAddress + { + get { return BackingStore?.Get("street_address"); } + set { BackingStore?.Set("street_address", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public OidcAddressInboundClaims() + { + 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.OidcAddressInboundClaims CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.Models.OidcAddressInboundClaims(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "country", n => { Country = n.GetStringValue(); } }, + { "locality", n => { Locality = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "postal_code", n => { PostalCode = n.GetStringValue(); } }, + { "region", n => { Region = n.GetStringValue(); } }, + { "street_address", n => { StreetAddress = 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("country", Country); + writer.WriteStringValue("locality", Locality); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("postal_code", PostalCode); + writer.WriteStringValue("region", Region); + writer.WriteStringValue("street_address", StreetAddress); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Microsoft.Graph/Generated/Models/OidcClientAuthentication.cs b/src/Microsoft.Graph/Generated/Models/OidcClientAuthentication.cs new file mode 100644 index 00000000000..87b6215e56d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OidcClientAuthentication.cs @@ -0,0 +1,87 @@ +// +#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 OidcClientAuthentication : 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 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 + /// + /// Instantiates a new and sets the default values. + /// + public OidcClientAuthentication() + { + 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.OidcClientAuthentication CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.oidcClientSecretAuthentication" => new global::Microsoft.Graph.Models.OidcClientSecretAuthentication(), + "#microsoft.graph.oidcPrivateJwtKeyClientAuthentication" => new global::Microsoft.Graph.Models.OidcPrivateJwtKeyClientAuthentication(), + _ => new global::Microsoft.Graph.Models.OidcClientAuthentication(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "@odata.type", n => { OdataType = 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("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Microsoft.Graph/Generated/Models/OidcClientSecretAuthentication.cs b/src/Microsoft.Graph/Generated/Models/OidcClientSecretAuthentication.cs new file mode 100644 index 00000000000..21109a0666d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OidcClientSecretAuthentication.cs @@ -0,0 +1,71 @@ +// +#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 OidcClientSecretAuthentication : global::Microsoft.Graph.Models.OidcClientAuthentication, IParsable + #pragma warning restore CS1591 + { + /// The clientSecret property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ClientSecret + { + get { return BackingStore?.Get("clientSecret"); } + set { BackingStore?.Set("clientSecret", value); } + } +#nullable restore +#else + public string ClientSecret + { + get { return BackingStore?.Get("clientSecret"); } + set { BackingStore?.Set("clientSecret", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public OidcClientSecretAuthentication() : base() + { + OdataType = "#microsoft.graph.oidcClientSecretAuthentication"; + } + /// + /// 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.OidcClientSecretAuthentication CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.Models.OidcClientSecretAuthentication(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "clientSecret", n => { ClientSecret = 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("clientSecret", ClientSecret); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Microsoft.Graph/Generated/Models/OidcIdentityProvider.cs b/src/Microsoft.Graph/Generated/Models/OidcIdentityProvider.cs new file mode 100644 index 00000000000..202290d353a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OidcIdentityProvider.cs @@ -0,0 +1,169 @@ +// +#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 OidcIdentityProvider : global::Microsoft.Graph.Models.IdentityProviderBase, IParsable + #pragma warning restore CS1591 + { + /// The clientAuthentication property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.Models.OidcClientAuthentication? ClientAuthentication + { + get { return BackingStore?.Get("clientAuthentication"); } + set { BackingStore?.Set("clientAuthentication", value); } + } +#nullable restore +#else + public global::Microsoft.Graph.Models.OidcClientAuthentication ClientAuthentication + { + get { return BackingStore?.Get("clientAuthentication"); } + set { BackingStore?.Set("clientAuthentication", value); } + } +#endif + /// The clientId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ClientId + { + get { return BackingStore?.Get("clientId"); } + set { BackingStore?.Set("clientId", value); } + } +#nullable restore +#else + public string ClientId + { + get { return BackingStore?.Get("clientId"); } + set { BackingStore?.Set("clientId", value); } + } +#endif + /// The inboundClaimMapping property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.Models.OidcInboundClaimMappingOverride? InboundClaimMapping + { + get { return BackingStore?.Get("inboundClaimMapping"); } + set { BackingStore?.Set("inboundClaimMapping", value); } + } +#nullable restore +#else + public global::Microsoft.Graph.Models.OidcInboundClaimMappingOverride InboundClaimMapping + { + get { return BackingStore?.Get("inboundClaimMapping"); } + set { BackingStore?.Set("inboundClaimMapping", value); } + } +#endif + /// The issuer property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Issuer + { + get { return BackingStore?.Get("issuer"); } + set { BackingStore?.Set("issuer", value); } + } +#nullable restore +#else + public string Issuer + { + get { return BackingStore?.Get("issuer"); } + set { BackingStore?.Set("issuer", value); } + } +#endif + /// The responseType property + public global::Microsoft.Graph.Models.OidcResponseType? ResponseType + { + get { return BackingStore?.Get("responseType"); } + set { BackingStore?.Set("responseType", value); } + } + /// The scope property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Scope + { + get { return BackingStore?.Get("scope"); } + set { BackingStore?.Set("scope", value); } + } +#nullable restore +#else + public string Scope + { + get { return BackingStore?.Get("scope"); } + set { BackingStore?.Set("scope", value); } + } +#endif + /// The wellKnownEndpoint property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? WellKnownEndpoint + { + get { return BackingStore?.Get("wellKnownEndpoint"); } + set { BackingStore?.Set("wellKnownEndpoint", value); } + } +#nullable restore +#else + public string WellKnownEndpoint + { + get { return BackingStore?.Get("wellKnownEndpoint"); } + set { BackingStore?.Set("wellKnownEndpoint", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public OidcIdentityProvider() : base() + { + OdataType = "#microsoft.graph.oidcIdentityProvider"; + } + /// + /// 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.OidcIdentityProvider CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.Models.OidcIdentityProvider(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "clientAuthentication", n => { ClientAuthentication = n.GetObjectValue(global::Microsoft.Graph.Models.OidcClientAuthentication.CreateFromDiscriminatorValue); } }, + { "clientId", n => { ClientId = n.GetStringValue(); } }, + { "inboundClaimMapping", n => { InboundClaimMapping = n.GetObjectValue(global::Microsoft.Graph.Models.OidcInboundClaimMappingOverride.CreateFromDiscriminatorValue); } }, + { "issuer", n => { Issuer = n.GetStringValue(); } }, + { "responseType", n => { ResponseType = n.GetEnumValue(); } }, + { "scope", n => { Scope = n.GetStringValue(); } }, + { "wellKnownEndpoint", n => { WellKnownEndpoint = 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.WriteObjectValue("clientAuthentication", ClientAuthentication); + writer.WriteStringValue("clientId", ClientId); + writer.WriteObjectValue("inboundClaimMapping", InboundClaimMapping); + writer.WriteStringValue("issuer", Issuer); + writer.WriteEnumValue("responseType", ResponseType); + writer.WriteStringValue("scope", Scope); + writer.WriteStringValue("wellKnownEndpoint", WellKnownEndpoint); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Microsoft.Graph/Generated/Models/OidcInboundClaimMappingOverride.cs b/src/Microsoft.Graph/Generated/Models/OidcInboundClaimMappingOverride.cs new file mode 100644 index 00000000000..dee3301ac0a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OidcInboundClaimMappingOverride.cs @@ -0,0 +1,243 @@ +// +#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 OidcInboundClaimMappingOverride : 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); } + } + /// The address property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.Models.OidcAddressInboundClaims? Address + { + get { return BackingStore?.Get("address"); } + set { BackingStore?.Set("address", value); } + } +#nullable restore +#else + public global::Microsoft.Graph.Models.OidcAddressInboundClaims Address + { + get { return BackingStore?.Get("address"); } + set { BackingStore?.Set("address", value); } + } +#endif + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The email property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Email + { + get { return BackingStore?.Get("email"); } + set { BackingStore?.Set("email", value); } + } +#nullable restore +#else + public string Email + { + get { return BackingStore?.Get("email"); } + set { BackingStore?.Set("email", value); } + } +#endif + /// The email_verified property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? EmailVerified + { + get { return BackingStore?.Get("email_verified"); } + set { BackingStore?.Set("email_verified", value); } + } +#nullable restore +#else + public string EmailVerified + { + get { return BackingStore?.Get("email_verified"); } + set { BackingStore?.Set("email_verified", value); } + } +#endif + /// The family_name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FamilyName + { + get { return BackingStore?.Get("family_name"); } + set { BackingStore?.Set("family_name", value); } + } +#nullable restore +#else + public string FamilyName + { + get { return BackingStore?.Get("family_name"); } + set { BackingStore?.Set("family_name", value); } + } +#endif + /// The given_name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? GivenName + { + get { return BackingStore?.Get("given_name"); } + set { BackingStore?.Set("given_name", value); } + } +#nullable restore +#else + public string GivenName + { + get { return BackingStore?.Get("given_name"); } + set { BackingStore?.Set("given_name", 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 phone_number property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PhoneNumber + { + get { return BackingStore?.Get("phone_number"); } + set { BackingStore?.Set("phone_number", value); } + } +#nullable restore +#else + public string PhoneNumber + { + get { return BackingStore?.Get("phone_number"); } + set { BackingStore?.Set("phone_number", value); } + } +#endif + /// The phone_number_verified property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PhoneNumberVerified + { + get { return BackingStore?.Get("phone_number_verified"); } + set { BackingStore?.Set("phone_number_verified", value); } + } +#nullable restore +#else + public string PhoneNumberVerified + { + get { return BackingStore?.Get("phone_number_verified"); } + set { BackingStore?.Set("phone_number_verified", value); } + } +#endif + /// The sub property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Sub + { + get { return BackingStore?.Get("sub"); } + set { BackingStore?.Set("sub", value); } + } +#nullable restore +#else + public string Sub + { + get { return BackingStore?.Get("sub"); } + set { BackingStore?.Set("sub", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public OidcInboundClaimMappingOverride() + { + 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.OidcInboundClaimMappingOverride CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.Models.OidcInboundClaimMappingOverride(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "address", n => { Address = n.GetObjectValue(global::Microsoft.Graph.Models.OidcAddressInboundClaims.CreateFromDiscriminatorValue); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "email_verified", n => { EmailVerified = n.GetStringValue(); } }, + { "family_name", n => { FamilyName = n.GetStringValue(); } }, + { "given_name", n => { GivenName = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "phone_number", n => { PhoneNumber = n.GetStringValue(); } }, + { "phone_number_verified", n => { PhoneNumberVerified = n.GetStringValue(); } }, + { "sub", n => { Sub = 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.WriteObjectValue("address", Address); + writer.WriteStringValue("email", Email); + writer.WriteStringValue("email_verified", EmailVerified); + writer.WriteStringValue("family_name", FamilyName); + writer.WriteStringValue("given_name", GivenName); + writer.WriteStringValue("name", Name); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("phone_number", PhoneNumber); + writer.WriteStringValue("phone_number_verified", PhoneNumberVerified); + writer.WriteStringValue("sub", Sub); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Microsoft.Graph/Generated/Models/OidcPrivateJwtKeyClientAuthentication.cs b/src/Microsoft.Graph/Generated/Models/OidcPrivateJwtKeyClientAuthentication.cs new file mode 100644 index 00000000000..98854c82292 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OidcPrivateJwtKeyClientAuthentication.cs @@ -0,0 +1,53 @@ +// +#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 OidcPrivateJwtKeyClientAuthentication : global::Microsoft.Graph.Models.OidcClientAuthentication, IParsable + #pragma warning restore CS1591 + { + /// + /// Instantiates a new and sets the default values. + /// + public OidcPrivateJwtKeyClientAuthentication() : base() + { + OdataType = "#microsoft.graph.oidcPrivateJwtKeyClientAuthentication"; + } + /// + /// 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.OidcPrivateJwtKeyClientAuthentication CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.Models.OidcPrivateJwtKeyClientAuthentication(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// 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); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Microsoft.Graph/Generated/Models/OidcResponseType.cs b/src/Microsoft.Graph/Generated/Models/OidcResponseType.cs new file mode 100644 index 00000000000..ecf9c5eeefd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OidcResponseType.cs @@ -0,0 +1,29 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + [Flags] + #pragma warning disable CS1591 + public enum OidcResponseType + #pragma warning restore CS1591 + { + [EnumMember(Value = "code")] + #pragma warning disable CS1591 + Code = 1, + #pragma warning restore CS1591 + [EnumMember(Value = "id_token")] + #pragma warning disable CS1591 + Id_token = 2, + #pragma warning restore CS1591 + [EnumMember(Value = "token")] + #pragma warning disable CS1591 + Token = 4, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue = 8, + #pragma warning restore CS1591 + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PasswordAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/PasswordAuthenticationMethod.cs index 8ff6c245c7e..eb265bedddb 100644 --- a/src/Microsoft.Graph/Generated/Models/PasswordAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/PasswordAuthenticationMethod.cs @@ -12,12 +12,6 @@ namespace Microsoft.Graph.Models public partial class PasswordAuthenticationMethod : global::Microsoft.Graph.Models.AuthenticationMethod, IParsable #pragma warning restore CS1591 { - /// The date and time when this password was last updated. This property is currently not populated. Read-only. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. - public DateTimeOffset? CreatedDateTime - { - get { return BackingStore?.Get("createdDateTime"); } - set { BackingStore?.Set("createdDateTime", value); } - } /// For security, the password is always returned as null from a LIST or GET operation. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -59,7 +53,6 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "password", n => { Password = n.GetStringValue(); } }, }; } @@ -71,7 +64,6 @@ public override void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("password", Password); } } diff --git a/src/Microsoft.Graph/Generated/Models/PlatformCredentialAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/PlatformCredentialAuthenticationMethod.cs index a4540ec59cd..f3c049b36af 100644 --- a/src/Microsoft.Graph/Generated/Models/PlatformCredentialAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/PlatformCredentialAuthenticationMethod.cs @@ -12,12 +12,6 @@ namespace Microsoft.Graph.Models public partial class PlatformCredentialAuthenticationMethod : global::Microsoft.Graph.Models.AuthenticationMethod, IParsable #pragma warning restore CS1591 { - /// The date and time that this Platform Credential Key was registered. - public DateTimeOffset? CreatedDateTime - { - get { return BackingStore?.Get("createdDateTime"); } - set { BackingStore?.Set("createdDateTime", value); } - } /// The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -87,7 +81,6 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "device", n => { Device = n.GetObjectValue(global::Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue); } }, { "displayName", n => { DisplayName = n.GetStringValue(); } }, { "keyStrength", n => { KeyStrength = n.GetEnumValue(); } }, @@ -102,7 +95,6 @@ public override void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteObjectValue("device", Device); writer.WriteStringValue("displayName", DisplayName); writer.WriteEnumValue("keyStrength", KeyStrength); diff --git a/src/Microsoft.Graph/Generated/Models/ProcessConversationMetadata.cs b/src/Microsoft.Graph/Generated/Models/ProcessConversationMetadata.cs index 2067cf89840..079646b49cc 100644 --- a/src/Microsoft.Graph/Generated/Models/ProcessConversationMetadata.cs +++ b/src/Microsoft.Graph/Generated/Models/ProcessConversationMetadata.cs @@ -27,6 +27,38 @@ public List AccessedResources get { return BackingStore?.Get>("accessedResources"); } set { BackingStore?.Set("accessedResources", value); } } +#endif + /// The accessedResources_v2 property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AccessedResourcesV2 + { + get { return BackingStore?.Get?>("accessedResources_v2"); } + set { BackingStore?.Set("accessedResources_v2", value); } + } +#nullable restore +#else + public List AccessedResourcesV2 + { + get { return BackingStore?.Get>("accessedResources_v2"); } + set { BackingStore?.Set("accessedResources_v2", value); } + } +#endif + /// The agents property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Agents + { + get { return BackingStore?.Get?>("agents"); } + set { BackingStore?.Set("agents", value); } + } +#nullable restore +#else + public List Agents + { + get { return BackingStore?.Get>("agents"); } + set { BackingStore?.Set("agents", value); } + } #endif /// Identifier of the parent message in a threaded conversation, if applicable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -86,6 +118,8 @@ public override IDictionary> GetFieldDeserializers() return new Dictionary>(base.GetFieldDeserializers()) { { "accessedResources", n => { AccessedResources = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "accessedResources_v2", n => { AccessedResourcesV2 = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.ResourceAccessDetail.CreateFromDiscriminatorValue)?.AsList(); } }, + { "agents", n => { Agents = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.AiAgentInfo.CreateFromDiscriminatorValue)?.AsList(); } }, { "parentMessageId", n => { ParentMessageId = n.GetStringValue(); } }, { "plugins", n => { Plugins = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.AiInteractionPlugin.CreateFromDiscriminatorValue)?.AsList(); } }, }; @@ -99,6 +133,8 @@ public override void Serialize(ISerializationWriter writer) if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("accessedResources", AccessedResources); + writer.WriteCollectionOfObjectValues("accessedResources_v2", AccessedResourcesV2); + writer.WriteCollectionOfObjectValues("agents", Agents); writer.WriteStringValue("parentMessageId", ParentMessageId); writer.WriteCollectionOfObjectValues("plugins", Plugins); } diff --git a/src/Microsoft.Graph/Generated/Models/ResourceAccessDetail.cs b/src/Microsoft.Graph/Generated/Models/ResourceAccessDetail.cs new file mode 100644 index 00000000000..38b9ee5e54a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ResourceAccessDetail.cs @@ -0,0 +1,195 @@ +// +#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 ResourceAccessDetail : IAdditionalDataHolder, IBackedModel, IParsable + #pragma warning restore CS1591 + { + /// The accessType property + public global::Microsoft.Graph.Models.ResourceAccessType? AccessType + { + get { return BackingStore?.Get("accessType"); } + set { BackingStore?.Set("accessType", value); } + } + /// 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 isCrossPromptInjectionDetected property + public bool? IsCrossPromptInjectionDetected + { + get { return BackingStore?.Get("isCrossPromptInjectionDetected"); } + set { BackingStore?.Set("isCrossPromptInjectionDetected", value); } + } + /// The labelId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? LabelId + { + get { return BackingStore?.Get("labelId"); } + set { BackingStore?.Set("labelId", value); } + } +#nullable restore +#else + public string LabelId + { + get { return BackingStore?.Get("labelId"); } + set { BackingStore?.Set("labelId", 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 status property + public global::Microsoft.Graph.Models.ResourceAccessStatus? Status + { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } + /// The storageId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? StorageId + { + get { return BackingStore?.Get("storageId"); } + set { BackingStore?.Set("storageId", value); } + } +#nullable restore +#else + public string StorageId + { + get { return BackingStore?.Get("storageId"); } + set { BackingStore?.Set("storageId", value); } + } +#endif + /// The url property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Url + { + get { return BackingStore?.Get("url"); } + set { BackingStore?.Set("url", value); } + } +#nullable restore +#else + public string Url + { + get { return BackingStore?.Get("url"); } + set { BackingStore?.Set("url", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ResourceAccessDetail() + { + 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.ResourceAccessDetail CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.Models.ResourceAccessDetail(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "accessType", n => { AccessType = n.GetEnumValue(); } }, + { "identifier", n => { Identifier = n.GetStringValue(); } }, + { "isCrossPromptInjectionDetected", n => { IsCrossPromptInjectionDetected = n.GetBoolValue(); } }, + { "labelId", n => { LabelId = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "storageId", n => { StorageId = n.GetStringValue(); } }, + { "url", n => { Url = 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.WriteEnumValue("accessType", AccessType); + writer.WriteStringValue("identifier", Identifier); + writer.WriteBoolValue("isCrossPromptInjectionDetected", IsCrossPromptInjectionDetected); + writer.WriteStringValue("labelId", LabelId); + writer.WriteStringValue("name", Name); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteEnumValue("status", Status); + writer.WriteStringValue("storageId", StorageId); + writer.WriteStringValue("url", Url); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Microsoft.Graph/Generated/Models/ResourceAccessStatus.cs b/src/Microsoft.Graph/Generated/Models/ResourceAccessStatus.cs new file mode 100644 index 00000000000..2609f950fa8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ResourceAccessStatus.cs @@ -0,0 +1,28 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ResourceAccessStatus + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "failure")] + #pragma warning disable CS1591 + Failure, + #pragma warning restore CS1591 + [EnumMember(Value = "success")] + #pragma warning disable CS1591 + Success, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Microsoft.Graph/Generated/Models/ResourceAccessType.cs b/src/Microsoft.Graph/Generated/Models/ResourceAccessType.cs new file mode 100644 index 00000000000..f4c27c57ffb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ResourceAccessType.cs @@ -0,0 +1,33 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + [Flags] + #pragma warning disable CS1591 + public enum ResourceAccessType + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None = 1, + #pragma warning restore CS1591 + [EnumMember(Value = "read")] + #pragma warning disable CS1591 + Read = 2, + #pragma warning restore CS1591 + [EnumMember(Value = "write")] + #pragma warning disable CS1591 + Write = 4, + #pragma warning restore CS1591 + [EnumMember(Value = "create")] + #pragma warning disable CS1591 + Create = 8, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue = 16, + #pragma warning restore CS1591 + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryPurgeDataOperation.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryPurgeDataOperation.cs index 295fb855f22..260aa5760e7 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryPurgeDataOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryPurgeDataOperation.cs @@ -12,6 +12,22 @@ namespace Microsoft.Graph.Models.Security public partial class EdiscoveryPurgeDataOperation : global::Microsoft.Graph.Models.Security.CaseOperation, IParsable #pragma warning restore CS1591 { + /// The purge job report file metadata. It contains the properties for report file metadata, including downloadUrl, fileName, and size. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ReportFileMetadata + { + get { return BackingStore?.Get?>("reportFileMetadata"); } + set { BackingStore?.Set("reportFileMetadata", value); } + } +#nullable restore +#else + public List ReportFileMetadata + { + get { return BackingStore?.Get>("reportFileMetadata"); } + set { BackingStore?.Set("reportFileMetadata", value); } + } +#endif /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -30,6 +46,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + { "reportFileMetadata", n => { ReportFileMetadata = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.Security.ReportFileMetadata.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -40,6 +57,7 @@ public override void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteCollectionOfObjectValues("reportFileMetadata", ReportFileMetadata); } } } diff --git a/src/Microsoft.Graph/Generated/Models/Security/Incident.cs b/src/Microsoft.Graph/Generated/Models/Security/Incident.cs index 70c46192d36..d9881ab9f87 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Incident.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Incident.cs @@ -164,7 +164,7 @@ public DateTimeOffset? LastUpdateDateTime get { return BackingStore?.Get("lastUpdateDateTime"); } set { BackingStore?.Set("lastUpdateDateTime", value); } } - /// The priorityScore property + /// A priority score for the incident from 0 to 100, with > 85 being the top priority, 15 - 85 medium priority, and < 15 low priority. This score is generated using machine learning and is based on multiple factors, including severity, disruption impact, threat intelligence, alert types, asset criticality, threat analytics, incident rarity, and additional priority signals. The value can also be null which indicates the feature is not open for the tenant or the value of the score is pending calculation. public int? PriorityScore { get { return BackingStore?.Get("priorityScore"); } diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAdministration/PolicyIdentifierDetail.cs b/src/Microsoft.Graph/Generated/Models/TeamsAdministration/PolicyIdentifierDetail.cs new file mode 100644 index 00000000000..d09f5902d8d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TeamsAdministration/PolicyIdentifierDetail.cs @@ -0,0 +1,82 @@ +// +#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.TeamsAdministration +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class PolicyIdentifierDetail : global::Microsoft.Graph.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// The display name of the policy instance. +#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 unique ID associated with the policy instance. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PolicyId + { + get { return BackingStore?.Get("policyId"); } + set { BackingStore?.Set("policyId", value); } + } +#nullable restore +#else + public string PolicyId + { + get { return BackingStore?.Get("policyId"); } + set { BackingStore?.Set("policyId", 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.TeamsAdministration.PolicyIdentifierDetail CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.Models.TeamsAdministration.PolicyIdentifierDetail(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "name", n => { Name = n.GetStringValue(); } }, + { "policyId", n => { PolicyId = 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("name", Name); + writer.WriteStringValue("policyId", PolicyId); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAdministration/TeamsAdminRoot.cs b/src/Microsoft.Graph/Generated/Models/TeamsAdministration/TeamsAdminRoot.cs index 70a891ca89c..52c3e04e94c 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAdministration/TeamsAdminRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAdministration/TeamsAdminRoot.cs @@ -12,7 +12,23 @@ namespace Microsoft.Graph.Models.TeamsAdministration public partial class TeamsAdminRoot : global::Microsoft.Graph.Models.Entity, IParsable #pragma warning restore CS1591 { - /// Represents the configuration information of users who have accounts hosted on Microsoft Teams. + /// Represents a navigation property to the Teams policy assignment object. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment? Policy + { + get { return BackingStore?.Get("policy"); } + set { BackingStore?.Set("policy", value); } + } +#nullable restore +#else + public global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment Policy + { + get { return BackingStore?.Get("policy"); } + set { BackingStore?.Set("policy", value); } + } +#endif + /// Represents the configuration information of users who have accounts hosted on Microsoft Teams #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? UserConfigurations @@ -46,6 +62,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + { "policy", n => { Policy = n.GetObjectValue(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment.CreateFromDiscriminatorValue); } }, { "userConfigurations", n => { UserConfigurations = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.TeamsAdministration.TeamsUserConfiguration.CreateFromDiscriminatorValue)?.AsList(); } }, }; } @@ -57,6 +74,7 @@ public override void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteObjectValue("policy", Policy); writer.WriteCollectionOfObjectValues("userConfigurations", UserConfigurations); } } diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAdministration/TeamsPolicyAssignment.cs b/src/Microsoft.Graph/Generated/Models/TeamsAdministration/TeamsPolicyAssignment.cs new file mode 100644 index 00000000000..52f8f131b76 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TeamsAdministration/TeamsPolicyAssignment.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.TeamsAdministration +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class TeamsPolicyAssignment : global::Microsoft.Graph.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// The collection of user policy assignments. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? UserAssignments + { + get { return BackingStore?.Get?>("userAssignments"); } + set { BackingStore?.Set("userAssignments", value); } + } +#nullable restore +#else + public List UserAssignments + { + get { return BackingStore?.Get>("userAssignments"); } + set { BackingStore?.Set("userAssignments", 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.TeamsAdministration.TeamsPolicyAssignment CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "userAssignments", n => { UserAssignments = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment.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("userAssignments", UserAssignments); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAdministration/TeamsPolicyUserAssignment.cs b/src/Microsoft.Graph/Generated/Models/TeamsAdministration/TeamsPolicyUserAssignment.cs new file mode 100644 index 00000000000..d4e7101396d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TeamsAdministration/TeamsPolicyUserAssignment.cs @@ -0,0 +1,100 @@ +// +#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.TeamsAdministration +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class TeamsPolicyUserAssignment : global::Microsoft.Graph.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// The unique identifier (GUID) of the policy within the specified policy type. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PolicyId + { + get { return BackingStore?.Get("policyId"); } + set { BackingStore?.Set("policyId", value); } + } +#nullable restore +#else + public string PolicyId + { + get { return BackingStore?.Get("policyId"); } + set { BackingStore?.Set("policyId", value); } + } +#endif + /// The type of Teams policy assigned or unassigned, such as teamsMeetingBroadcastPolicy. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PolicyType + { + get { return BackingStore?.Get("policyType"); } + set { BackingStore?.Set("policyType", value); } + } +#nullable restore +#else + public string PolicyType + { + get { return BackingStore?.Get("policyType"); } + set { BackingStore?.Set("policyType", value); } + } +#endif + /// The unique identifier (GUID) of the user. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserId + { + get { return BackingStore?.Get("userId"); } + set { BackingStore?.Set("userId", value); } + } +#nullable restore +#else + public string UserId + { + get { return BackingStore?.Get("userId"); } + set { BackingStore?.Set("userId", 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.TeamsAdministration.TeamsPolicyUserAssignment CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "policyId", n => { PolicyId = n.GetStringValue(); } }, + { "policyType", n => { PolicyType = n.GetStringValue(); } }, + { "userId", n => { UserId = 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("policyId", PolicyId); + writer.WriteStringValue("policyType", PolicyType); + writer.WriteStringValue("userId", UserId); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAdministration/TeamsPolicyUserAssignmentCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TeamsAdministration/TeamsPolicyUserAssignmentCollectionResponse.cs new file mode 100644 index 00000000000..3c6fed4f4d3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TeamsAdministration/TeamsPolicyUserAssignmentCollectionResponse.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.TeamsAdministration +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class TeamsPolicyUserAssignmentCollectionResponse : 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.Models.TeamsAdministration.TeamsPolicyUserAssignmentCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignmentCollectionResponse(); + } + /// + /// 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.TeamsPolicyUserAssignment.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/Models/TemporaryAccessPassAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethod.cs index d206381da0d..456f337e715 100644 --- a/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/TemporaryAccessPassAuthenticationMethod.cs @@ -12,12 +12,6 @@ namespace Microsoft.Graph.Models public partial class TemporaryAccessPassAuthenticationMethod : global::Microsoft.Graph.Models.AuthenticationMethod, IParsable #pragma warning restore CS1591 { - /// The date and time when the Temporary Access Pass was created. - public DateTimeOffset? CreatedDateTime - { - get { return BackingStore?.Get("createdDateTime"); } - set { BackingStore?.Set("createdDateTime", value); } - } /// The state of the authentication method that indicates whether it's currently usable by the user. public bool? IsUsable { @@ -99,7 +93,6 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "isUsable", n => { IsUsable = n.GetBoolValue(); } }, { "isUsableOnce", n => { IsUsableOnce = n.GetBoolValue(); } }, { "lifetimeInMinutes", n => { LifetimeInMinutes = n.GetIntValue(); } }, @@ -116,7 +109,6 @@ public override void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteBoolValue("isUsable", IsUsable); writer.WriteBoolValue("isUsableOnce", IsUsableOnce); writer.WriteIntValue("lifetimeInMinutes", LifetimeInMinutes); diff --git a/src/Microsoft.Graph/Generated/Models/UsageRights.cs b/src/Microsoft.Graph/Generated/Models/UsageRights.cs index a41d78512da..a93bbf6b928 100644 --- a/src/Microsoft.Graph/Generated/Models/UsageRights.cs +++ b/src/Microsoft.Graph/Generated/Models/UsageRights.cs @@ -89,9 +89,13 @@ public enum UsageRights #pragma warning disable CS1591 Exception = 524288, #pragma warning restore CS1591 + [EnumMember(Value = "labelNotFoundException")] + #pragma warning disable CS1591 + LabelNotFoundException = 1048576, + #pragma warning restore CS1591 [EnumMember(Value = "unknownFutureValue")] #pragma warning disable CS1591 - UnknownFutureValue = 1048576, + UnknownFutureValue = 2097152, #pragma warning restore CS1591 } } diff --git a/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessAuthenticationMethod.cs index 2f476169960..80e9f1bc824 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsHelloForBusinessAuthenticationMethod.cs @@ -12,12 +12,6 @@ namespace Microsoft.Graph.Models public partial class WindowsHelloForBusinessAuthenticationMethod : global::Microsoft.Graph.Models.AuthenticationMethod, IParsable #pragma warning restore CS1591 { - /// The date and time that this Windows Hello for Business key was registered. - public DateTimeOffset? CreatedDateTime - { - get { return BackingStore?.Get("createdDateTime"); } - set { BackingStore?.Set("createdDateTime", value); } - } /// The registered device on which this Windows Hello for Business key resides. Supports $expand. When you get a user's Windows Hello for Business registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/windowsHelloForBusinessMethods/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -81,7 +75,6 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "device", n => { Device = n.GetObjectValue(global::Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue); } }, { "displayName", n => { DisplayName = n.GetStringValue(); } }, { "keyStrength", n => { KeyStrength = n.GetEnumValue(); } }, @@ -95,7 +88,6 @@ public override void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteObjectValue("device", Device); writer.WriteStringValue("displayName", DisplayName); writer.WriteEnumValue("keyStrength", KeyStrength); diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs index 2c9aedb1e94..be3dfd9c61f 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/AuthenticationMethodConfigurationsRequestBuilder.cs @@ -54,7 +54,7 @@ public AuthenticationMethodConfigurationsRequestBuilder(string rawUrl, IRequestA { } /// - /// Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + /// Read the properties and relationships of an externalAuthenticationMethodConfiguration object. /// /// A /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public AuthenticationMethodConfigurationsRequestBuilder(string rawUrl, IRequestA return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.AuthenticationMethodConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + /// Read the properties and relationships of an externalAuthenticationMethodConfiguration object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +152,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Model return new global::Microsoft.Graph.Policies.AuthenticationMethodsPolicy.AuthenticationMethodConfigurations.AuthenticationMethodConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + /// Read the properties and relationships of an externalAuthenticationMethodConfiguration object. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class AuthenticationMethodConfigurationsRequestBuilderGetQueryParameters diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs index 39f000990c2..04b0286054c 100644 --- a/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationMethodsPolicy/AuthenticationMethodConfigurations/Item/AuthenticationMethodConfigurationItemRequestBuilder.cs @@ -35,7 +35,8 @@ public AuthenticationMethodConfigurationItemRequestBuilder(string rawUrl, IReque { } /// - /// Delete navigation property authenticationMethodConfigurations for policies + /// Delete an externalAuthenticationMethodConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -57,7 +58,8 @@ public async Task DeleteAsync(Action - /// Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + /// Read the properties and relationships of an externalAuthenticationMethodConfiguration object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -80,7 +82,8 @@ public async Task DeleteAsync(Action(requestInfo, global::Microsoft.Graph.Models.AuthenticationMethodConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the navigation property authenticationMethodConfigurations in policies + /// Update the properties of an externalAuthenticationMethodConfiguration object. + /// Find more info here /// /// A /// The request body @@ -105,7 +108,7 @@ public async Task DeleteAsync(Action(requestInfo, global::Microsoft.Graph.Models.AuthenticationMethodConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete navigation property authenticationMethodConfigurations for policies + /// Delete an externalAuthenticationMethodConfiguration object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -124,7 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + /// Read the properties and relationships of an externalAuthenticationMethodConfiguration object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -143,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property authenticationMethodConfigurations in policies + /// Update the properties of an externalAuthenticationMethodConfiguration object. /// /// A /// The request body @@ -182,7 +185,7 @@ public partial class AuthenticationMethodConfigurationItemRequestBuilderDeleteRe { } /// - /// Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy. + /// Read the properties and relationships of an externalAuthenticationMethodConfiguration object. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class AuthenticationMethodConfigurationItemRequestBuilderGetQueryParameters diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/AuthenticationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/AuthenticationRequestBuilder.cs index bb19d43e416..2c86e742a8b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/AuthenticationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/AuthenticationRequestBuilder.cs @@ -3,6 +3,7 @@ using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Graph.Users.Item.Authentication.EmailMethods; +using Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods; using Microsoft.Graph.Users.Item.Authentication.Fido2Methods; using Microsoft.Graph.Users.Item.Authentication.Methods; using Microsoft.Graph.Users.Item.Authentication.MicrosoftAuthenticatorMethods; @@ -34,6 +35,11 @@ public partial class AuthenticationRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.Users.Item.Authentication.EmailMethods.EmailMethodsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the externalAuthenticationMethods property of the microsoft.graph.authentication entity. + public global::Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.ExternalAuthenticationMethodsRequestBuilder ExternalAuthenticationMethods + { + get => new global::Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.ExternalAuthenticationMethodsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the fido2Methods property of the microsoft.graph.authentication entity. public global::Microsoft.Graph.Users.Item.Authentication.Fido2Methods.Fido2MethodsRequestBuilder Fido2Methods { diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/ExternalAuthenticationMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/ExternalAuthenticationMethods/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5f305c58df5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/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.Users.Item.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}/users/{user%2Did}/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}/users/{user%2Did}/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.Users.Item.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.Users.Item.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/Users/Item/Authentication/ExternalAuthenticationMethods/ExternalAuthenticationMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/ExternalAuthenticationMethods/ExternalAuthenticationMethodsRequestBuilder.cs new file mode 100644 index 00000000000..c24dc1caa7e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/ExternalAuthenticationMethods/ExternalAuthenticationMethodsRequestBuilder.cs @@ -0,0 +1,239 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Count; +using Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item; +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.Users.Item.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.Users.Item.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.Users.Item.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.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("externalAuthenticationMethod%2Did", position); + return new global::Microsoft.Graph.Users.Item.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}/users/{user%2Did}/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}/users/{user%2Did}/authentication/externalAuthenticationMethods{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Represents the external authentication methods registered to a user for authentication using an external identity provider. + /// + /// 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 a new externalAuthenticationMethod object. This API doesn't support self-service operations. + /// Find more info here + /// + /// 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); + } + /// + /// Represents the external authentication methods registered to a user for authentication using an external identity provider. + /// + /// 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 a new externalAuthenticationMethod object. This API doesn't support self-service operations. + /// + /// 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.Users.Item.Authentication.ExternalAuthenticationMethods.ExternalAuthenticationMethodsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.ExternalAuthenticationMethodsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Represents the external authentication methods registered to a user for authentication using an external identity provider. + /// + [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/Users/Item/Authentication/ExternalAuthenticationMethods/Item/ExternalAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/ExternalAuthenticationMethods/Item/ExternalAuthenticationMethodItemRequestBuilder.cs new file mode 100644 index 00000000000..fbb7f111491 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/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.Users.Item.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}/users/{user%2Did}/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}/users/{user%2Did}/authentication/externalAuthenticationMethods/{externalAuthenticationMethod%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete an externalAuthenticationMethod object. This API doesn't support self-service operations. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task 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 the external authentication methods registered to a user for authentication using an external identity provider. + /// + /// 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 users + /// + /// 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 an externalAuthenticationMethod object. This API doesn't support self-service operations. + /// + /// 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 the external authentication methods registered to a user for authentication using an external identity provider. + /// + /// 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 users + /// + /// 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.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.Users.Item.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 + { + } + /// + /// Represents the external authentication methods registered to a user for authentication using an external identity provider. + /// + [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/kiota-dom-export.txt b/src/Microsoft.Graph/Generated/kiota-dom-export.txt index 560ba79f036..b5d20a0dd2b 100644 --- a/src/Microsoft.Graph/Generated/kiota-dom-export.txt +++ b/src/Microsoft.Graph/Generated/kiota-dom-export.txt @@ -807,6 +807,122 @@ Microsoft.Graph.Admin.Sharepoint.sharepointRequestBuilder::|public|ToDeleteReque Microsoft.Graph.Admin.Sharepoint.sharepointRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation Microsoft.Graph.Admin.Sharepoint.sharepointRequestBuilder::|public|ToPatchRequestInformation(body:global.Microsoft.Graph.Models.Sharepoint; requestConfiguration?:Action>):RequestInformation Microsoft.Graph.Admin.Sharepoint.sharepointRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Admin.Sharepoint.SharepointRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.getPolicyIdWithTypeWithNameGetResponse-->global.Microsoft.Graph.Models.BaseCollectionPaginationCountResponse +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.getPolicyIdWithTypeWithNameGetResponse::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.getPolicyIdWithTypeWithNameGetResponse::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.getPolicyIdWithTypeWithNameGetResponse::|public|Value:List +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.getPolicyIdWithTypeWithNameGetResponse::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameGetResponse +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.getPolicyIdWithTypeWithNameResponse-->global.Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameGetResponse +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.getPolicyIdWithTypeWithNameResponse::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameResponse +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder-->BaseRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Count:bool? +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Expand:string[] +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Filter:string +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Orderby:string[] +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Search:string +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Select:string[] +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Skip:int? +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters::|public|Top:int? +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|constructor(pathParameters:Dictionary; requestAdapter:IRequestAdapter; name?:string; type?:string):void +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|GetAsGetPolicyIdWithTypeWithNameGetResponseAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameGetResponse +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.GetPolicyIdWithTypeWithNameResponse +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder-->BaseRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder.policyRequestBuilderDeleteRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder.policyRequestBuilderGetQueryParameters::|public|Expand:string[] +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder.policyRequestBuilderGetQueryParameters::|public|Select:string[] +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder.policyRequestBuilderGetRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder.policyRequestBuilderPatchRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder::|public|constructor(pathParameters:Dictionary; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder::|public|DeleteAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):void +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder::|public|microsoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName(name:string; type:string):global.Microsoft.Graph.Admin.Teams.Policy.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithName.MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder::|public|PatchAsync(body:global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment; requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder::|public|ToDeleteRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder::|public|ToPatchRequestInformation(body:global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment; requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder::|public|userAssignments:global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.UserAssignmentsRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.policyRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Admin.Teams.Policy.PolicyRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder-->BaseRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters::|public|Filter:string +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters::|public|Search:string +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder.CountRequestBuilderGetRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder::|public|constructor(pathParameters:Dictionary; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):int? +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder-->BaseRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentItemRequestBuilderDeleteRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentItemRequestBuilderGetQueryParameters::|public|Expand:string[] +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentItemRequestBuilderGetQueryParameters::|public|Select:string[] +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentItemRequestBuilderGetRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder.TeamsPolicyUserAssignmentItemRequestBuilderPatchRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|constructor(pathParameters:Dictionary; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|DeleteAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|PatchAsync(body:global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment; requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|ToDeleteRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|ToPatchRequestInformation(body:global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment; requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.assignPostRequestBody::|public|AdditionalData:IDictionary +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.assignPostRequestBody::|public|BackingStore:IBackingStore +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.assignPostRequestBody::|public|constructor():void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.assignPostRequestBody::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.assignPostRequestBody::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.assignPostRequestBody::|public|Value:List +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.assignPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.AssignPostRequestBody +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.assignPostRequestBody~~>IAdditionalDataHolder; IBackedModel; IParsable +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.microsoftGraphTeamsAdministrationAssignRequestBuilder-->BaseRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.microsoftGraphTeamsAdministrationAssignRequestBuilder.microsoftGraphTeamsAdministrationAssignRequestBuilderPostRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.microsoftGraphTeamsAdministrationAssignRequestBuilder::|public|constructor(pathParameters:Dictionary; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.microsoftGraphTeamsAdministrationAssignRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.microsoftGraphTeamsAdministrationAssignRequestBuilder::|public|PostAsync(body:global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.AssignPostRequestBody; requestConfiguration?:Action>; cancellationToken?:CancellationToken):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.microsoftGraphTeamsAdministrationAssignRequestBuilder::|public|ToPostRequestInformation(body:global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.AssignPostRequestBody; requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.microsoftGraphTeamsAdministrationAssignRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.microsoftGraphTeamsAdministrationUnassignRequestBuilder-->BaseRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.microsoftGraphTeamsAdministrationUnassignRequestBuilder.microsoftGraphTeamsAdministrationUnassignRequestBuilderPostRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.microsoftGraphTeamsAdministrationUnassignRequestBuilder::|public|constructor(pathParameters:Dictionary; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.microsoftGraphTeamsAdministrationUnassignRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.microsoftGraphTeamsAdministrationUnassignRequestBuilder::|public|PostAsync(body:global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.UnassignPostRequestBody; requestConfiguration?:Action>; cancellationToken?:CancellationToken):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.microsoftGraphTeamsAdministrationUnassignRequestBuilder::|public|ToPostRequestInformation(body:global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.UnassignPostRequestBody; requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.microsoftGraphTeamsAdministrationUnassignRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.unassignPostRequestBody::|public|AdditionalData:IDictionary +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.unassignPostRequestBody::|public|BackingStore:IBackingStore +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.unassignPostRequestBody::|public|constructor():void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.unassignPostRequestBody::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.unassignPostRequestBody::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.unassignPostRequestBody::|public|Value:List +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.unassignPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.UnassignPostRequestBody +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.unassignPostRequestBody~~>IAdditionalDataHolder; IBackedModel; IParsable +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder-->BaseRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder.userAssignmentsRequestBuilderGetQueryParameters::|public|Count:bool? +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder.userAssignmentsRequestBuilderGetQueryParameters::|public|Expand:string[] +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder.userAssignmentsRequestBuilderGetQueryParameters::|public|Filter:string +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder.userAssignmentsRequestBuilderGetQueryParameters::|public|Orderby:string[] +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder.userAssignmentsRequestBuilderGetQueryParameters::|public|Search:string +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder.userAssignmentsRequestBuilderGetQueryParameters::|public|Select:string[] +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder.userAssignmentsRequestBuilderGetQueryParameters::|public|Skip:int? +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder.userAssignmentsRequestBuilderGetQueryParameters::|public|Top:int? +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder.userAssignmentsRequestBuilderGetRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder.userAssignmentsRequestBuilderPostRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder::[TeamsPolicyUserAssignmentId:string]:global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Item.TeamsPolicyUserAssignmentItemRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder::|public|constructor(pathParameters:Dictionary; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder::|public|Count:global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.Count.CountRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignmentCollectionResponse +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder::|public|microsoftGraphTeamsAdministrationAssign:global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationAssign.MicrosoftGraphTeamsAdministrationAssignRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder::|public|microsoftGraphTeamsAdministrationUnassign:global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.MicrosoftGraphTeamsAdministrationUnassign.MicrosoftGraphTeamsAdministrationUnassignRequestBuilder +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder::|public|PostAsync(body:global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment; requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder::|public|ToPostRequestInformation(body:global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment; requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Admin.Teams.Policy.UserAssignments.userAssignmentsRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Admin.Teams.Policy.UserAssignments.UserAssignmentsRequestBuilder Microsoft.Graph.Admin.Teams.teamsRequestBuilder-->BaseRequestBuilder Microsoft.Graph.Admin.Teams.teamsRequestBuilder.teamsRequestBuilderDeleteRequestConfiguration-->RequestConfiguration Microsoft.Graph.Admin.Teams.teamsRequestBuilder.teamsRequestBuilderGetQueryParameters::|public|Expand:string[] @@ -818,6 +934,7 @@ Microsoft.Graph.Admin.Teams.teamsRequestBuilder::|public|constructor(rawUrl:stri Microsoft.Graph.Admin.Teams.teamsRequestBuilder::|public|DeleteAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):void Microsoft.Graph.Admin.Teams.teamsRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.TeamsAdministration.TeamsAdminRoot Microsoft.Graph.Admin.Teams.teamsRequestBuilder::|public|PatchAsync(body:global.Microsoft.Graph.Models.TeamsAdministration.TeamsAdminRoot; requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.TeamsAdministration.TeamsAdminRoot +Microsoft.Graph.Admin.Teams.teamsRequestBuilder::|public|policy:global.Microsoft.Graph.Admin.Teams.Policy.PolicyRequestBuilder Microsoft.Graph.Admin.Teams.teamsRequestBuilder::|public|ToDeleteRequestInformation(requestConfiguration?:Action>):RequestInformation Microsoft.Graph.Admin.Teams.teamsRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation Microsoft.Graph.Admin.Teams.teamsRequestBuilder::|public|ToPatchRequestInformation(body:global.Microsoft.Graph.Models.TeamsAdministration.TeamsAdminRoot; requestConfiguration?:Action>):RequestInformation @@ -78608,6 +78725,7 @@ Microsoft.Graph.Me.Authentication.authenticationRequestBuilder::|public|construc Microsoft.Graph.Me.Authentication.authenticationRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void Microsoft.Graph.Me.Authentication.authenticationRequestBuilder::|public|DeleteAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):void Microsoft.Graph.Me.Authentication.authenticationRequestBuilder::|public|emailMethods:global.Microsoft.Graph.Me.Authentication.EmailMethods.EmailMethodsRequestBuilder +Microsoft.Graph.Me.Authentication.authenticationRequestBuilder::|public|externalAuthenticationMethods:global.Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.ExternalAuthenticationMethodsRequestBuilder Microsoft.Graph.Me.Authentication.authenticationRequestBuilder::|public|fido2Methods:global.Microsoft.Graph.Me.Authentication.Fido2Methods.Fido2MethodsRequestBuilder Microsoft.Graph.Me.Authentication.authenticationRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.Authentication Microsoft.Graph.Me.Authentication.authenticationRequestBuilder::|public|methods:global.Microsoft.Graph.Me.Authentication.Methods.MethodsRequestBuilder @@ -78668,6 +78786,50 @@ Microsoft.Graph.Me.Authentication.EmailMethods.Item.EmailAuthenticationMethodIte Microsoft.Graph.Me.Authentication.EmailMethods.Item.EmailAuthenticationMethodItemRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation Microsoft.Graph.Me.Authentication.EmailMethods.Item.EmailAuthenticationMethodItemRequestBuilder::|public|ToPatchRequestInformation(body:global.Microsoft.Graph.Models.EmailAuthenticationMethod; requestConfiguration?:Action>):RequestInformation Microsoft.Graph.Me.Authentication.EmailMethods.Item.EmailAuthenticationMethodItemRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Me.Authentication.EmailMethods.Item.EmailAuthenticationMethodItemRequestBuilder +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder-->BaseRequestBuilder +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters::|public|Filter:string +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters::|public|Search:string +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder.CountRequestBuilderGetRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder::|public|constructor(pathParameters:Dictionary; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):int? +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder-->BaseRequestBuilder +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Count:bool? +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Expand:string[] +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Filter:string +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Orderby:string[] +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Search:string +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Select:string[] +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Skip:int? +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Top:int? +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderPostRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::[ExternalAuthenticationMethodId:string]:global.Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|constructor(pathParameters:Dictionary; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|Count:global.Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.ExternalAuthenticationMethodCollectionResponse +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|PostAsync(body:global.Microsoft.Graph.Models.ExternalAuthenticationMethod; requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.ExternalAuthenticationMethod +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|ToPostRequestInformation(body:global.Microsoft.Graph.Models.ExternalAuthenticationMethod; requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.ExternalAuthenticationMethodsRequestBuilder +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder-->BaseRequestBuilder +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder.ExternalAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder.ExternalAuthenticationMethodItemRequestBuilderGetQueryParameters::|public|Expand:string[] +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder.ExternalAuthenticationMethodItemRequestBuilderGetQueryParameters::|public|Select:string[] +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder.ExternalAuthenticationMethodItemRequestBuilderGetRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder.ExternalAuthenticationMethodItemRequestBuilderPatchRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|constructor(pathParameters:Dictionary; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|DeleteAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):void +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.ExternalAuthenticationMethod +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|PatchAsync(body:global.Microsoft.Graph.Models.ExternalAuthenticationMethod; requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.ExternalAuthenticationMethod +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|ToDeleteRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|ToPatchRequestInformation(body:global.Microsoft.Graph.Models.ExternalAuthenticationMethod; requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Me.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder Microsoft.Graph.Me.Authentication.Fido2Methods.Count.CountRequestBuilder-->BaseRequestBuilder Microsoft.Graph.Me.Authentication.Fido2Methods.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters::|public|Filter:string Microsoft.Graph.Me.Authentication.Fido2Methods.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters::|public|Search:string @@ -95118,6 +95280,12 @@ Microsoft.Graph.Models.agreementFileVersionCollectionResponse::|public|GetFieldD Microsoft.Graph.Models.agreementFileVersionCollectionResponse::|public|Serialize(writer:ISerializationWriter):void Microsoft.Graph.Models.agreementFileVersionCollectionResponse::|public|Value:List Microsoft.Graph.Models.agreementFileVersionCollectionResponse::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.AgreementFileVersionCollectionResponse +Microsoft.Graph.Models.aiAgentInfo-->global.Microsoft.Graph.Models.AiInteractionEntity +Microsoft.Graph.Models.aiAgentInfo::|public|BlueprintId:string +Microsoft.Graph.Models.aiAgentInfo::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.aiAgentInfo::|public|OdataType:string +Microsoft.Graph.Models.aiAgentInfo::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.aiAgentInfo::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.AiAgentInfo Microsoft.Graph.Models.aiInteraction-->global.Microsoft.Graph.Models.Entity Microsoft.Graph.Models.aiInteraction::|public|AppClass:string Microsoft.Graph.Models.aiInteraction::|public|Attachments:List @@ -95161,6 +95329,17 @@ Microsoft.Graph.Models.aiInteractionContext::|public|OdataType:string Microsoft.Graph.Models.aiInteractionContext::|public|Serialize(writer:ISerializationWriter):void Microsoft.Graph.Models.aiInteractionContext::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.AiInteractionContext Microsoft.Graph.Models.aiInteractionContext~~>IAdditionalDataHolder; IBackedModel; IParsable +Microsoft.Graph.Models.aiInteractionEntity::|public|AdditionalData:IDictionary +Microsoft.Graph.Models.aiInteractionEntity::|public|BackingStore:IBackingStore +Microsoft.Graph.Models.aiInteractionEntity::|public|constructor():void +Microsoft.Graph.Models.aiInteractionEntity::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.aiInteractionEntity::|public|Identifier:string +Microsoft.Graph.Models.aiInteractionEntity::|public|Name:string +Microsoft.Graph.Models.aiInteractionEntity::|public|OdataType:string +Microsoft.Graph.Models.aiInteractionEntity::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.aiInteractionEntity::|public|Version:string +Microsoft.Graph.Models.aiInteractionEntity::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.AiInteractionEntity +Microsoft.Graph.Models.aiInteractionEntity~~>IAdditionalDataHolder; IBackedModel; IParsable Microsoft.Graph.Models.aiInteractionHistory-->global.Microsoft.Graph.Models.Entity Microsoft.Graph.Models.aiInteractionHistory::|public|GetFieldDeserializers():IDictionary> Microsoft.Graph.Models.aiInteractionHistory::|public|OdataType:string @@ -95196,17 +95375,11 @@ Microsoft.Graph.Models.aiInteractionMentionedIdentitySet::|public|Serialize(writ Microsoft.Graph.Models.aiInteractionMentionedIdentitySet::|public|Tag:global.Microsoft.Graph.Models.TeamworkTagIdentity Microsoft.Graph.Models.aiInteractionMentionedIdentitySet::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.AiInteractionMentionedIdentitySet Microsoft.Graph.Models.aiInteractionMention~~>IAdditionalDataHolder; IBackedModel; IParsable -Microsoft.Graph.Models.aiInteractionPlugin::|public|AdditionalData:IDictionary -Microsoft.Graph.Models.aiInteractionPlugin::|public|BackingStore:IBackingStore -Microsoft.Graph.Models.aiInteractionPlugin::|public|constructor():void +Microsoft.Graph.Models.aiInteractionPlugin-->global.Microsoft.Graph.Models.AiInteractionEntity Microsoft.Graph.Models.aiInteractionPlugin::|public|GetFieldDeserializers():IDictionary> -Microsoft.Graph.Models.aiInteractionPlugin::|public|Identifier:string -Microsoft.Graph.Models.aiInteractionPlugin::|public|Name:string Microsoft.Graph.Models.aiInteractionPlugin::|public|OdataType:string Microsoft.Graph.Models.aiInteractionPlugin::|public|Serialize(writer:ISerializationWriter):void -Microsoft.Graph.Models.aiInteractionPlugin::|public|Version:string Microsoft.Graph.Models.aiInteractionPlugin::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.AiInteractionPlugin -Microsoft.Graph.Models.aiInteractionPlugin~~>IAdditionalDataHolder; IBackedModel; IParsable Microsoft.Graph.Models.aiInteractionType::0000-userPrompt Microsoft.Graph.Models.aiInteractionType::0001-aiResponse Microsoft.Graph.Models.aiInteractionType::0002-unknownFutureValue @@ -96815,6 +96988,7 @@ Microsoft.Graph.Models.authContext::|public|Serialize(writer:ISerializationWrite Microsoft.Graph.Models.authContext::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.AuthContext Microsoft.Graph.Models.authentication-->global.Microsoft.Graph.Models.Entity Microsoft.Graph.Models.authentication::|public|EmailMethods:List +Microsoft.Graph.Models.authentication::|public|ExternalAuthenticationMethods:List Microsoft.Graph.Models.authentication::|public|Fido2Methods:List Microsoft.Graph.Models.authentication::|public|GetFieldDeserializers():IDictionary> Microsoft.Graph.Models.authentication::|public|Methods:List @@ -97003,6 +97177,7 @@ Microsoft.Graph.Models.authenticationFlowsPolicy::|public|Serialize(writer:ISeri Microsoft.Graph.Models.authenticationFlowsPolicy::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.AuthenticationFlowsPolicy Microsoft.Graph.Models.authenticationFlow~~>IAdditionalDataHolder; IBackedModel; IParsable Microsoft.Graph.Models.authenticationMethod-->global.Microsoft.Graph.Models.Entity +Microsoft.Graph.Models.authenticationMethod::|public|CreatedDateTime:DateTimeOffset? Microsoft.Graph.Models.authenticationMethod::|public|GetFieldDeserializers():IDictionary> Microsoft.Graph.Models.authenticationMethod::|public|OdataType:string Microsoft.Graph.Models.authenticationMethod::|public|Serialize(writer:ISerializationWriter):void @@ -105051,6 +105226,19 @@ Microsoft.Graph.Models.extensionSchemaProperty~~>IAdditionalDataHolder; IBackedM Microsoft.Graph.Models.externalAudienceScope::0000-none Microsoft.Graph.Models.externalAudienceScope::0001-contactsOnly Microsoft.Graph.Models.externalAudienceScope::0002-all +Microsoft.Graph.Models.externalAuthenticationMethod-->global.Microsoft.Graph.Models.AuthenticationMethod +Microsoft.Graph.Models.externalAuthenticationMethod::|public|ConfigurationId:string +Microsoft.Graph.Models.externalAuthenticationMethod::|public|constructor():void +Microsoft.Graph.Models.externalAuthenticationMethod::|public|DisplayName:string +Microsoft.Graph.Models.externalAuthenticationMethod::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.externalAuthenticationMethod::|public|OdataType:string +Microsoft.Graph.Models.externalAuthenticationMethod::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.externalAuthenticationMethod::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.ExternalAuthenticationMethod +Microsoft.Graph.Models.externalAuthenticationMethodCollectionResponse-->global.Microsoft.Graph.Models.BaseCollectionPaginationCountResponse +Microsoft.Graph.Models.externalAuthenticationMethodCollectionResponse::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.externalAuthenticationMethodCollectionResponse::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.externalAuthenticationMethodCollectionResponse::|public|Value:List +Microsoft.Graph.Models.externalAuthenticationMethodCollectionResponse::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.ExternalAuthenticationMethodCollectionResponse Microsoft.Graph.Models.ExternalConnectors.accessType::0000-grant Microsoft.Graph.Models.ExternalConnectors.accessType::0001-deny Microsoft.Graph.Models.ExternalConnectors.accessType::0002-unknownFutureValue @@ -105460,7 +105648,6 @@ Microsoft.Graph.Models.fido2AuthenticationMethod::|public|AaGuid:string Microsoft.Graph.Models.fido2AuthenticationMethod::|public|AttestationCertificates:List Microsoft.Graph.Models.fido2AuthenticationMethod::|public|AttestationLevel:global.Microsoft.Graph.Models.AttestationLevel? Microsoft.Graph.Models.fido2AuthenticationMethod::|public|constructor():void -Microsoft.Graph.Models.fido2AuthenticationMethod::|public|CreatedDateTime:DateTimeOffset? Microsoft.Graph.Models.fido2AuthenticationMethod::|public|DisplayName:string Microsoft.Graph.Models.fido2AuthenticationMethod::|public|GetFieldDeserializers():IDictionary> Microsoft.Graph.Models.fido2AuthenticationMethod::|public|Model:string @@ -109996,7 +110183,6 @@ Microsoft.Graph.Models.microsoftAccountUserConversationMember::|public|UserId:st Microsoft.Graph.Models.microsoftAccountUserConversationMember::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.MicrosoftAccountUserConversationMember Microsoft.Graph.Models.microsoftAuthenticatorAuthenticationMethod-->global.Microsoft.Graph.Models.AuthenticationMethod Microsoft.Graph.Models.microsoftAuthenticatorAuthenticationMethod::|public|constructor():void -Microsoft.Graph.Models.microsoftAuthenticatorAuthenticationMethod::|public|CreatedDateTime:DateTimeOffset? Microsoft.Graph.Models.microsoftAuthenticatorAuthenticationMethod::|public|Device:global.Microsoft.Graph.Models.Device Microsoft.Graph.Models.microsoftAuthenticatorAuthenticationMethod::|public|DeviceTag:string Microsoft.Graph.Models.microsoftAuthenticatorAuthenticationMethod::|public|DisplayName:string @@ -110791,6 +110977,74 @@ Microsoft.Graph.Models.officeGraphInsights::|public|Shared:List Microsoft.Graph.Models.officeGraphInsights::|public|Used:List Microsoft.Graph.Models.officeGraphInsights::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.OfficeGraphInsights +Microsoft.Graph.Models.oidcAddressInboundClaims::|public|AdditionalData:IDictionary +Microsoft.Graph.Models.oidcAddressInboundClaims::|public|BackingStore:IBackingStore +Microsoft.Graph.Models.oidcAddressInboundClaims::|public|constructor():void +Microsoft.Graph.Models.oidcAddressInboundClaims::|public|Country:string +Microsoft.Graph.Models.oidcAddressInboundClaims::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.oidcAddressInboundClaims::|public|Locality:string +Microsoft.Graph.Models.oidcAddressInboundClaims::|public|OdataType:string +Microsoft.Graph.Models.oidcAddressInboundClaims::|public|PostalCode:string +Microsoft.Graph.Models.oidcAddressInboundClaims::|public|Region:string +Microsoft.Graph.Models.oidcAddressInboundClaims::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.oidcAddressInboundClaims::|public|StreetAddress:string +Microsoft.Graph.Models.oidcAddressInboundClaims::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.OidcAddressInboundClaims +Microsoft.Graph.Models.oidcAddressInboundClaims~~>IAdditionalDataHolder; IBackedModel; IParsable +Microsoft.Graph.Models.oidcClientAuthentication::|public|AdditionalData:IDictionary +Microsoft.Graph.Models.oidcClientAuthentication::|public|BackingStore:IBackingStore +Microsoft.Graph.Models.oidcClientAuthentication::|public|constructor():void +Microsoft.Graph.Models.oidcClientAuthentication::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.oidcClientAuthentication::|public|OdataType:string +Microsoft.Graph.Models.oidcClientAuthentication::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.oidcClientAuthentication::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.OidcClientAuthentication +Microsoft.Graph.Models.oidcClientAuthentication~~>IAdditionalDataHolder; IBackedModel; IParsable +Microsoft.Graph.Models.oidcClientSecretAuthentication-->global.Microsoft.Graph.Models.OidcClientAuthentication +Microsoft.Graph.Models.oidcClientSecretAuthentication::|public|ClientSecret:string +Microsoft.Graph.Models.oidcClientSecretAuthentication::|public|constructor():void +Microsoft.Graph.Models.oidcClientSecretAuthentication::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.oidcClientSecretAuthentication::|public|OdataType:string +Microsoft.Graph.Models.oidcClientSecretAuthentication::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.oidcClientSecretAuthentication::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.OidcClientSecretAuthentication +Microsoft.Graph.Models.oidcIdentityProvider-->global.Microsoft.Graph.Models.IdentityProviderBase +Microsoft.Graph.Models.oidcIdentityProvider::|public|ClientAuthentication:global.Microsoft.Graph.Models.OidcClientAuthentication +Microsoft.Graph.Models.oidcIdentityProvider::|public|ClientId:string +Microsoft.Graph.Models.oidcIdentityProvider::|public|constructor():void +Microsoft.Graph.Models.oidcIdentityProvider::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.oidcIdentityProvider::|public|InboundClaimMapping:global.Microsoft.Graph.Models.OidcInboundClaimMappingOverride +Microsoft.Graph.Models.oidcIdentityProvider::|public|Issuer:string +Microsoft.Graph.Models.oidcIdentityProvider::|public|OdataType:string +Microsoft.Graph.Models.oidcIdentityProvider::|public|ResponseType:global.Microsoft.Graph.Models.OidcResponseType? +Microsoft.Graph.Models.oidcIdentityProvider::|public|Scope:string +Microsoft.Graph.Models.oidcIdentityProvider::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.oidcIdentityProvider::|public|WellKnownEndpoint:string +Microsoft.Graph.Models.oidcIdentityProvider::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.OidcIdentityProvider +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|AdditionalData:IDictionary +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|Address:global.Microsoft.Graph.Models.OidcAddressInboundClaims +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|BackingStore:IBackingStore +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|constructor():void +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|Email:string +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|EmailVerified:string +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|FamilyName:string +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|GivenName:string +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|Name:string +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|OdataType:string +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|PhoneNumber:string +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|PhoneNumberVerified:string +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|public|Sub:string +Microsoft.Graph.Models.oidcInboundClaimMappingOverride::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.OidcInboundClaimMappingOverride +Microsoft.Graph.Models.oidcInboundClaimMappingOverride~~>IAdditionalDataHolder; IBackedModel; IParsable +Microsoft.Graph.Models.oidcPrivateJwtKeyClientAuthentication-->global.Microsoft.Graph.Models.OidcClientAuthentication +Microsoft.Graph.Models.oidcPrivateJwtKeyClientAuthentication::|public|constructor():void +Microsoft.Graph.Models.oidcPrivateJwtKeyClientAuthentication::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.oidcPrivateJwtKeyClientAuthentication::|public|OdataType:string +Microsoft.Graph.Models.oidcPrivateJwtKeyClientAuthentication::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.oidcPrivateJwtKeyClientAuthentication::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.OidcPrivateJwtKeyClientAuthentication +Microsoft.Graph.Models.oidcResponseType::0000-code +Microsoft.Graph.Models.oidcResponseType::0001-id_token +Microsoft.Graph.Models.oidcResponseType::0002-token +Microsoft.Graph.Models.oidcResponseType::0003-unknownFutureValue Microsoft.Graph.Models.omaSetting::|public|AdditionalData:IDictionary Microsoft.Graph.Models.omaSetting::|public|BackingStore:IBackingStore Microsoft.Graph.Models.omaSetting::|public|constructor():void @@ -112052,7 +112306,6 @@ Microsoft.Graph.Models.partnerTenantType::0005-valueAddedResellerPartnerDelegate Microsoft.Graph.Models.partnerTenantType::0006-unknownFutureValue Microsoft.Graph.Models.passwordAuthenticationMethod-->global.Microsoft.Graph.Models.AuthenticationMethod Microsoft.Graph.Models.passwordAuthenticationMethod::|public|constructor():void -Microsoft.Graph.Models.passwordAuthenticationMethod::|public|CreatedDateTime:DateTimeOffset? Microsoft.Graph.Models.passwordAuthenticationMethod::|public|GetFieldDeserializers():IDictionary> Microsoft.Graph.Models.passwordAuthenticationMethod::|public|OdataType:string Microsoft.Graph.Models.passwordAuthenticationMethod::|public|Password:string @@ -112792,7 +113045,6 @@ Microsoft.Graph.Models.plannerUserIds::|static|public|CreateFromDiscriminatorVal Microsoft.Graph.Models.plannerUserIds~~>IAdditionalDataHolder; IBackedModel; IParsable Microsoft.Graph.Models.platformCredentialAuthenticationMethod-->global.Microsoft.Graph.Models.AuthenticationMethod Microsoft.Graph.Models.platformCredentialAuthenticationMethod::|public|constructor():void -Microsoft.Graph.Models.platformCredentialAuthenticationMethod::|public|CreatedDateTime:DateTimeOffset? Microsoft.Graph.Models.platformCredentialAuthenticationMethod::|public|Device:global.Microsoft.Graph.Models.Device Microsoft.Graph.Models.platformCredentialAuthenticationMethod::|public|DisplayName:string Microsoft.Graph.Models.platformCredentialAuthenticationMethod::|public|GetFieldDeserializers():IDictionary> @@ -114691,6 +114943,8 @@ Microsoft.Graph.Models.processContentResponses~~>IAdditionalDataHolder; IBackedM Microsoft.Graph.Models.processContentResponse~~>IAdditionalDataHolder; IBackedModel; IParsable Microsoft.Graph.Models.processConversationMetadata-->global.Microsoft.Graph.Models.ProcessContentMetadataBase Microsoft.Graph.Models.processConversationMetadata::|public|AccessedResources:List +Microsoft.Graph.Models.processConversationMetadata::|public|AccessedResourcesV2:List +Microsoft.Graph.Models.processConversationMetadata::|public|Agents:List Microsoft.Graph.Models.processConversationMetadata::|public|constructor():void Microsoft.Graph.Models.processConversationMetadata::|public|GetFieldDeserializers():IDictionary> Microsoft.Graph.Models.processConversationMetadata::|public|OdataType:string @@ -115817,6 +116071,31 @@ Microsoft.Graph.Models.resourceAccess::|public|OdataType:string Microsoft.Graph.Models.resourceAccess::|public|Serialize(writer:ISerializationWriter):void Microsoft.Graph.Models.resourceAccess::|public|Type:string Microsoft.Graph.Models.resourceAccess::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.ResourceAccess +Microsoft.Graph.Models.resourceAccessDetail::|public|AccessType:global.Microsoft.Graph.Models.ResourceAccessType? +Microsoft.Graph.Models.resourceAccessDetail::|public|AdditionalData:IDictionary +Microsoft.Graph.Models.resourceAccessDetail::|public|BackingStore:IBackingStore +Microsoft.Graph.Models.resourceAccessDetail::|public|constructor():void +Microsoft.Graph.Models.resourceAccessDetail::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.resourceAccessDetail::|public|Identifier:string +Microsoft.Graph.Models.resourceAccessDetail::|public|IsCrossPromptInjectionDetected:bool? +Microsoft.Graph.Models.resourceAccessDetail::|public|LabelId:string +Microsoft.Graph.Models.resourceAccessDetail::|public|Name:string +Microsoft.Graph.Models.resourceAccessDetail::|public|OdataType:string +Microsoft.Graph.Models.resourceAccessDetail::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.resourceAccessDetail::|public|Status:global.Microsoft.Graph.Models.ResourceAccessStatus? +Microsoft.Graph.Models.resourceAccessDetail::|public|StorageId:string +Microsoft.Graph.Models.resourceAccessDetail::|public|Url:string +Microsoft.Graph.Models.resourceAccessDetail::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.ResourceAccessDetail +Microsoft.Graph.Models.resourceAccessDetail~~>IAdditionalDataHolder; IBackedModel; IParsable +Microsoft.Graph.Models.resourceAccessStatus::0000-none +Microsoft.Graph.Models.resourceAccessStatus::0001-failure +Microsoft.Graph.Models.resourceAccessStatus::0002-success +Microsoft.Graph.Models.resourceAccessStatus::0003-unknownFutureValue +Microsoft.Graph.Models.resourceAccessType::0000-none +Microsoft.Graph.Models.resourceAccessType::0001-read +Microsoft.Graph.Models.resourceAccessType::0002-write +Microsoft.Graph.Models.resourceAccessType::0003-create +Microsoft.Graph.Models.resourceAccessType::0004-unknownFutureValue Microsoft.Graph.Models.resourceAccess~~>IAdditionalDataHolder; IBackedModel; IParsable Microsoft.Graph.Models.resourceAction::|public|AdditionalData:IDictionary Microsoft.Graph.Models.resourceAction::|public|AllowedResourceActions:List @@ -117937,6 +118216,7 @@ Microsoft.Graph.Models.Security.ediscoveryNoncustodialDataSourceCollectionRespon Microsoft.Graph.Models.Security.ediscoveryPurgeDataOperation-->global.Microsoft.Graph.Models.Security.CaseOperation Microsoft.Graph.Models.Security.ediscoveryPurgeDataOperation::|public|GetFieldDeserializers():IDictionary> Microsoft.Graph.Models.Security.ediscoveryPurgeDataOperation::|public|OdataType:string +Microsoft.Graph.Models.Security.ediscoveryPurgeDataOperation::|public|ReportFileMetadata:List Microsoft.Graph.Models.Security.ediscoveryPurgeDataOperation::|public|Serialize(writer:ISerializationWriter):void Microsoft.Graph.Models.Security.ediscoveryPurgeDataOperation::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.Security.EdiscoveryPurgeDataOperation Microsoft.Graph.Models.Security.ediscoveryReviewSet-->global.Microsoft.Graph.Models.Security.DataSet @@ -122421,12 +122701,39 @@ Microsoft.Graph.Models.TeamsAdministration.policyAssignment::|public|PolicyId:st Microsoft.Graph.Models.TeamsAdministration.policyAssignment::|public|Serialize(writer:ISerializationWriter):void Microsoft.Graph.Models.TeamsAdministration.policyAssignment::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.TeamsAdministration.PolicyAssignment Microsoft.Graph.Models.TeamsAdministration.policyAssignment~~>IAdditionalDataHolder; IBackedModel; IParsable +Microsoft.Graph.Models.TeamsAdministration.policyIdentifierDetail-->global.Microsoft.Graph.Models.Entity +Microsoft.Graph.Models.TeamsAdministration.policyIdentifierDetail::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.TeamsAdministration.policyIdentifierDetail::|public|Name:string +Microsoft.Graph.Models.TeamsAdministration.policyIdentifierDetail::|public|OdataType:string +Microsoft.Graph.Models.TeamsAdministration.policyIdentifierDetail::|public|PolicyId:string +Microsoft.Graph.Models.TeamsAdministration.policyIdentifierDetail::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.TeamsAdministration.policyIdentifierDetail::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.TeamsAdministration.PolicyIdentifierDetail Microsoft.Graph.Models.TeamsAdministration.teamsAdminRoot-->global.Microsoft.Graph.Models.Entity Microsoft.Graph.Models.TeamsAdministration.teamsAdminRoot::|public|GetFieldDeserializers():IDictionary> Microsoft.Graph.Models.TeamsAdministration.teamsAdminRoot::|public|OdataType:string +Microsoft.Graph.Models.TeamsAdministration.teamsAdminRoot::|public|Policy:global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment Microsoft.Graph.Models.TeamsAdministration.teamsAdminRoot::|public|Serialize(writer:ISerializationWriter):void Microsoft.Graph.Models.TeamsAdministration.teamsAdminRoot::|public|UserConfigurations:List Microsoft.Graph.Models.TeamsAdministration.teamsAdminRoot::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.TeamsAdministration.TeamsAdminRoot +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyAssignment-->global.Microsoft.Graph.Models.Entity +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyAssignment::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyAssignment::|public|OdataType:string +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyAssignment::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyAssignment::|public|UserAssignments:List +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyAssignment::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyAssignment +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyUserAssignment-->global.Microsoft.Graph.Models.Entity +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyUserAssignment::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyUserAssignment::|public|OdataType:string +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyUserAssignment::|public|PolicyId:string +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyUserAssignment::|public|PolicyType:string +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyUserAssignment::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyUserAssignment::|public|UserId:string +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyUserAssignment::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignment +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyUserAssignmentCollectionResponse-->global.Microsoft.Graph.Models.BaseCollectionPaginationCountResponse +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyUserAssignmentCollectionResponse::|public|GetFieldDeserializers():IDictionary> +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyUserAssignmentCollectionResponse::|public|Serialize(writer:ISerializationWriter):void +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyUserAssignmentCollectionResponse::|public|Value:List +Microsoft.Graph.Models.TeamsAdministration.teamsPolicyUserAssignmentCollectionResponse::|static|public|CreateFromDiscriminatorValue(parseNode:IParseNode):global.Microsoft.Graph.Models.TeamsAdministration.TeamsPolicyUserAssignmentCollectionResponse Microsoft.Graph.Models.TeamsAdministration.teamsUserConfiguration-->global.Microsoft.Graph.Models.Entity Microsoft.Graph.Models.TeamsAdministration.teamsUserConfiguration::|public|AccountType:global.Microsoft.Graph.Models.TeamsAdministration.AccountType? Microsoft.Graph.Models.TeamsAdministration.teamsUserConfiguration::|public|CreatedDateTime:DateTimeOffset? @@ -122892,7 +123199,6 @@ Microsoft.Graph.Models.templateScenarios::0005-emergingThreats Microsoft.Graph.Models.templateScenarios::0006-unknownFutureValue Microsoft.Graph.Models.temporaryAccessPassAuthenticationMethod-->global.Microsoft.Graph.Models.AuthenticationMethod Microsoft.Graph.Models.temporaryAccessPassAuthenticationMethod::|public|constructor():void -Microsoft.Graph.Models.temporaryAccessPassAuthenticationMethod::|public|CreatedDateTime:DateTimeOffset? Microsoft.Graph.Models.temporaryAccessPassAuthenticationMethod::|public|GetFieldDeserializers():IDictionary> Microsoft.Graph.Models.temporaryAccessPassAuthenticationMethod::|public|IsUsable:bool? Microsoft.Graph.Models.temporaryAccessPassAuthenticationMethod::|public|IsUsableOnce:bool? @@ -124241,7 +124547,8 @@ Microsoft.Graph.Models.usageRights::0016-userDefinedProtectionTypeNotSupportedEx Microsoft.Graph.Models.usageRights::0017-encryptedProtectionTypeNotSupportedException Microsoft.Graph.Models.usageRights::0018-purviewClaimsChallengeNotSupportedException Microsoft.Graph.Models.usageRights::0019-exception -Microsoft.Graph.Models.usageRights::0020-unknownFutureValue +Microsoft.Graph.Models.usageRights::0020-labelNotFoundException +Microsoft.Graph.Models.usageRights::0021-unknownFutureValue Microsoft.Graph.Models.usageRightsIncluded-->global.Microsoft.Graph.Models.Entity Microsoft.Graph.Models.usageRightsIncluded::|public|GetFieldDeserializers():IDictionary> Microsoft.Graph.Models.usageRightsIncluded::|public|OdataType:string @@ -126816,7 +127123,6 @@ Microsoft.Graph.Models.windowsFirewallNetworkProfile::|static|public|CreateFromD Microsoft.Graph.Models.windowsFirewallNetworkProfile~~>IAdditionalDataHolder; IBackedModel; IParsable Microsoft.Graph.Models.windowsHelloForBusinessAuthenticationMethod-->global.Microsoft.Graph.Models.AuthenticationMethod Microsoft.Graph.Models.windowsHelloForBusinessAuthenticationMethod::|public|constructor():void -Microsoft.Graph.Models.windowsHelloForBusinessAuthenticationMethod::|public|CreatedDateTime:DateTimeOffset? Microsoft.Graph.Models.windowsHelloForBusinessAuthenticationMethod::|public|Device:global.Microsoft.Graph.Models.Device Microsoft.Graph.Models.windowsHelloForBusinessAuthenticationMethod::|public|DisplayName:string Microsoft.Graph.Models.windowsHelloForBusinessAuthenticationMethod::|public|GetFieldDeserializers():IDictionary> @@ -164605,6 +164911,7 @@ Microsoft.Graph.Users.Item.Authentication.authenticationRequestBuilder::|public| Microsoft.Graph.Users.Item.Authentication.authenticationRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void Microsoft.Graph.Users.Item.Authentication.authenticationRequestBuilder::|public|DeleteAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):void Microsoft.Graph.Users.Item.Authentication.authenticationRequestBuilder::|public|emailMethods:global.Microsoft.Graph.Users.Item.Authentication.EmailMethods.EmailMethodsRequestBuilder +Microsoft.Graph.Users.Item.Authentication.authenticationRequestBuilder::|public|externalAuthenticationMethods:global.Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.ExternalAuthenticationMethodsRequestBuilder Microsoft.Graph.Users.Item.Authentication.authenticationRequestBuilder::|public|fido2Methods:global.Microsoft.Graph.Users.Item.Authentication.Fido2Methods.Fido2MethodsRequestBuilder Microsoft.Graph.Users.Item.Authentication.authenticationRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.Authentication Microsoft.Graph.Users.Item.Authentication.authenticationRequestBuilder::|public|methods:global.Microsoft.Graph.Users.Item.Authentication.Methods.MethodsRequestBuilder @@ -164665,6 +164972,50 @@ Microsoft.Graph.Users.Item.Authentication.EmailMethods.Item.EmailAuthenticationM Microsoft.Graph.Users.Item.Authentication.EmailMethods.Item.EmailAuthenticationMethodItemRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation Microsoft.Graph.Users.Item.Authentication.EmailMethods.Item.EmailAuthenticationMethodItemRequestBuilder::|public|ToPatchRequestInformation(body:global.Microsoft.Graph.Models.EmailAuthenticationMethod; requestConfiguration?:Action>):RequestInformation Microsoft.Graph.Users.Item.Authentication.EmailMethods.Item.EmailAuthenticationMethodItemRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Users.Item.Authentication.EmailMethods.Item.EmailAuthenticationMethodItemRequestBuilder +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder-->BaseRequestBuilder +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters::|public|Filter:string +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters::|public|Search:string +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder.CountRequestBuilderGetRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder::|public|constructor(pathParameters:Dictionary; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):int? +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder-->BaseRequestBuilder +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Count:bool? +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Expand:string[] +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Filter:string +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Orderby:string[] +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Search:string +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Select:string[] +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Skip:int? +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetQueryParameters::|public|Top:int? +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderGetRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder.externalAuthenticationMethodsRequestBuilderPostRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::[ExternalAuthenticationMethodId:string]:global.Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|constructor(pathParameters:Dictionary; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|Count:global.Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Count.CountRequestBuilder +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.ExternalAuthenticationMethodCollectionResponse +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|PostAsync(body:global.Microsoft.Graph.Models.ExternalAuthenticationMethod; requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.ExternalAuthenticationMethod +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|ToPostRequestInformation(body:global.Microsoft.Graph.Models.ExternalAuthenticationMethod; requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.externalAuthenticationMethodsRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.ExternalAuthenticationMethodsRequestBuilder +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder-->BaseRequestBuilder +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder.ExternalAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder.ExternalAuthenticationMethodItemRequestBuilderGetQueryParameters::|public|Expand:string[] +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder.ExternalAuthenticationMethodItemRequestBuilderGetQueryParameters::|public|Select:string[] +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder.ExternalAuthenticationMethodItemRequestBuilderGetRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder.ExternalAuthenticationMethodItemRequestBuilderPatchRequestConfiguration-->RequestConfiguration +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|constructor(pathParameters:Dictionary; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:IRequestAdapter):void +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|DeleteAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):void +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|GetAsync(requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.ExternalAuthenticationMethod +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|PatchAsync(body:global.Microsoft.Graph.Models.ExternalAuthenticationMethod; requestConfiguration?:Action>; cancellationToken?:CancellationToken):global.Microsoft.Graph.Models.ExternalAuthenticationMethod +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|ToDeleteRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|ToGetRequestInformation(requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|ToPatchRequestInformation(body:global.Microsoft.Graph.Models.ExternalAuthenticationMethod; requestConfiguration?:Action>):RequestInformation +Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder::|public|WithUrl(rawUrl:string):global.Microsoft.Graph.Users.Item.Authentication.ExternalAuthenticationMethods.Item.ExternalAuthenticationMethodItemRequestBuilder Microsoft.Graph.Users.Item.Authentication.Fido2Methods.Count.CountRequestBuilder-->BaseRequestBuilder Microsoft.Graph.Users.Item.Authentication.Fido2Methods.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters::|public|Filter:string Microsoft.Graph.Users.Item.Authentication.Fido2Methods.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters::|public|Search:string diff --git a/src/Microsoft.Graph/Generated/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index 6862b3fd9d1..c5a2aa693ac 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "8A7229A3AAC3EA73DD3751139F26E4BFA13E44560944A50736902F6B60AB8B48CB785B3FF1F85D3D55A3826AD5E42121DEB4DA534CAD1AACAF761326D10C8ABB", + "descriptionHash": "7252BED3F35FD8DE04D989A19A33D0CC2AFA14B33514358A8D0CAEDA681DAE75BC11EC71C340D25B6EFDF29FE7E77B2E3E84A53F640D3C65394962D89E12E397", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.30.0", + "kiotaVersion": "1.31.0", "clientClassName": "BaseGraphServiceClient", "typeAccessModifier": "Public", "clientNamespaceName": "Microsoft.Graph",