diff --git a/Package.Build.props b/Package.Build.props index 4f4e341..b062759 100644 --- a/Package.Build.props +++ b/Package.Build.props @@ -1,6 +1,6 @@ - 1.5.0 + 1.6.0 Hawxy true Apache-2.0 diff --git a/src/Clerk.Net.DependencyInjection/Clerk.Net.DependencyInjection.csproj b/src/Clerk.Net.DependencyInjection/Clerk.Net.DependencyInjection.csproj index 8f765c7..f9764fd 100644 --- a/src/Clerk.Net.DependencyInjection/Clerk.Net.DependencyInjection.csproj +++ b/src/Clerk.Net.DependencyInjection/Clerk.Net.DependencyInjection.csproj @@ -22,7 +22,7 @@ - + diff --git a/src/Clerk.Net.JwtSample/Clerk.Net.JwtSample.csproj b/src/Clerk.Net.JwtSample/Clerk.Net.JwtSample.csproj index 8e61058..e718315 100644 --- a/src/Clerk.Net.JwtSample/Clerk.Net.JwtSample.csproj +++ b/src/Clerk.Net.JwtSample/Clerk.Net.JwtSample.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj b/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj index dfdb033..696e3f3 100644 --- a/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj +++ b/src/Clerk.Net.Tests/Clerk.Net.Tests.csproj @@ -10,13 +10,13 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/src/Clerk.Net/Clerk.Net.csproj b/src/Clerk.Net/Clerk.Net.csproj index 23e9776..b54ab80 100644 --- a/src/Clerk.Net/Clerk.Net.csproj +++ b/src/Clerk.Net/Clerk.Net.csproj @@ -11,16 +11,16 @@ - - - - - - + + + + + + - + diff --git a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody.cs b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody.cs index f18c995..cb8d1e4 100644 --- a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody.cs +++ b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody.cs @@ -1,19 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Actor_tokens { - public class Actor_tokensPostRequestBody : IParsable +namespace Clerk.Net.Client.Actor_tokens +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Actor_tokensPostRequestBody : IParsable + #pragma warning restore CS1591 { /// The actor payload. It needs to include a sub property which should contain the ID of the actor.This whole payload will be also included in the JWT session token. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Actor_tokensPostRequestBody_actor? Actor { get; set; } + public global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody_actor? Actor { get; set; } #nullable restore #else - public Actor_tokensPostRequestBody_actor Actor { get; set; } + public global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody_actor Actor { get; set; } #endif /// Optional parameter to specify the life duration of the actor token in seconds.By default, the duration is 1 hour. public int? ExpiresInSeconds { get; set; } @@ -30,12 +34,12 @@ public class Actor_tokensPostRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Actor_tokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Actor_tokensPostRequestBody(); + return new global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody(); } /// /// The deserialization information for the current model @@ -45,10 +49,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(Actor_tokensPostRequestBody_actor.CreateFromDiscriminatorValue); } }, - {"expires_in_seconds", n => { ExpiresInSeconds = n.GetIntValue(); } }, - {"session_max_duration_in_seconds", n => { SessionMaxDurationInSeconds = n.GetIntValue(); } }, - {"user_id", n => { UserId = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody_actor.CreateFromDiscriminatorValue); } }, + { "expires_in_seconds", n => { ExpiresInSeconds = n.GetIntValue(); } }, + { "session_max_duration_in_seconds", n => { SessionMaxDurationInSeconds = n.GetIntValue(); } }, + { "user_id", n => { UserId = n.GetStringValue(); } }, }; } /// @@ -58,7 +62,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteIntValue("expires_in_seconds", ExpiresInSeconds); writer.WriteIntValue("session_max_duration_in_seconds", SessionMaxDurationInSeconds); writer.WriteStringValue("user_id", UserId); diff --git a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody_actor.cs b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody_actor.cs index aed15c4..4c21a98 100644 --- a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody_actor.cs +++ b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensPostRequestBody_actor.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Actor_tokens { +namespace Clerk.Net.Client.Actor_tokens +{ /// /// The actor payload. It needs to include a sub property which should contain the ID of the actor.This whole payload will be also included in the JWT session token. /// - public class Actor_tokensPostRequestBody_actor : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Actor_tokensPostRequestBody_actor : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Actor_tokensPostRequestBody_actor() { @@ -22,12 +24,12 @@ public Actor_tokensPostRequestBody_actor() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Actor_tokensPostRequestBody_actor CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody_actor CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Actor_tokensPostRequestBody_actor(); + return new global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody_actor(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensRequestBuilder.cs b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensRequestBuilder.cs index ce7a8ad..8f53aef 100644 --- a/src/Clerk.Net/Client/Actor_tokens/Actor_tokensRequestBuilder.cs +++ b/src/Clerk.Net/Client/Actor_tokens/Actor_tokensRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Actor_tokens.Item; using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Actor_tokens { +namespace Clerk.Net.Client.Actor_tokens +{ /// /// Builds and executes requests for operations under \actor_tokens /// - public class Actor_tokensRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Actor_tokensRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.actor_tokens.item collection /// The ID of the actor token to be revoked. - /// A - public WithActor_token_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Actor_tokens.Item.WithActor_token_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("actor_token_id", position); - return new WithActor_token_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Actor_tokens.Item.WithActor_token_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Actor_tokensRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,31 +48,31 @@ public Actor_tokensRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// Create an actor token that can be used to impersonate the given user.The `actor` parameter needs to include at least a "sub" key whose value is the ID of the actor (impersonating) user. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 402 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 402 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Actor_tokensPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Actor_tokensPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ActorToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.ActorToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Create an actor token that can be used to impersonate the given user.The `actor` parameter needs to include at least a "sub" key whose value is the ID of the actor (impersonating) user. @@ -80,11 +82,11 @@ public async Task PostAsync(Actor_tokensPostRequestBody body, Action /// 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(Actor_tokensPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Actor_tokensPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Actor_tokens.Actor_tokensPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -97,11 +99,11 @@ public RequestInformation ToPostRequestInformation(Actor_tokensPostRequestBody b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Actor_tokensRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Actor_tokens.Actor_tokensRequestBuilder WithUrl(string rawUrl) { - return new Actor_tokensRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Actor_tokens.Actor_tokensRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Actor_tokens/Item/Revoke/RevokeRequestBuilder.cs b/src/Clerk.Net/Client/Actor_tokens/Item/Revoke/RevokeRequestBuilder.cs index ac7d471..4d9b897 100644 --- a/src/Clerk.Net/Client/Actor_tokens/Item/Revoke/RevokeRequestBuilder.cs +++ b/src/Clerk.Net/Client/Actor_tokens/Item/Revoke/RevokeRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Actor_tokens.Item.Revoke { +namespace Clerk.Net.Client.Actor_tokens.Item.Revoke +{ /// /// Builds and executes requests for operations under \actor_tokens\{actor_token_id}\revoke /// - public class RevokeRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RevokeRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RevokeRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,27 +35,27 @@ public RevokeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Revokes a pending actor token. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ActorToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.ActorToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Revokes a pending actor token. @@ -77,11 +79,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RevokeRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Actor_tokens.Item.Revoke.RevokeRequestBuilder WithUrl(string rawUrl) { - return new RevokeRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Actor_tokens.Item.Revoke.RevokeRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Actor_tokens/Item/WithActor_token_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Actor_tokens/Item/WithActor_token_ItemRequestBuilder.cs index 8fce6d5..80f7e80 100644 --- a/src/Clerk.Net/Client/Actor_tokens/Item/WithActor_token_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Actor_tokens/Item/WithActor_token_ItemRequestBuilder.cs @@ -1,24 +1,26 @@ // using Clerk.Net.Client.Actor_tokens.Item.Revoke; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Clerk.Net.Client.Actor_tokens.Item { +namespace Clerk.Net.Client.Actor_tokens.Item +{ /// /// Builds and executes requests for operations under \actor_tokens\{actor_token_id} /// - public class WithActor_token_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithActor_token_ItemRequestBuilder : BaseRequestBuilder { /// The revoke property - public RevokeRequestBuilder Revoke + public global::Clerk.Net.Client.Actor_tokens.Item.Revoke.RevokeRequestBuilder Revoke { - get => new RevokeRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Actor_tokens.Item.Revoke.RevokeRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public WithActor_token_ItemRequestBuilder(Dictionary pathParamet { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersPostRequestBody.cs b/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersPostRequestBody.cs index 5f3906c..736ba2b 100644 --- a/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersPostRequestBody.cs +++ b/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Allowlist_identifiers { - public class Allowlist_identifiersPostRequestBody : IParsable +namespace Clerk.Net.Client.Allowlist_identifiers +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Allowlist_identifiersPostRequestBody : IParsable + #pragma warning restore CS1591 { /// The identifier to be added in the allow-list.This can be an email address, a phone number or a web3 wallet. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -20,12 +24,12 @@ public class Allowlist_identifiersPostRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Allowlist_identifiersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Allowlist_identifiersPostRequestBody(); + return new global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersPostRequestBody(); } /// /// The deserialization information for the current model @@ -35,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"identifier", n => { Identifier = n.GetStringValue(); } }, - {"notify", n => { Notify = n.GetBoolValue(); } }, + { "identifier", n => { Identifier = n.GetStringValue(); } }, + { "notify", n => { Notify = n.GetBoolValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersRequestBuilder.cs b/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersRequestBuilder.cs index 7c86c0a..98815cc 100644 --- a/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersRequestBuilder.cs +++ b/src/Clerk.Net/Client/Allowlist_identifiers/Allowlist_identifiersRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Allowlist_identifiers.Item; using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Allowlist_identifiers { +namespace Clerk.Net.Client.Allowlist_identifiers +{ /// /// Builds and executes requests for operations under \allowlist_identifiers /// - public class Allowlist_identifiersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Allowlist_identifiersRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.allowlist_identifiers.item collection /// The ID of the identifier to delete from the allow-list - /// A - public WithIdentifier_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Allowlist_identifiers.Item.WithIdentifier_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("identifier_id", position); - return new WithIdentifier_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Allowlist_identifiers.Item.WithIdentifier_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Allowlist_identifiersRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,57 +48,57 @@ public Allowlist_identifiersRequestBuilder(string rawUrl, IRequestAdapter reques /// /// Get a list of all identifiers allowed to sign up to an instance /// - /// A List<AllowlistIdentifier> + /// A List<global::Clerk.Net.Client.Models.AllowlistIdentifier> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 402 status code + /// When receiving a 401 status code + /// When receiving a 402 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"402", ClerkErrors.CreateFromDiscriminatorValue}, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AllowlistIdentifier.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Clerk.Net.Client.Models.AllowlistIdentifier.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create an identifier allowed to sign up to an instance /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 402 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 402 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Allowlist_identifiersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Allowlist_identifiersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, AllowlistIdentifier.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.AllowlistIdentifier.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get a list of all identifiers allowed to sign up to an instance @@ -125,11 +127,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Allowlist_identifiersPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Allowlist_identifiersPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -142,11 +144,11 @@ public RequestInformation ToPostRequestInformation(Allowlist_identifiersPostRequ /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Allowlist_identifiersRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersRequestBuilder WithUrl(string rawUrl) { - return new Allowlist_identifiersRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Allowlist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Allowlist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs index 4d81cb2..2e065f3 100644 --- a/src/Clerk.Net/Client/Allowlist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Allowlist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Allowlist_identifiers.Item { +namespace Clerk.Net.Client.Allowlist_identifiers.Item +{ /// /// Builds and executes requests for operations under \allowlist_identifiers\{identifier_id} /// - public class WithIdentifier_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithIdentifier_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithIdentifier_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,27 +35,27 @@ public WithIdentifier_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA /// /// Delete an identifier from the instance allow-list /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 402 status code - /// When receiving a 404 status code + /// When receiving a 402 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Delete an identifier from the instance allow-list @@ -77,11 +79,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithIdentifier_ItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Allowlist_identifiers.Item.WithIdentifier_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithIdentifier_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Allowlist_identifiers.Item.WithIdentifier_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Beta_features/Beta_featuresRequestBuilder.cs b/src/Clerk.Net/Client/Beta_features/Beta_featuresRequestBuilder.cs index ca2cfd7..c13716b 100644 --- a/src/Clerk.Net/Client/Beta_features/Beta_featuresRequestBuilder.cs +++ b/src/Clerk.Net/Client/Beta_features/Beta_featuresRequestBuilder.cs @@ -1,30 +1,32 @@ // using Clerk.Net.Client.Beta_features.Domain; using Clerk.Net.Client.Beta_features.Instance_settings; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Clerk.Net.Client.Beta_features { +namespace Clerk.Net.Client.Beta_features +{ /// /// Builds and executes requests for operations under \beta_features /// - public class Beta_featuresRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Beta_featuresRequestBuilder : BaseRequestBuilder { /// The domain property - public DomainRequestBuilder Domain + public global::Clerk.Net.Client.Beta_features.Domain.DomainRequestBuilder Domain { - get => new DomainRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Beta_features.Domain.DomainRequestBuilder(PathParameters, RequestAdapter); } /// The instance_settings property - public Instance_settingsRequestBuilder Instance_settings + public global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsRequestBuilder Instance_settings { - get => new Instance_settingsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -32,7 +34,7 @@ public Beta_featuresRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/Clerk.Net/Client/Beta_features/Domain/DomainPutRequestBody.cs b/src/Clerk.Net/Client/Beta_features/Domain/DomainPutRequestBody.cs index 6b76e48..c5f6e01 100644 --- a/src/Clerk.Net/Client/Beta_features/Domain/DomainPutRequestBody.cs +++ b/src/Clerk.Net/Client/Beta_features/Domain/DomainPutRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Beta_features.Domain { - public class DomainPutRequestBody : IParsable +namespace Clerk.Net.Client.Beta_features.Domain +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class DomainPutRequestBody : IParsable + #pragma warning restore CS1591 { /// The new home URL of the production instance e.g. https://www.example.com #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -18,12 +22,12 @@ public class DomainPutRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DomainPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Beta_features.Domain.DomainPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DomainPutRequestBody(); + return new global::Clerk.Net.Client.Beta_features.Domain.DomainPutRequestBody(); } /// /// The deserialization information for the current model @@ -33,7 +37,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"home_url", n => { HomeUrl = n.GetStringValue(); } }, + { "home_url", n => { HomeUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Beta_features/Domain/DomainRequestBuilder.cs b/src/Clerk.Net/Client/Beta_features/Domain/DomainRequestBuilder.cs index 30fef86..6d37c13 100644 --- a/src/Clerk.Net/Client/Beta_features/Domain/DomainRequestBuilder.cs +++ b/src/Clerk.Net/Client/Beta_features/Domain/DomainRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Beta_features.Domain { +namespace Clerk.Net.Client.Beta_features.Domain +{ /// /// Builds and executes requests for operations under \beta_features\domain /// - public class DomainRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class DomainRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public DomainRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,24 +38,24 @@ public DomainRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// 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 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(DomainPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::Clerk.Net.Client.Beta_features.Domain.DomainPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(DomainPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::Clerk.Net.Client.Beta_features.Domain.DomainPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -66,11 +68,11 @@ public async Task PutAsync(DomainPutRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::Clerk.Net.Client.Beta_features.Domain.DomainPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(DomainPutRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::Clerk.Net.Client.Beta_features.Domain.DomainPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -83,12 +85,12 @@ public RequestInformation ToPutRequestInformation(DomainPutRequestBody body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public DomainRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Beta_features.Domain.DomainRequestBuilder WithUrl(string rawUrl) { - return new DomainRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Beta_features.Domain.DomainRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchRequestBody.cs b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchRequestBody.cs index 7fa0e66..1cb5c16 100644 --- a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchRequestBody.cs +++ b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Beta_features.Instance_settings { - public class Instance_settingsPatchRequestBody : IParsable +namespace Clerk.Net.Client.Beta_features.Instance_settings +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Instance_settingsPatchRequestBody : IParsable + #pragma warning restore CS1591 { /// The "enhanced_email_deliverability" feature will send emails from "verifications@clerk.dev" instead of your domain.This can be helpful if you do not have a high domain reputation. public bool? EnhancedEmailDeliverability { get; set; } @@ -34,12 +38,12 @@ public class Instance_settingsPatchRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Instance_settingsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Instance_settingsPatchRequestBody(); + return new global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchRequestBody(); } /// /// The deserialization information for the current model @@ -49,12 +53,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enhanced_email_deliverability", n => { EnhancedEmailDeliverability = n.GetBoolValue(); } }, - {"from_email_address", n => { FromEmailAddress = n.GetStringValue(); } }, - {"progressive_sign_up", n => { ProgressiveSignUp = n.GetBoolValue(); } }, - {"restricted_to_allowlist", n => { RestrictedToAllowlist = n.GetBoolValue(); } }, - {"session_token_template", n => { SessionTokenTemplate = n.GetStringValue(); } }, - {"test_mode", n => { TestMode = n.GetBoolValue(); } }, + { "enhanced_email_deliverability", n => { EnhancedEmailDeliverability = n.GetBoolValue(); } }, + { "from_email_address", n => { FromEmailAddress = n.GetStringValue(); } }, + { "progressive_sign_up", n => { ProgressiveSignUp = n.GetBoolValue(); } }, + { "restricted_to_allowlist", n => { RestrictedToAllowlist = n.GetBoolValue(); } }, + { "session_token_template", n => { SessionTokenTemplate = n.GetStringValue(); } }, + { "test_mode", n => { TestMode = n.GetBoolValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse.cs b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse.cs index 6ba9bb1..381b593 100644 --- a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse.cs +++ b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Beta_features.Instance_settings { - public class Instance_settingsPatchResponse : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Beta_features.Instance_settings +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Instance_settingsPatchResponse : IAdditionalDataHolder, 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; set; } @@ -28,13 +32,13 @@ public class Instance_settingsPatchResponse : IAdditionalDataHolder, IParsable public string Id { get; set; } #endif /// String representing the object's type. Objects of the same type share the same value. - public Instance_settingsPatchResponse_object? Object { get; set; } + public global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchResponse_object? Object { get; set; } /// The progressive_sign_up property public bool? ProgressiveSignUp { get; set; } /// The restricted_to_allowlist property public bool? RestrictedToAllowlist { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Instance_settingsPatchResponse() { @@ -43,12 +47,12 @@ public Instance_settingsPatchResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Instance_settingsPatchResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Instance_settingsPatchResponse(); + return new global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchResponse(); } /// /// The deserialization information for the current model @@ -58,12 +62,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"enhanced_email_deliverability", n => { EnhancedEmailDeliverability = n.GetBoolValue(); } }, - {"from_email_address", n => { FromEmailAddress = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"progressive_sign_up", n => { ProgressiveSignUp = n.GetBoolValue(); } }, - {"restricted_to_allowlist", n => { RestrictedToAllowlist = n.GetBoolValue(); } }, + { "enhanced_email_deliverability", n => { EnhancedEmailDeliverability = n.GetBoolValue(); } }, + { "from_email_address", n => { FromEmailAddress = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "progressive_sign_up", n => { ProgressiveSignUp = n.GetBoolValue(); } }, + { "restricted_to_allowlist", n => { RestrictedToAllowlist = n.GetBoolValue(); } }, }; } /// @@ -76,7 +80,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("enhanced_email_deliverability", EnhancedEmailDeliverability); writer.WriteStringValue("from_email_address", FromEmailAddress); writer.WriteStringValue("id", Id); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteBoolValue("progressive_sign_up", ProgressiveSignUp); writer.WriteBoolValue("restricted_to_allowlist", RestrictedToAllowlist); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse_object.cs b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse_object.cs index 78c50ff..b0d3f4e 100644 --- a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse_object.cs +++ b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsPatchResponse_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Beta_features.Instance_settings { +namespace Clerk.Net.Client.Beta_features.Instance_settings +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum Instance_settingsPatchResponse_object { [EnumMember(Value = "instance_settings")] + #pragma warning disable CS1591 Instance_settings, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsRequestBuilder.cs b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsRequestBuilder.cs index 670104d..f376145 100644 --- a/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Beta_features/Instance_settings/Instance_settingsRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Beta_features.Instance_settings { +namespace Clerk.Net.Client.Beta_features.Instance_settings +{ /// /// Builds and executes requests for operations under \beta_features\instance_settings /// - public class Instance_settingsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Instance_settingsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Instance_settingsRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,29 +35,29 @@ public Instance_settingsRequestBuilder(string rawUrl, IRequestAdapter requestAda /// /// Updates the settings of an instance /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 402 status code - /// When receiving a 422 status code + /// When receiving a 402 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(Instance_settingsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Instance_settingsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Instance_settingsPatchResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates the settings of an instance @@ -65,11 +67,11 @@ public async Task PatchAsync(Instance_settingsPa /// 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(Instance_settingsPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Instance_settingsPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -82,11 +84,11 @@ public RequestInformation ToPatchRequestInformation(Instance_settingsPatchReques /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Instance_settingsRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsRequestBuilder WithUrl(string rawUrl) { - return new Instance_settingsRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Beta_features.Instance_settings.Instance_settingsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersPostRequestBody.cs b/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersPostRequestBody.cs index d24fd78..ba1751b 100644 --- a/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersPostRequestBody.cs +++ b/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Blocklist_identifiers { - public class Blocklist_identifiersPostRequestBody : IParsable +namespace Clerk.Net.Client.Blocklist_identifiers +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Blocklist_identifiersPostRequestBody : IParsable + #pragma warning restore CS1591 { /// The identifier to be added in the block-list.This can be an email address, a phone number or a web3 wallet. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -18,12 +22,12 @@ public class Blocklist_identifiersPostRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Blocklist_identifiersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Blocklist_identifiersPostRequestBody(); + return new global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersPostRequestBody(); } /// /// The deserialization information for the current model @@ -33,7 +37,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"identifier", n => { Identifier = n.GetStringValue(); } }, + { "identifier", n => { Identifier = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersRequestBuilder.cs b/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersRequestBuilder.cs index 75072ad..30d7e10 100644 --- a/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersRequestBuilder.cs +++ b/src/Clerk.Net/Client/Blocklist_identifiers/Blocklist_identifiersRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Blocklist_identifiers.Item; using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Blocklist_identifiers { +namespace Clerk.Net.Client.Blocklist_identifiers +{ /// /// Builds and executes requests for operations under \blocklist_identifiers /// - public class Blocklist_identifiersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Blocklist_identifiersRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.blocklist_identifiers.item collection /// The ID of the identifier to delete from the block-list - /// A - public WithIdentifier_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Blocklist_identifiers.Item.WithIdentifier_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("identifier_id", position); - return new WithIdentifier_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Blocklist_identifiers.Item.WithIdentifier_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Blocklist_identifiersRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,56 +48,56 @@ public Blocklist_identifiersRequestBuilder(string rawUrl, IRequestAdapter reques /// /// Get a list of all identifiers which are not allowed to access an instance /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 402 status code + /// When receiving a 401 status code + /// When receiving a 402 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"402", ClerkErrors.CreateFromDiscriminatorValue}, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, BlocklistIdentifiers.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.BlocklistIdentifiers.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Create an identifier that is blocked from accessing an instance /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 402 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 402 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Blocklist_identifiersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Blocklist_identifiersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, BlocklistIdentifier.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.BlocklistIdentifier.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get a list of all identifiers which are not allowed to access an instance @@ -124,11 +126,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Blocklist_identifiersPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Blocklist_identifiersPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -141,11 +143,11 @@ public RequestInformation ToPostRequestInformation(Blocklist_identifiersPostRequ /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Blocklist_identifiersRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersRequestBuilder WithUrl(string rawUrl) { - return new Blocklist_identifiersRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Blocklist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Blocklist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs index 1f06993..5aabe24 100644 --- a/src/Clerk.Net/Client/Blocklist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Blocklist_identifiers/Item/WithIdentifier_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Blocklist_identifiers.Item { +namespace Clerk.Net.Client.Blocklist_identifiers.Item +{ /// /// Builds and executes requests for operations under \blocklist_identifiers\{identifier_id} /// - public class WithIdentifier_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithIdentifier_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithIdentifier_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,27 +35,27 @@ public WithIdentifier_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA /// /// Delete an identifier from the instance block-list /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 402 status code - /// When receiving a 404 status code + /// When receiving a 402 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Delete an identifier from the instance block-list @@ -77,11 +79,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithIdentifier_ItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Blocklist_identifiers.Item.WithIdentifier_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithIdentifier_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Blocklist_identifiers.Item.WithIdentifier_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/ClerkApiClient.cs b/src/Clerk.Net/Client/ClerkApiClient.cs index 38ddb26..0065655 100644 --- a/src/Clerk.Net/Client/ClerkApiClient.cs +++ b/src/Clerk.Net/Client/ClerkApiClient.cs @@ -32,142 +32,143 @@ using Microsoft.Kiota.Serialization.Text; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Clerk.Net.Client { +namespace Clerk.Net.Client +{ /// /// The main entry point of the SDK, exposes the configuration and the fluent API. /// - public class ClerkApiClient : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClerkApiClient : BaseRequestBuilder { /// The actor_tokens property - public Actor_tokensRequestBuilder Actor_tokens + public global::Clerk.Net.Client.Actor_tokens.Actor_tokensRequestBuilder Actor_tokens { - get => new Actor_tokensRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Actor_tokens.Actor_tokensRequestBuilder(PathParameters, RequestAdapter); } /// The allowlist_identifiers property - public Allowlist_identifiersRequestBuilder Allowlist_identifiers + public global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersRequestBuilder Allowlist_identifiers { - get => new Allowlist_identifiersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Allowlist_identifiers.Allowlist_identifiersRequestBuilder(PathParameters, RequestAdapter); } /// The beta_features property - public Beta_featuresRequestBuilder Beta_features + public global::Clerk.Net.Client.Beta_features.Beta_featuresRequestBuilder Beta_features { - get => new Beta_featuresRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Beta_features.Beta_featuresRequestBuilder(PathParameters, RequestAdapter); } /// The blocklist_identifiers property - public Blocklist_identifiersRequestBuilder Blocklist_identifiers + public global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersRequestBuilder Blocklist_identifiers { - get => new Blocklist_identifiersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Blocklist_identifiers.Blocklist_identifiersRequestBuilder(PathParameters, RequestAdapter); } /// The clients property - public ClientsRequestBuilder Clients + public global::Clerk.Net.Client.Clients.ClientsRequestBuilder Clients { - get => new ClientsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The domains property - public DomainsRequestBuilder Domains + public global::Clerk.Net.Client.Domains.DomainsRequestBuilder Domains { - get => new DomainsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Domains.DomainsRequestBuilder(PathParameters, RequestAdapter); } /// The email_addresses property - public Email_addressesRequestBuilder Email_addresses + public global::Clerk.Net.Client.Email_addresses.Email_addressesRequestBuilder Email_addresses { - get => new Email_addressesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Email_addresses.Email_addressesRequestBuilder(PathParameters, RequestAdapter); } /// The instance property - public InstanceRequestBuilder Instance + public global::Clerk.Net.Client.Instance.InstanceRequestBuilder Instance { - get => new InstanceRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Instance.InstanceRequestBuilder(PathParameters, RequestAdapter); } /// The invitations property - public InvitationsRequestBuilder Invitations + public global::Clerk.Net.Client.Invitations.InvitationsRequestBuilder Invitations { - get => new InvitationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Invitations.InvitationsRequestBuilder(PathParameters, RequestAdapter); } /// The jwks property - public JwksRequestBuilder Jwks + public global::Clerk.Net.Client.Jwks.JwksRequestBuilder Jwks { - get => new JwksRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Jwks.JwksRequestBuilder(PathParameters, RequestAdapter); } /// The jwt_templates property - public Jwt_templatesRequestBuilder Jwt_templates + public global::Clerk.Net.Client.Jwt_templates.Jwt_templatesRequestBuilder Jwt_templates { - get => new Jwt_templatesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Jwt_templates.Jwt_templatesRequestBuilder(PathParameters, RequestAdapter); } /// The oauth_applications property - public Oauth_applicationsRequestBuilder Oauth_applications + public global::Clerk.Net.Client.Oauth_applications.Oauth_applicationsRequestBuilder Oauth_applications { - get => new Oauth_applicationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Oauth_applications.Oauth_applicationsRequestBuilder(PathParameters, RequestAdapter); } /// The organizations property - public OrganizationsRequestBuilder Organizations + public global::Clerk.Net.Client.Organizations.OrganizationsRequestBuilder Organizations { - get => new OrganizationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Organizations.OrganizationsRequestBuilder(PathParameters, RequestAdapter); } /// The phone_numbers property - public Phone_numbersRequestBuilder Phone_numbers + public global::Clerk.Net.Client.Phone_numbers.Phone_numbersRequestBuilder Phone_numbers { - get => new Phone_numbersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Phone_numbers.Phone_numbersRequestBuilder(PathParameters, RequestAdapter); } /// The proxy_checks property - public Proxy_checksRequestBuilder Proxy_checks + public global::Clerk.Net.Client.Proxy_checks.Proxy_checksRequestBuilder Proxy_checks { - get => new Proxy_checksRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Proxy_checks.Proxy_checksRequestBuilder(PathParameters, RequestAdapter); } /// The public property - public PublicRequestBuilder Public + public global::Clerk.Net.Client.Public.PublicRequestBuilder Public { - get => new PublicRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Public.PublicRequestBuilder(PathParameters, RequestAdapter); } /// The redirect_urls property - public Redirect_urlsRequestBuilder Redirect_urls + public global::Clerk.Net.Client.Redirect_urls.Redirect_urlsRequestBuilder Redirect_urls { - get => new Redirect_urlsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Redirect_urls.Redirect_urlsRequestBuilder(PathParameters, RequestAdapter); } /// The saml_connections property - public Saml_connectionsRequestBuilder Saml_connections + public global::Clerk.Net.Client.Saml_connections.Saml_connectionsRequestBuilder Saml_connections { - get => new Saml_connectionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Saml_connections.Saml_connectionsRequestBuilder(PathParameters, RequestAdapter); } /// The sessions property - public SessionsRequestBuilder Sessions + public global::Clerk.Net.Client.Sessions.SessionsRequestBuilder Sessions { - get => new SessionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Sessions.SessionsRequestBuilder(PathParameters, RequestAdapter); } /// The sign_in_tokens property - public Sign_in_tokensRequestBuilder Sign_in_tokens + public global::Clerk.Net.Client.Sign_in_tokens.Sign_in_tokensRequestBuilder Sign_in_tokens { - get => new Sign_in_tokensRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Sign_in_tokens.Sign_in_tokensRequestBuilder(PathParameters, RequestAdapter); } /// The sign_ups property - public Sign_upsRequestBuilder Sign_ups + public global::Clerk.Net.Client.Sign_ups.Sign_upsRequestBuilder Sign_ups { - get => new Sign_upsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Sign_ups.Sign_upsRequestBuilder(PathParameters, RequestAdapter); } /// The templates property - public TemplatesRequestBuilder Templates + public global::Clerk.Net.Client.Templates.TemplatesRequestBuilder Templates { - get => new TemplatesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Templates.TemplatesRequestBuilder(PathParameters, RequestAdapter); } /// The testing_tokens property - public Testing_tokensRequestBuilder Testing_tokens + public global::Clerk.Net.Client.Testing_tokens.Testing_tokensRequestBuilder Testing_tokens { - get => new Testing_tokensRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Testing_tokens.Testing_tokensRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public UsersRequestBuilder Users + public global::Clerk.Net.Client.Users.UsersRequestBuilder Users { - get => new UsersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Users.UsersRequestBuilder(PathParameters, RequestAdapter); } /// The webhooks property - public WebhooksRequestBuilder Webhooks + public global::Clerk.Net.Client.Webhooks.WebhooksRequestBuilder Webhooks { - get => new WebhooksRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Webhooks.WebhooksRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The request adapter to use to execute the requests. public ClerkApiClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) diff --git a/src/Clerk.Net/Client/Clients/ClientsRequestBuilder.cs b/src/Clerk.Net/Client/Clients/ClientsRequestBuilder.cs index a85c274..0cdb6f2 100644 --- a/src/Clerk.Net/Client/Clients/ClientsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Clients/ClientsRequestBuilder.cs @@ -2,40 +2,42 @@ using Clerk.Net.Client.Clients.Item; using Clerk.Net.Client.Clients.Verify; using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Clients { +namespace Clerk.Net.Client.Clients +{ /// /// Builds and executes requests for operations under \clients /// - public class ClientsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsRequestBuilder : BaseRequestBuilder { /// The verify property [Obsolete("")] - public VerifyRequestBuilder Verify + public global::Clerk.Net.Client.Clients.Verify.VerifyRequestBuilder Verify { - get => new VerifyRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Clients.Verify.VerifyRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Clerk.Net.Client.clients.item collection /// Client ID. - /// A - public WithClient_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Clients.Item.WithClient_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("client_id", position); - return new WithClient_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Clients.Item.WithClient_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +45,7 @@ public ClientsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -53,33 +55,33 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// Returns a list of all clients. The clients are returned sorted by creation date,with the newest clients appearing first.Warning: the endpoint is being deprecated and will be removed in future versions. /// - /// A List<Clerk.Net.Client.Models.Client> + /// A List<global::Clerk.Net.Client.Models.Client> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 410 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 410 status code + /// When receiving a 422 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"410", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "410", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Clerk.Net.Client.Models.Client.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Clerk.Net.Client.Models.Client.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns a list of all clients. The clients are returned sorted by creation date,with the newest clients appearing first.Warning: the endpoint is being deprecated and will be removed in future versions. @@ -89,11 +91,11 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -104,17 +106,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public ClientsRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Clients.ClientsRequestBuilder WithUrl(string rawUrl) { - return new ClientsRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Clients.ClientsRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a list of all clients. The clients are returned sorted by creation date,with the newest clients appearing first.Warning: the endpoint is being deprecated and will be removed in future versions. /// - public class ClientsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsRequestBuilderGetQueryParameters { /// Applies a limit to the number of results returned.Can be used for paginating the results together with `offset`. [QueryParameter("limit")] diff --git a/src/Clerk.Net/Client/Clients/Item/WithClient_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Clients/Item/WithClient_ItemRequestBuilder.cs index 14c3b99..56f22d1 100644 --- a/src/Clerk.Net/Client/Clients/Item/WithClient_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Clients/Item/WithClient_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Clients.Item { +namespace Clerk.Net.Client.Clients.Item +{ /// /// Builds and executes requests for operations under \clients\{client_id} /// - public class WithClient_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithClient_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithClient_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,29 +35,29 @@ public WithClient_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// /// Returns the details of a client. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Clerk.Net.Client.Models.Client.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Client.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Returns the details of a client. @@ -79,11 +81,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithClient_ItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Clients.Item.WithClient_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithClient_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Clients.Item.WithClient_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Clients/Verify/VerifyPostRequestBody.cs b/src/Clerk.Net/Client/Clients/Verify/VerifyPostRequestBody.cs index 8260c4a..63677c0 100644 --- a/src/Clerk.Net/Client/Clients/Verify/VerifyPostRequestBody.cs +++ b/src/Clerk.Net/Client/Clients/Verify/VerifyPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Clients.Verify { - public class VerifyPostRequestBody : IParsable +namespace Clerk.Net.Client.Clients.Verify +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class VerifyPostRequestBody : IParsable + #pragma warning restore CS1591 { /// A JWT Token that represents the active client. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -18,12 +22,12 @@ public class VerifyPostRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static VerifyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Clients.Verify.VerifyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VerifyPostRequestBody(); + return new global::Clerk.Net.Client.Clients.Verify.VerifyPostRequestBody(); } /// /// The deserialization information for the current model @@ -33,7 +37,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"token", n => { Token = n.GetStringValue(); } }, + { "token", n => { Token = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Clients/Verify/VerifyRequestBuilder.cs b/src/Clerk.Net/Client/Clients/Verify/VerifyRequestBuilder.cs index c964990..4f1eeb0 100644 --- a/src/Clerk.Net/Client/Clients/Verify/VerifyRequestBuilder.cs +++ b/src/Clerk.Net/Client/Clients/Verify/VerifyRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Clients.Verify { +namespace Clerk.Net.Client.Clients.Verify +{ /// /// Builds and executes requests for operations under \clients\verify /// - public class VerifyRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class VerifyRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public VerifyRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,31 +35,31 @@ public VerifyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Verifies the client in the provided token /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(VerifyPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Clients.Verify.VerifyPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(VerifyPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Clients.Verify.VerifyPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Clerk.Net.Client.Models.Client.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Client.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Verifies the client in the provided token @@ -67,11 +69,11 @@ public VerifyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// 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(VerifyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Clients.Verify.VerifyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(VerifyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Clients.Verify.VerifyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -84,11 +86,11 @@ public RequestInformation ToPostRequestInformation(VerifyPostRequestBody body, A /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public VerifyRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Clients.Verify.VerifyRequestBuilder WithUrl(string rawUrl) { - return new VerifyRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Clients.Verify.VerifyRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Domains/DomainsPostRequestBody.cs b/src/Clerk.Net/Client/Domains/DomainsPostRequestBody.cs index 96aad31..7b2a282 100644 --- a/src/Clerk.Net/Client/Domains/DomainsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Domains/DomainsPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Domains { - public class DomainsPostRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Domains +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class DomainsPostRequestBody : IAdditionalDataHolder, 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; set; } @@ -28,7 +32,7 @@ public class DomainsPostRequestBody : IAdditionalDataHolder, IParsable public string ProxyUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DomainsPostRequestBody() { @@ -37,12 +41,12 @@ public DomainsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DomainsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Domains.DomainsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DomainsPostRequestBody(); + return new global::Clerk.Net.Client.Domains.DomainsPostRequestBody(); } /// /// The deserialization information for the current model @@ -52,9 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"is_satellite", n => { IsSatellite = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"proxy_url", n => { ProxyUrl = n.GetStringValue(); } }, + { "is_satellite", n => { IsSatellite = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "proxy_url", n => { ProxyUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Domains/DomainsRequestBuilder.cs b/src/Clerk.Net/Client/Domains/DomainsRequestBuilder.cs index 6cf3bbf..83875a3 100644 --- a/src/Clerk.Net/Client/Domains/DomainsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Domains/DomainsRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Domains.Item; using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Domains { +namespace Clerk.Net.Client.Domains +{ /// /// Builds and executes requests for operations under \domains /// - public class DomainsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class DomainsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.domains.item collection /// The ID of the domain that will be deleted. Must be a satellite domain. - /// A - public WithDomain_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Domains.Item.WithDomain_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("domain_id", position); - return new WithDomain_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Domains.Item.WithDomain_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public DomainsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,49 +48,49 @@ public DomainsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// Use this endpoint to get a list of all domains for an instance.The response will contain the primary domain for the instance and any satellite domains. Each domain in the response contains information about the URLs where Clerk operates and the required CNAME targets. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Clerk.Net.Client.Models.Domains.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Domains.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Add a new domain for your instance.Useful in the case of multi-domain instances, allows adding satellite domains to an instance.The new domain must have a `name`. The domain name can contain the port for development instances, like `localhost:3000`.At the moment, instances can have only one primary domain, so the `is_satellite` parameter must be set to `true`.If you're planning to configure the new satellite domain to run behind a proxy, pass the `proxy_url` parameter accordingly. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 402 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 402 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(DomainsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Domains.DomainsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(DomainsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Domains.DomainsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Clerk.Net.Client.Models.Domain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Domain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Use this endpoint to get a list of all domains for an instance.The response will contain the primary domain for the instance and any satellite domains. Each domain in the response contains information about the URLs where Clerk operates and the required CNAME targets. @@ -117,11 +119,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(DomainsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Domains.DomainsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(DomainsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Domains.DomainsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -134,11 +136,11 @@ public RequestInformation ToPostRequestInformation(DomainsPostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DomainsRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Domains.DomainsRequestBuilder WithUrl(string rawUrl) { - return new DomainsRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Domains.DomainsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Domains/Item/WithDomain_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Domains/Item/WithDomain_ItemRequestBuilder.cs index 50e5d0a..f1257ee 100644 --- a/src/Clerk.Net/Client/Domains/Item/WithDomain_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Domains/Item/WithDomain_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Domains.Item { +namespace Clerk.Net.Client.Domains.Item +{ /// /// Builds and executes requests for operations under \domains\{domain_id} /// - public class WithDomain_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithDomain_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithDomain_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,56 +35,56 @@ public WithDomain_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// /// Deletes a satellite domain for the instance.It is currently not possible to delete the instance's primary domain. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The `proxy_url` can be updated only for production instances.Update one of the instance's domains. Both primary and satellite domains can be updated.If you choose to use Clerk via proxy, use this endpoint to specify the `proxy_url`.Whenever you decide you'd rather switch to DNS setup for Clerk, simply set `proxy_url`to `null` for the domain. When you update a production instance's primary domain name,you have to make sure that you've completed all the necessary setup steps for DNS andemails to work. Expect downtime otherwise. Updating a primary domain's name will alsoupdate the instance's home origin, affecting the default application paths. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithDomain_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Domains.Item.WithDomain_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithDomain_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Domains.Item.WithDomain_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Clerk.Net.Client.Models.Domain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Domain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes a satellite domain for the instance.It is currently not possible to delete the instance's primary domain. @@ -111,11 +113,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration 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(WithDomain_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Domains.Item.WithDomain_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithDomain_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Domains.Item.WithDomain_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,11 +130,11 @@ public RequestInformation ToPatchRequestInformation(WithDomain_PatchRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithDomain_ItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Domains.Item.WithDomain_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithDomain_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Domains.Item.WithDomain_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Domains/Item/WithDomain_PatchRequestBody.cs b/src/Clerk.Net/Client/Domains/Item/WithDomain_PatchRequestBody.cs index b8458b0..ea89f8a 100644 --- a/src/Clerk.Net/Client/Domains/Item/WithDomain_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Domains/Item/WithDomain_PatchRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Domains.Item { - public class WithDomain_PatchRequestBody : IParsable +namespace Clerk.Net.Client.Domains.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithDomain_PatchRequestBody : IParsable + #pragma warning restore CS1591 { /// The new domain name. For development instances, can contain the port,i.e `myhostname:3000`. For production instances, must be a valid FQDN,i.e `mysite.com`. Cannot contain protocol scheme. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -26,12 +30,12 @@ public class WithDomain_PatchRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithDomain_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Domains.Item.WithDomain_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithDomain_PatchRequestBody(); + return new global::Clerk.Net.Client.Domains.Item.WithDomain_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -41,8 +45,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"proxy_url", n => { ProxyUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "proxy_url", n => { ProxyUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Email_addresses/Email_addressesPostRequestBody.cs b/src/Clerk.Net/Client/Email_addresses/Email_addressesPostRequestBody.cs index 5440838..a632d40 100644 --- a/src/Clerk.Net/Client/Email_addresses/Email_addressesPostRequestBody.cs +++ b/src/Clerk.Net/Client/Email_addresses/Email_addressesPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Email_addresses { - public class Email_addressesPostRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Email_addresses +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Email_addressesPostRequestBody : IAdditionalDataHolder, 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; set; } @@ -30,7 +34,7 @@ public class Email_addressesPostRequestBody : IAdditionalDataHolder, IParsable /// When created, the email address will be marked as verified. public bool? Verified { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Email_addressesPostRequestBody() { @@ -39,12 +43,12 @@ public Email_addressesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Email_addressesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Email_addresses.Email_addressesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Email_addressesPostRequestBody(); + return new global::Clerk.Net.Client.Email_addresses.Email_addressesPostRequestBody(); } /// /// The deserialization information for the current model @@ -54,10 +58,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email_address", n => { EmailAddress = n.GetStringValue(); } }, - {"primary", n => { Primary = n.GetBoolValue(); } }, - {"user_id", n => { UserId = n.GetStringValue(); } }, - {"verified", n => { Verified = n.GetBoolValue(); } }, + { "email_address", n => { EmailAddress = n.GetStringValue(); } }, + { "primary", n => { Primary = n.GetBoolValue(); } }, + { "user_id", n => { UserId = n.GetStringValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Email_addresses/Email_addressesRequestBuilder.cs b/src/Clerk.Net/Client/Email_addresses/Email_addressesRequestBuilder.cs index 929f353..e135667 100644 --- a/src/Clerk.Net/Client/Email_addresses/Email_addressesRequestBuilder.cs +++ b/src/Clerk.Net/Client/Email_addresses/Email_addressesRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Email_addresses.Item; using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Email_addresses { +namespace Clerk.Net.Client.Email_addresses +{ /// /// Builds and executes requests for operations under \email_addresses /// - public class Email_addressesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Email_addressesRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.email_addresses.item collection /// The ID of the email address to retrieve - /// A - public WithEmail_address_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Email_addresses.Item.WithEmail_address_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("email_address_id", position); - return new WithEmail_address_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Email_addresses.Item.WithEmail_address_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Email_addressesRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,35 +48,35 @@ public Email_addressesRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// /// Create a new email address /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Email_addressesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Email_addresses.Email_addressesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Email_addressesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Email_addresses.Email_addressesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EmailAddress.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.EmailAddress.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Create a new email address @@ -84,11 +86,11 @@ public async Task PostAsync(Email_addressesPostRequestBody body, A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Email_addressesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Email_addresses.Email_addressesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Email_addressesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Email_addresses.Email_addressesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -101,11 +103,11 @@ public RequestInformation ToPostRequestInformation(Email_addressesPostRequestBod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Email_addressesRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Email_addresses.Email_addressesRequestBuilder WithUrl(string rawUrl) { - return new Email_addressesRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Email_addresses.Email_addressesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_ItemRequestBuilder.cs index 1bc41c1..5a609a6 100644 --- a/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Email_addresses.Item { +namespace Clerk.Net.Client.Email_addresses.Item +{ /// /// Builds and executes requests for operations under \email_addresses\{email_address_id} /// - public class WithEmail_address_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithEmail_address_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithEmail_address_ItemRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,91 +35,91 @@ public WithEmail_address_ItemRequestBuilder(string rawUrl, IRequestAdapter reque /// /// Delete the email address with the given ID /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Returns the details of an email address. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EmailAddress.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.EmailAddress.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates an email address. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithEmail_address_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Email_addresses.Item.WithEmail_address_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithEmail_address_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Email_addresses.Item.WithEmail_address_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, EmailAddress.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.EmailAddress.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Delete the email address with the given ID @@ -165,11 +167,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(WithEmail_address_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Email_addresses.Item.WithEmail_address_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithEmail_address_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Email_addresses.Item.WithEmail_address_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -182,11 +184,11 @@ public RequestInformation ToPatchRequestInformation(WithEmail_address_PatchReque /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithEmail_address_ItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Email_addresses.Item.WithEmail_address_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithEmail_address_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Email_addresses.Item.WithEmail_address_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_PatchRequestBody.cs b/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_PatchRequestBody.cs index c167ebf..9090b25 100644 --- a/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Email_addresses/Item/WithEmail_address_PatchRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Email_addresses.Item { - public class WithEmail_address_PatchRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Email_addresses.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithEmail_address_PatchRequestBody : IAdditionalDataHolder, 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; set; } @@ -14,7 +18,7 @@ public class WithEmail_address_PatchRequestBody : IAdditionalDataHolder, IParsab /// The email address will be marked as verified. public bool? Verified { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithEmail_address_PatchRequestBody() { @@ -23,12 +27,12 @@ public WithEmail_address_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithEmail_address_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Email_addresses.Item.WithEmail_address_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithEmail_address_PatchRequestBody(); + return new global::Clerk.Net.Client.Email_addresses.Item.WithEmail_address_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -38,8 +42,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"primary", n => { Primary = n.GetBoolValue(); } }, - {"verified", n => { Verified = n.GetBoolValue(); } }, + { "primary", n => { Primary = n.GetBoolValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Instance/Change_domain/Change_domainPostRequestBody.cs b/src/Clerk.Net/Client/Instance/Change_domain/Change_domainPostRequestBody.cs index 5691d67..e826b78 100644 --- a/src/Clerk.Net/Client/Instance/Change_domain/Change_domainPostRequestBody.cs +++ b/src/Clerk.Net/Client/Instance/Change_domain/Change_domainPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Instance.Change_domain { - public class Change_domainPostRequestBody : IParsable +namespace Clerk.Net.Client.Instance.Change_domain +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Change_domainPostRequestBody : IParsable + #pragma warning restore CS1591 { /// The new home URL of the production instance e.g. https://www.example.com #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -18,12 +22,12 @@ public class Change_domainPostRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Change_domainPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Instance.Change_domain.Change_domainPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Change_domainPostRequestBody(); + return new global::Clerk.Net.Client.Instance.Change_domain.Change_domainPostRequestBody(); } /// /// The deserialization information for the current model @@ -33,7 +37,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"home_url", n => { HomeUrl = n.GetStringValue(); } }, + { "home_url", n => { HomeUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Instance/Change_domain/Change_domainRequestBuilder.cs b/src/Clerk.Net/Client/Instance/Change_domain/Change_domainRequestBuilder.cs index aa23290..7e37148 100644 --- a/src/Clerk.Net/Client/Instance/Change_domain/Change_domainRequestBuilder.cs +++ b/src/Clerk.Net/Client/Instance/Change_domain/Change_domainRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Instance.Change_domain { +namespace Clerk.Net.Client.Instance.Change_domain +{ /// /// Builds and executes requests for operations under \instance\change_domain /// - public class Change_domainRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Change_domainRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Change_domainRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,23 +38,23 @@ public Change_domainRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// 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 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Change_domainPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Instance.Change_domain.Change_domainPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Change_domainPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Instance.Change_domain.Change_domainPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -64,11 +66,11 @@ public async Task PostAsync(Change_domainPostRequestBody body, ActionConfiguration 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(Change_domainPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Instance.Change_domain.Change_domainPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Change_domainPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Instance.Change_domain.Change_domainPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -81,11 +83,11 @@ public RequestInformation ToPostRequestInformation(Change_domainPostRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Change_domainRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Instance.Change_domain.Change_domainRequestBuilder WithUrl(string rawUrl) { - return new Change_domainRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Instance.Change_domain.Change_domainRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Instance/InstancePatchRequestBody.cs b/src/Clerk.Net/Client/Instance/InstancePatchRequestBody.cs index cc6eba7..b2126d8 100644 --- a/src/Clerk.Net/Client/Instance/InstancePatchRequestBody.cs +++ b/src/Clerk.Net/Client/Instance/InstancePatchRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Instance { - public class InstancePatchRequestBody : IParsable +namespace Clerk.Net.Client.Instance +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class InstancePatchRequestBody : IParsable + #pragma warning restore CS1591 { /// For browser-like stacks such as browser extensions, Electron, or Capacitor.js the instance allowed origins need to be updated with the request origin value.For Chrome extensions popup, background, or service worker pages the origin is chrome-extension://extension_uiid. For Electron apps the default origin is http://localhost:3000. For Capacitor, the origin is capacitor://localhost. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -53,12 +57,12 @@ public class InstancePatchRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InstancePatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Instance.InstancePatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InstancePatchRequestBody(); + return new global::Clerk.Net.Client.Instance.InstancePatchRequestBody(); } /// /// The deserialization information for the current model @@ -68,15 +72,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_origins", n => { AllowedOrigins = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"clerk_js_version", n => { ClerkJsVersion = n.GetStringValue(); } }, - {"cookieless_dev", n => { CookielessDev = n.GetBoolValue(); } }, - {"development_origin", n => { DevelopmentOrigin = n.GetStringValue(); } }, - {"enhanced_email_deliverability", n => { EnhancedEmailDeliverability = n.GetBoolValue(); } }, - {"hibp", n => { Hibp = n.GetBoolValue(); } }, - {"support_email", n => { SupportEmail = n.GetStringValue(); } }, - {"test_mode", n => { TestMode = n.GetBoolValue(); } }, - {"url_based_session_syncing", n => { UrlBasedSessionSyncing = n.GetBoolValue(); } }, + { "allowed_origins", n => { AllowedOrigins = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "clerk_js_version", n => { ClerkJsVersion = n.GetStringValue(); } }, + { "cookieless_dev", n => { CookielessDev = n.GetBoolValue(); } }, + { "development_origin", n => { DevelopmentOrigin = n.GetStringValue(); } }, + { "enhanced_email_deliverability", n => { EnhancedEmailDeliverability = n.GetBoolValue(); } }, + { "hibp", n => { Hibp = n.GetBoolValue(); } }, + { "support_email", n => { SupportEmail = n.GetStringValue(); } }, + { "test_mode", n => { TestMode = n.GetBoolValue(); } }, + { "url_based_session_syncing", n => { UrlBasedSessionSyncing = n.GetBoolValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Instance/InstanceRequestBuilder.cs b/src/Clerk.Net/Client/Instance/InstanceRequestBuilder.cs index ac48229..03c8046 100644 --- a/src/Clerk.Net/Client/Instance/InstanceRequestBuilder.cs +++ b/src/Clerk.Net/Client/Instance/InstanceRequestBuilder.cs @@ -3,37 +3,39 @@ using Clerk.Net.Client.Instance.Organization_settings; using Clerk.Net.Client.Instance.Restrictions; using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Instance { +namespace Clerk.Net.Client.Instance +{ /// /// Builds and executes requests for operations under \instance /// - public class InstanceRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class InstanceRequestBuilder : BaseRequestBuilder { /// The change_domain property - public Change_domainRequestBuilder Change_domain + public global::Clerk.Net.Client.Instance.Change_domain.Change_domainRequestBuilder Change_domain { - get => new Change_domainRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Instance.Change_domain.Change_domainRequestBuilder(PathParameters, RequestAdapter); } /// The organization_settings property - public Organization_settingsRequestBuilder Organization_settings + public global::Clerk.Net.Client.Instance.Organization_settings.Organization_settingsRequestBuilder Organization_settings { - get => new Organization_settingsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Instance.Organization_settings.Organization_settingsRequestBuilder(PathParameters, RequestAdapter); } /// The restrictions property - public RestrictionsRequestBuilder Restrictions + public global::Clerk.Net.Client.Instance.Restrictions.RestrictionsRequestBuilder Restrictions { - get => new RestrictionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Instance.Restrictions.RestrictionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public InstanceRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -54,21 +56,21 @@ public InstanceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// 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 422 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(InstancePatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Instance.InstancePatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(InstancePatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Instance.InstancePatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -80,11 +82,11 @@ public async Task PatchAsync(InstancePatchRequestBody body, ActionConfiguration 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(InstancePatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Instance.InstancePatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(InstancePatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Instance.InstancePatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -97,11 +99,11 @@ public RequestInformation ToPatchRequestInformation(InstancePatchRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InstanceRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Instance.InstanceRequestBuilder WithUrl(string rawUrl) { - return new InstanceRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Instance.InstanceRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsPatchRequestBody.cs b/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsPatchRequestBody.cs index 8f2f539..d1d1233 100644 --- a/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsPatchRequestBody.cs +++ b/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsPatchRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Instance.Organization_settings { - public class Organization_settingsPatchRequestBody : IParsable +namespace Clerk.Net.Client.Instance.Organization_settings +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Organization_settingsPatchRequestBody : IParsable + #pragma warning restore CS1591 { /// The admin_delete_enabled property public bool? AdminDeleteEnabled { get; set; } @@ -42,12 +46,12 @@ public class Organization_settingsPatchRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Organization_settingsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Instance.Organization_settings.Organization_settingsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Organization_settingsPatchRequestBody(); + return new global::Clerk.Net.Client.Instance.Organization_settings.Organization_settingsPatchRequestBody(); } /// /// The deserialization information for the current model @@ -57,13 +61,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin_delete_enabled", n => { AdminDeleteEnabled = n.GetBoolValue(); } }, - {"creator_role_id", n => { CreatorRoleId = n.GetStringValue(); } }, - {"domains_default_role_id", n => { DomainsDefaultRoleId = n.GetStringValue(); } }, - {"domains_enabled", n => { DomainsEnabled = n.GetBoolValue(); } }, - {"domains_enrollment_modes", n => { DomainsEnrollmentModes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"max_allowed_memberships", n => { MaxAllowedMemberships = n.GetIntValue(); } }, + { "admin_delete_enabled", n => { AdminDeleteEnabled = n.GetBoolValue(); } }, + { "creator_role_id", n => { CreatorRoleId = n.GetStringValue(); } }, + { "domains_default_role_id", n => { DomainsDefaultRoleId = n.GetStringValue(); } }, + { "domains_enabled", n => { DomainsEnabled = n.GetBoolValue(); } }, + { "domains_enrollment_modes", n => { DomainsEnrollmentModes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "max_allowed_memberships", n => { MaxAllowedMemberships = n.GetIntValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsRequestBuilder.cs b/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsRequestBuilder.cs index cf4ea10..508578c 100644 --- a/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Instance/Organization_settings/Organization_settingsRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Instance.Organization_settings { +namespace Clerk.Net.Client.Instance.Organization_settings +{ /// /// Builds and executes requests for operations under \instance\organization_settings /// - public class Organization_settingsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Organization_settingsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Organization_settingsRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,31 +35,31 @@ public Organization_settingsRequestBuilder(string rawUrl, IRequestAdapter reques /// /// Updates the organization settings of the instance /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 402 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 402 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(Organization_settingsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Instance.Organization_settings.Organization_settingsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Organization_settingsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Instance.Organization_settings.Organization_settingsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OrganizationSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates the organization settings of the instance @@ -67,11 +69,11 @@ public async Task PatchAsync(Organization_settingsPatchReq /// 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(Organization_settingsPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Instance.Organization_settings.Organization_settingsPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Organization_settingsPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Instance.Organization_settings.Organization_settingsPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -84,11 +86,11 @@ public RequestInformation ToPatchRequestInformation(Organization_settingsPatchRe /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Organization_settingsRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Instance.Organization_settings.Organization_settingsRequestBuilder WithUrl(string rawUrl) { - return new Organization_settingsRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Instance.Organization_settings.Organization_settingsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsPatchRequestBody.cs b/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsPatchRequestBody.cs index 6a762f6..c7cc588 100644 --- a/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsPatchRequestBody.cs +++ b/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsPatchRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Instance.Restrictions { - public class RestrictionsPatchRequestBody : IParsable +namespace Clerk.Net.Client.Instance.Restrictions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RestrictionsPatchRequestBody : IParsable + #pragma warning restore CS1591 { /// The allowlist property public bool? Allowlist { get; set; } @@ -15,15 +19,17 @@ public class RestrictionsPatchRequestBody : IParsable public bool? BlockEmailSubaddresses { get; set; } /// The blocklist property public bool? Blocklist { get; set; } + /// The ignore_dots_for_gmail_addresses property + public bool? IgnoreDotsForGmailAddresses { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RestrictionsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Instance.Restrictions.RestrictionsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RestrictionsPatchRequestBody(); + return new global::Clerk.Net.Client.Instance.Restrictions.RestrictionsPatchRequestBody(); } /// /// The deserialization information for the current model @@ -33,10 +39,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowlist", n => { Allowlist = n.GetBoolValue(); } }, - {"block_disposable_email_domains", n => { BlockDisposableEmailDomains = n.GetBoolValue(); } }, - {"block_email_subaddresses", n => { BlockEmailSubaddresses = n.GetBoolValue(); } }, - {"blocklist", n => { Blocklist = n.GetBoolValue(); } }, + { "allowlist", n => { Allowlist = n.GetBoolValue(); } }, + { "block_disposable_email_domains", n => { BlockDisposableEmailDomains = n.GetBoolValue(); } }, + { "block_email_subaddresses", n => { BlockEmailSubaddresses = n.GetBoolValue(); } }, + { "blocklist", n => { Blocklist = n.GetBoolValue(); } }, + { "ignore_dots_for_gmail_addresses", n => { IgnoreDotsForGmailAddresses = n.GetBoolValue(); } }, }; } /// @@ -50,6 +57,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("block_disposable_email_domains", BlockDisposableEmailDomains); writer.WriteBoolValue("block_email_subaddresses", BlockEmailSubaddresses); writer.WriteBoolValue("blocklist", Blocklist); + writer.WriteBoolValue("ignore_dots_for_gmail_addresses", IgnoreDotsForGmailAddresses); } } } diff --git a/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsRequestBuilder.cs b/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsRequestBuilder.cs index c436e31..80fa7e2 100644 --- a/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Instance/Restrictions/RestrictionsRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Instance.Restrictions { +namespace Clerk.Net.Client.Instance.Restrictions +{ /// /// Builds and executes requests for operations under \instance\restrictions /// - public class RestrictionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RestrictionsRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RestrictionsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,27 +35,29 @@ public RestrictionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// Updates the restriction settings of an instance /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 402 status code + /// When receiving a 402 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(RestrictionsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Instance.Restrictions.RestrictionsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(RestrictionsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Instance.Restrictions.RestrictionsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"402", ClerkErrors.CreateFromDiscriminatorValue}, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, InstanceRestrictions.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.InstanceRestrictions.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates the restriction settings of an instance @@ -63,11 +67,11 @@ public async Task PatchAsync(RestrictionsPatchRequestBody /// 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(RestrictionsPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Instance.Restrictions.RestrictionsPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(RestrictionsPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Instance.Restrictions.RestrictionsPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -80,11 +84,11 @@ public RequestInformation ToPatchRequestInformation(RestrictionsPatchRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RestrictionsRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Instance.Restrictions.RestrictionsRequestBuilder WithUrl(string rawUrl) { - return new RestrictionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Instance.Restrictions.RestrictionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Invitations/GetStatusQueryParameterType.cs b/src/Clerk.Net/Client/Invitations/GetStatusQueryParameterType.cs index 4edf5a4..4e2f565 100644 --- a/src/Clerk.Net/Client/Invitations/GetStatusQueryParameterType.cs +++ b/src/Clerk.Net/Client/Invitations/GetStatusQueryParameterType.cs @@ -1,14 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Invitations { +namespace Clerk.Net.Client.Invitations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum GetStatusQueryParameterType + #pragma warning restore CS1591 { [EnumMember(Value = "pending")] + #pragma warning disable CS1591 Pending, + #pragma warning restore CS1591 [EnumMember(Value = "accepted")] + #pragma warning disable CS1591 Accepted, + #pragma warning restore CS1591 [EnumMember(Value = "revoked")] + #pragma warning disable CS1591 Revoked, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody.cs b/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody.cs index 52bc1b2..710edad 100644 --- a/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Invitations { - public class InvitationsPostRequestBody : IParsable +namespace Clerk.Net.Client.Invitations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class InvitationsPostRequestBody : IParsable + #pragma warning restore CS1591 { /// The email address the invitation will be sent to #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -22,10 +26,10 @@ public class InvitationsPostRequestBody : IParsable /// Metadata that will be attached to the newly created invitation.The value of this property should be a well-formed JSON object.Once the user accepts the invitation and signs up, these metadata will end up in the user's public metadata. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public InvitationsPostRequestBody_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Invitations.InvitationsPostRequestBody_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public InvitationsPostRequestBody_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Invitations.InvitationsPostRequestBody_public_metadata PublicMetadata { get; set; } #endif /// Optional URL which specifies where to redirect the user once they click the invitation link.This is only required if you have implemented a [custom flow](https://clerk.com/docs/authentication/invitations#custom-flow) and you're not using Clerk Hosted Pages or Clerk Components. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -38,12 +42,12 @@ public class InvitationsPostRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InvitationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Invitations.InvitationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InvitationsPostRequestBody(); + return new global::Clerk.Net.Client.Invitations.InvitationsPostRequestBody(); } /// /// The deserialization information for the current model @@ -53,11 +57,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email_address", n => { EmailAddress = n.GetStringValue(); } }, - {"ignore_existing", n => { IgnoreExisting = n.GetBoolValue(); } }, - {"notify", n => { Notify = n.GetBoolValue(); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(InvitationsPostRequestBody_public_metadata.CreateFromDiscriminatorValue); } }, - {"redirect_url", n => { RedirectUrl = n.GetStringValue(); } }, + { "email_address", n => { EmailAddress = n.GetStringValue(); } }, + { "ignore_existing", n => { IgnoreExisting = n.GetBoolValue(); } }, + { "notify", n => { Notify = n.GetBoolValue(); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Invitations.InvitationsPostRequestBody_public_metadata.CreateFromDiscriminatorValue); } }, + { "redirect_url", n => { RedirectUrl = n.GetStringValue(); } }, }; } /// @@ -70,7 +74,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("email_address", EmailAddress); writer.WriteBoolValue("ignore_existing", IgnoreExisting); writer.WriteBoolValue("notify", Notify); - writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteObjectValue("public_metadata", PublicMetadata); writer.WriteStringValue("redirect_url", RedirectUrl); } } diff --git a/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody_public_metadata.cs b/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody_public_metadata.cs index c28e7ce..dac5fa8 100644 --- a/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody_public_metadata.cs +++ b/src/Clerk.Net/Client/Invitations/InvitationsPostRequestBody_public_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Invitations { +namespace Clerk.Net.Client.Invitations +{ /// /// Metadata that will be attached to the newly created invitation.The value of this property should be a well-formed JSON object.Once the user accepts the invitation and signs up, these metadata will end up in the user's public metadata. /// - public class InvitationsPostRequestBody_public_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class InvitationsPostRequestBody_public_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InvitationsPostRequestBody_public_metadata() { @@ -22,12 +24,12 @@ public InvitationsPostRequestBody_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InvitationsPostRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Invitations.InvitationsPostRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InvitationsPostRequestBody_public_metadata(); + return new global::Clerk.Net.Client.Invitations.InvitationsPostRequestBody_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Invitations/InvitationsRequestBuilder.cs b/src/Clerk.Net/Client/Invitations/InvitationsRequestBuilder.cs index ac1cc40..d67a58e 100644 --- a/src/Clerk.Net/Client/Invitations/InvitationsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Invitations/InvitationsRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Invitations.Item; using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Invitations { +namespace Clerk.Net.Client.Invitations +{ /// /// Builds and executes requests for operations under \invitations /// - public class InvitationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class InvitationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.invitations.item collection /// The ID of the invitation to be revoked - /// A - public WithInvitation_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Invitations.Item.WithInvitation_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("invitation_id", position); - return new WithInvitation_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Invitations.Item.WithInvitation_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public InvitationsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,48 +48,48 @@ public InvitationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// Returns all non-revoked invitations for your application, sorted by creation date /// - /// A List<Invitation> + /// A List<global::Clerk.Net.Client.Models.Invitation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Invitation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Clerk.Net.Client.Models.Invitation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Creates a new invitation for the given email address and sends the invitation email.Keep in mind that you cannot create an invitation if there is already one for the given email address.Also, trying to create an invitation for an email address that already exists in your application will result to an error. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(InvitationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Invitations.InvitationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(InvitationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Invitations.InvitationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Invitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Invitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Returns all non-revoked invitations for your application, sorted by creation date @@ -96,11 +98,11 @@ public async Task PostAsync(InvitationsPostRequestBody body, Action< /// 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) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -116,15 +118,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(InvitationsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Invitations.InvitationsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(InvitationsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Invitations.InvitationsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/invitations", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -133,16 +135,17 @@ public RequestInformation ToPostRequestInformation(InvitationsPostRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InvitationsRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Invitations.InvitationsRequestBuilder WithUrl(string rawUrl) { - return new InvitationsRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Invitations.InvitationsRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns all non-revoked invitations for your application, sorted by creation date /// - public class InvitationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class InvitationsRequestBuilderGetQueryParameters { /// Applies a limit to the number of results returned.Can be used for paginating the results together with `offset`. [QueryParameter("limit")] @@ -152,7 +155,7 @@ public class InvitationsRequestBuilderGetQueryParameters public double? Offset { get; set; } /// Filter invitations based on their status [QueryParameter("status")] - public GetStatusQueryParameterType? Status { get; set; } + public global::Clerk.Net.Client.Invitations.GetStatusQueryParameterType? Status { get; set; } } } } diff --git a/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokePostResponse.cs b/src/Clerk.Net/Client/Invitations/Item/Revoke/Invitation.cs similarity index 66% rename from src/Clerk.Net/Client/Invitations/Item/Revoke/RevokePostResponse.cs rename to src/Clerk.Net/Client/Invitations/Item/Revoke/Invitation.cs index 835298a..5f7eedb 100644 --- a/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokePostResponse.cs +++ b/src/Clerk.Net/Client/Invitations/Item/Revoke/Invitation.cs @@ -1,31 +1,34 @@ // -using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Invitations.Item.Revoke { - public class RevokePostResponse : Invitation, IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Invitations.Item.Revoke +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Invitation : global::Clerk.Net.Client.Models.Invitation, IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RevokePostResponse() : base() + public Invitation() : base() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new RevokePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::Clerk.Net.Client.Invitations.Item.Revoke.Invitation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RevokePostResponse(); + return new global::Clerk.Net.Client.Invitations.Item.Revoke.Invitation(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Invitations/Item/Revoke/Invitation_status.cs b/src/Clerk.Net/Client/Invitations/Item/Revoke/Invitation_status.cs new file mode 100644 index 0000000..3349d72 --- /dev/null +++ b/src/Clerk.Net/Client/Invitations/Item/Revoke/Invitation_status.cs @@ -0,0 +1,16 @@ +// +using System.Runtime.Serialization; +using System; +namespace Clerk.Net.Client.Invitations.Item.Revoke +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public enum Invitation_status + #pragma warning restore CS1591 + { + [EnumMember(Value = "revoked")] + #pragma warning disable CS1591 + Revoked, + #pragma warning restore CS1591 + } +} diff --git a/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokePostResponse_status.cs b/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokePostResponse_status.cs deleted file mode 100644 index 6b17d74..0000000 --- a/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokePostResponse_status.cs +++ /dev/null @@ -1,10 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace Clerk.Net.Client.Invitations.Item.Revoke { - public enum RevokePostResponse_status - { - [EnumMember(Value = "revoked")] - Revoked, - } -} diff --git a/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokeRequestBuilder.cs b/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokeRequestBuilder.cs index 9df696b..75f9dd0 100644 --- a/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokeRequestBuilder.cs +++ b/src/Clerk.Net/Client/Invitations/Item/Revoke/RevokeRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Invitations.Item.Revoke { +namespace Clerk.Net.Client.Invitations.Item.Revoke +{ /// /// Builds and executes requests for operations under \invitations\{invitation_id}\revoke /// - public class RevokeRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RevokeRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RevokeRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,27 +35,27 @@ public RevokeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Revokes the given invitation.Revoking an invitation will prevent the user from using the invitation link that was sent to them.However, it doesn't prevent the user from signing up if they follow the sign up flow.Only active (i.e. non-revoked) invitations can be revoked. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, RevokePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Invitations.Item.Revoke.Invitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Revokes the given invitation.Revoking an invitation will prevent the user from using the invitation link that was sent to them.However, it doesn't prevent the user from signing up if they follow the sign up flow.Only active (i.e. non-revoked) invitations can be revoked. @@ -77,11 +79,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RevokeRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Invitations.Item.Revoke.RevokeRequestBuilder WithUrl(string rawUrl) { - return new RevokeRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Invitations.Item.Revoke.RevokeRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Invitations/Item/WithInvitation_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Invitations/Item/WithInvitation_ItemRequestBuilder.cs index b401729..cfd9d69 100644 --- a/src/Clerk.Net/Client/Invitations/Item/WithInvitation_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Invitations/Item/WithInvitation_ItemRequestBuilder.cs @@ -1,24 +1,26 @@ // using Clerk.Net.Client.Invitations.Item.Revoke; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Clerk.Net.Client.Invitations.Item { +namespace Clerk.Net.Client.Invitations.Item +{ /// /// Builds and executes requests for operations under \invitations\{invitation_id} /// - public class WithInvitation_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithInvitation_ItemRequestBuilder : BaseRequestBuilder { /// The revoke property - public RevokeRequestBuilder Revoke + public global::Clerk.Net.Client.Invitations.Item.Revoke.RevokeRequestBuilder Revoke { - get => new RevokeRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Invitations.Item.Revoke.RevokeRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public WithInvitation_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/Clerk.Net/Client/Jwks/JwksRequestBuilder.cs b/src/Clerk.Net/Client/Jwks/JwksRequestBuilder.cs index dc5a270..8d9584c 100644 --- a/src/Clerk.Net/Client/Jwks/JwksRequestBuilder.cs +++ b/src/Clerk.Net/Client/Jwks/JwksRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Jwks { +namespace Clerk.Net.Client.Jwks +{ /// /// Builds and executes requests for operations under \jwks /// - public class JwksRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class JwksRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public JwksRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public JwksRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Jwks.JwksRequestBuilder WithUrl(string rawUrl) { - return new JwksRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Jwks.JwksRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_ItemRequestBuilder.cs index e32a5dc..43d4132 100644 --- a/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Jwt_templates.Item { +namespace Clerk.Net.Client.Jwt_templates.Item +{ /// /// Builds and executes requests for operations under \jwt_templates\{template_id} /// - public class WithTemplate_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithTemplate_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithTemplate_ItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,79 +35,79 @@ public WithTemplate_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// /// Delete a Template /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve the details of a given JWT template /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, JWTTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.JWTTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates an existing JWT template /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 402 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 402 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithTemplate_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithTemplate_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, JWTTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.JWTTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,11 +152,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(WithTemplate_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithTemplate_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -167,11 +169,11 @@ public RequestInformation ToPatchRequestInformation(WithTemplate_PatchRequestBod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithTemplate_ItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithTemplate_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody.cs b/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody.cs index 5291969..1959db3 100644 --- a/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Jwt_templates.Item { - public class WithTemplate_PatchRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Jwt_templates.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithTemplate_PatchRequestBody : IAdditionalDataHolder, 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; set; } @@ -14,10 +18,10 @@ public class WithTemplate_PatchRequestBody : IAdditionalDataHolder, IParsable /// JWT template claims in JSON format #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithTemplate_PatchRequestBody_claims? Claims { get; set; } + public global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_PatchRequestBody_claims? Claims { get; set; } #nullable restore #else - public WithTemplate_PatchRequestBody_claims Claims { get; set; } + public global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_PatchRequestBody_claims Claims { get; set; } #endif /// Whether a custom signing key/algorithm is also provided for this template public bool? CustomSigningKey { get; set; } @@ -48,7 +52,7 @@ public class WithTemplate_PatchRequestBody : IAdditionalDataHolder, IParsable public string SigningKey { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithTemplate_PatchRequestBody() { @@ -57,12 +61,12 @@ public WithTemplate_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithTemplate_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithTemplate_PatchRequestBody(); + return new global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -72,13 +76,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_clock_skew", n => { AllowedClockSkew = n.GetDoubleValue(); } }, - {"claims", n => { Claims = n.GetObjectValue(WithTemplate_PatchRequestBody_claims.CreateFromDiscriminatorValue); } }, - {"custom_signing_key", n => { CustomSigningKey = n.GetBoolValue(); } }, - {"lifetime", n => { Lifetime = n.GetDoubleValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"signing_algorithm", n => { SigningAlgorithm = n.GetStringValue(); } }, - {"signing_key", n => { SigningKey = n.GetStringValue(); } }, + { "allowed_clock_skew", n => { AllowedClockSkew = n.GetDoubleValue(); } }, + { "claims", n => { Claims = n.GetObjectValue(global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_PatchRequestBody_claims.CreateFromDiscriminatorValue); } }, + { "custom_signing_key", n => { CustomSigningKey = n.GetBoolValue(); } }, + { "lifetime", n => { Lifetime = n.GetDoubleValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "signing_algorithm", n => { SigningAlgorithm = n.GetStringValue(); } }, + { "signing_key", n => { SigningKey = n.GetStringValue(); } }, }; } /// @@ -89,7 +93,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDoubleValue("allowed_clock_skew", AllowedClockSkew); - writer.WriteObjectValue("claims", Claims); + writer.WriteObjectValue("claims", Claims); writer.WriteBoolValue("custom_signing_key", CustomSigningKey); writer.WriteDoubleValue("lifetime", Lifetime); writer.WriteStringValue("name", Name); diff --git a/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody_claims.cs b/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody_claims.cs index 966d8c2..6df6ca3 100644 --- a/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody_claims.cs +++ b/src/Clerk.Net/Client/Jwt_templates/Item/WithTemplate_PatchRequestBody_claims.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Jwt_templates.Item { +namespace Clerk.Net.Client.Jwt_templates.Item +{ /// /// JWT template claims in JSON format /// - public class WithTemplate_PatchRequestBody_claims : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithTemplate_PatchRequestBody_claims : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithTemplate_PatchRequestBody_claims() { @@ -22,12 +24,12 @@ public WithTemplate_PatchRequestBody_claims() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithTemplate_PatchRequestBody_claims CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_PatchRequestBody_claims CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithTemplate_PatchRequestBody_claims(); + return new global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_PatchRequestBody_claims(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody.cs b/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody.cs index f78e815..8e7385e 100644 --- a/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody.cs +++ b/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Jwt_templates { - public class Jwt_templatesPostRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Jwt_templates +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Jwt_templatesPostRequestBody : IAdditionalDataHolder, 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; set; } @@ -14,10 +18,10 @@ public class Jwt_templatesPostRequestBody : IAdditionalDataHolder, IParsable /// JWT template claims in JSON format #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Jwt_templatesPostRequestBody_claims? Claims { get; set; } + public global::Clerk.Net.Client.Jwt_templates.Jwt_templatesPostRequestBody_claims? Claims { get; set; } #nullable restore #else - public Jwt_templatesPostRequestBody_claims Claims { get; set; } + public global::Clerk.Net.Client.Jwt_templates.Jwt_templatesPostRequestBody_claims Claims { get; set; } #endif /// Whether a custom signing key/algorithm is also provided for this template public bool? CustomSigningKey { get; set; } @@ -48,7 +52,7 @@ public class Jwt_templatesPostRequestBody : IAdditionalDataHolder, IParsable public string SigningKey { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Jwt_templatesPostRequestBody() { @@ -57,12 +61,12 @@ public Jwt_templatesPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Jwt_templatesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Jwt_templates.Jwt_templatesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Jwt_templatesPostRequestBody(); + return new global::Clerk.Net.Client.Jwt_templates.Jwt_templatesPostRequestBody(); } /// /// The deserialization information for the current model @@ -72,13 +76,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_clock_skew", n => { AllowedClockSkew = n.GetDoubleValue(); } }, - {"claims", n => { Claims = n.GetObjectValue(Jwt_templatesPostRequestBody_claims.CreateFromDiscriminatorValue); } }, - {"custom_signing_key", n => { CustomSigningKey = n.GetBoolValue(); } }, - {"lifetime", n => { Lifetime = n.GetDoubleValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"signing_algorithm", n => { SigningAlgorithm = n.GetStringValue(); } }, - {"signing_key", n => { SigningKey = n.GetStringValue(); } }, + { "allowed_clock_skew", n => { AllowedClockSkew = n.GetDoubleValue(); } }, + { "claims", n => { Claims = n.GetObjectValue(global::Clerk.Net.Client.Jwt_templates.Jwt_templatesPostRequestBody_claims.CreateFromDiscriminatorValue); } }, + { "custom_signing_key", n => { CustomSigningKey = n.GetBoolValue(); } }, + { "lifetime", n => { Lifetime = n.GetDoubleValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "signing_algorithm", n => { SigningAlgorithm = n.GetStringValue(); } }, + { "signing_key", n => { SigningKey = n.GetStringValue(); } }, }; } /// @@ -89,7 +93,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDoubleValue("allowed_clock_skew", AllowedClockSkew); - writer.WriteObjectValue("claims", Claims); + writer.WriteObjectValue("claims", Claims); writer.WriteBoolValue("custom_signing_key", CustomSigningKey); writer.WriteDoubleValue("lifetime", Lifetime); writer.WriteStringValue("name", Name); diff --git a/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody_claims.cs b/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody_claims.cs index 1aff5db..f0e94cf 100644 --- a/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody_claims.cs +++ b/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesPostRequestBody_claims.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Jwt_templates { +namespace Clerk.Net.Client.Jwt_templates +{ /// /// JWT template claims in JSON format /// - public class Jwt_templatesPostRequestBody_claims : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Jwt_templatesPostRequestBody_claims : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Jwt_templatesPostRequestBody_claims() { @@ -22,12 +24,12 @@ public Jwt_templatesPostRequestBody_claims() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Jwt_templatesPostRequestBody_claims CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Jwt_templates.Jwt_templatesPostRequestBody_claims CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Jwt_templatesPostRequestBody_claims(); + return new global::Clerk.Net.Client.Jwt_templates.Jwt_templatesPostRequestBody_claims(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesRequestBuilder.cs b/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesRequestBuilder.cs index 89f0886..79e5a66 100644 --- a/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesRequestBuilder.cs +++ b/src/Clerk.Net/Client/Jwt_templates/Jwt_templatesRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Jwt_templates.Item; using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Jwt_templates { +namespace Clerk.Net.Client.Jwt_templates +{ /// /// Builds and executes requests for operations under \jwt_templates /// - public class Jwt_templatesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Jwt_templatesRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.jwt_templates.item collection /// JWT Template ID - /// A - public WithTemplate_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("template_id", position); - return new WithTemplate_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Jwt_templates.Item.WithTemplate_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Jwt_templatesRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,50 +48,50 @@ public Jwt_templatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// List all templates /// - /// A List<JWTTemplate> + /// A List<global::Clerk.Net.Client.Models.JWTTemplate> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, JWTTemplate.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Clerk.Net.Client.Models.JWTTemplate.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a new JWT template /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 402 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 402 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Jwt_templatesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Jwt_templates.Jwt_templatesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Jwt_templatesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Jwt_templates.Jwt_templatesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, JWTTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.JWTTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List all templates @@ -118,11 +120,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Jwt_templatesPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Jwt_templates.Jwt_templatesPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Jwt_templatesPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Jwt_templates.Jwt_templatesPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -135,11 +137,11 @@ public RequestInformation ToPostRequestInformation(Jwt_templatesPostRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Jwt_templatesRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Jwt_templates.Jwt_templatesRequestBuilder WithUrl(string rawUrl) { - return new Jwt_templatesRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Jwt_templates.Jwt_templatesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Models/ActorToken.cs b/src/Clerk.Net/Client/Models/ActorToken.cs index 6977231..62238d2 100644 --- a/src/Clerk.Net/Client/Models/ActorToken.cs +++ b/src/Clerk.Net/Client/Models/ActorToken.cs @@ -1,19 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class ActorToken : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ActorToken : IParsable + #pragma warning restore CS1591 { /// The actor property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ActorToken_actor? Actor { get; set; } + public global::Clerk.Net.Client.Models.ActorToken_actor? Actor { get; set; } #nullable restore #else - public ActorToken_actor Actor { get; set; } + public global::Clerk.Net.Client.Models.ActorToken_actor Actor { get; set; } #endif /// Unix timestamp of creation. public long? CreatedAt { get; set; } @@ -26,9 +30,9 @@ public class ActorToken : IParsable public string Id { get; set; } #endif /// The object property - public ActorToken_object? Object { get; set; } + public global::Clerk.Net.Client.Models.ActorToken_object? Object { get; set; } /// The status property - public ActorToken_status? Status { get; set; } + public global::Clerk.Net.Client.Models.ActorToken_status? Status { get; set; } /// The token property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -58,12 +62,12 @@ public class ActorToken : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActorToken CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.ActorToken CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActorToken(); + return new global::Clerk.Net.Client.Models.ActorToken(); } /// /// The deserialization information for the current model @@ -73,15 +77,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"actor", n => { Actor = n.GetObjectValue(ActorToken_actor.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"token", n => { Token = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user_id", n => { UserId = n.GetStringValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::Clerk.Net.Client.Models.ActorToken_actor.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "token", n => { Token = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user_id", n => { UserId = n.GetStringValue(); } }, }; } /// @@ -91,11 +95,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteLongValue("created_at", CreatedAt); writer.WriteStringValue("id", Id); - writer.WriteEnumValue("object", Object); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("status", Status); writer.WriteStringValue("token", Token); writer.WriteLongValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); diff --git a/src/Clerk.Net/Client/Models/ActorToken_actor.cs b/src/Clerk.Net/Client/Models/ActorToken_actor.cs index c3cc65a..e5bf58c 100644 --- a/src/Clerk.Net/Client/Models/ActorToken_actor.cs +++ b/src/Clerk.Net/Client/Models/ActorToken_actor.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class ActorToken_actor : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ActorToken_actor : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ActorToken_actor() { @@ -19,12 +23,12 @@ public ActorToken_actor() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ActorToken_actor CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.ActorToken_actor CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActorToken_actor(); + return new global::Clerk.Net.Client.Models.ActorToken_actor(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/ActorToken_object.cs b/src/Clerk.Net/Client/Models/ActorToken_object.cs index bc05fb5..236a5b0 100644 --- a/src/Clerk.Net/Client/Models/ActorToken_object.cs +++ b/src/Clerk.Net/Client/Models/ActorToken_object.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum ActorToken_object + #pragma warning restore CS1591 { [EnumMember(Value = "actor_token")] + #pragma warning disable CS1591 Actor_token, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/ActorToken_status.cs b/src/Clerk.Net/Client/Models/ActorToken_status.cs index fa001c5..88a05fe 100644 --- a/src/Clerk.Net/Client/Models/ActorToken_status.cs +++ b/src/Clerk.Net/Client/Models/ActorToken_status.cs @@ -1,14 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum ActorToken_status + #pragma warning restore CS1591 { [EnumMember(Value = "pending")] + #pragma warning disable CS1591 Pending, + #pragma warning restore CS1591 [EnumMember(Value = "accepted")] + #pragma warning disable CS1591 Accepted, + #pragma warning restore CS1591 [EnumMember(Value = "revoked")] + #pragma warning disable CS1591 Revoked, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Admin.cs b/src/Clerk.Net/Client/Models/Admin.cs index 7085cba..d60cf9c 100644 --- a/src/Clerk.Net/Client/Models/Admin.cs +++ b/src/Clerk.Net/Client/Models/Admin.cs @@ -1,29 +1,33 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Admin : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Admin : IParsable + #pragma warning restore CS1591 { /// The attempts property public int? Attempts { get; set; } /// The expire_at property public int? ExpireAt { get; set; } /// The status property - public Admin_status? Status { get; set; } + public global::Clerk.Net.Client.Models.Admin_status? Status { get; set; } /// The strategy property - public Admin_strategy? Strategy { get; set; } + public global::Clerk.Net.Client.Models.Admin_strategy? Strategy { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Admin CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Admin CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Admin(); + return new global::Clerk.Net.Client.Models.Admin(); } /// /// The deserialization information for the current model @@ -33,10 +37,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"attempts", n => { Attempts = n.GetIntValue(); } }, - {"expire_at", n => { ExpireAt = n.GetIntValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"strategy", n => { Strategy = n.GetEnumValue(); } }, + { "attempts", n => { Attempts = n.GetIntValue(); } }, + { "expire_at", n => { ExpireAt = n.GetIntValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "strategy", n => { Strategy = n.GetEnumValue(); } }, }; } /// @@ -48,8 +52,8 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("attempts", Attempts); writer.WriteIntValue("expire_at", ExpireAt); - writer.WriteEnumValue("status", Status); - writer.WriteEnumValue("strategy", Strategy); + writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("strategy", Strategy); } } } diff --git a/src/Clerk.Net/Client/Models/Admin_status.cs b/src/Clerk.Net/Client/Models/Admin_status.cs index adab973..7435751 100644 --- a/src/Clerk.Net/Client/Models/Admin_status.cs +++ b/src/Clerk.Net/Client/Models/Admin_status.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Admin_status + #pragma warning restore CS1591 { [EnumMember(Value = "verified")] + #pragma warning disable CS1591 Verified, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Admin_strategy.cs b/src/Clerk.Net/Client/Models/Admin_strategy.cs index bb31f38..5d145f0 100644 --- a/src/Clerk.Net/Client/Models/Admin_strategy.cs +++ b/src/Clerk.Net/Client/Models/Admin_strategy.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Admin_strategy + #pragma warning restore CS1591 { [EnumMember(Value = "admin")] + #pragma warning disable CS1591 Admin, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/AllowlistIdentifier.cs b/src/Clerk.Net/Client/Models/AllowlistIdentifier.cs index e3a37fd..0dd5256 100644 --- a/src/Clerk.Net/Client/Models/AllowlistIdentifier.cs +++ b/src/Clerk.Net/Client/Models/AllowlistIdentifier.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class AllowlistIdentifier : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AllowlistIdentifier : IParsable + #pragma warning restore CS1591 { /// Unix timestamp of creation public long? CreatedAt { get; set; } @@ -26,7 +30,7 @@ public class AllowlistIdentifier : IParsable public string Identifier { get; set; } #endif /// The identifier_type property - public AllowlistIdentifier_identifier_type? IdentifierType { get; set; } + public global::Clerk.Net.Client.Models.AllowlistIdentifier_identifier_type? IdentifierType { get; set; } /// The instance_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -44,18 +48,18 @@ public class AllowlistIdentifier : IParsable public string InvitationId { get; set; } #endif /// String representing the object's type. Objects of the same type share the same value. - public AllowlistIdentifier_object? Object { get; set; } + public global::Clerk.Net.Client.Models.AllowlistIdentifier_object? Object { get; set; } /// Unix timestamp of last update. public long? UpdatedAt { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AllowlistIdentifier CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.AllowlistIdentifier CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AllowlistIdentifier(); + return new global::Clerk.Net.Client.Models.AllowlistIdentifier(); } /// /// The deserialization information for the current model @@ -65,14 +69,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"identifier", n => { Identifier = n.GetStringValue(); } }, - {"identifier_type", n => { IdentifierType = n.GetEnumValue(); } }, - {"instance_id", n => { InstanceId = n.GetStringValue(); } }, - {"invitation_id", n => { InvitationId = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "identifier", n => { Identifier = n.GetStringValue(); } }, + { "identifier_type", n => { IdentifierType = n.GetEnumValue(); } }, + { "instance_id", n => { InstanceId = n.GetStringValue(); } }, + { "invitation_id", n => { InvitationId = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, }; } /// @@ -85,10 +89,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("created_at", CreatedAt); writer.WriteStringValue("id", Id); writer.WriteStringValue("identifier", Identifier); - writer.WriteEnumValue("identifier_type", IdentifierType); + writer.WriteEnumValue("identifier_type", IdentifierType); writer.WriteStringValue("instance_id", InstanceId); writer.WriteStringValue("invitation_id", InvitationId); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteLongValue("updated_at", UpdatedAt); } } diff --git a/src/Clerk.Net/Client/Models/AllowlistIdentifier_identifier_type.cs b/src/Clerk.Net/Client/Models/AllowlistIdentifier_identifier_type.cs index e7a83b9..a5d3576 100644 --- a/src/Clerk.Net/Client/Models/AllowlistIdentifier_identifier_type.cs +++ b/src/Clerk.Net/Client/Models/AllowlistIdentifier_identifier_type.cs @@ -1,14 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum AllowlistIdentifier_identifier_type + #pragma warning restore CS1591 { [EnumMember(Value = "email_address")] + #pragma warning disable CS1591 Email_address, + #pragma warning restore CS1591 [EnumMember(Value = "phone_number")] + #pragma warning disable CS1591 Phone_number, + #pragma warning restore CS1591 [EnumMember(Value = "web3_wallet")] + #pragma warning disable CS1591 Web3_wallet, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/AllowlistIdentifier_object.cs b/src/Clerk.Net/Client/Models/AllowlistIdentifier_object.cs index 5a678ec..dd60f45 100644 --- a/src/Clerk.Net/Client/Models/AllowlistIdentifier_object.cs +++ b/src/Clerk.Net/Client/Models/AllowlistIdentifier_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum AllowlistIdentifier_object { [EnumMember(Value = "allowlist_identifier")] + #pragma warning disable CS1591 Allowlist_identifier, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/BlocklistIdentifier.cs b/src/Clerk.Net/Client/Models/BlocklistIdentifier.cs index 2fe8be9..0bed5e8 100644 --- a/src/Clerk.Net/Client/Models/BlocklistIdentifier.cs +++ b/src/Clerk.Net/Client/Models/BlocklistIdentifier.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class BlocklistIdentifier : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class BlocklistIdentifier : IParsable + #pragma warning restore CS1591 { /// Unix timestamp of creation public long? CreatedAt { get; set; } @@ -26,7 +30,7 @@ public class BlocklistIdentifier : IParsable public string Identifier { get; set; } #endif /// The identifier_type property - public BlocklistIdentifier_identifier_type? IdentifierType { get; set; } + public global::Clerk.Net.Client.Models.BlocklistIdentifier_identifier_type? IdentifierType { get; set; } /// The instance_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -36,18 +40,18 @@ public class BlocklistIdentifier : IParsable public string InstanceId { get; set; } #endif /// String representing the object's type. Objects of the same type share the same value. - public BlocklistIdentifier_object? Object { get; set; } + public global::Clerk.Net.Client.Models.BlocklistIdentifier_object? Object { get; set; } /// Unix timestamp of last update. public long? UpdatedAt { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BlocklistIdentifier CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.BlocklistIdentifier CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BlocklistIdentifier(); + return new global::Clerk.Net.Client.Models.BlocklistIdentifier(); } /// /// The deserialization information for the current model @@ -57,13 +61,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"identifier", n => { Identifier = n.GetStringValue(); } }, - {"identifier_type", n => { IdentifierType = n.GetEnumValue(); } }, - {"instance_id", n => { InstanceId = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "identifier", n => { Identifier = n.GetStringValue(); } }, + { "identifier_type", n => { IdentifierType = n.GetEnumValue(); } }, + { "instance_id", n => { InstanceId = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, }; } /// @@ -76,9 +80,9 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("created_at", CreatedAt); writer.WriteStringValue("id", Id); writer.WriteStringValue("identifier", Identifier); - writer.WriteEnumValue("identifier_type", IdentifierType); + writer.WriteEnumValue("identifier_type", IdentifierType); writer.WriteStringValue("instance_id", InstanceId); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteLongValue("updated_at", UpdatedAt); } } diff --git a/src/Clerk.Net/Client/Models/BlocklistIdentifier_identifier_type.cs b/src/Clerk.Net/Client/Models/BlocklistIdentifier_identifier_type.cs index 5a0e653..ba250e6 100644 --- a/src/Clerk.Net/Client/Models/BlocklistIdentifier_identifier_type.cs +++ b/src/Clerk.Net/Client/Models/BlocklistIdentifier_identifier_type.cs @@ -1,14 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum BlocklistIdentifier_identifier_type + #pragma warning restore CS1591 { [EnumMember(Value = "email_address")] + #pragma warning disable CS1591 Email_address, + #pragma warning restore CS1591 [EnumMember(Value = "phone_number")] + #pragma warning disable CS1591 Phone_number, + #pragma warning restore CS1591 [EnumMember(Value = "web3_wallet")] + #pragma warning disable CS1591 Web3_wallet, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/BlocklistIdentifier_object.cs b/src/Clerk.Net/Client/Models/BlocklistIdentifier_object.cs index dc61018..9853d96 100644 --- a/src/Clerk.Net/Client/Models/BlocklistIdentifier_object.cs +++ b/src/Clerk.Net/Client/Models/BlocklistIdentifier_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum BlocklistIdentifier_object { [EnumMember(Value = "blocklist_identifier")] + #pragma warning disable CS1591 Blocklist_identifier, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/BlocklistIdentifiers.cs b/src/Clerk.Net/Client/Models/BlocklistIdentifiers.cs index 95268cb..03e99a8 100644 --- a/src/Clerk.Net/Client/Models/BlocklistIdentifiers.cs +++ b/src/Clerk.Net/Client/Models/BlocklistIdentifiers.cs @@ -1,31 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class BlocklistIdentifiers : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class BlocklistIdentifiers : IParsable + #pragma warning restore CS1591 { /// The data property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Data { get; set; } + public List? Data { get; set; } #nullable restore #else - public List Data { get; set; } + public List Data { get; set; } #endif /// Total number of blocklist identifiers public long? TotalCount { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static BlocklistIdentifiers CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.BlocklistIdentifiers CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new BlocklistIdentifiers(); + return new global::Clerk.Net.Client.Models.BlocklistIdentifiers(); } /// /// The deserialization information for the current model @@ -35,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"data", n => { Data = n.GetCollectionOfObjectValues(BlocklistIdentifier.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetLongValue(); } }, + { "data", n => { Data = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.BlocklistIdentifier.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetLongValue(); } }, }; } /// @@ -46,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("data", Data); + writer.WriteCollectionOfObjectValues("data", Data); writer.WriteLongValue("total_count", TotalCount); } } diff --git a/src/Clerk.Net/Client/Models/CNameTarget.cs b/src/Clerk.Net/Client/Models/CNameTarget.cs index a139832..1ee4a8a 100644 --- a/src/Clerk.Net/Client/Models/CNameTarget.cs +++ b/src/Clerk.Net/Client/Models/CNameTarget.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class CNameTarget : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class CNameTarget : IParsable + #pragma warning restore CS1591 { /// The host property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -28,12 +32,12 @@ public class CNameTarget : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CNameTarget CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.CNameTarget CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CNameTarget(); + return new global::Clerk.Net.Client.Models.CNameTarget(); } /// /// The deserialization information for the current model @@ -43,9 +47,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"host", n => { Host = n.GetStringValue(); } }, - {"required", n => { Required = n.GetBoolValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "host", n => { Host = n.GetStringValue(); } }, + { "required", n => { Required = n.GetBoolValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Models/ClerkError.cs b/src/Clerk.Net/Client/Models/ClerkError.cs index 6e5ddb7..70bb2e3 100644 --- a/src/Clerk.Net/Client/Models/ClerkError.cs +++ b/src/Clerk.Net/Client/Models/ClerkError.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class ClerkError : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClerkError : IAdditionalDataHolder, 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; set; } @@ -44,13 +48,13 @@ public class ClerkError : IAdditionalDataHolder, IParsable /// The meta property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ClerkError_meta? Meta { get; set; } + public global::Clerk.Net.Client.Models.ClerkError_meta? Meta { get; set; } #nullable restore #else - public ClerkError_meta Meta { get; set; } + public global::Clerk.Net.Client.Models.ClerkError_meta Meta { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ClerkError() { @@ -59,12 +63,12 @@ public ClerkError() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClerkError CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.ClerkError CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClerkError(); + return new global::Clerk.Net.Client.Models.ClerkError(); } /// /// The deserialization information for the current model @@ -74,11 +78,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"clerk_trace_id", n => { ClerkTraceId = n.GetStringValue(); } }, - {"code", n => { Code = n.GetStringValue(); } }, - {"long_message", n => { LongMessage = n.GetStringValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"meta", n => { Meta = n.GetObjectValue(ClerkError_meta.CreateFromDiscriminatorValue); } }, + { "clerk_trace_id", n => { ClerkTraceId = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "long_message", n => { LongMessage = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "meta", n => { Meta = n.GetObjectValue(global::Clerk.Net.Client.Models.ClerkError_meta.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,7 +96,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("code", Code); writer.WriteStringValue("long_message", LongMessage); writer.WriteStringValue("message", Message); - writer.WriteObjectValue("meta", Meta); + writer.WriteObjectValue("meta", Meta); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Clerk.Net/Client/Models/ClerkError_meta.cs b/src/Clerk.Net/Client/Models/ClerkError_meta.cs index 2749c0d..65642d3 100644 --- a/src/Clerk.Net/Client/Models/ClerkError_meta.cs +++ b/src/Clerk.Net/Client/Models/ClerkError_meta.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class ClerkError_meta : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClerkError_meta : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ClerkError_meta() { @@ -19,12 +23,12 @@ public ClerkError_meta() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClerkError_meta CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.ClerkError_meta CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClerkError_meta(); + return new global::Clerk.Net.Client.Models.ClerkError_meta(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/ClerkErrors.cs b/src/Clerk.Net/Client/Models/ClerkErrors.cs index 886d66e..ff6ad37 100644 --- a/src/Clerk.Net/Client/Models/ClerkErrors.cs +++ b/src/Clerk.Net/Client/Models/ClerkErrors.cs @@ -1,35 +1,39 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class ClerkErrors : ApiException, IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClerkErrors : ApiException, IAdditionalDataHolder, 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; set; } /// The errors property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Errors { get; set; } + public List? Errors { get; set; } #nullable restore #else - public List Errors { get; set; } + public List Errors { get; set; } #endif /// The primary error message. public override string Message { get => base.Message; } /// The meta property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ClerkErrors_meta? Meta { get; set; } + public global::Clerk.Net.Client.Models.ClerkErrors_meta? Meta { get; set; } #nullable restore #else - public ClerkErrors_meta Meta { get; set; } + public global::Clerk.Net.Client.Models.ClerkErrors_meta Meta { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ClerkErrors() { @@ -38,12 +42,12 @@ public ClerkErrors() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClerkErrors CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.ClerkErrors CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClerkErrors(); + return new global::Clerk.Net.Client.Models.ClerkErrors(); } /// /// The deserialization information for the current model @@ -53,8 +57,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"errors", n => { Errors = n.GetCollectionOfObjectValues(ClerkError.CreateFromDiscriminatorValue)?.ToList(); } }, - {"meta", n => { Meta = n.GetObjectValue(ClerkErrors_meta.CreateFromDiscriminatorValue); } }, + { "errors", n => { Errors = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.ClerkError.CreateFromDiscriminatorValue)?.AsList(); } }, + { "meta", n => { Meta = n.GetObjectValue(global::Clerk.Net.Client.Models.ClerkErrors_meta.CreateFromDiscriminatorValue); } }, }; } /// @@ -64,8 +68,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("errors", Errors); - writer.WriteObjectValue("meta", Meta); + writer.WriteCollectionOfObjectValues("errors", Errors); + writer.WriteObjectValue("meta", Meta); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Clerk.Net/Client/Models/ClerkErrors_meta.cs b/src/Clerk.Net/Client/Models/ClerkErrors_meta.cs index 30fbb36..9047842 100644 --- a/src/Clerk.Net/Client/Models/ClerkErrors_meta.cs +++ b/src/Clerk.Net/Client/Models/ClerkErrors_meta.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class ClerkErrors_meta : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClerkErrors_meta : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ClerkErrors_meta() { @@ -19,12 +23,12 @@ public ClerkErrors_meta() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClerkErrors_meta CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.ClerkErrors_meta CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClerkErrors_meta(); + return new global::Clerk.Net.Client.Models.ClerkErrors_meta(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/Client.cs b/src/Clerk.Net/Client/Models/Client.cs index 59c6fc4..d368f5e 100644 --- a/src/Clerk.Net/Client/Models/Client.cs +++ b/src/Clerk.Net/Client/Models/Client.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Client : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Client : IParsable + #pragma warning restore CS1591 { /// Unix timestamp of creation. public long? CreatedAt { get; set; } @@ -26,7 +30,7 @@ public class Client : IParsable public string LastActiveSessionId { get; set; } #endif /// String representing the object's type. Objects of the same type share the same value. - public Client_object? Object { get; set; } + public global::Clerk.Net.Client.Models.Client_object? Object { get; set; } /// The session_ids property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -38,10 +42,10 @@ public class Client : IParsable /// The sessions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Sessions { get; set; } + public List? Sessions { get; set; } #nullable restore #else - public List Sessions { get; set; } + public List Sessions { get; set; } #endif /// The sign_in_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -64,12 +68,12 @@ public class Client : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Client CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Client CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Client(); + return new global::Clerk.Net.Client.Models.Client(); } /// /// The deserialization information for the current model @@ -79,15 +83,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"last_active_session_id", n => { LastActiveSessionId = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"session_ids", n => { SessionIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"sessions", n => { Sessions = n.GetCollectionOfObjectValues(Session.CreateFromDiscriminatorValue)?.ToList(); } }, - {"sign_in_id", n => { SignInId = n.GetStringValue(); } }, - {"sign_up_id", n => { SignUpId = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "last_active_session_id", n => { LastActiveSessionId = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "session_ids", n => { SessionIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "sessions", n => { Sessions = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.Session.CreateFromDiscriminatorValue)?.AsList(); } }, + { "sign_in_id", n => { SignInId = n.GetStringValue(); } }, + { "sign_up_id", n => { SignUpId = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, }; } /// @@ -100,9 +104,9 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("created_at", CreatedAt); writer.WriteStringValue("id", Id); writer.WriteStringValue("last_active_session_id", LastActiveSessionId); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteCollectionOfPrimitiveValues("session_ids", SessionIds); - writer.WriteCollectionOfObjectValues("sessions", Sessions); + writer.WriteCollectionOfObjectValues("sessions", Sessions); writer.WriteStringValue("sign_in_id", SignInId); writer.WriteStringValue("sign_up_id", SignUpId); writer.WriteLongValue("updated_at", UpdatedAt); diff --git a/src/Clerk.Net/Client/Models/Client_object.cs b/src/Clerk.Net/Client/Models/Client_object.cs index 227c153..98b11e6 100644 --- a/src/Clerk.Net/Client/Models/Client_object.cs +++ b/src/Clerk.Net/Client/Models/Client_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum Client_object { [EnumMember(Value = "client")] + #pragma warning disable CS1591 Client, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/DeletedObject.cs b/src/Clerk.Net/Client/Models/DeletedObject.cs index 0d85652..9ef704e 100644 --- a/src/Clerk.Net/Client/Models/DeletedObject.cs +++ b/src/Clerk.Net/Client/Models/DeletedObject.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class DeletedObject : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class DeletedObject : IParsable + #pragma warning restore CS1591 { /// The deleted property public bool? Deleted { get; set; } @@ -36,12 +40,12 @@ public class DeletedObject : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DeletedObject CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.DeletedObject CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DeletedObject(); + return new global::Clerk.Net.Client.Models.DeletedObject(); } /// /// The deserialization information for the current model @@ -51,10 +55,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"deleted", n => { Deleted = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"object", n => { Object = n.GetStringValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, + { "deleted", n => { Deleted = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "object", n => { Object = n.GetStringValue(); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Models/Domain.cs b/src/Clerk.Net/Client/Models/Domain.cs index c6b0164..8d30091 100644 --- a/src/Clerk.Net/Client/Models/Domain.cs +++ b/src/Clerk.Net/Client/Models/Domain.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Domain : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Domain : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Null for satellite domains. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -20,10 +24,10 @@ public class Domain : IAdditionalDataHolder, IParsable /// The cname_targets property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CnameTargets { get; set; } + public List? CnameTargets { get; set; } #nullable restore #else - public List CnameTargets { get; set; } + public List CnameTargets { get; set; } #endif /// The development_origin property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -60,7 +64,7 @@ public class Domain : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// The object property - public Domain_object? Object { get; set; } + public global::Clerk.Net.Client.Models.Domain_object? Object { get; set; } /// The proxy_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -70,7 +74,7 @@ public class Domain : IAdditionalDataHolder, IParsable public string ProxyUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Domain() { @@ -79,12 +83,12 @@ public Domain() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Domain CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Domain CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Domain(); + return new global::Clerk.Net.Client.Models.Domain(); } /// /// The deserialization information for the current model @@ -94,15 +98,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"accounts_portal_url", n => { AccountsPortalUrl = n.GetStringValue(); } }, - {"cname_targets", n => { CnameTargets = n.GetCollectionOfObjectValues(CNameTarget.CreateFromDiscriminatorValue)?.ToList(); } }, - {"development_origin", n => { DevelopmentOrigin = n.GetStringValue(); } }, - {"frontend_api_url", n => { FrontendApiUrl = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"is_satellite", n => { IsSatellite = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"proxy_url", n => { ProxyUrl = n.GetStringValue(); } }, + { "accounts_portal_url", n => { AccountsPortalUrl = n.GetStringValue(); } }, + { "cname_targets", n => { CnameTargets = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.CNameTarget.CreateFromDiscriminatorValue)?.AsList(); } }, + { "development_origin", n => { DevelopmentOrigin = n.GetStringValue(); } }, + { "frontend_api_url", n => { FrontendApiUrl = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "is_satellite", n => { IsSatellite = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "proxy_url", n => { ProxyUrl = n.GetStringValue(); } }, }; } /// @@ -113,13 +117,13 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("accounts_portal_url", AccountsPortalUrl); - writer.WriteCollectionOfObjectValues("cname_targets", CnameTargets); + writer.WriteCollectionOfObjectValues("cname_targets", CnameTargets); writer.WriteStringValue("development_origin", DevelopmentOrigin); writer.WriteStringValue("frontend_api_url", FrontendApiUrl); writer.WriteStringValue("id", Id); writer.WriteBoolValue("is_satellite", IsSatellite); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteStringValue("proxy_url", ProxyUrl); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Clerk.Net/Client/Models/Domain_object.cs b/src/Clerk.Net/Client/Models/Domain_object.cs index b74ceb8..f977cff 100644 --- a/src/Clerk.Net/Client/Models/Domain_object.cs +++ b/src/Clerk.Net/Client/Models/Domain_object.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Domain_object + #pragma warning restore CS1591 { [EnumMember(Value = "domain")] + #pragma warning disable CS1591 Domain, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Domains.cs b/src/Clerk.Net/Client/Models/Domains.cs index 451afba..b9733b4 100644 --- a/src/Clerk.Net/Client/Models/Domains.cs +++ b/src/Clerk.Net/Client/Models/Domains.cs @@ -1,31 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Domains : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Domains : IParsable + #pragma warning restore CS1591 { /// The data property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Data { get; set; } + public List? Data { get; set; } #nullable restore #else - public List Data { get; set; } + public List Data { get; set; } #endif /// Total number of domains public long? TotalCount { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Domains CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Domains CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Domains(); + return new global::Clerk.Net.Client.Models.Domains(); } /// /// The deserialization information for the current model @@ -35,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"data", n => { Data = n.GetCollectionOfObjectValues(Domain.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetLongValue(); } }, + { "data", n => { Data = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.Domain.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetLongValue(); } }, }; } /// @@ -46,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("data", Data); + writer.WriteCollectionOfObjectValues("data", Data); writer.WriteLongValue("total_count", TotalCount); } } diff --git a/src/Clerk.Net/Client/Models/EmailAddress.cs b/src/Clerk.Net/Client/Models/EmailAddress.cs index 1f14d14..8638efb 100644 --- a/src/Clerk.Net/Client/Models/EmailAddress.cs +++ b/src/Clerk.Net/Client/Models/EmailAddress.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class EmailAddress : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class EmailAddress : IParsable + #pragma warning restore CS1591 { /// Unix timestamp of creation public long? CreatedAt { get; set; } @@ -28,13 +32,13 @@ public class EmailAddress : IParsable /// The linked_to property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? LinkedTo { get; set; } + public List? LinkedTo { get; set; } #nullable restore #else - public List LinkedTo { get; set; } + public List LinkedTo { get; set; } #endif /// String representing the object's type. Objects of the same type share the same value. - public EmailAddress_object? Object { get; set; } + public global::Clerk.Net.Client.Models.EmailAddress_object? Object { get; set; } /// The reserved property public bool? Reserved { get; set; } /// Unix timestamp of creation @@ -42,20 +46,20 @@ public class EmailAddress : IParsable /// The verification property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public EmailAddress_verification? Verification { get; set; } + public global::Clerk.Net.Client.Models.EmailAddress.EmailAddress_verification? Verification { get; set; } #nullable restore #else - public EmailAddress_verification Verification { get; set; } + public global::Clerk.Net.Client.Models.EmailAddress.EmailAddress_verification Verification { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EmailAddress CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.EmailAddress CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EmailAddress(); + return new global::Clerk.Net.Client.Models.EmailAddress(); } /// /// The deserialization information for the current model @@ -65,14 +69,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"email_address", n => { EmailAddressProp = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"linked_to", n => { LinkedTo = n.GetCollectionOfObjectValues(IdentificationLink.CreateFromDiscriminatorValue)?.ToList(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"reserved", n => { Reserved = n.GetBoolValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, - {"verification", n => { Verification = n.GetObjectValue(EmailAddress_verification.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "email_address", n => { EmailAddressProp = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "linked_to", n => { LinkedTo = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.IdentificationLink.CreateFromDiscriminatorValue)?.AsList(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "reserved", n => { Reserved = n.GetBoolValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "verification", n => { Verification = n.GetObjectValue(global::Clerk.Net.Client.Models.EmailAddress.EmailAddress_verification.CreateFromDiscriminatorValue); } }, }; } /// @@ -85,62 +89,63 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("created_at", CreatedAt); writer.WriteStringValue("email_address", EmailAddressProp); writer.WriteStringValue("id", Id); - writer.WriteCollectionOfObjectValues("linked_to", LinkedTo); - writer.WriteEnumValue("object", Object); + writer.WriteCollectionOfObjectValues("linked_to", LinkedTo); + writer.WriteEnumValue("object", Object); writer.WriteBoolValue("reserved", Reserved); writer.WriteLongValue("updated_at", UpdatedAt); - writer.WriteObjectValue("verification", Verification); + writer.WriteObjectValue("verification", Verification); } /// - /// Composed type wrapper for classes , , + /// Composed type wrapper for classes , , /// - public class EmailAddress_verification : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class EmailAddress_verification : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Clerk.Net.Client.Models.Admin? Admin { get; set; } + public global::Clerk.Net.Client.Models.Admin? Admin { get; set; } #nullable restore #else - public Clerk.Net.Client.Models.Admin Admin { get; set; } + public global::Clerk.Net.Client.Models.Admin Admin { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Clerk.Net.Client.Models.Oauth? Oauth { get; set; } + public global::Clerk.Net.Client.Models.Oauth? Oauth { get; set; } #nullable restore #else - public Clerk.Net.Client.Models.Oauth Oauth { get; set; } + public global::Clerk.Net.Client.Models.Oauth Oauth { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Clerk.Net.Client.Models.OTP? OTP { get; set; } + public global::Clerk.Net.Client.Models.OTP? OTP { get; set; } #nullable restore #else - public Clerk.Net.Client.Models.OTP OTP { get; set; } + public global::Clerk.Net.Client.Models.OTP OTP { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EmailAddress_verification CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.EmailAddress.EmailAddress_verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new EmailAddress_verification(); + var result = new global::Clerk.Net.Client.Models.EmailAddress.EmailAddress_verification(); if("Admin".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.Admin = new Clerk.Net.Client.Models.Admin(); + result.Admin = new global::Clerk.Net.Client.Models.Admin(); } else if("OTP".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.OTP = new Clerk.Net.Client.Models.OTP(); + result.OTP = new global::Clerk.Net.Client.Models.OTP(); } else if("Oauth".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.Oauth = new Clerk.Net.Client.Models.Oauth(); + result.Oauth = new global::Clerk.Net.Client.Models.Oauth(); } return result; } @@ -173,15 +178,15 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(Admin != null) { - writer.WriteObjectValue(null, Admin); + writer.WriteObjectValue(null, Admin); } else if(Oauth != null) { - writer.WriteObjectValue(null, Oauth); + writer.WriteObjectValue(null, Oauth); } else if(OTP != null) { - writer.WriteObjectValue(null, OTP); + writer.WriteObjectValue(null, OTP); } } } diff --git a/src/Clerk.Net/Client/Models/EmailAddress_object.cs b/src/Clerk.Net/Client/Models/EmailAddress_object.cs index 80d080e..141e1c4 100644 --- a/src/Clerk.Net/Client/Models/EmailAddress_object.cs +++ b/src/Clerk.Net/Client/Models/EmailAddress_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum EmailAddress_object { [EnumMember(Value = "email_address")] + #pragma warning disable CS1591 Email_address, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/IdentificationLink.cs b/src/Clerk.Net/Client/Models/IdentificationLink.cs index 5f08ede..6c63c15 100644 --- a/src/Clerk.Net/Client/Models/IdentificationLink.cs +++ b/src/Clerk.Net/Client/Models/IdentificationLink.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class IdentificationLink : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class IdentificationLink : IParsable + #pragma warning restore CS1591 { /// The id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -16,16 +20,16 @@ public class IdentificationLink : IParsable public string Id { get; set; } #endif /// The type property - public IdentificationLink_type? Type { get; set; } + public global::Clerk.Net.Client.Models.IdentificationLink_type? Type { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IdentificationLink CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.IdentificationLink CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IdentificationLink(); + return new global::Clerk.Net.Client.Models.IdentificationLink(); } /// /// The deserialization information for the current model @@ -35,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -47,7 +51,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("id", Id); - writer.WriteEnumValue("type", Type); + writer.WriteEnumValue("type", Type); } } } diff --git a/src/Clerk.Net/Client/Models/IdentificationLink_type.cs b/src/Clerk.Net/Client/Models/IdentificationLink_type.cs index af2c40d..9f07d95 100644 --- a/src/Clerk.Net/Client/Models/IdentificationLink_type.cs +++ b/src/Clerk.Net/Client/Models/IdentificationLink_type.cs @@ -1,14 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum IdentificationLink_type + #pragma warning restore CS1591 { [EnumMember(Value = "oauth_google")] + #pragma warning disable CS1591 Oauth_google, + #pragma warning restore CS1591 [EnumMember(Value = "oauth_mock")] + #pragma warning disable CS1591 Oauth_mock, + #pragma warning restore CS1591 [EnumMember(Value = "saml")] + #pragma warning disable CS1591 Saml, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/InstanceRestrictions.cs b/src/Clerk.Net/Client/Models/InstanceRestrictions.cs index 68f6389..49140fc 100644 --- a/src/Clerk.Net/Client/Models/InstanceRestrictions.cs +++ b/src/Clerk.Net/Client/Models/InstanceRestrictions.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class InstanceRestrictions : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class InstanceRestrictions : IAdditionalDataHolder, 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; set; } @@ -15,10 +19,12 @@ public class InstanceRestrictions : IAdditionalDataHolder, IParsable public bool? BlockEmailSubaddresses { get; set; } /// The blocklist property public bool? Blocklist { get; set; } + /// The ignore_dots_for_gmail_addresses property + public bool? IgnoreDotsForGmailAddresses { get; set; } /// String representing the object's type. Objects of the same type share the same value. - public InstanceRestrictions_object? Object { get; set; } + public global::Clerk.Net.Client.Models.InstanceRestrictions_object? Object { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InstanceRestrictions() { @@ -27,12 +33,12 @@ public InstanceRestrictions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InstanceRestrictions CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.InstanceRestrictions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InstanceRestrictions(); + return new global::Clerk.Net.Client.Models.InstanceRestrictions(); } /// /// The deserialization information for the current model @@ -42,10 +48,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowlist", n => { Allowlist = n.GetBoolValue(); } }, - {"block_email_subaddresses", n => { BlockEmailSubaddresses = n.GetBoolValue(); } }, - {"blocklist", n => { Blocklist = n.GetBoolValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, + { "allowlist", n => { Allowlist = n.GetBoolValue(); } }, + { "block_email_subaddresses", n => { BlockEmailSubaddresses = n.GetBoolValue(); } }, + { "blocklist", n => { Blocklist = n.GetBoolValue(); } }, + { "ignore_dots_for_gmail_addresses", n => { IgnoreDotsForGmailAddresses = n.GetBoolValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, }; } /// @@ -58,7 +65,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("allowlist", Allowlist); writer.WriteBoolValue("block_email_subaddresses", BlockEmailSubaddresses); writer.WriteBoolValue("blocklist", Blocklist); - writer.WriteEnumValue("object", Object); + writer.WriteBoolValue("ignore_dots_for_gmail_addresses", IgnoreDotsForGmailAddresses); + writer.WriteEnumValue("object", Object); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Clerk.Net/Client/Models/InstanceRestrictions_object.cs b/src/Clerk.Net/Client/Models/InstanceRestrictions_object.cs index f95803e..65fcc37 100644 --- a/src/Clerk.Net/Client/Models/InstanceRestrictions_object.cs +++ b/src/Clerk.Net/Client/Models/InstanceRestrictions_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum InstanceRestrictions_object { [EnumMember(Value = "instance_restrictions")] + #pragma warning disable CS1591 Instance_restrictions, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Invitation.cs b/src/Clerk.Net/Client/Models/Invitation.cs index 9656edb..d862e14 100644 --- a/src/Clerk.Net/Client/Models/Invitation.cs +++ b/src/Clerk.Net/Client/Models/Invitation.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Invitation : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Invitation : IParsable + #pragma warning restore CS1591 { /// Unix timestamp of creation. public long? CreatedAt { get; set; } @@ -26,19 +30,19 @@ public class Invitation : IParsable public string Id { get; set; } #endif /// The object property - public Invitation_object? Object { get; set; } + public global::Clerk.Net.Client.Models.Invitation_object? Object { get; set; } /// The public_metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Invitation_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.Invitation_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public Invitation_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.Invitation_public_metadata PublicMetadata { get; set; } #endif /// The revoked property public bool? Revoked { get; set; } /// The status property - public Invitation_status? Status { get; set; } + public global::Clerk.Net.Client.Models.Invitation_status? Status { get; set; } /// Unix timestamp of last update. public long? UpdatedAt { get; set; } /// The url property @@ -52,12 +56,12 @@ public class Invitation : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Invitation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Invitation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Invitation(); + return new global::Clerk.Net.Client.Models.Invitation(); } /// /// The deserialization information for the current model @@ -67,15 +71,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"email_address", n => { EmailAddress = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(Invitation_public_metadata.CreateFromDiscriminatorValue); } }, - {"revoked", n => { Revoked = n.GetBoolValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "email_address", n => { EmailAddress = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Models.Invitation_public_metadata.CreateFromDiscriminatorValue); } }, + { "revoked", n => { Revoked = n.GetBoolValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -88,10 +92,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("created_at", CreatedAt); writer.WriteStringValue("email_address", EmailAddress); writer.WriteStringValue("id", Id); - writer.WriteEnumValue("object", Object); - writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteEnumValue("object", Object); + writer.WriteObjectValue("public_metadata", PublicMetadata); writer.WriteBoolValue("revoked", Revoked); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteLongValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); } diff --git a/src/Clerk.Net/Client/Models/Invitation_object.cs b/src/Clerk.Net/Client/Models/Invitation_object.cs index 1ca46cf..6a4d90c 100644 --- a/src/Clerk.Net/Client/Models/Invitation_object.cs +++ b/src/Clerk.Net/Client/Models/Invitation_object.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Invitation_object + #pragma warning restore CS1591 { [EnumMember(Value = "invitation")] + #pragma warning disable CS1591 Invitation, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Invitation_public_metadata.cs b/src/Clerk.Net/Client/Models/Invitation_public_metadata.cs index 583515b..b859edc 100644 --- a/src/Clerk.Net/Client/Models/Invitation_public_metadata.cs +++ b/src/Clerk.Net/Client/Models/Invitation_public_metadata.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Invitation_public_metadata : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Invitation_public_metadata : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Invitation_public_metadata() { @@ -19,12 +23,12 @@ public Invitation_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Invitation_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Invitation_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Invitation_public_metadata(); + return new global::Clerk.Net.Client.Models.Invitation_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/Invitation_status.cs b/src/Clerk.Net/Client/Models/Invitation_status.cs index b7d17e4..bdf8081 100644 --- a/src/Clerk.Net/Client/Models/Invitation_status.cs +++ b/src/Clerk.Net/Client/Models/Invitation_status.cs @@ -1,14 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Invitation_status + #pragma warning restore CS1591 { [EnumMember(Value = "pending")] + #pragma warning disable CS1591 Pending, + #pragma warning restore CS1591 [EnumMember(Value = "accepted")] + #pragma warning disable CS1591 Accepted, + #pragma warning restore CS1591 [EnumMember(Value = "revoked")] + #pragma warning disable CS1591 Revoked, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/JWTTemplate.cs b/src/Clerk.Net/Client/Models/JWTTemplate.cs index 8e471df..e7a4509 100644 --- a/src/Clerk.Net/Client/Models/JWTTemplate.cs +++ b/src/Clerk.Net/Client/Models/JWTTemplate.cs @@ -1,21 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class JWTTemplate : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class JWTTemplate : IParsable + #pragma warning restore CS1591 { /// The allowed_clock_skew property public int? AllowedClockSkew { get; set; } /// The claims property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public JWTTemplate_claims? Claims { get; set; } + public global::Clerk.Net.Client.Models.JWTTemplate_claims? Claims { get; set; } #nullable restore #else - public JWTTemplate_claims Claims { get; set; } + public global::Clerk.Net.Client.Models.JWTTemplate_claims Claims { get; set; } #endif /// Unix timestamp of creation. public long? CreatedAt { get; set; } @@ -40,7 +44,7 @@ public class JWTTemplate : IParsable public string Name { get; set; } #endif /// The object property - public JWTTemplate_object? Object { get; set; } + public global::Clerk.Net.Client.Models.JWTTemplate_object? Object { get; set; } /// The signing_algorithm property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -54,12 +58,12 @@ public class JWTTemplate : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static JWTTemplate CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.JWTTemplate CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new JWTTemplate(); + return new global::Clerk.Net.Client.Models.JWTTemplate(); } /// /// The deserialization information for the current model @@ -69,16 +73,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"allowed_clock_skew", n => { AllowedClockSkew = n.GetIntValue(); } }, - {"claims", n => { Claims = n.GetObjectValue(JWTTemplate_claims.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"custom_signing_key", n => { CustomSigningKey = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"lifetime", n => { Lifetime = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"signing_algorithm", n => { SigningAlgorithm = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "allowed_clock_skew", n => { AllowedClockSkew = n.GetIntValue(); } }, + { "claims", n => { Claims = n.GetObjectValue(global::Clerk.Net.Client.Models.JWTTemplate_claims.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "custom_signing_key", n => { CustomSigningKey = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "lifetime", n => { Lifetime = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "signing_algorithm", n => { SigningAlgorithm = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, }; } /// @@ -89,13 +93,13 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("allowed_clock_skew", AllowedClockSkew); - writer.WriteObjectValue("claims", Claims); + writer.WriteObjectValue("claims", Claims); writer.WriteLongValue("created_at", CreatedAt); writer.WriteBoolValue("custom_signing_key", CustomSigningKey); writer.WriteStringValue("id", Id); writer.WriteIntValue("lifetime", Lifetime); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteStringValue("signing_algorithm", SigningAlgorithm); writer.WriteLongValue("updated_at", UpdatedAt); } diff --git a/src/Clerk.Net/Client/Models/JWTTemplate_claims.cs b/src/Clerk.Net/Client/Models/JWTTemplate_claims.cs index 6b0f8c5..7f04e71 100644 --- a/src/Clerk.Net/Client/Models/JWTTemplate_claims.cs +++ b/src/Clerk.Net/Client/Models/JWTTemplate_claims.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class JWTTemplate_claims : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class JWTTemplate_claims : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public JWTTemplate_claims() { @@ -19,12 +23,12 @@ public JWTTemplate_claims() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static JWTTemplate_claims CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.JWTTemplate_claims CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new JWTTemplate_claims(); + return new global::Clerk.Net.Client.Models.JWTTemplate_claims(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/JWTTemplate_object.cs b/src/Clerk.Net/Client/Models/JWTTemplate_object.cs index 402c23b..c6933f6 100644 --- a/src/Clerk.Net/Client/Models/JWTTemplate_object.cs +++ b/src/Clerk.Net/Client/Models/JWTTemplate_object.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum JWTTemplate_object + #pragma warning restore CS1591 { [EnumMember(Value = "jwt_template")] + #pragma warning disable CS1591 Jwt_template, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/OAuthApplication.cs b/src/Clerk.Net/Client/Models/OAuthApplication.cs index cce49c5..98091ab 100644 --- a/src/Clerk.Net/Client/Models/OAuthApplication.cs +++ b/src/Clerk.Net/Client/Models/OAuthApplication.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class OAuthApplication : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OAuthApplication : IAdditionalDataHolder, 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; set; } @@ -60,7 +64,7 @@ public class OAuthApplication : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// The object property - public OAuthApplication_object? Object { get; set; } + public global::Clerk.Net.Client.Models.OAuthApplication_object? Object { get; set; } /// The public property public bool? Public { get; set; } /// The scopes property @@ -90,7 +94,7 @@ public class OAuthApplication : IAdditionalDataHolder, IParsable public string UserInfoUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OAuthApplication() { @@ -99,12 +103,12 @@ public OAuthApplication() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OAuthApplication CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.OAuthApplication CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OAuthApplication(); + return new global::Clerk.Net.Client.Models.OAuthApplication(); } /// /// The deserialization information for the current model @@ -114,19 +118,19 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"authorize_url", n => { AuthorizeUrl = n.GetStringValue(); } }, - {"callback_url", n => { CallbackUrl = n.GetStringValue(); } }, - {"client_id", n => { ClientId = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"instance_id", n => { InstanceId = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"public", n => { Public = n.GetBoolValue(); } }, - {"scopes", n => { Scopes = n.GetStringValue(); } }, - {"token_fetch_url", n => { TokenFetchUrl = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, - {"user_info_url", n => { UserInfoUrl = n.GetStringValue(); } }, + { "authorize_url", n => { AuthorizeUrl = n.GetStringValue(); } }, + { "callback_url", n => { CallbackUrl = n.GetStringValue(); } }, + { "client_id", n => { ClientId = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "instance_id", n => { InstanceId = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "public", n => { Public = n.GetBoolValue(); } }, + { "scopes", n => { Scopes = n.GetStringValue(); } }, + { "token_fetch_url", n => { TokenFetchUrl = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "user_info_url", n => { UserInfoUrl = n.GetStringValue(); } }, }; } /// @@ -143,7 +147,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("id", Id); writer.WriteStringValue("instance_id", InstanceId); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteBoolValue("public", Public); writer.WriteStringValue("scopes", Scopes); writer.WriteStringValue("token_fetch_url", TokenFetchUrl); diff --git a/src/Clerk.Net/Client/Models/OAuthApplicationWithSecret.cs b/src/Clerk.Net/Client/Models/OAuthApplicationWithSecret.cs index 194b17a..bd6e3a1 100644 --- a/src/Clerk.Net/Client/Models/OAuthApplicationWithSecret.cs +++ b/src/Clerk.Net/Client/Models/OAuthApplicationWithSecret.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class OAuthApplicationWithSecret : OAuthApplication, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OAuthApplicationWithSecret : global::Clerk.Net.Client.Models.OAuthApplication, IParsable + #pragma warning restore CS1591 { /// Empty if public client. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -18,12 +22,12 @@ public class OAuthApplicationWithSecret : OAuthApplication, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new OAuthApplicationWithSecret CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::Clerk.Net.Client.Models.OAuthApplicationWithSecret CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OAuthApplicationWithSecret(); + return new global::Clerk.Net.Client.Models.OAuthApplicationWithSecret(); } /// /// The deserialization information for the current model @@ -33,7 +37,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"client_secret", n => { ClientSecret = n.GetStringValue(); } }, + { "client_secret", n => { ClientSecret = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Models/OAuthApplication_object.cs b/src/Clerk.Net/Client/Models/OAuthApplication_object.cs index f4d3d11..4b55c77 100644 --- a/src/Clerk.Net/Client/Models/OAuthApplication_object.cs +++ b/src/Clerk.Net/Client/Models/OAuthApplication_object.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum OAuthApplication_object + #pragma warning restore CS1591 { [EnumMember(Value = "oauth_application")] + #pragma warning disable CS1591 Oauth_application, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/OAuthApplications.cs b/src/Clerk.Net/Client/Models/OAuthApplications.cs index b50e7e7..8526116 100644 --- a/src/Clerk.Net/Client/Models/OAuthApplications.cs +++ b/src/Clerk.Net/Client/Models/OAuthApplications.cs @@ -1,31 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class OAuthApplications : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OAuthApplications : IParsable + #pragma warning restore CS1591 { /// The data property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Data { get; set; } + public List? Data { get; set; } #nullable restore #else - public List Data { get; set; } + public List Data { get; set; } #endif /// Total number of OAuth applications public long? TotalCount { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OAuthApplications CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.OAuthApplications CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OAuthApplications(); + return new global::Clerk.Net.Client.Models.OAuthApplications(); } /// /// The deserialization information for the current model @@ -35,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"data", n => { Data = n.GetCollectionOfObjectValues(OAuthApplication.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetLongValue(); } }, + { "data", n => { Data = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.OAuthApplication.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetLongValue(); } }, }; } /// @@ -46,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("data", Data); + writer.WriteCollectionOfObjectValues("data", Data); writer.WriteLongValue("total_count", TotalCount); } } diff --git a/src/Clerk.Net/Client/Models/OTP.cs b/src/Clerk.Net/Client/Models/OTP.cs index 44dc509..b90b32e 100644 --- a/src/Clerk.Net/Client/Models/OTP.cs +++ b/src/Clerk.Net/Client/Models/OTP.cs @@ -1,29 +1,33 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class OTP : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OTP : IParsable + #pragma warning restore CS1591 { /// The attempts property public int? Attempts { get; set; } /// The expire_at property public int? ExpireAt { get; set; } /// The status property - public OTP_status? Status { get; set; } + public global::Clerk.Net.Client.Models.OTP_status? Status { get; set; } /// The strategy property - public OTP_strategy? Strategy { get; set; } + public global::Clerk.Net.Client.Models.OTP_strategy? Strategy { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OTP CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.OTP CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OTP(); + return new global::Clerk.Net.Client.Models.OTP(); } /// /// The deserialization information for the current model @@ -33,10 +37,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"attempts", n => { Attempts = n.GetIntValue(); } }, - {"expire_at", n => { ExpireAt = n.GetIntValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"strategy", n => { Strategy = n.GetEnumValue(); } }, + { "attempts", n => { Attempts = n.GetIntValue(); } }, + { "expire_at", n => { ExpireAt = n.GetIntValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "strategy", n => { Strategy = n.GetEnumValue(); } }, }; } /// @@ -48,8 +52,8 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("attempts", Attempts); writer.WriteIntValue("expire_at", ExpireAt); - writer.WriteEnumValue("status", Status); - writer.WriteEnumValue("strategy", Strategy); + writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("strategy", Strategy); } } } diff --git a/src/Clerk.Net/Client/Models/OTP_status.cs b/src/Clerk.Net/Client/Models/OTP_status.cs index e7e97fc..f190ce1 100644 --- a/src/Clerk.Net/Client/Models/OTP_status.cs +++ b/src/Clerk.Net/Client/Models/OTP_status.cs @@ -1,16 +1,28 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum OTP_status + #pragma warning restore CS1591 { [EnumMember(Value = "unverified")] + #pragma warning disable CS1591 Unverified, + #pragma warning restore CS1591 [EnumMember(Value = "verified")] + #pragma warning disable CS1591 Verified, + #pragma warning restore CS1591 [EnumMember(Value = "failed")] + #pragma warning disable CS1591 Failed, + #pragma warning restore CS1591 [EnumMember(Value = "expired")] + #pragma warning disable CS1591 Expired, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/OTP_strategy.cs b/src/Clerk.Net/Client/Models/OTP_strategy.cs index 8afe632..ba96c57 100644 --- a/src/Clerk.Net/Client/Models/OTP_strategy.cs +++ b/src/Clerk.Net/Client/Models/OTP_strategy.cs @@ -1,14 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum OTP_strategy + #pragma warning restore CS1591 { [EnumMember(Value = "phone_code")] + #pragma warning disable CS1591 Phone_code, + #pragma warning restore CS1591 [EnumMember(Value = "email_code")] + #pragma warning disable CS1591 Email_code, + #pragma warning restore CS1591 [EnumMember(Value = "reset_password_email_code")] + #pragma warning disable CS1591 Reset_password_email_code, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Oauth.cs b/src/Clerk.Net/Client/Models/Oauth.cs index 86c104d..c18de42 100644 --- a/src/Clerk.Net/Client/Models/Oauth.cs +++ b/src/Clerk.Net/Client/Models/Oauth.cs @@ -1,21 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Oauth : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Oauth : IParsable + #pragma warning restore CS1591 { /// The attempts property public int? Attempts { get; set; } /// The error property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Oauth_error? Error { get; set; } + public global::Clerk.Net.Client.Models.Oauth_error? Error { get; set; } #nullable restore #else - public Oauth_error Error { get; set; } + public global::Clerk.Net.Client.Models.Oauth_error Error { get; set; } #endif /// The expire_at property public int? ExpireAt { get; set; } @@ -28,18 +32,18 @@ public class Oauth : IParsable public string ExternalVerificationRedirectUrl { get; set; } #endif /// The status property - public Oauth_status? Status { get; set; } + public global::Clerk.Net.Client.Models.Oauth_status? Status { get; set; } /// The strategy property - public Oauth_strategy? Strategy { get; set; } + public global::Clerk.Net.Client.Models.Oauth_strategy? Strategy { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Oauth CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Oauth CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Oauth(); + return new global::Clerk.Net.Client.Models.Oauth(); } /// /// The deserialization information for the current model @@ -49,12 +53,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"attempts", n => { Attempts = n.GetIntValue(); } }, - {"error", n => { Error = n.GetObjectValue(Oauth_error.CreateFromDiscriminatorValue); } }, - {"expire_at", n => { ExpireAt = n.GetIntValue(); } }, - {"external_verification_redirect_url", n => { ExternalVerificationRedirectUrl = n.GetStringValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"strategy", n => { Strategy = n.GetEnumValue(); } }, + { "attempts", n => { Attempts = n.GetIntValue(); } }, + { "error", n => { Error = n.GetObjectValue(global::Clerk.Net.Client.Models.Oauth_error.CreateFromDiscriminatorValue); } }, + { "expire_at", n => { ExpireAt = n.GetIntValue(); } }, + { "external_verification_redirect_url", n => { ExternalVerificationRedirectUrl = n.GetStringValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "strategy", n => { Strategy = n.GetEnumValue(); } }, }; } /// @@ -65,11 +69,11 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("attempts", Attempts); - writer.WriteObjectValue("error", Error); + writer.WriteObjectValue("error", Error); writer.WriteIntValue("expire_at", ExpireAt); writer.WriteStringValue("external_verification_redirect_url", ExternalVerificationRedirectUrl); - writer.WriteEnumValue("status", Status); - writer.WriteEnumValue("strategy", Strategy); + writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("strategy", Strategy); } } } diff --git a/src/Clerk.Net/Client/Models/Oauth_error.cs b/src/Clerk.Net/Client/Models/Oauth_error.cs index 117eb0c..a2b9197 100644 --- a/src/Clerk.Net/Client/Models/Oauth_error.cs +++ b/src/Clerk.Net/Client/Models/Oauth_error.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Oauth_error : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Oauth_error : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Oauth_error() { @@ -19,12 +23,12 @@ public Oauth_error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Oauth_error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Oauth_error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Oauth_error(); + return new global::Clerk.Net.Client.Models.Oauth_error(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/Oauth_status.cs b/src/Clerk.Net/Client/Models/Oauth_status.cs index 3d27268..1da2824 100644 --- a/src/Clerk.Net/Client/Models/Oauth_status.cs +++ b/src/Clerk.Net/Client/Models/Oauth_status.cs @@ -1,18 +1,32 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Oauth_status + #pragma warning restore CS1591 { [EnumMember(Value = "unverified")] + #pragma warning disable CS1591 Unverified, + #pragma warning restore CS1591 [EnumMember(Value = "verified")] + #pragma warning disable CS1591 Verified, + #pragma warning restore CS1591 [EnumMember(Value = "failed")] + #pragma warning disable CS1591 Failed, + #pragma warning restore CS1591 [EnumMember(Value = "expired")] + #pragma warning disable CS1591 Expired, + #pragma warning restore CS1591 [EnumMember(Value = "transferable")] + #pragma warning disable CS1591 Transferable, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Oauth_strategy.cs b/src/Clerk.Net/Client/Models/Oauth_strategy.cs index 7d06be1..68dd6bf 100644 --- a/src/Clerk.Net/Client/Models/Oauth_strategy.cs +++ b/src/Clerk.Net/Client/Models/Oauth_strategy.cs @@ -1,12 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Oauth_strategy + #pragma warning restore CS1591 { [EnumMember(Value = "oauth_google")] + #pragma warning disable CS1591 Oauth_google, + #pragma warning restore CS1591 [EnumMember(Value = "oauth_mock")] + #pragma warning disable CS1591 Oauth_mock, + #pragma warning restore CS1591 + [EnumMember(Value = "oauth_custom_mock")] + #pragma warning disable CS1591 + Oauth_custom_mock, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Organization.cs b/src/Clerk.Net/Client/Models/Organization.cs index cea37e2..713b819 100644 --- a/src/Clerk.Net/Client/Models/Organization.cs +++ b/src/Clerk.Net/Client/Models/Organization.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Organization : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Organization : IAdditionalDataHolder, 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; set; } @@ -42,22 +46,22 @@ public class Organization : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// The object property - public Organization_object? Object { get; set; } + public global::Clerk.Net.Client.Models.Organization_object? Object { get; set; } /// The private_metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Organization_private_metadata? PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Models.Organization_private_metadata? PrivateMetadata { get; set; } #nullable restore #else - public Organization_private_metadata PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Models.Organization_private_metadata PrivateMetadata { get; set; } #endif /// The public_metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Organization_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.Organization_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public Organization_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.Organization_public_metadata PublicMetadata { get; set; } #endif /// The slug property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -70,7 +74,7 @@ public class Organization : IAdditionalDataHolder, IParsable /// Unix timestamp of last update. public long? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Organization() { @@ -79,12 +83,12 @@ public Organization() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Organization CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Organization CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Organization(); + return new global::Clerk.Net.Client.Models.Organization(); } /// /// The deserialization information for the current model @@ -94,18 +98,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin_delete_enabled", n => { AdminDeleteEnabled = n.GetBoolValue(); } }, - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"created_by", n => { CreatedBy = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"max_allowed_memberships", n => { MaxAllowedMemberships = n.GetIntValue(); } }, - {"members_count", n => { MembersCount = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"private_metadata", n => { PrivateMetadata = n.GetObjectValue(Organization_private_metadata.CreateFromDiscriminatorValue); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(Organization_public_metadata.CreateFromDiscriminatorValue); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "admin_delete_enabled", n => { AdminDeleteEnabled = n.GetBoolValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "created_by", n => { CreatedBy = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "max_allowed_memberships", n => { MaxAllowedMemberships = n.GetIntValue(); } }, + { "members_count", n => { MembersCount = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "private_metadata", n => { PrivateMetadata = n.GetObjectValue(global::Clerk.Net.Client.Models.Organization_private_metadata.CreateFromDiscriminatorValue); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Models.Organization_public_metadata.CreateFromDiscriminatorValue); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, }; } /// @@ -122,9 +126,9 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteIntValue("max_allowed_memberships", MaxAllowedMemberships); writer.WriteIntValue("members_count", MembersCount); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("object", Object); - writer.WriteObjectValue("private_metadata", PrivateMetadata); - writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteEnumValue("object", Object); + writer.WriteObjectValue("private_metadata", PrivateMetadata); + writer.WriteObjectValue("public_metadata", PublicMetadata); writer.WriteStringValue("slug", Slug); writer.WriteLongValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Clerk.Net/Client/Models/OrganizationInvitation.cs b/src/Clerk.Net/Client/Models/OrganizationInvitation.cs index b9b7dc7..4777279 100644 --- a/src/Clerk.Net/Client/Models/OrganizationInvitation.cs +++ b/src/Clerk.Net/Client/Models/OrganizationInvitation.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ /// /// An organization invitation /// - public class OrganizationInvitation : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class OrganizationInvitation : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -31,7 +33,7 @@ public class OrganizationInvitation : IAdditionalDataHolder, IParsable public string Id { get; set; } #endif /// String representing the object's type. Objects of the same type share the same value. - public OrganizationInvitation_object? Object { get; set; } + public global::Clerk.Net.Client.Models.OrganizationInvitation_object? Object { get; set; } /// The organization_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -43,18 +45,18 @@ public class OrganizationInvitation : IAdditionalDataHolder, IParsable /// The private_metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationInvitation_private_metadata? PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Models.OrganizationInvitation_private_metadata? PrivateMetadata { get; set; } #nullable restore #else - public OrganizationInvitation_private_metadata PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Models.OrganizationInvitation_private_metadata PrivateMetadata { get; set; } #endif /// The public_metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationInvitation_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.OrganizationInvitation_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public OrganizationInvitation_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.OrganizationInvitation_public_metadata PublicMetadata { get; set; } #endif /// The role property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -75,7 +77,7 @@ public class OrganizationInvitation : IAdditionalDataHolder, IParsable /// Unix timestamp of last update. public long? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationInvitation() { @@ -84,12 +86,12 @@ public OrganizationInvitation() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationInvitation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.OrganizationInvitation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationInvitation(); + return new global::Clerk.Net.Client.Models.OrganizationInvitation(); } /// /// The deserialization information for the current model @@ -99,16 +101,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"email_address", n => { EmailAddress = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"organization_id", n => { OrganizationId = n.GetStringValue(); } }, - {"private_metadata", n => { PrivateMetadata = n.GetObjectValue(OrganizationInvitation_private_metadata.CreateFromDiscriminatorValue); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(OrganizationInvitation_public_metadata.CreateFromDiscriminatorValue); } }, - {"role", n => { Role = n.GetStringValue(); } }, - {"status", n => { Status = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "email_address", n => { EmailAddress = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "organization_id", n => { OrganizationId = n.GetStringValue(); } }, + { "private_metadata", n => { PrivateMetadata = n.GetObjectValue(global::Clerk.Net.Client.Models.OrganizationInvitation_private_metadata.CreateFromDiscriminatorValue); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Models.OrganizationInvitation_public_metadata.CreateFromDiscriminatorValue); } }, + { "role", n => { Role = n.GetStringValue(); } }, + { "status", n => { Status = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, }; } /// @@ -121,10 +123,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("created_at", CreatedAt); writer.WriteStringValue("email_address", EmailAddress); writer.WriteStringValue("id", Id); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteStringValue("organization_id", OrganizationId); - writer.WriteObjectValue("private_metadata", PrivateMetadata); - writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteObjectValue("private_metadata", PrivateMetadata); + writer.WriteObjectValue("public_metadata", PublicMetadata); writer.WriteStringValue("role", Role); writer.WriteStringValue("status", Status); writer.WriteLongValue("updated_at", UpdatedAt); diff --git a/src/Clerk.Net/Client/Models/OrganizationInvitation_object.cs b/src/Clerk.Net/Client/Models/OrganizationInvitation_object.cs index c8f0d18..e21ccf4 100644 --- a/src/Clerk.Net/Client/Models/OrganizationInvitation_object.cs +++ b/src/Clerk.Net/Client/Models/OrganizationInvitation_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum OrganizationInvitation_object { [EnumMember(Value = "organization_invitation")] + #pragma warning disable CS1591 Organization_invitation, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/OrganizationInvitation_private_metadata.cs b/src/Clerk.Net/Client/Models/OrganizationInvitation_private_metadata.cs index 6e396ed..89dbc7b 100644 --- a/src/Clerk.Net/Client/Models/OrganizationInvitation_private_metadata.cs +++ b/src/Clerk.Net/Client/Models/OrganizationInvitation_private_metadata.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class OrganizationInvitation_private_metadata : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OrganizationInvitation_private_metadata : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationInvitation_private_metadata() { @@ -19,12 +23,12 @@ public OrganizationInvitation_private_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationInvitation_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.OrganizationInvitation_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationInvitation_private_metadata(); + return new global::Clerk.Net.Client.Models.OrganizationInvitation_private_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/OrganizationInvitation_public_metadata.cs b/src/Clerk.Net/Client/Models/OrganizationInvitation_public_metadata.cs index 3a6fbf5..27353b3 100644 --- a/src/Clerk.Net/Client/Models/OrganizationInvitation_public_metadata.cs +++ b/src/Clerk.Net/Client/Models/OrganizationInvitation_public_metadata.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class OrganizationInvitation_public_metadata : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OrganizationInvitation_public_metadata : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationInvitation_public_metadata() { @@ -19,12 +23,12 @@ public OrganizationInvitation_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationInvitation_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.OrganizationInvitation_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationInvitation_public_metadata(); + return new global::Clerk.Net.Client.Models.OrganizationInvitation_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/OrganizationInvitations.cs b/src/Clerk.Net/Client/Models/OrganizationInvitations.cs index 238dd97..754f502 100644 --- a/src/Clerk.Net/Client/Models/OrganizationInvitations.cs +++ b/src/Clerk.Net/Client/Models/OrganizationInvitations.cs @@ -1,31 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class OrganizationInvitations : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OrganizationInvitations : IParsable + #pragma warning restore CS1591 { /// The data property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Data { get; set; } + public List? Data { get; set; } #nullable restore #else - public List Data { get; set; } + public List Data { get; set; } #endif /// Total number of organization invitations public long? TotalCount { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationInvitations CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.OrganizationInvitations CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationInvitations(); + return new global::Clerk.Net.Client.Models.OrganizationInvitations(); } /// /// The deserialization information for the current model @@ -35,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"data", n => { Data = n.GetCollectionOfObjectValues(OrganizationInvitation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetLongValue(); } }, + { "data", n => { Data = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.OrganizationInvitation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetLongValue(); } }, }; } /// @@ -46,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("data", Data); + writer.WriteCollectionOfObjectValues("data", Data); writer.WriteLongValue("total_count", TotalCount); } } diff --git a/src/Clerk.Net/Client/Models/OrganizationMembership.cs b/src/Clerk.Net/Client/Models/OrganizationMembership.cs index 8adfe3d..d5cffec 100644 --- a/src/Clerk.Net/Client/Models/OrganizationMembership.cs +++ b/src/Clerk.Net/Client/Models/OrganizationMembership.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ /// /// Hello world /// - public class OrganizationMembership : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class OrganizationMembership : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -23,14 +25,14 @@ public class OrganizationMembership : IAdditionalDataHolder, IParsable public string Id { get; set; } #endif /// String representing the object's type. Objects of the same type share the same value. - public OrganizationMembership_object? Object { get; set; } + public global::Clerk.Net.Client.Models.OrganizationMembership_object? Object { get; set; } /// The organization property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationMembership_organization? Organization { get; set; } + public global::Clerk.Net.Client.Models.OrganizationMembership_organization? Organization { get; set; } #nullable restore #else - public OrganizationMembership_organization Organization { get; set; } + public global::Clerk.Net.Client.Models.OrganizationMembership_organization Organization { get; set; } #endif /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -43,26 +45,26 @@ public class OrganizationMembership : IAdditionalDataHolder, IParsable /// Metadata saved on the organization membership, accessible only from the Backend API #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationMembership_private_metadata? PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Models.OrganizationMembership_private_metadata? PrivateMetadata { get; set; } #nullable restore #else - public OrganizationMembership_private_metadata PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Models.OrganizationMembership_private_metadata PrivateMetadata { get; set; } #endif /// Metadata saved on the organization membership, accessible from both Frontend and Backend APIs #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationMembership_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.OrganizationMembership_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public OrganizationMembership_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.OrganizationMembership_public_metadata PublicMetadata { get; set; } #endif /// The public_user_data property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationMembership_public_user_data? PublicUserData { get; set; } + public global::Clerk.Net.Client.Models.OrganizationMembership_public_user_data? PublicUserData { get; set; } #nullable restore #else - public OrganizationMembership_public_user_data PublicUserData { get; set; } + public global::Clerk.Net.Client.Models.OrganizationMembership_public_user_data PublicUserData { get; set; } #endif /// The role property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -75,7 +77,7 @@ public class OrganizationMembership : IAdditionalDataHolder, IParsable /// Unix timestamp of last update. public long? UpdatedAt { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationMembership() { @@ -84,12 +86,12 @@ public OrganizationMembership() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationMembership CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.OrganizationMembership CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationMembership(); + return new global::Clerk.Net.Client.Models.OrganizationMembership(); } /// /// The deserialization information for the current model @@ -99,16 +101,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"organization", n => { Organization = n.GetObjectValue(OrganizationMembership_organization.CreateFromDiscriminatorValue); } }, - {"permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"private_metadata", n => { PrivateMetadata = n.GetObjectValue(OrganizationMembership_private_metadata.CreateFromDiscriminatorValue); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(OrganizationMembership_public_metadata.CreateFromDiscriminatorValue); } }, - {"public_user_data", n => { PublicUserData = n.GetObjectValue(OrganizationMembership_public_user_data.CreateFromDiscriminatorValue); } }, - {"role", n => { Role = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "organization", n => { Organization = n.GetObjectValue(global::Clerk.Net.Client.Models.OrganizationMembership_organization.CreateFromDiscriminatorValue); } }, + { "permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "private_metadata", n => { PrivateMetadata = n.GetObjectValue(global::Clerk.Net.Client.Models.OrganizationMembership_private_metadata.CreateFromDiscriminatorValue); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Models.OrganizationMembership_public_metadata.CreateFromDiscriminatorValue); } }, + { "public_user_data", n => { PublicUserData = n.GetObjectValue(global::Clerk.Net.Client.Models.OrganizationMembership_public_user_data.CreateFromDiscriminatorValue); } }, + { "role", n => { Role = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, }; } /// @@ -120,12 +122,12 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteLongValue("created_at", CreatedAt); writer.WriteStringValue("id", Id); - writer.WriteEnumValue("object", Object); - writer.WriteObjectValue("organization", Organization); + writer.WriteEnumValue("object", Object); + writer.WriteObjectValue("organization", Organization); writer.WriteCollectionOfPrimitiveValues("permissions", Permissions); - writer.WriteObjectValue("private_metadata", PrivateMetadata); - writer.WriteObjectValue("public_metadata", PublicMetadata); - writer.WriteObjectValue("public_user_data", PublicUserData); + writer.WriteObjectValue("private_metadata", PrivateMetadata); + writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteObjectValue("public_user_data", PublicUserData); writer.WriteStringValue("role", Role); writer.WriteLongValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Clerk.Net/Client/Models/OrganizationMembership_object.cs b/src/Clerk.Net/Client/Models/OrganizationMembership_object.cs index 41f85f3..2453da8 100644 --- a/src/Clerk.Net/Client/Models/OrganizationMembership_object.cs +++ b/src/Clerk.Net/Client/Models/OrganizationMembership_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum OrganizationMembership_object { [EnumMember(Value = "organization_membership")] + #pragma warning disable CS1591 Organization_membership, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/OrganizationMembership_organization.cs b/src/Clerk.Net/Client/Models/OrganizationMembership_organization.cs index d2f1fc3..9ed17cf 100644 --- a/src/Clerk.Net/Client/Models/OrganizationMembership_organization.cs +++ b/src/Clerk.Net/Client/Models/OrganizationMembership_organization.cs @@ -1,21 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class OrganizationMembership_organization : Organization, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OrganizationMembership_organization : global::Clerk.Net.Client.Models.Organization, IParsable + #pragma warning restore CS1591 { /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new OrganizationMembership_organization CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::Clerk.Net.Client.Models.OrganizationMembership_organization CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationMembership_organization(); + return new global::Clerk.Net.Client.Models.OrganizationMembership_organization(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/OrganizationMembership_private_metadata.cs b/src/Clerk.Net/Client/Models/OrganizationMembership_private_metadata.cs index 2006585..2f35c99 100644 --- a/src/Clerk.Net/Client/Models/OrganizationMembership_private_metadata.cs +++ b/src/Clerk.Net/Client/Models/OrganizationMembership_private_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ /// /// Metadata saved on the organization membership, accessible only from the Backend API /// - public class OrganizationMembership_private_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class OrganizationMembership_private_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationMembership_private_metadata() { @@ -22,12 +24,12 @@ public OrganizationMembership_private_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationMembership_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.OrganizationMembership_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationMembership_private_metadata(); + return new global::Clerk.Net.Client.Models.OrganizationMembership_private_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/OrganizationMembership_public_metadata.cs b/src/Clerk.Net/Client/Models/OrganizationMembership_public_metadata.cs index 4109ff6..9948169 100644 --- a/src/Clerk.Net/Client/Models/OrganizationMembership_public_metadata.cs +++ b/src/Clerk.Net/Client/Models/OrganizationMembership_public_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ /// /// Metadata saved on the organization membership, accessible from both Frontend and Backend APIs /// - public class OrganizationMembership_public_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class OrganizationMembership_public_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationMembership_public_metadata() { @@ -22,12 +24,12 @@ public OrganizationMembership_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationMembership_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.OrganizationMembership_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationMembership_public_metadata(); + return new global::Clerk.Net.Client.Models.OrganizationMembership_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/OrganizationMembership_public_user_data.cs b/src/Clerk.Net/Client/Models/OrganizationMembership_public_user_data.cs index 4af0236..6a041a1 100644 --- a/src/Clerk.Net/Client/Models/OrganizationMembership_public_user_data.cs +++ b/src/Clerk.Net/Client/Models/OrganizationMembership_public_user_data.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class OrganizationMembership_public_user_data : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OrganizationMembership_public_user_data : IParsable + #pragma warning restore CS1591 { /// The first_name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -61,12 +65,12 @@ public class OrganizationMembership_public_user_data : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationMembership_public_user_data CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.OrganizationMembership_public_user_data CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationMembership_public_user_data(); + return new global::Clerk.Net.Client.Models.OrganizationMembership_public_user_data(); } /// /// The deserialization information for the current model @@ -76,13 +80,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"first_name", n => { FirstName = n.GetStringValue(); } }, - {"has_image", n => { HasImage = n.GetBoolValue(); } }, - {"identifier", n => { Identifier = n.GetStringValue(); } }, - {"image_url", n => { ImageUrl = n.GetStringValue(); } }, - {"last_name", n => { LastName = n.GetStringValue(); } }, - {"profile_image_url", n => { ProfileImageUrl = n.GetStringValue(); } }, - {"user_id", n => { UserId = n.GetStringValue(); } }, + { "first_name", n => { FirstName = n.GetStringValue(); } }, + { "has_image", n => { HasImage = n.GetBoolValue(); } }, + { "identifier", n => { Identifier = n.GetStringValue(); } }, + { "image_url", n => { ImageUrl = n.GetStringValue(); } }, + { "last_name", n => { LastName = n.GetStringValue(); } }, + { "profile_image_url", n => { ProfileImageUrl = n.GetStringValue(); } }, + { "user_id", n => { UserId = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Models/OrganizationMemberships.cs b/src/Clerk.Net/Client/Models/OrganizationMemberships.cs index 782304e..e9d3435 100644 --- a/src/Clerk.Net/Client/Models/OrganizationMemberships.cs +++ b/src/Clerk.Net/Client/Models/OrganizationMemberships.cs @@ -1,31 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class OrganizationMemberships : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OrganizationMemberships : IParsable + #pragma warning restore CS1591 { /// The data property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Data { get; set; } + public List? Data { get; set; } #nullable restore #else - public List Data { get; set; } + public List Data { get; set; } #endif /// Total number of organization memberships public long? TotalCount { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationMemberships CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.OrganizationMemberships CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationMemberships(); + return new global::Clerk.Net.Client.Models.OrganizationMemberships(); } /// /// The deserialization information for the current model @@ -35,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"data", n => { Data = n.GetCollectionOfObjectValues(OrganizationMembership.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetLongValue(); } }, + { "data", n => { Data = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.OrganizationMembership.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetLongValue(); } }, }; } /// @@ -46,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("data", Data); + writer.WriteCollectionOfObjectValues("data", Data); writer.WriteLongValue("total_count", TotalCount); } } diff --git a/src/Clerk.Net/Client/Models/OrganizationSettings.cs b/src/Clerk.Net/Client/Models/OrganizationSettings.cs index b35541c..bc824e0 100644 --- a/src/Clerk.Net/Client/Models/OrganizationSettings.cs +++ b/src/Clerk.Net/Client/Models/OrganizationSettings.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class OrganizationSettings : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OrganizationSettings : IParsable + #pragma warning restore CS1591 { /// The default for whether an admin can delete an organization with the Frontend API. public bool? AdminDeleteEnabled { get; set; } @@ -30,10 +34,10 @@ public class OrganizationSettings : IParsable /// The domains_enrollment_modes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? DomainsEnrollmentModes { get; set; } + public List? DomainsEnrollmentModes { get; set; } #nullable restore #else - public List DomainsEnrollmentModes { get; set; } + public List DomainsEnrollmentModes { get; set; } #endif /// The enabled property public bool? Enabled { get; set; } @@ -44,16 +48,16 @@ public class OrganizationSettings : IParsable /// The max_allowed_roles property public int? MaxAllowedRoles { get; set; } /// String representing the object's type. Objects of the same type share the same value. - public OrganizationSettings_object? Object { get; set; } + public global::Clerk.Net.Client.Models.OrganizationSettings_object? Object { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationSettings CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.OrganizationSettings CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationSettings(); + return new global::Clerk.Net.Client.Models.OrganizationSettings(); } /// /// The deserialization information for the current model @@ -63,16 +67,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin_delete_enabled", n => { AdminDeleteEnabled = n.GetBoolValue(); } }, - {"creator_role", n => { CreatorRole = n.GetStringValue(); } }, - {"domains_default_role", n => { DomainsDefaultRole = n.GetStringValue(); } }, - {"domains_enabled", n => { DomainsEnabled = n.GetBoolValue(); } }, - {"domains_enrollment_modes", n => { DomainsEnrollmentModes = n.GetCollectionOfEnumValues()?.ToList(); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"max_allowed_memberships", n => { MaxAllowedMemberships = n.GetIntValue(); } }, - {"max_allowed_permissions", n => { MaxAllowedPermissions = n.GetIntValue(); } }, - {"max_allowed_roles", n => { MaxAllowedRoles = n.GetIntValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, + { "admin_delete_enabled", n => { AdminDeleteEnabled = n.GetBoolValue(); } }, + { "creator_role", n => { CreatorRole = n.GetStringValue(); } }, + { "domains_default_role", n => { DomainsDefaultRole = n.GetStringValue(); } }, + { "domains_enabled", n => { DomainsEnabled = n.GetBoolValue(); } }, + { "domains_enrollment_modes", n => { DomainsEnrollmentModes = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "max_allowed_memberships", n => { MaxAllowedMemberships = n.GetIntValue(); } }, + { "max_allowed_permissions", n => { MaxAllowedPermissions = n.GetIntValue(); } }, + { "max_allowed_roles", n => { MaxAllowedRoles = n.GetIntValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, }; } /// @@ -86,12 +90,12 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("creator_role", CreatorRole); writer.WriteStringValue("domains_default_role", DomainsDefaultRole); writer.WriteBoolValue("domains_enabled", DomainsEnabled); - writer.WriteCollectionOfEnumValues("domains_enrollment_modes", DomainsEnrollmentModes); + writer.WriteCollectionOfEnumValues("domains_enrollment_modes", DomainsEnrollmentModes); writer.WriteBoolValue("enabled", Enabled); writer.WriteIntValue("max_allowed_memberships", MaxAllowedMemberships); writer.WriteIntValue("max_allowed_permissions", MaxAllowedPermissions); writer.WriteIntValue("max_allowed_roles", MaxAllowedRoles); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); } } } diff --git a/src/Clerk.Net/Client/Models/OrganizationSettings_domains_enrollment_modes.cs b/src/Clerk.Net/Client/Models/OrganizationSettings_domains_enrollment_modes.cs index 561f720..2e505f4 100644 --- a/src/Clerk.Net/Client/Models/OrganizationSettings_domains_enrollment_modes.cs +++ b/src/Clerk.Net/Client/Models/OrganizationSettings_domains_enrollment_modes.cs @@ -1,14 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum OrganizationSettings_domains_enrollment_modes + #pragma warning restore CS1591 { [EnumMember(Value = "manual_invitation")] + #pragma warning disable CS1591 Manual_invitation, + #pragma warning restore CS1591 [EnumMember(Value = "automatic_invitation")] + #pragma warning disable CS1591 Automatic_invitation, + #pragma warning restore CS1591 [EnumMember(Value = "automatic_suggestion")] + #pragma warning disable CS1591 Automatic_suggestion, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/OrganizationSettings_object.cs b/src/Clerk.Net/Client/Models/OrganizationSettings_object.cs index 006b830..fd35bcc 100644 --- a/src/Clerk.Net/Client/Models/OrganizationSettings_object.cs +++ b/src/Clerk.Net/Client/Models/OrganizationSettings_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum OrganizationSettings_object { [EnumMember(Value = "organization_settings")] + #pragma warning disable CS1591 Organization_settings, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/OrganizationWithLogo.cs b/src/Clerk.Net/Client/Models/OrganizationWithLogo.cs index a3ce27f..ae473d5 100644 --- a/src/Clerk.Net/Client/Models/OrganizationWithLogo.cs +++ b/src/Clerk.Net/Client/Models/OrganizationWithLogo.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class OrganizationWithLogo : Organization, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OrganizationWithLogo : global::Clerk.Net.Client.Models.Organization, IParsable + #pragma warning restore CS1591 { /// The has_image property public bool? HasImage { get; set; } @@ -29,12 +33,12 @@ public class OrganizationWithLogo : Organization, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new OrganizationWithLogo CreateFromDiscriminatorValue(IParseNode parseNode) + public static new global::Clerk.Net.Client.Models.OrganizationWithLogo CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationWithLogo(); + return new global::Clerk.Net.Client.Models.OrganizationWithLogo(); } /// /// The deserialization information for the current model @@ -44,9 +48,9 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"has_image", n => { HasImage = n.GetBoolValue(); } }, - {"image_url", n => { ImageUrl = n.GetStringValue(); } }, - {"logo_url", n => { LogoUrl = n.GetStringValue(); } }, + { "has_image", n => { HasImage = n.GetBoolValue(); } }, + { "image_url", n => { ImageUrl = n.GetStringValue(); } }, + { "logo_url", n => { LogoUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Models/Organization_object.cs b/src/Clerk.Net/Client/Models/Organization_object.cs index e3340d0..f69e063 100644 --- a/src/Clerk.Net/Client/Models/Organization_object.cs +++ b/src/Clerk.Net/Client/Models/Organization_object.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Organization_object + #pragma warning restore CS1591 { [EnumMember(Value = "organization")] + #pragma warning disable CS1591 Organization, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Organization_private_metadata.cs b/src/Clerk.Net/Client/Models/Organization_private_metadata.cs index 43193ce..c348862 100644 --- a/src/Clerk.Net/Client/Models/Organization_private_metadata.cs +++ b/src/Clerk.Net/Client/Models/Organization_private_metadata.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Organization_private_metadata : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Organization_private_metadata : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Organization_private_metadata() { @@ -19,12 +23,12 @@ public Organization_private_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Organization_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Organization_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Organization_private_metadata(); + return new global::Clerk.Net.Client.Models.Organization_private_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/Organization_public_metadata.cs b/src/Clerk.Net/Client/Models/Organization_public_metadata.cs index 5a7db7e..6071c18 100644 --- a/src/Clerk.Net/Client/Models/Organization_public_metadata.cs +++ b/src/Clerk.Net/Client/Models/Organization_public_metadata.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Organization_public_metadata : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Organization_public_metadata : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Organization_public_metadata() { @@ -19,12 +23,12 @@ public Organization_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Organization_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Organization_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Organization_public_metadata(); + return new global::Clerk.Net.Client.Models.Organization_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/Organizations.cs b/src/Clerk.Net/Client/Models/Organizations.cs index da07af5..0ff1889 100644 --- a/src/Clerk.Net/Client/Models/Organizations.cs +++ b/src/Clerk.Net/Client/Models/Organizations.cs @@ -1,31 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Organizations : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Organizations : IParsable + #pragma warning restore CS1591 { /// The data property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Data { get; set; } + public List? Data { get; set; } #nullable restore #else - public List Data { get; set; } + public List Data { get; set; } #endif /// Total number of organizations public long? TotalCount { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Organizations CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Organizations CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Organizations(); + return new global::Clerk.Net.Client.Models.Organizations(); } /// /// The deserialization information for the current model @@ -35,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"data", n => { Data = n.GetCollectionOfObjectValues(Organization.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetLongValue(); } }, + { "data", n => { Data = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.Organization.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetLongValue(); } }, }; } /// @@ -46,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("data", Data); + writer.WriteCollectionOfObjectValues("data", Data); writer.WriteLongValue("total_count", TotalCount); } } diff --git a/src/Clerk.Net/Client/Models/PhoneNumber.cs b/src/Clerk.Net/Client/Models/PhoneNumber.cs index 2fbf463..eea57ff 100644 --- a/src/Clerk.Net/Client/Models/PhoneNumber.cs +++ b/src/Clerk.Net/Client/Models/PhoneNumber.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class PhoneNumber : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PhoneNumber : IParsable + #pragma warning restore CS1591 { /// The backup_codes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -30,13 +34,13 @@ public class PhoneNumber : IParsable /// The linked_to property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? LinkedTo { get; set; } + public List? LinkedTo { get; set; } #nullable restore #else - public List LinkedTo { get; set; } + public List LinkedTo { get; set; } #endif /// String representing the object's type. Objects of the same type share the same value. - public PhoneNumber_object? Object { get; set; } + public global::Clerk.Net.Client.Models.PhoneNumber_object? Object { get; set; } /// The phone_number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -54,20 +58,20 @@ public class PhoneNumber : IParsable /// The verification property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PhoneNumber_verification? Verification { get; set; } + public global::Clerk.Net.Client.Models.PhoneNumber.PhoneNumber_verification? Verification { get; set; } #nullable restore #else - public PhoneNumber_verification Verification { get; set; } + public global::Clerk.Net.Client.Models.PhoneNumber.PhoneNumber_verification Verification { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PhoneNumber CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.PhoneNumber CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PhoneNumber(); + return new global::Clerk.Net.Client.Models.PhoneNumber(); } /// /// The deserialization information for the current model @@ -77,17 +81,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"backup_codes", n => { BackupCodes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"default_second_factor", n => { DefaultSecondFactor = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"linked_to", n => { LinkedTo = n.GetCollectionOfObjectValues(IdentificationLink.CreateFromDiscriminatorValue)?.ToList(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"phone_number", n => { PhoneNumberProp = n.GetStringValue(); } }, - {"reserved", n => { Reserved = n.GetBoolValue(); } }, - {"reserved_for_second_factor", n => { ReservedForSecondFactor = n.GetBoolValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, - {"verification", n => { Verification = n.GetObjectValue(PhoneNumber_verification.CreateFromDiscriminatorValue); } }, + { "backup_codes", n => { BackupCodes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "default_second_factor", n => { DefaultSecondFactor = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "linked_to", n => { LinkedTo = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.IdentificationLink.CreateFromDiscriminatorValue)?.AsList(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "phone_number", n => { PhoneNumberProp = n.GetStringValue(); } }, + { "reserved", n => { Reserved = n.GetBoolValue(); } }, + { "reserved_for_second_factor", n => { ReservedForSecondFactor = n.GetBoolValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "verification", n => { Verification = n.GetObjectValue(global::Clerk.Net.Client.Models.PhoneNumber.PhoneNumber_verification.CreateFromDiscriminatorValue); } }, }; } /// @@ -101,52 +105,53 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("created_at", CreatedAt); writer.WriteBoolValue("default_second_factor", DefaultSecondFactor); writer.WriteStringValue("id", Id); - writer.WriteCollectionOfObjectValues("linked_to", LinkedTo); - writer.WriteEnumValue("object", Object); + writer.WriteCollectionOfObjectValues("linked_to", LinkedTo); + writer.WriteEnumValue("object", Object); writer.WriteStringValue("phone_number", PhoneNumberProp); writer.WriteBoolValue("reserved", Reserved); writer.WriteBoolValue("reserved_for_second_factor", ReservedForSecondFactor); writer.WriteLongValue("updated_at", UpdatedAt); - writer.WriteObjectValue("verification", Verification); + writer.WriteObjectValue("verification", Verification); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class PhoneNumber_verification : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PhoneNumber_verification : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Clerk.Net.Client.Models.Admin? Admin { get; set; } + public global::Clerk.Net.Client.Models.Admin? Admin { get; set; } #nullable restore #else - public Clerk.Net.Client.Models.Admin Admin { get; set; } + public global::Clerk.Net.Client.Models.Admin Admin { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Clerk.Net.Client.Models.OTP? OTP { get; set; } + public global::Clerk.Net.Client.Models.OTP? OTP { get; set; } #nullable restore #else - public Clerk.Net.Client.Models.OTP OTP { get; set; } + public global::Clerk.Net.Client.Models.OTP OTP { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PhoneNumber_verification CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.PhoneNumber.PhoneNumber_verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new PhoneNumber_verification(); + var result = new global::Clerk.Net.Client.Models.PhoneNumber.PhoneNumber_verification(); if("Admin".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.Admin = new Clerk.Net.Client.Models.Admin(); + result.Admin = new global::Clerk.Net.Client.Models.Admin(); } else if("OTP".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.OTP = new Clerk.Net.Client.Models.OTP(); + result.OTP = new global::Clerk.Net.Client.Models.OTP(); } return result; } @@ -175,11 +180,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(Admin != null) { - writer.WriteObjectValue(null, Admin); + writer.WriteObjectValue(null, Admin); } else if(OTP != null) { - writer.WriteObjectValue(null, OTP); + writer.WriteObjectValue(null, OTP); } } } diff --git a/src/Clerk.Net/Client/Models/PhoneNumber_object.cs b/src/Clerk.Net/Client/Models/PhoneNumber_object.cs index 26cc5e5..d0f7b47 100644 --- a/src/Clerk.Net/Client/Models/PhoneNumber_object.cs +++ b/src/Clerk.Net/Client/Models/PhoneNumber_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum PhoneNumber_object { [EnumMember(Value = "phone_number")] + #pragma warning disable CS1591 Phone_number, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/ProxyCheck.cs b/src/Clerk.Net/Client/Models/ProxyCheck.cs index b418deb..e500f87 100644 --- a/src/Clerk.Net/Client/Models/ProxyCheck.cs +++ b/src/Clerk.Net/Client/Models/ProxyCheck.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class ProxyCheck : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ProxyCheck : IParsable + #pragma warning restore CS1591 { /// The created_at property public int? CreatedAt { get; set; } @@ -28,7 +32,7 @@ public class ProxyCheck : IParsable /// The last_run_at property public int? LastRunAt { get; set; } /// The object property - public ProxyCheck_object? Object { get; set; } + public global::Clerk.Net.Client.Models.ProxyCheck_object? Object { get; set; } /// The proxy_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -44,12 +48,12 @@ public class ProxyCheck : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProxyCheck CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.ProxyCheck CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProxyCheck(); + return new global::Clerk.Net.Client.Models.ProxyCheck(); } /// /// The deserialization information for the current model @@ -59,14 +63,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetIntValue(); } }, - {"domain_id", n => { DomainId = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"last_run_at", n => { LastRunAt = n.GetIntValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"proxy_url", n => { ProxyUrl = n.GetStringValue(); } }, - {"successful", n => { Successful = n.GetBoolValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetIntValue(); } }, + { "created_at", n => { CreatedAt = n.GetIntValue(); } }, + { "domain_id", n => { DomainId = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "last_run_at", n => { LastRunAt = n.GetIntValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "proxy_url", n => { ProxyUrl = n.GetStringValue(); } }, + { "successful", n => { Successful = n.GetBoolValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetIntValue(); } }, }; } /// @@ -80,7 +84,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("domain_id", DomainId); writer.WriteStringValue("id", Id); writer.WriteIntValue("last_run_at", LastRunAt); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteStringValue("proxy_url", ProxyUrl); writer.WriteBoolValue("successful", Successful); writer.WriteIntValue("updated_at", UpdatedAt); diff --git a/src/Clerk.Net/Client/Models/ProxyCheck_object.cs b/src/Clerk.Net/Client/Models/ProxyCheck_object.cs index 3a1fa4d..7666315 100644 --- a/src/Clerk.Net/Client/Models/ProxyCheck_object.cs +++ b/src/Clerk.Net/Client/Models/ProxyCheck_object.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum ProxyCheck_object + #pragma warning restore CS1591 { [EnumMember(Value = "proxy_check")] + #pragma warning disable CS1591 Proxy_check, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/RedirectURL.cs b/src/Clerk.Net/Client/Models/RedirectURL.cs index f132d68..8d69462 100644 --- a/src/Clerk.Net/Client/Models/RedirectURL.cs +++ b/src/Clerk.Net/Client/Models/RedirectURL.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class RedirectURL : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RedirectURL : IParsable + #pragma warning restore CS1591 { /// Unix timestamp of creation. public long? CreatedAt { get; set; } @@ -18,7 +22,7 @@ public class RedirectURL : IParsable public string Id { get; set; } #endif /// The object property - public RedirectURL_object? Object { get; set; } + public global::Clerk.Net.Client.Models.RedirectURL_object? Object { get; set; } /// Unix timestamp of last update. public long? UpdatedAt { get; set; } /// The url property @@ -32,12 +36,12 @@ public class RedirectURL : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RedirectURL CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.RedirectURL CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RedirectURL(); + return new global::Clerk.Net.Client.Models.RedirectURL(); } /// /// The deserialization information for the current model @@ -47,11 +51,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// @@ -63,7 +67,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteLongValue("created_at", CreatedAt); writer.WriteStringValue("id", Id); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteLongValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); } diff --git a/src/Clerk.Net/Client/Models/RedirectURL_object.cs b/src/Clerk.Net/Client/Models/RedirectURL_object.cs index ccbc325..7719ff0 100644 --- a/src/Clerk.Net/Client/Models/RedirectURL_object.cs +++ b/src/Clerk.Net/Client/Models/RedirectURL_object.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum RedirectURL_object + #pragma warning restore CS1591 { [EnumMember(Value = "redirect_url")] + #pragma warning disable CS1591 Redirect_url, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/SAML.cs b/src/Clerk.Net/Client/Models/SAML.cs index 8a19fe1..523a749 100644 --- a/src/Clerk.Net/Client/Models/SAML.cs +++ b/src/Clerk.Net/Client/Models/SAML.cs @@ -1,21 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SAML : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SAML : IParsable + #pragma warning restore CS1591 { /// The attempts property public int? Attempts { get; set; } /// The error property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SAML_error? Error { get; set; } + public global::Clerk.Net.Client.Models.SAML_error? Error { get; set; } #nullable restore #else - public SAML_error Error { get; set; } + public global::Clerk.Net.Client.Models.SAML_error Error { get; set; } #endif /// The expire_at property public int? ExpireAt { get; set; } @@ -28,18 +32,18 @@ public class SAML : IParsable public string ExternalVerificationRedirectUrl { get; set; } #endif /// The status property - public SAML_status? Status { get; set; } + public global::Clerk.Net.Client.Models.SAML_status? Status { get; set; } /// The strategy property - public SAML_strategy? Strategy { get; set; } + public global::Clerk.Net.Client.Models.SAML_strategy? Strategy { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SAML CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SAML CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SAML(); + return new global::Clerk.Net.Client.Models.SAML(); } /// /// The deserialization information for the current model @@ -49,12 +53,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"attempts", n => { Attempts = n.GetIntValue(); } }, - {"error", n => { Error = n.GetObjectValue(SAML_error.CreateFromDiscriminatorValue); } }, - {"expire_at", n => { ExpireAt = n.GetIntValue(); } }, - {"external_verification_redirect_url", n => { ExternalVerificationRedirectUrl = n.GetStringValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"strategy", n => { Strategy = n.GetEnumValue(); } }, + { "attempts", n => { Attempts = n.GetIntValue(); } }, + { "error", n => { Error = n.GetObjectValue(global::Clerk.Net.Client.Models.SAML_error.CreateFromDiscriminatorValue); } }, + { "expire_at", n => { ExpireAt = n.GetIntValue(); } }, + { "external_verification_redirect_url", n => { ExternalVerificationRedirectUrl = n.GetStringValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "strategy", n => { Strategy = n.GetEnumValue(); } }, }; } /// @@ -65,11 +69,11 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("attempts", Attempts); - writer.WriteObjectValue("error", Error); + writer.WriteObjectValue("error", Error); writer.WriteIntValue("expire_at", ExpireAt); writer.WriteStringValue("external_verification_redirect_url", ExternalVerificationRedirectUrl); - writer.WriteEnumValue("status", Status); - writer.WriteEnumValue("strategy", Strategy); + writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("strategy", Strategy); } } } diff --git a/src/Clerk.Net/Client/Models/SAMLAccount.cs b/src/Clerk.Net/Client/Models/SAMLAccount.cs index 4593d86..f76ab84 100644 --- a/src/Clerk.Net/Client/Models/SAMLAccount.cs +++ b/src/Clerk.Net/Client/Models/SAMLAccount.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SAMLAccount : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SAMLAccount : IParsable + #pragma warning restore CS1591 { /// The active property public bool? Active { get; set; } @@ -42,7 +46,7 @@ public class SAMLAccount : IParsable public string LastName { get; set; } #endif /// String representing the object's type. Objects of the same type share the same value. - public SAMLAccount_object? Object { get; set; } + public global::Clerk.Net.Client.Models.SAMLAccount_object? Object { get; set; } /// The provider property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -62,28 +66,28 @@ public class SAMLAccount : IParsable /// The public_metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SAMLAccount_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.SAMLAccount_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public SAMLAccount_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.SAMLAccount_public_metadata PublicMetadata { get; set; } #endif /// The verification property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SAMLAccount_verification? Verification { get; set; } + public global::Clerk.Net.Client.Models.SAMLAccount.SAMLAccount_verification? Verification { get; set; } #nullable restore #else - public SAMLAccount_verification Verification { get; set; } + public global::Clerk.Net.Client.Models.SAMLAccount.SAMLAccount_verification Verification { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SAMLAccount CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SAMLAccount CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SAMLAccount(); + return new global::Clerk.Net.Client.Models.SAMLAccount(); } /// /// The deserialization information for the current model @@ -93,16 +97,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active", n => { Active = n.GetBoolValue(); } }, - {"email_address", n => { EmailAddress = n.GetStringValue(); } }, - {"first_name", n => { FirstName = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"last_name", n => { LastName = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"provider", n => { Provider = n.GetStringValue(); } }, - {"provider_user_id", n => { ProviderUserId = n.GetStringValue(); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(SAMLAccount_public_metadata.CreateFromDiscriminatorValue); } }, - {"verification", n => { Verification = n.GetObjectValue(SAMLAccount_verification.CreateFromDiscriminatorValue); } }, + { "active", n => { Active = n.GetBoolValue(); } }, + { "email_address", n => { EmailAddress = n.GetStringValue(); } }, + { "first_name", n => { FirstName = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "last_name", n => { LastName = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "provider", n => { Provider = n.GetStringValue(); } }, + { "provider_user_id", n => { ProviderUserId = n.GetStringValue(); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Models.SAMLAccount_public_metadata.CreateFromDiscriminatorValue); } }, + { "verification", n => { Verification = n.GetObjectValue(global::Clerk.Net.Client.Models.SAMLAccount.SAMLAccount_verification.CreateFromDiscriminatorValue); } }, }; } /// @@ -117,50 +121,51 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("first_name", FirstName); writer.WriteStringValue("id", Id); writer.WriteStringValue("last_name", LastName); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteStringValue("provider", Provider); writer.WriteStringValue("provider_user_id", ProviderUserId); - writer.WriteObjectValue("public_metadata", PublicMetadata); - writer.WriteObjectValue("verification", Verification); + writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteObjectValue("verification", Verification); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class SAMLAccount_verification : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SAMLAccount_verification : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Clerk.Net.Client.Models.SAML? SAML { get; set; } + public global::Clerk.Net.Client.Models.SAML? SAML { get; set; } #nullable restore #else - public Clerk.Net.Client.Models.SAML SAML { get; set; } + public global::Clerk.Net.Client.Models.SAML SAML { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Clerk.Net.Client.Models.Ticket? Ticket { get; set; } + public global::Clerk.Net.Client.Models.Ticket? Ticket { get; set; } #nullable restore #else - public Clerk.Net.Client.Models.Ticket Ticket { get; set; } + public global::Clerk.Net.Client.Models.Ticket Ticket { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SAMLAccount_verification CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SAMLAccount.SAMLAccount_verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new SAMLAccount_verification(); + var result = new global::Clerk.Net.Client.Models.SAMLAccount.SAMLAccount_verification(); if("SAML".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.SAML = new Clerk.Net.Client.Models.SAML(); + result.SAML = new global::Clerk.Net.Client.Models.SAML(); } else if("Ticket".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.Ticket = new Clerk.Net.Client.Models.Ticket(); + result.Ticket = new global::Clerk.Net.Client.Models.Ticket(); } return result; } @@ -189,11 +194,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(SAML != null) { - writer.WriteObjectValue(null, SAML); + writer.WriteObjectValue(null, SAML); } else if(Ticket != null) { - writer.WriteObjectValue(null, Ticket); + writer.WriteObjectValue(null, Ticket); } } } diff --git a/src/Clerk.Net/Client/Models/SAMLAccount_object.cs b/src/Clerk.Net/Client/Models/SAMLAccount_object.cs index 87f0527..febb3b8 100644 --- a/src/Clerk.Net/Client/Models/SAMLAccount_object.cs +++ b/src/Clerk.Net/Client/Models/SAMLAccount_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum SAMLAccount_object { [EnumMember(Value = "saml_account")] + #pragma warning disable CS1591 Saml_account, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/SAMLAccount_public_metadata.cs b/src/Clerk.Net/Client/Models/SAMLAccount_public_metadata.cs index 55cb431..d9a3506 100644 --- a/src/Clerk.Net/Client/Models/SAMLAccount_public_metadata.cs +++ b/src/Clerk.Net/Client/Models/SAMLAccount_public_metadata.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SAMLAccount_public_metadata : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SAMLAccount_public_metadata : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SAMLAccount_public_metadata() { @@ -19,12 +23,12 @@ public SAMLAccount_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SAMLAccount_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SAMLAccount_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SAMLAccount_public_metadata(); + return new global::Clerk.Net.Client.Models.SAMLAccount_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/SAMLConnection.cs b/src/Clerk.Net/Client/Models/SAMLConnection.cs index 5e90dcd..11527f2 100644 --- a/src/Clerk.Net/Client/Models/SAMLConnection.cs +++ b/src/Clerk.Net/Client/Models/SAMLConnection.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SAMLConnection : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SAMLConnection : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// The acs_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -26,10 +30,10 @@ public class SAMLConnection : IAdditionalDataHolder, IParsable /// The attribute_mapping property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SAMLConnection_attribute_mapping? AttributeMapping { get; set; } + public global::Clerk.Net.Client.Models.SAMLConnection_attribute_mapping? AttributeMapping { get; set; } #nullable restore #else - public SAMLConnection_attribute_mapping AttributeMapping { get; set; } + public global::Clerk.Net.Client.Models.SAMLConnection_attribute_mapping AttributeMapping { get; set; } #endif /// Unix timestamp of creation. public long? CreatedAt { get; set; } @@ -98,7 +102,7 @@ public class SAMLConnection : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// The object property - public SAMLConnection_object? Object { get; set; } + public global::Clerk.Net.Client.Models.SAMLConnection_object? Object { get; set; } /// The provider property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -130,7 +134,7 @@ public class SAMLConnection : IAdditionalDataHolder, IParsable /// The user_count property public int? UserCount { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SAMLConnection() { @@ -139,12 +143,12 @@ public SAMLConnection() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SAMLConnection CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SAMLConnection CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SAMLConnection(); + return new global::Clerk.Net.Client.Models.SAMLConnection(); } /// /// The deserialization information for the current model @@ -154,27 +158,27 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"acs_url", n => { AcsUrl = n.GetStringValue(); } }, - {"active", n => { Active = n.GetBoolValue(); } }, - {"allow_idp_initiated", n => { AllowIdpInitiated = n.GetBoolValue(); } }, - {"allow_subdomains", n => { AllowSubdomains = n.GetBoolValue(); } }, - {"attribute_mapping", n => { AttributeMapping = n.GetObjectValue(SAMLConnection_attribute_mapping.CreateFromDiscriminatorValue); } }, - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"domain", n => { Domain = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"idp_certificate", n => { IdpCertificate = n.GetStringValue(); } }, - {"idp_entity_id", n => { IdpEntityId = n.GetStringValue(); } }, - {"idp_metadata", n => { IdpMetadata = n.GetStringValue(); } }, - {"idp_metadata_url", n => { IdpMetadataUrl = n.GetStringValue(); } }, - {"idp_sso_url", n => { IdpSsoUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"provider", n => { Provider = n.GetStringValue(); } }, - {"sp_entity_id", n => { SpEntityId = n.GetStringValue(); } }, - {"sp_metadata_url", n => { SpMetadataUrl = n.GetStringValue(); } }, - {"sync_user_attributes", n => { SyncUserAttributes = n.GetBoolValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, - {"user_count", n => { UserCount = n.GetIntValue(); } }, + { "acs_url", n => { AcsUrl = n.GetStringValue(); } }, + { "active", n => { Active = n.GetBoolValue(); } }, + { "allow_idp_initiated", n => { AllowIdpInitiated = n.GetBoolValue(); } }, + { "allow_subdomains", n => { AllowSubdomains = n.GetBoolValue(); } }, + { "attribute_mapping", n => { AttributeMapping = n.GetObjectValue(global::Clerk.Net.Client.Models.SAMLConnection_attribute_mapping.CreateFromDiscriminatorValue); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "domain", n => { Domain = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "idp_certificate", n => { IdpCertificate = n.GetStringValue(); } }, + { "idp_entity_id", n => { IdpEntityId = n.GetStringValue(); } }, + { "idp_metadata", n => { IdpMetadata = n.GetStringValue(); } }, + { "idp_metadata_url", n => { IdpMetadataUrl = n.GetStringValue(); } }, + { "idp_sso_url", n => { IdpSsoUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "provider", n => { Provider = n.GetStringValue(); } }, + { "sp_entity_id", n => { SpEntityId = n.GetStringValue(); } }, + { "sp_metadata_url", n => { SpMetadataUrl = n.GetStringValue(); } }, + { "sync_user_attributes", n => { SyncUserAttributes = n.GetBoolValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "user_count", n => { UserCount = n.GetIntValue(); } }, }; } /// @@ -188,7 +192,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("active", Active); writer.WriteBoolValue("allow_idp_initiated", AllowIdpInitiated); writer.WriteBoolValue("allow_subdomains", AllowSubdomains); - writer.WriteObjectValue("attribute_mapping", AttributeMapping); + writer.WriteObjectValue("attribute_mapping", AttributeMapping); writer.WriteLongValue("created_at", CreatedAt); writer.WriteStringValue("domain", Domain); writer.WriteStringValue("id", Id); @@ -198,7 +202,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("idp_metadata_url", IdpMetadataUrl); writer.WriteStringValue("idp_sso_url", IdpSsoUrl); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteStringValue("provider", Provider); writer.WriteStringValue("sp_entity_id", SpEntityId); writer.WriteStringValue("sp_metadata_url", SpMetadataUrl); diff --git a/src/Clerk.Net/Client/Models/SAMLConnection_attribute_mapping.cs b/src/Clerk.Net/Client/Models/SAMLConnection_attribute_mapping.cs index 2553417..340e207 100644 --- a/src/Clerk.Net/Client/Models/SAMLConnection_attribute_mapping.cs +++ b/src/Clerk.Net/Client/Models/SAMLConnection_attribute_mapping.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SAMLConnection_attribute_mapping : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SAMLConnection_attribute_mapping : IParsable + #pragma warning restore CS1591 { /// The email_address property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -42,12 +46,12 @@ public class SAMLConnection_attribute_mapping : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SAMLConnection_attribute_mapping CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SAMLConnection_attribute_mapping CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SAMLConnection_attribute_mapping(); + return new global::Clerk.Net.Client.Models.SAMLConnection_attribute_mapping(); } /// /// The deserialization information for the current model @@ -57,10 +61,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email_address", n => { EmailAddress = n.GetStringValue(); } }, - {"first_name", n => { FirstName = n.GetStringValue(); } }, - {"last_name", n => { LastName = n.GetStringValue(); } }, - {"user_id", n => { UserId = n.GetStringValue(); } }, + { "email_address", n => { EmailAddress = n.GetStringValue(); } }, + { "first_name", n => { FirstName = n.GetStringValue(); } }, + { "last_name", n => { LastName = n.GetStringValue(); } }, + { "user_id", n => { UserId = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Models/SAMLConnection_object.cs b/src/Clerk.Net/Client/Models/SAMLConnection_object.cs index 09f3ffc..0fdd6f9 100644 --- a/src/Clerk.Net/Client/Models/SAMLConnection_object.cs +++ b/src/Clerk.Net/Client/Models/SAMLConnection_object.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum SAMLConnection_object + #pragma warning restore CS1591 { [EnumMember(Value = "saml_connection")] + #pragma warning disable CS1591 Saml_connection, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/SAMLConnections.cs b/src/Clerk.Net/Client/Models/SAMLConnections.cs index c455498..241e5ec 100644 --- a/src/Clerk.Net/Client/Models/SAMLConnections.cs +++ b/src/Clerk.Net/Client/Models/SAMLConnections.cs @@ -1,31 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SAMLConnections : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SAMLConnections : IParsable + #pragma warning restore CS1591 { /// The data property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Data { get; set; } + public List? Data { get; set; } #nullable restore #else - public List Data { get; set; } + public List Data { get; set; } #endif /// Total number of SAML Connections public long? TotalCount { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SAMLConnections CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SAMLConnections CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SAMLConnections(); + return new global::Clerk.Net.Client.Models.SAMLConnections(); } /// /// The deserialization information for the current model @@ -35,8 +39,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"data", n => { Data = n.GetCollectionOfObjectValues(SAMLConnection.CreateFromDiscriminatorValue)?.ToList(); } }, - {"total_count", n => { TotalCount = n.GetLongValue(); } }, + { "data", n => { Data = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.SAMLConnection.CreateFromDiscriminatorValue)?.AsList(); } }, + { "total_count", n => { TotalCount = n.GetLongValue(); } }, }; } /// @@ -46,7 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("data", Data); + writer.WriteCollectionOfObjectValues("data", Data); writer.WriteLongValue("total_count", TotalCount); } } diff --git a/src/Clerk.Net/Client/Models/SAML_error.cs b/src/Clerk.Net/Client/Models/SAML_error.cs index 5233e34..10628a3 100644 --- a/src/Clerk.Net/Client/Models/SAML_error.cs +++ b/src/Clerk.Net/Client/Models/SAML_error.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SAML_error : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SAML_error : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SAML_error() { @@ -19,12 +23,12 @@ public SAML_error() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SAML_error CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SAML_error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SAML_error(); + return new global::Clerk.Net.Client.Models.SAML_error(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/SAML_status.cs b/src/Clerk.Net/Client/Models/SAML_status.cs index cb81838..ee9f761 100644 --- a/src/Clerk.Net/Client/Models/SAML_status.cs +++ b/src/Clerk.Net/Client/Models/SAML_status.cs @@ -1,18 +1,32 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum SAML_status + #pragma warning restore CS1591 { [EnumMember(Value = "unverified")] + #pragma warning disable CS1591 Unverified, + #pragma warning restore CS1591 [EnumMember(Value = "verified")] + #pragma warning disable CS1591 Verified, + #pragma warning restore CS1591 [EnumMember(Value = "failed")] + #pragma warning disable CS1591 Failed, + #pragma warning restore CS1591 [EnumMember(Value = "expired")] + #pragma warning disable CS1591 Expired, + #pragma warning restore CS1591 [EnumMember(Value = "transferable")] + #pragma warning disable CS1591 Transferable, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/SAML_strategy.cs b/src/Clerk.Net/Client/Models/SAML_strategy.cs index 976de2e..6cf47c5 100644 --- a/src/Clerk.Net/Client/Models/SAML_strategy.cs +++ b/src/Clerk.Net/Client/Models/SAML_strategy.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum SAML_strategy + #pragma warning restore CS1591 { [EnumMember(Value = "saml")] + #pragma warning disable CS1591 Saml, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/SchemasPasskey.cs b/src/Clerk.Net/Client/Models/SchemasPasskey.cs index 5d96095..0ec6584 100644 --- a/src/Clerk.Net/Client/Models/SchemasPasskey.cs +++ b/src/Clerk.Net/Client/Models/SchemasPasskey.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SchemasPasskey : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SchemasPasskey : IParsable + #pragma warning restore CS1591 { /// The id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -26,24 +30,24 @@ public class SchemasPasskey : IParsable public string Name { get; set; } #endif /// String representing the object's type. Objects of the same type share the same value. - public SchemasPasskey_object? Object { get; set; } + public global::Clerk.Net.Client.Models.SchemasPasskey_object? Object { get; set; } /// The verification property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SchemasPasskey_verification? Verification { get; set; } + public global::Clerk.Net.Client.Models.SchemasPasskey_verification? Verification { get; set; } #nullable restore #else - public SchemasPasskey_verification Verification { get; set; } + public global::Clerk.Net.Client.Models.SchemasPasskey_verification Verification { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SchemasPasskey CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SchemasPasskey CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SchemasPasskey(); + return new global::Clerk.Net.Client.Models.SchemasPasskey(); } /// /// The deserialization information for the current model @@ -53,11 +57,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, - {"last_used_at", n => { LastUsedAt = n.GetLongValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"verification", n => { Verification = n.GetObjectValue(SchemasPasskey_verification.CreateFromDiscriminatorValue); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "last_used_at", n => { LastUsedAt = n.GetLongValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "verification", n => { Verification = n.GetObjectValue(global::Clerk.Net.Client.Models.SchemasPasskey_verification.CreateFromDiscriminatorValue); } }, }; } /// @@ -70,8 +74,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("id", Id); writer.WriteLongValue("last_used_at", LastUsedAt); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("object", Object); - writer.WriteObjectValue("verification", Verification); + writer.WriteEnumValue("object", Object); + writer.WriteObjectValue("verification", Verification); } } } diff --git a/src/Clerk.Net/Client/Models/SchemasPasskey_object.cs b/src/Clerk.Net/Client/Models/SchemasPasskey_object.cs index ebc8dac..5854900 100644 --- a/src/Clerk.Net/Client/Models/SchemasPasskey_object.cs +++ b/src/Clerk.Net/Client/Models/SchemasPasskey_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum SchemasPasskey_object { [EnumMember(Value = "passkey")] + #pragma warning disable CS1591 Passkey, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/SchemasPasskey_verification.cs b/src/Clerk.Net/Client/Models/SchemasPasskey_verification.cs index 7c4757d..3c6d7b4 100644 --- a/src/Clerk.Net/Client/Models/SchemasPasskey_verification.cs +++ b/src/Clerk.Net/Client/Models/SchemasPasskey_verification.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SchemasPasskey_verification : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SchemasPasskey_verification : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SchemasPasskey_verification() { @@ -19,12 +23,12 @@ public SchemasPasskey_verification() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SchemasPasskey_verification CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SchemasPasskey_verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SchemasPasskey_verification(); + return new global::Clerk.Net.Client.Models.SchemasPasskey_verification(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/Session.cs b/src/Clerk.Net/Client/Models/Session.cs index 64d15b3..3054006 100644 --- a/src/Clerk.Net/Client/Models/Session.cs +++ b/src/Clerk.Net/Client/Models/Session.cs @@ -1,21 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Session : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Session : IParsable + #pragma warning restore CS1591 { /// The abandon_at property public int? AbandonAt { get; set; } /// The actor property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Session_actor? Actor { get; set; } + public global::Clerk.Net.Client.Models.Session_actor? Actor { get; set; } #nullable restore #else - public Session_actor Actor { get; set; } + public global::Clerk.Net.Client.Models.Session_actor Actor { get; set; } #endif /// The client_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -48,9 +52,9 @@ public class Session : IParsable public string LastActiveOrganizationId { get; set; } #endif /// String representing the object's type. Objects of the same type share the same value. - public Session_object? Object { get; set; } + public global::Clerk.Net.Client.Models.Session_object? Object { get; set; } /// The status property - public Session_status? Status { get; set; } + public global::Clerk.Net.Client.Models.Session_status? Status { get; set; } /// Unix timestamp of last update. public long? UpdatedAt { get; set; } /// The user_id property @@ -64,12 +68,12 @@ public class Session : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Session CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Session CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Session(); + return new global::Clerk.Net.Client.Models.Session(); } /// /// The deserialization information for the current model @@ -79,18 +83,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"abandon_at", n => { AbandonAt = n.GetIntValue(); } }, - {"actor", n => { Actor = n.GetObjectValue(Session_actor.CreateFromDiscriminatorValue); } }, - {"client_id", n => { ClientId = n.GetStringValue(); } }, - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"expire_at", n => { ExpireAt = n.GetIntValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"last_active_at", n => { LastActiveAt = n.GetIntValue(); } }, - {"last_active_organization_id", n => { LastActiveOrganizationId = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, - {"user_id", n => { UserId = n.GetStringValue(); } }, + { "abandon_at", n => { AbandonAt = n.GetIntValue(); } }, + { "actor", n => { Actor = n.GetObjectValue(global::Clerk.Net.Client.Models.Session_actor.CreateFromDiscriminatorValue); } }, + { "client_id", n => { ClientId = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "expire_at", n => { ExpireAt = n.GetIntValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "last_active_at", n => { LastActiveAt = n.GetIntValue(); } }, + { "last_active_organization_id", n => { LastActiveOrganizationId = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "user_id", n => { UserId = n.GetStringValue(); } }, }; } /// @@ -101,15 +105,15 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("abandon_at", AbandonAt); - writer.WriteObjectValue("actor", Actor); + writer.WriteObjectValue("actor", Actor); writer.WriteStringValue("client_id", ClientId); writer.WriteLongValue("created_at", CreatedAt); writer.WriteIntValue("expire_at", ExpireAt); writer.WriteStringValue("id", Id); writer.WriteIntValue("last_active_at", LastActiveAt); writer.WriteStringValue("last_active_organization_id", LastActiveOrganizationId); - writer.WriteEnumValue("object", Object); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("status", Status); writer.WriteLongValue("updated_at", UpdatedAt); writer.WriteStringValue("user_id", UserId); } diff --git a/src/Clerk.Net/Client/Models/Session_actor.cs b/src/Clerk.Net/Client/Models/Session_actor.cs index 70c75c5..650c2e7 100644 --- a/src/Clerk.Net/Client/Models/Session_actor.cs +++ b/src/Clerk.Net/Client/Models/Session_actor.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Session_actor : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Session_actor : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Session_actor() { @@ -19,12 +23,12 @@ public Session_actor() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Session_actor CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Session_actor CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Session_actor(); + return new global::Clerk.Net.Client.Models.Session_actor(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/Session_object.cs b/src/Clerk.Net/Client/Models/Session_object.cs index edd9cf8..8821939 100644 --- a/src/Clerk.Net/Client/Models/Session_object.cs +++ b/src/Clerk.Net/Client/Models/Session_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum Session_object { [EnumMember(Value = "session")] + #pragma warning disable CS1591 Session, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Session_status.cs b/src/Clerk.Net/Client/Models/Session_status.cs index 93743c0..40d570f 100644 --- a/src/Clerk.Net/Client/Models/Session_status.cs +++ b/src/Clerk.Net/Client/Models/Session_status.cs @@ -1,22 +1,40 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Session_status + #pragma warning restore CS1591 { [EnumMember(Value = "active")] + #pragma warning disable CS1591 Active, + #pragma warning restore CS1591 [EnumMember(Value = "revoked")] + #pragma warning disable CS1591 Revoked, + #pragma warning restore CS1591 [EnumMember(Value = "ended")] + #pragma warning disable CS1591 Ended, + #pragma warning restore CS1591 [EnumMember(Value = "expired")] + #pragma warning disable CS1591 Expired, + #pragma warning restore CS1591 [EnumMember(Value = "removed")] + #pragma warning disable CS1591 Removed, + #pragma warning restore CS1591 [EnumMember(Value = "abandoned")] + #pragma warning disable CS1591 Abandoned, + #pragma warning restore CS1591 [EnumMember(Value = "replaced")] + #pragma warning disable CS1591 Replaced, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/SignInToken.cs b/src/Clerk.Net/Client/Models/SignInToken.cs index c72f508..1d4bdd5 100644 --- a/src/Clerk.Net/Client/Models/SignInToken.cs +++ b/src/Clerk.Net/Client/Models/SignInToken.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SignInToken : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SignInToken : IParsable + #pragma warning restore CS1591 { /// Unix timestamp of creation. public long? CreatedAt { get; set; } @@ -18,9 +22,9 @@ public class SignInToken : IParsable public string Id { get; set; } #endif /// The object property - public SignInToken_object? Object { get; set; } + public global::Clerk.Net.Client.Models.SignInToken_object? Object { get; set; } /// The status property - public SignInToken_status? Status { get; set; } + public global::Clerk.Net.Client.Models.SignInToken_status? Status { get; set; } /// The token property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -50,12 +54,12 @@ public class SignInToken : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SignInToken CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SignInToken CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SignInToken(); + return new global::Clerk.Net.Client.Models.SignInToken(); } /// /// The deserialization information for the current model @@ -65,14 +69,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"token", n => { Token = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"user_id", n => { UserId = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "token", n => { Token = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, + { "user_id", n => { UserId = n.GetStringValue(); } }, }; } /// @@ -84,8 +88,8 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteLongValue("created_at", CreatedAt); writer.WriteStringValue("id", Id); - writer.WriteEnumValue("object", Object); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("status", Status); writer.WriteStringValue("token", Token); writer.WriteLongValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); diff --git a/src/Clerk.Net/Client/Models/SignInToken_object.cs b/src/Clerk.Net/Client/Models/SignInToken_object.cs index 541f7b5..8cc93bc 100644 --- a/src/Clerk.Net/Client/Models/SignInToken_object.cs +++ b/src/Clerk.Net/Client/Models/SignInToken_object.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum SignInToken_object + #pragma warning restore CS1591 { [EnumMember(Value = "sign_in_token")] + #pragma warning disable CS1591 Sign_in_token, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/SignInToken_status.cs b/src/Clerk.Net/Client/Models/SignInToken_status.cs index f6aa8ed..39ceb87 100644 --- a/src/Clerk.Net/Client/Models/SignInToken_status.cs +++ b/src/Clerk.Net/Client/Models/SignInToken_status.cs @@ -1,14 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum SignInToken_status + #pragma warning restore CS1591 { [EnumMember(Value = "pending")] + #pragma warning disable CS1591 Pending, + #pragma warning restore CS1591 [EnumMember(Value = "accepted")] + #pragma warning disable CS1591 Accepted, + #pragma warning restore CS1591 [EnumMember(Value = "revoked")] + #pragma warning disable CS1591 Revoked, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/SignUp.cs b/src/Clerk.Net/Client/Models/SignUp.cs index dd12893..939f5b4 100644 --- a/src/Clerk.Net/Client/Models/SignUp.cs +++ b/src/Clerk.Net/Client/Models/SignUp.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SignUp : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SignUp : IParsable + #pragma warning restore CS1591 { /// The abandon_at property public int? AbandonAt { get; set; } @@ -38,10 +42,10 @@ public class SignUp : IParsable /// The external_account property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SignUp_external_account? ExternalAccount { get; set; } + public global::Clerk.Net.Client.Models.SignUp_external_account? ExternalAccount { get; set; } #nullable restore #else - public SignUp_external_account ExternalAccount { get; set; } + public global::Clerk.Net.Client.Models.SignUp_external_account ExternalAccount { get; set; } #endif /// The external_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -84,7 +88,7 @@ public class SignUp : IParsable public List MissingFields { get; set; } #endif /// The object property - public SignUp_object? Object { get; set; } + public global::Clerk.Net.Client.Models.SignUp_object? Object { get; set; } /// The optional_fields property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -106,10 +110,10 @@ public class SignUp : IParsable /// The public_metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SignUp_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.SignUp_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public SignUp_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.SignUp_public_metadata PublicMetadata { get; set; } #endif /// The required_fields property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,14 +124,14 @@ public class SignUp : IParsable public List RequiredFields { get; set; } #endif /// The status property - public SignUp_status? Status { get; set; } + public global::Clerk.Net.Client.Models.SignUp_status? Status { get; set; } /// The unsafe_metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SignUp_unsafe_metadata? UnsafeMetadata { get; set; } + public global::Clerk.Net.Client.Models.SignUp_unsafe_metadata? UnsafeMetadata { get; set; } #nullable restore #else - public SignUp_unsafe_metadata UnsafeMetadata { get; set; } + public global::Clerk.Net.Client.Models.SignUp_unsafe_metadata UnsafeMetadata { get; set; } #endif /// The unverified_fields property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -148,10 +152,10 @@ public class SignUp : IParsable /// The verifications property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SignUp_verifications? Verifications { get; set; } + public global::Clerk.Net.Client.Models.SignUp_verifications? Verifications { get; set; } #nullable restore #else - public SignUp_verifications Verifications { get; set; } + public global::Clerk.Net.Client.Models.SignUp_verifications Verifications { get; set; } #endif /// The web3_wallet property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,12 +168,12 @@ public class SignUp : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SignUp CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SignUp CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SignUp(); + return new global::Clerk.Net.Client.Models.SignUp(); } /// /// The deserialization information for the current model @@ -179,29 +183,29 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"abandon_at", n => { AbandonAt = n.GetIntValue(); } }, - {"created_session_id", n => { CreatedSessionId = n.GetStringValue(); } }, - {"created_user_id", n => { CreatedUserId = n.GetStringValue(); } }, - {"custom_action", n => { CustomAction = n.GetBoolValue(); } }, - {"email_address", n => { EmailAddress = n.GetStringValue(); } }, - {"external_account", n => { ExternalAccount = n.GetObjectValue(SignUp_external_account.CreateFromDiscriminatorValue); } }, - {"external_id", n => { ExternalId = n.GetStringValue(); } }, - {"first_name", n => { FirstName = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"last_name", n => { LastName = n.GetStringValue(); } }, - {"missing_fields", n => { MissingFields = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"optional_fields", n => { OptionalFields = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"password_enabled", n => { PasswordEnabled = n.GetBoolValue(); } }, - {"phone_number", n => { PhoneNumber = n.GetStringValue(); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(SignUp_public_metadata.CreateFromDiscriminatorValue); } }, - {"required_fields", n => { RequiredFields = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"unsafe_metadata", n => { UnsafeMetadata = n.GetObjectValue(SignUp_unsafe_metadata.CreateFromDiscriminatorValue); } }, - {"unverified_fields", n => { UnverifiedFields = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"username", n => { Username = n.GetStringValue(); } }, - {"verifications", n => { Verifications = n.GetObjectValue(SignUp_verifications.CreateFromDiscriminatorValue); } }, - {"web3_wallet", n => { Web3Wallet = n.GetStringValue(); } }, + { "abandon_at", n => { AbandonAt = n.GetIntValue(); } }, + { "created_session_id", n => { CreatedSessionId = n.GetStringValue(); } }, + { "created_user_id", n => { CreatedUserId = n.GetStringValue(); } }, + { "custom_action", n => { CustomAction = n.GetBoolValue(); } }, + { "email_address", n => { EmailAddress = n.GetStringValue(); } }, + { "external_account", n => { ExternalAccount = n.GetObjectValue(global::Clerk.Net.Client.Models.SignUp_external_account.CreateFromDiscriminatorValue); } }, + { "external_id", n => { ExternalId = n.GetStringValue(); } }, + { "first_name", n => { FirstName = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "last_name", n => { LastName = n.GetStringValue(); } }, + { "missing_fields", n => { MissingFields = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "optional_fields", n => { OptionalFields = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "password_enabled", n => { PasswordEnabled = n.GetBoolValue(); } }, + { "phone_number", n => { PhoneNumber = n.GetStringValue(); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Models.SignUp_public_metadata.CreateFromDiscriminatorValue); } }, + { "required_fields", n => { RequiredFields = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "unsafe_metadata", n => { UnsafeMetadata = n.GetObjectValue(global::Clerk.Net.Client.Models.SignUp_unsafe_metadata.CreateFromDiscriminatorValue); } }, + { "unverified_fields", n => { UnverifiedFields = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "username", n => { Username = n.GetStringValue(); } }, + { "verifications", n => { Verifications = n.GetObjectValue(global::Clerk.Net.Client.Models.SignUp_verifications.CreateFromDiscriminatorValue); } }, + { "web3_wallet", n => { Web3Wallet = n.GetStringValue(); } }, }; } /// @@ -216,23 +220,23 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("created_user_id", CreatedUserId); writer.WriteBoolValue("custom_action", CustomAction); writer.WriteStringValue("email_address", EmailAddress); - writer.WriteObjectValue("external_account", ExternalAccount); + writer.WriteObjectValue("external_account", ExternalAccount); writer.WriteStringValue("external_id", ExternalId); writer.WriteStringValue("first_name", FirstName); writer.WriteStringValue("id", Id); writer.WriteStringValue("last_name", LastName); writer.WriteCollectionOfPrimitiveValues("missing_fields", MissingFields); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteCollectionOfPrimitiveValues("optional_fields", OptionalFields); writer.WriteBoolValue("password_enabled", PasswordEnabled); writer.WriteStringValue("phone_number", PhoneNumber); - writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteObjectValue("public_metadata", PublicMetadata); writer.WriteCollectionOfPrimitiveValues("required_fields", RequiredFields); - writer.WriteEnumValue("status", Status); - writer.WriteObjectValue("unsafe_metadata", UnsafeMetadata); + writer.WriteEnumValue("status", Status); + writer.WriteObjectValue("unsafe_metadata", UnsafeMetadata); writer.WriteCollectionOfPrimitiveValues("unverified_fields", UnverifiedFields); writer.WriteStringValue("username", Username); - writer.WriteObjectValue("verifications", Verifications); + writer.WriteObjectValue("verifications", Verifications); writer.WriteStringValue("web3_wallet", Web3Wallet); } } diff --git a/src/Clerk.Net/Client/Models/SignUp_external_account.cs b/src/Clerk.Net/Client/Models/SignUp_external_account.cs index 06c1063..0ae98c5 100644 --- a/src/Clerk.Net/Client/Models/SignUp_external_account.cs +++ b/src/Clerk.Net/Client/Models/SignUp_external_account.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SignUp_external_account : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SignUp_external_account : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SignUp_external_account() { @@ -19,12 +23,12 @@ public SignUp_external_account() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SignUp_external_account CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SignUp_external_account CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SignUp_external_account(); + return new global::Clerk.Net.Client.Models.SignUp_external_account(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/SignUp_object.cs b/src/Clerk.Net/Client/Models/SignUp_object.cs index 458f04a..00ec343 100644 --- a/src/Clerk.Net/Client/Models/SignUp_object.cs +++ b/src/Clerk.Net/Client/Models/SignUp_object.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum SignUp_object + #pragma warning restore CS1591 { [EnumMember(Value = "sign_up_attempt")] + #pragma warning disable CS1591 Sign_up_attempt, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/SignUp_public_metadata.cs b/src/Clerk.Net/Client/Models/SignUp_public_metadata.cs index 6082f8e..1e86943 100644 --- a/src/Clerk.Net/Client/Models/SignUp_public_metadata.cs +++ b/src/Clerk.Net/Client/Models/SignUp_public_metadata.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SignUp_public_metadata : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SignUp_public_metadata : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SignUp_public_metadata() { @@ -19,12 +23,12 @@ public SignUp_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SignUp_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SignUp_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SignUp_public_metadata(); + return new global::Clerk.Net.Client.Models.SignUp_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/SignUp_status.cs b/src/Clerk.Net/Client/Models/SignUp_status.cs index 323c01c..bb83cd7 100644 --- a/src/Clerk.Net/Client/Models/SignUp_status.cs +++ b/src/Clerk.Net/Client/Models/SignUp_status.cs @@ -1,14 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum SignUp_status + #pragma warning restore CS1591 { [EnumMember(Value = "missing_requirements")] + #pragma warning disable CS1591 Missing_requirements, + #pragma warning restore CS1591 [EnumMember(Value = "complete")] + #pragma warning disable CS1591 Complete, + #pragma warning restore CS1591 [EnumMember(Value = "abandoned")] + #pragma warning disable CS1591 Abandoned, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/SignUp_unsafe_metadata.cs b/src/Clerk.Net/Client/Models/SignUp_unsafe_metadata.cs index b9e6ed8..ebf51ef 100644 --- a/src/Clerk.Net/Client/Models/SignUp_unsafe_metadata.cs +++ b/src/Clerk.Net/Client/Models/SignUp_unsafe_metadata.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SignUp_unsafe_metadata : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SignUp_unsafe_metadata : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SignUp_unsafe_metadata() { @@ -19,12 +23,12 @@ public SignUp_unsafe_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SignUp_unsafe_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SignUp_unsafe_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SignUp_unsafe_metadata(); + return new global::Clerk.Net.Client.Models.SignUp_unsafe_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/SignUp_verifications.cs b/src/Clerk.Net/Client/Models/SignUp_verifications.cs index a7171c5..97de73d 100644 --- a/src/Clerk.Net/Client/Models/SignUp_verifications.cs +++ b/src/Clerk.Net/Client/Models/SignUp_verifications.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SignUp_verifications : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SignUp_verifications : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SignUp_verifications() { @@ -19,12 +23,12 @@ public SignUp_verifications() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SignUp_verifications CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SignUp_verifications CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SignUp_verifications(); + return new global::Clerk.Net.Client.Models.SignUp_verifications(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/SvixURL.cs b/src/Clerk.Net/Client/Models/SvixURL.cs index e3ce4c6..de47d58 100644 --- a/src/Clerk.Net/Client/Models/SvixURL.cs +++ b/src/Clerk.Net/Client/Models/SvixURL.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class SvixURL : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SvixURL : IParsable + #pragma warning restore CS1591 { /// The svix_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -18,12 +22,12 @@ public class SvixURL : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SvixURL CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.SvixURL CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SvixURL(); + return new global::Clerk.Net.Client.Models.SvixURL(); } /// /// The deserialization information for the current model @@ -33,7 +37,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"svix_url", n => { SvixUrlProp = n.GetStringValue(); } }, + { "svix_url", n => { SvixUrlProp = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Models/Template.cs b/src/Clerk.Net/Client/Models/Template.cs index 09b4774..6fc143d 100644 --- a/src/Clerk.Net/Client/Models/Template.cs +++ b/src/Clerk.Net/Client/Models/Template.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Template : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Template : IParsable + #pragma warning restore CS1591 { /// list of variables that are available for use in the template body #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -27,10 +31,14 @@ public class Template : IParsable public bool? CanDelete { get; set; } /// whether this template can be reverted to the corresponding system default public bool? CanRevert { get; set; } + /// whether this template can be enabled or disabled, true only for notification SMS templates + public bool? CanToggle { get; set; } /// Unix timestamp of creation. public long? CreatedAt { get; set; } /// The delivered_by_clerk property public bool? DeliveredByClerk { get; set; } + /// The enabled property + public bool? Enabled { get; set; } /// The from_email_name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -72,7 +80,7 @@ public class Template : IParsable public string Name { get; set; } #endif /// String representing the object's type. Objects of the same type share the same value. - public Template_object? Object { get; set; } + public global::Clerk.Net.Client.Models.Template_object? Object { get; set; } /// position with the listing of templates public int? Position { get; set; } /// The reply_to_email_name property @@ -128,12 +136,12 @@ public class Template : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Template CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Template CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Template(); + return new global::Clerk.Net.Client.Models.Template(); } /// /// The deserialization information for the current model @@ -143,26 +151,28 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"available_variables", n => { AvailableVariables = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"body", n => { Body = n.GetStringValue(); } }, - {"can_delete", n => { CanDelete = n.GetBoolValue(); } }, - {"can_revert", n => { CanRevert = n.GetBoolValue(); } }, - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"delivered_by_clerk", n => { DeliveredByClerk = n.GetBoolValue(); } }, - {"from_email_name", n => { FromEmailName = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"instance_id", n => { InstanceId = n.GetStringValue(); } }, - {"markup", n => { Markup = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"position", n => { Position = n.GetIntValue(); } }, - {"reply_to_email_name", n => { ReplyToEmailName = n.GetStringValue(); } }, - {"required_variables", n => { RequiredVariables = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"resource_type", n => { ResourceType = n.GetStringValue(); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, - {"subject", n => { Subject = n.GetStringValue(); } }, - {"template_type", n => { TemplateType = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "available_variables", n => { AvailableVariables = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "can_delete", n => { CanDelete = n.GetBoolValue(); } }, + { "can_revert", n => { CanRevert = n.GetBoolValue(); } }, + { "can_toggle", n => { CanToggle = n.GetBoolValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "delivered_by_clerk", n => { DeliveredByClerk = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "from_email_name", n => { FromEmailName = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "instance_id", n => { InstanceId = n.GetStringValue(); } }, + { "markup", n => { Markup = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "position", n => { Position = n.GetIntValue(); } }, + { "reply_to_email_name", n => { ReplyToEmailName = n.GetStringValue(); } }, + { "required_variables", n => { RequiredVariables = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "resource_type", n => { ResourceType = n.GetStringValue(); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, + { "subject", n => { Subject = n.GetStringValue(); } }, + { "template_type", n => { TemplateType = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, }; } /// @@ -176,14 +186,16 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("body", Body); writer.WriteBoolValue("can_delete", CanDelete); writer.WriteBoolValue("can_revert", CanRevert); + writer.WriteBoolValue("can_toggle", CanToggle); writer.WriteLongValue("created_at", CreatedAt); writer.WriteBoolValue("delivered_by_clerk", DeliveredByClerk); + writer.WriteBoolValue("enabled", Enabled); writer.WriteStringValue("from_email_name", FromEmailName); writer.WriteStringValue("id", Id); writer.WriteStringValue("instance_id", InstanceId); writer.WriteStringValue("markup", Markup); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteIntValue("position", Position); writer.WriteStringValue("reply_to_email_name", ReplyToEmailName); writer.WriteCollectionOfPrimitiveValues("required_variables", RequiredVariables); diff --git a/src/Clerk.Net/Client/Models/Template_object.cs b/src/Clerk.Net/Client/Models/Template_object.cs index 39a6233..3914cf3 100644 --- a/src/Clerk.Net/Client/Models/Template_object.cs +++ b/src/Clerk.Net/Client/Models/Template_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum Template_object { [EnumMember(Value = "template")] + #pragma warning disable CS1591 Template, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/TestingToken.cs b/src/Clerk.Net/Client/Models/TestingToken.cs index 9b5d14c..a570c84 100644 --- a/src/Clerk.Net/Client/Models/TestingToken.cs +++ b/src/Clerk.Net/Client/Models/TestingToken.cs @@ -1,18 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class TestingToken : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class TestingToken : IAdditionalDataHolder, 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; set; } /// Unix timestamp of the token's expiration time. public long? ExpiresAt { get; set; } /// The object property - public TestingToken_object? Object { get; set; } + public global::Clerk.Net.Client.Models.TestingToken_object? Object { get; set; } /// The actual token. This value is meant to be passed in the `__clerk_testing_token` query parameter with requests to the Frontend API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -22,7 +26,7 @@ public class TestingToken : IAdditionalDataHolder, IParsable public string Token { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public TestingToken() { @@ -31,12 +35,12 @@ public TestingToken() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TestingToken CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.TestingToken CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TestingToken(); + return new global::Clerk.Net.Client.Models.TestingToken(); } /// /// The deserialization information for the current model @@ -46,9 +50,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"expires_at", n => { ExpiresAt = n.GetLongValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"token", n => { Token = n.GetStringValue(); } }, + { "expires_at", n => { ExpiresAt = n.GetLongValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "token", n => { Token = n.GetStringValue(); } }, }; } /// @@ -59,7 +63,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteLongValue("expires_at", ExpiresAt); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteStringValue("token", Token); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Clerk.Net/Client/Models/TestingToken_object.cs b/src/Clerk.Net/Client/Models/TestingToken_object.cs index 688ff2b..7101b2b 100644 --- a/src/Clerk.Net/Client/Models/TestingToken_object.cs +++ b/src/Clerk.Net/Client/Models/TestingToken_object.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum TestingToken_object + #pragma warning restore CS1591 { [EnumMember(Value = "testing_token")] + #pragma warning disable CS1591 Testing_token, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Ticket.cs b/src/Clerk.Net/Client/Models/Ticket.cs index 3b3262a..443f4a1 100644 --- a/src/Clerk.Net/Client/Models/Ticket.cs +++ b/src/Clerk.Net/Client/Models/Ticket.cs @@ -1,29 +1,33 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Ticket : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Ticket : IParsable + #pragma warning restore CS1591 { /// The attempts property public int? Attempts { get; set; } /// The expire_at property public int? ExpireAt { get; set; } /// The status property - public Ticket_status? Status { get; set; } + public global::Clerk.Net.Client.Models.Ticket_status? Status { get; set; } /// The strategy property - public Ticket_strategy? Strategy { get; set; } + public global::Clerk.Net.Client.Models.Ticket_strategy? Strategy { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Ticket CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Ticket CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Ticket(); + return new global::Clerk.Net.Client.Models.Ticket(); } /// /// The deserialization information for the current model @@ -33,10 +37,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"attempts", n => { Attempts = n.GetIntValue(); } }, - {"expire_at", n => { ExpireAt = n.GetIntValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"strategy", n => { Strategy = n.GetEnumValue(); } }, + { "attempts", n => { Attempts = n.GetIntValue(); } }, + { "expire_at", n => { ExpireAt = n.GetIntValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "strategy", n => { Strategy = n.GetEnumValue(); } }, }; } /// @@ -48,8 +52,8 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("attempts", Attempts); writer.WriteIntValue("expire_at", ExpireAt); - writer.WriteEnumValue("status", Status); - writer.WriteEnumValue("strategy", Strategy); + writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("strategy", Strategy); } } } diff --git a/src/Clerk.Net/Client/Models/Ticket_status.cs b/src/Clerk.Net/Client/Models/Ticket_status.cs index d2500e2..b5cdc34 100644 --- a/src/Clerk.Net/Client/Models/Ticket_status.cs +++ b/src/Clerk.Net/Client/Models/Ticket_status.cs @@ -1,14 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Ticket_status + #pragma warning restore CS1591 { [EnumMember(Value = "unverified")] + #pragma warning disable CS1591 Unverified, + #pragma warning restore CS1591 [EnumMember(Value = "verified")] + #pragma warning disable CS1591 Verified, + #pragma warning restore CS1591 [EnumMember(Value = "expired")] + #pragma warning disable CS1591 Expired, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Ticket_strategy.cs b/src/Clerk.Net/Client/Models/Ticket_strategy.cs index 962fc4b..55cd678 100644 --- a/src/Clerk.Net/Client/Models/Ticket_strategy.cs +++ b/src/Clerk.Net/Client/Models/Ticket_strategy.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Ticket_strategy + #pragma warning restore CS1591 { [EnumMember(Value = "ticket")] + #pragma warning disable CS1591 Ticket, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/TotalCount.cs b/src/Clerk.Net/Client/Models/TotalCount.cs index 17806b4..544c44f 100644 --- a/src/Clerk.Net/Client/Models/TotalCount.cs +++ b/src/Clerk.Net/Client/Models/TotalCount.cs @@ -1,25 +1,29 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class TotalCount : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class TotalCount : IParsable + #pragma warning restore CS1591 { /// String representing the object's type. Objects of the same type share the same value. - public TotalCount_object? Object { get; set; } + public global::Clerk.Net.Client.Models.TotalCount_object? Object { get; set; } /// The total_count property public long? TotalCountProp { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TotalCount CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.TotalCount CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TotalCount(); + return new global::Clerk.Net.Client.Models.TotalCount(); } /// /// The deserialization information for the current model @@ -29,8 +33,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"object", n => { Object = n.GetEnumValue(); } }, - {"total_count", n => { TotalCountProp = n.GetLongValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "total_count", n => { TotalCountProp = n.GetLongValue(); } }, }; } /// @@ -40,7 +44,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteLongValue("total_count", TotalCountProp); } } diff --git a/src/Clerk.Net/Client/Models/TotalCount_object.cs b/src/Clerk.Net/Client/Models/TotalCount_object.cs index da93218..83593b5 100644 --- a/src/Clerk.Net/Client/Models/TotalCount_object.cs +++ b/src/Clerk.Net/Client/Models/TotalCount_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum TotalCount_object { [EnumMember(Value = "total_count")] + #pragma warning disable CS1591 Total_count, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/User.cs b/src/Clerk.Net/Client/Models/User.cs index 29b8245..aa7b8d2 100644 --- a/src/Clerk.Net/Client/Models/User.cs +++ b/src/Clerk.Net/Client/Models/User.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class User : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class User : IParsable + #pragma warning restore CS1591 { /// The backup_code_enabled property public bool? BackupCodeEnabled { get; set; } @@ -20,18 +24,18 @@ public class User : IParsable /// The email_addresses property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? EmailAddresses { get; set; } + public List? EmailAddresses { get; set; } #nullable restore #else - public List EmailAddresses { get; set; } + public List EmailAddresses { get; set; } #endif /// The external_accounts property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ExternalAccounts { get; set; } + public List? ExternalAccounts { get; set; } #nullable restore #else - public List ExternalAccounts { get; set; } + public List ExternalAccounts { get; set; } #endif /// The external_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -83,25 +87,29 @@ public class User : IParsable public bool? Locked { get; set; } /// The number of seconds remaining until the lockout period expires for a locked user. A null value for a locked user indicates that lockout never expires. public long? LockoutExpiresInSeconds { get; set; } + /// Unix timestamp of when MFA was last disabled for this user. It should be noted that this field is not nullified if MFA is enabled again. + public long? MfaDisabledAt { get; set; } + /// Unix timestamp of when MFA was last enabled for this user. It should be noted that this field is not nullified if MFA is disabled. + public long? MfaEnabledAt { get; set; } /// String representing the object's type. Objects of the same type share the same value. - public User_object? Object { get; set; } + public global::Clerk.Net.Client.Models.User_object? Object { get; set; } /// The passkeys property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Passkeys { get; set; } + public List? Passkeys { get; set; } #nullable restore #else - public List Passkeys { get; set; } + public List Passkeys { get; set; } #endif /// The password_enabled property public bool? PasswordEnabled { get; set; } /// The phone_numbers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? PhoneNumbers { get; set; } + public List? PhoneNumbers { get; set; } #nullable restore #else - public List PhoneNumbers { get; set; } + public List PhoneNumbers { get; set; } #endif /// The primary_email_address_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,10 +138,10 @@ public class User : IParsable /// The private_metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public User_private_metadata? PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Models.User_private_metadata? PrivateMetadata { get; set; } #nullable restore #else - public User_private_metadata PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Models.User_private_metadata PrivateMetadata { get; set; } #endif /// The profile_image_url property [Obsolete("")] @@ -147,18 +155,18 @@ public class User : IParsable /// The public_metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public User_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.User_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public User_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Models.User_public_metadata PublicMetadata { get; set; } #endif /// The saml_accounts property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? SamlAccounts { get; set; } + public List? SamlAccounts { get; set; } #nullable restore #else - public List SamlAccounts { get; set; } + public List SamlAccounts { get; set; } #endif /// The totp_enabled property public bool? TotpEnabled { get; set; } @@ -167,10 +175,10 @@ public class User : IParsable /// The unsafe_metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public User_unsafe_metadata? UnsafeMetadata { get; set; } + public global::Clerk.Net.Client.Models.User_unsafe_metadata? UnsafeMetadata { get; set; } #nullable restore #else - public User_unsafe_metadata UnsafeMetadata { get; set; } + public global::Clerk.Net.Client.Models.User_unsafe_metadata UnsafeMetadata { get; set; } #endif /// Unix timestamp of last update. public long? UpdatedAt { get; set; } @@ -187,20 +195,20 @@ public class User : IParsable /// The web3_wallets property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Web3Wallets { get; set; } + public List? Web3Wallets { get; set; } #nullable restore #else - public List Web3Wallets { get; set; } + public List Web3Wallets { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static User CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.User CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new User(); + return new global::Clerk.Net.Client.Models.User(); } /// /// The deserialization information for the current model @@ -210,41 +218,43 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"backup_code_enabled", n => { BackupCodeEnabled = n.GetBoolValue(); } }, - {"banned", n => { Banned = n.GetBoolValue(); } }, - {"create_organization_enabled", n => { CreateOrganizationEnabled = n.GetBoolValue(); } }, - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"delete_self_enabled", n => { DeleteSelfEnabled = n.GetBoolValue(); } }, - {"email_addresses", n => { EmailAddresses = n.GetCollectionOfObjectValues(EmailAddress.CreateFromDiscriminatorValue)?.ToList(); } }, - {"external_accounts", n => { ExternalAccounts = n.GetCollectionOfObjectValues(User_external_accounts.CreateFromDiscriminatorValue)?.ToList(); } }, - {"external_id", n => { ExternalId = n.GetStringValue(); } }, - {"first_name", n => { FirstName = n.GetStringValue(); } }, - {"has_image", n => { HasImage = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"image_url", n => { ImageUrl = n.GetStringValue(); } }, - {"last_active_at", n => { LastActiveAt = n.GetLongValue(); } }, - {"last_name", n => { LastName = n.GetStringValue(); } }, - {"last_sign_in_at", n => { LastSignInAt = n.GetLongValue(); } }, - {"locked", n => { Locked = n.GetBoolValue(); } }, - {"lockout_expires_in_seconds", n => { LockoutExpiresInSeconds = n.GetLongValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"passkeys", n => { Passkeys = n.GetCollectionOfObjectValues(SchemasPasskey.CreateFromDiscriminatorValue)?.ToList(); } }, - {"password_enabled", n => { PasswordEnabled = n.GetBoolValue(); } }, - {"phone_numbers", n => { PhoneNumbers = n.GetCollectionOfObjectValues(PhoneNumber.CreateFromDiscriminatorValue)?.ToList(); } }, - {"primary_email_address_id", n => { PrimaryEmailAddressId = n.GetStringValue(); } }, - {"primary_phone_number_id", n => { PrimaryPhoneNumberId = n.GetStringValue(); } }, - {"primary_web3_wallet_id", n => { PrimaryWeb3WalletId = n.GetStringValue(); } }, - {"private_metadata", n => { PrivateMetadata = n.GetObjectValue(User_private_metadata.CreateFromDiscriminatorValue); } }, - {"profile_image_url", n => { ProfileImageUrl = n.GetStringValue(); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(User_public_metadata.CreateFromDiscriminatorValue); } }, - {"saml_accounts", n => { SamlAccounts = n.GetCollectionOfObjectValues(SAMLAccount.CreateFromDiscriminatorValue)?.ToList(); } }, - {"totp_enabled", n => { TotpEnabled = n.GetBoolValue(); } }, - {"two_factor_enabled", n => { TwoFactorEnabled = n.GetBoolValue(); } }, - {"unsafe_metadata", n => { UnsafeMetadata = n.GetObjectValue(User_unsafe_metadata.CreateFromDiscriminatorValue); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, - {"username", n => { Username = n.GetStringValue(); } }, - {"verification_attempts_remaining", n => { VerificationAttemptsRemaining = n.GetLongValue(); } }, - {"web3_wallets", n => { Web3Wallets = n.GetCollectionOfObjectValues(Web3Wallet.CreateFromDiscriminatorValue)?.ToList(); } }, + { "backup_code_enabled", n => { BackupCodeEnabled = n.GetBoolValue(); } }, + { "banned", n => { Banned = n.GetBoolValue(); } }, + { "create_organization_enabled", n => { CreateOrganizationEnabled = n.GetBoolValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "delete_self_enabled", n => { DeleteSelfEnabled = n.GetBoolValue(); } }, + { "email_addresses", n => { EmailAddresses = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.EmailAddress.CreateFromDiscriminatorValue)?.AsList(); } }, + { "external_accounts", n => { ExternalAccounts = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.User_external_accounts.CreateFromDiscriminatorValue)?.AsList(); } }, + { "external_id", n => { ExternalId = n.GetStringValue(); } }, + { "first_name", n => { FirstName = n.GetStringValue(); } }, + { "has_image", n => { HasImage = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "image_url", n => { ImageUrl = n.GetStringValue(); } }, + { "last_active_at", n => { LastActiveAt = n.GetLongValue(); } }, + { "last_name", n => { LastName = n.GetStringValue(); } }, + { "last_sign_in_at", n => { LastSignInAt = n.GetLongValue(); } }, + { "locked", n => { Locked = n.GetBoolValue(); } }, + { "lockout_expires_in_seconds", n => { LockoutExpiresInSeconds = n.GetLongValue(); } }, + { "mfa_disabled_at", n => { MfaDisabledAt = n.GetLongValue(); } }, + { "mfa_enabled_at", n => { MfaEnabledAt = n.GetLongValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "passkeys", n => { Passkeys = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.SchemasPasskey.CreateFromDiscriminatorValue)?.AsList(); } }, + { "password_enabled", n => { PasswordEnabled = n.GetBoolValue(); } }, + { "phone_numbers", n => { PhoneNumbers = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.PhoneNumber.CreateFromDiscriminatorValue)?.AsList(); } }, + { "primary_email_address_id", n => { PrimaryEmailAddressId = n.GetStringValue(); } }, + { "primary_phone_number_id", n => { PrimaryPhoneNumberId = n.GetStringValue(); } }, + { "primary_web3_wallet_id", n => { PrimaryWeb3WalletId = n.GetStringValue(); } }, + { "private_metadata", n => { PrivateMetadata = n.GetObjectValue(global::Clerk.Net.Client.Models.User_private_metadata.CreateFromDiscriminatorValue); } }, + { "profile_image_url", n => { ProfileImageUrl = n.GetStringValue(); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Models.User_public_metadata.CreateFromDiscriminatorValue); } }, + { "saml_accounts", n => { SamlAccounts = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.SAMLAccount.CreateFromDiscriminatorValue)?.AsList(); } }, + { "totp_enabled", n => { TotpEnabled = n.GetBoolValue(); } }, + { "two_factor_enabled", n => { TwoFactorEnabled = n.GetBoolValue(); } }, + { "unsafe_metadata", n => { UnsafeMetadata = n.GetObjectValue(global::Clerk.Net.Client.Models.User_unsafe_metadata.CreateFromDiscriminatorValue); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "username", n => { Username = n.GetStringValue(); } }, + { "verification_attempts_remaining", n => { VerificationAttemptsRemaining = n.GetLongValue(); } }, + { "web3_wallets", n => { Web3Wallets = n.GetCollectionOfObjectValues(global::Clerk.Net.Client.Models.Web3Wallet.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -259,8 +269,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("created_at", CreatedAt); writer.WriteBoolValue("create_organization_enabled", CreateOrganizationEnabled); writer.WriteBoolValue("delete_self_enabled", DeleteSelfEnabled); - writer.WriteCollectionOfObjectValues("email_addresses", EmailAddresses); - writer.WriteCollectionOfObjectValues("external_accounts", ExternalAccounts); + writer.WriteCollectionOfObjectValues("email_addresses", EmailAddresses); + writer.WriteCollectionOfObjectValues("external_accounts", ExternalAccounts); writer.WriteStringValue("external_id", ExternalId); writer.WriteStringValue("first_name", FirstName); writer.WriteBoolValue("has_image", HasImage); @@ -271,24 +281,26 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteLongValue("last_sign_in_at", LastSignInAt); writer.WriteBoolValue("locked", Locked); writer.WriteLongValue("lockout_expires_in_seconds", LockoutExpiresInSeconds); - writer.WriteEnumValue("object", Object); - writer.WriteCollectionOfObjectValues("passkeys", Passkeys); + writer.WriteLongValue("mfa_disabled_at", MfaDisabledAt); + writer.WriteLongValue("mfa_enabled_at", MfaEnabledAt); + writer.WriteEnumValue("object", Object); + writer.WriteCollectionOfObjectValues("passkeys", Passkeys); writer.WriteBoolValue("password_enabled", PasswordEnabled); - writer.WriteCollectionOfObjectValues("phone_numbers", PhoneNumbers); + writer.WriteCollectionOfObjectValues("phone_numbers", PhoneNumbers); writer.WriteStringValue("primary_email_address_id", PrimaryEmailAddressId); writer.WriteStringValue("primary_phone_number_id", PrimaryPhoneNumberId); writer.WriteStringValue("primary_web3_wallet_id", PrimaryWeb3WalletId); - writer.WriteObjectValue("private_metadata", PrivateMetadata); + writer.WriteObjectValue("private_metadata", PrivateMetadata); writer.WriteStringValue("profile_image_url", ProfileImageUrl); - writer.WriteObjectValue("public_metadata", PublicMetadata); - writer.WriteCollectionOfObjectValues("saml_accounts", SamlAccounts); + writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteCollectionOfObjectValues("saml_accounts", SamlAccounts); writer.WriteBoolValue("totp_enabled", TotpEnabled); writer.WriteBoolValue("two_factor_enabled", TwoFactorEnabled); - writer.WriteObjectValue("unsafe_metadata", UnsafeMetadata); + writer.WriteObjectValue("unsafe_metadata", UnsafeMetadata); writer.WriteLongValue("updated_at", UpdatedAt); writer.WriteStringValue("username", Username); writer.WriteLongValue("verification_attempts_remaining", VerificationAttemptsRemaining); - writer.WriteCollectionOfObjectValues("web3_wallets", Web3Wallets); + writer.WriteCollectionOfObjectValues("web3_wallets", Web3Wallets); } } } diff --git a/src/Clerk.Net/Client/Models/User_external_accounts.cs b/src/Clerk.Net/Client/Models/User_external_accounts.cs index ec1513a..df753ef 100644 --- a/src/Clerk.Net/Client/Models/User_external_accounts.cs +++ b/src/Clerk.Net/Client/Models/User_external_accounts.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class User_external_accounts : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class User_external_accounts : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public User_external_accounts() { @@ -19,12 +23,12 @@ public User_external_accounts() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static User_external_accounts CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.User_external_accounts CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new User_external_accounts(); + return new global::Clerk.Net.Client.Models.User_external_accounts(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/User_object.cs b/src/Clerk.Net/Client/Models/User_object.cs index 05e25a4..579b48c 100644 --- a/src/Clerk.Net/Client/Models/User_object.cs +++ b/src/Clerk.Net/Client/Models/User_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum User_object { [EnumMember(Value = "user")] + #pragma warning disable CS1591 User, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/User_private_metadata.cs b/src/Clerk.Net/Client/Models/User_private_metadata.cs index 124b380..2adbed6 100644 --- a/src/Clerk.Net/Client/Models/User_private_metadata.cs +++ b/src/Clerk.Net/Client/Models/User_private_metadata.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class User_private_metadata : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class User_private_metadata : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public User_private_metadata() { @@ -19,12 +23,12 @@ public User_private_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static User_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.User_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new User_private_metadata(); + return new global::Clerk.Net.Client.Models.User_private_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/User_public_metadata.cs b/src/Clerk.Net/Client/Models/User_public_metadata.cs index 0a399d7..092156e 100644 --- a/src/Clerk.Net/Client/Models/User_public_metadata.cs +++ b/src/Clerk.Net/Client/Models/User_public_metadata.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class User_public_metadata : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class User_public_metadata : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public User_public_metadata() { @@ -19,12 +23,12 @@ public User_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static User_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.User_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new User_public_metadata(); + return new global::Clerk.Net.Client.Models.User_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/User_unsafe_metadata.cs b/src/Clerk.Net/Client/Models/User_unsafe_metadata.cs index b9ab470..d8c9b04 100644 --- a/src/Clerk.Net/Client/Models/User_unsafe_metadata.cs +++ b/src/Clerk.Net/Client/Models/User_unsafe_metadata.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class User_unsafe_metadata : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class User_unsafe_metadata : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public User_unsafe_metadata() { @@ -19,12 +23,12 @@ public User_unsafe_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static User_unsafe_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.User_unsafe_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new User_unsafe_metadata(); + return new global::Clerk.Net.Client.Models.User_unsafe_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Models/Web3Signature.cs b/src/Clerk.Net/Client/Models/Web3Signature.cs index 5730c8b..c0965c5 100644 --- a/src/Clerk.Net/Client/Models/Web3Signature.cs +++ b/src/Clerk.Net/Client/Models/Web3Signature.cs @@ -1,31 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Web3Signature : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Web3Signature : IParsable + #pragma warning restore CS1591 { /// The attempts property public int? Attempts { get; set; } /// The expire_at property public int? ExpireAt { get; set; } /// The nonce property - public Web3Signature_nonce? Nonce { get; set; } + public global::Clerk.Net.Client.Models.Web3Signature_nonce? Nonce { get; set; } /// The status property - public Web3Signature_status? Status { get; set; } + public global::Clerk.Net.Client.Models.Web3Signature_status? Status { get; set; } /// The strategy property - public Web3Signature_strategy? Strategy { get; set; } + public global::Clerk.Net.Client.Models.Web3Signature_strategy? Strategy { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Web3Signature CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Web3Signature CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Web3Signature(); + return new global::Clerk.Net.Client.Models.Web3Signature(); } /// /// The deserialization information for the current model @@ -35,11 +39,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"attempts", n => { Attempts = n.GetIntValue(); } }, - {"expire_at", n => { ExpireAt = n.GetIntValue(); } }, - {"nonce", n => { Nonce = n.GetEnumValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"strategy", n => { Strategy = n.GetEnumValue(); } }, + { "attempts", n => { Attempts = n.GetIntValue(); } }, + { "expire_at", n => { ExpireAt = n.GetIntValue(); } }, + { "nonce", n => { Nonce = n.GetEnumValue(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "strategy", n => { Strategy = n.GetEnumValue(); } }, }; } /// @@ -51,9 +55,9 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("attempts", Attempts); writer.WriteIntValue("expire_at", ExpireAt); - writer.WriteEnumValue("nonce", Nonce); - writer.WriteEnumValue("status", Status); - writer.WriteEnumValue("strategy", Strategy); + writer.WriteEnumValue("nonce", Nonce); + writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("strategy", Strategy); } } } diff --git a/src/Clerk.Net/Client/Models/Web3Signature_nonce.cs b/src/Clerk.Net/Client/Models/Web3Signature_nonce.cs index a7052e3..79b8a28 100644 --- a/src/Clerk.Net/Client/Models/Web3Signature_nonce.cs +++ b/src/Clerk.Net/Client/Models/Web3Signature_nonce.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Web3Signature_nonce + #pragma warning restore CS1591 { [EnumMember(Value = "nonce")] + #pragma warning disable CS1591 Nonce, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Web3Signature_status.cs b/src/Clerk.Net/Client/Models/Web3Signature_status.cs index 5e5c584..5a4152e 100644 --- a/src/Clerk.Net/Client/Models/Web3Signature_status.cs +++ b/src/Clerk.Net/Client/Models/Web3Signature_status.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Web3Signature_status + #pragma warning restore CS1591 { [EnumMember(Value = "verified")] + #pragma warning disable CS1591 Verified, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Web3Signature_strategy.cs b/src/Clerk.Net/Client/Models/Web3Signature_strategy.cs index 84b2fb6..b544a12 100644 --- a/src/Clerk.Net/Client/Models/Web3Signature_strategy.cs +++ b/src/Clerk.Net/Client/Models/Web3Signature_strategy.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum Web3Signature_strategy + #pragma warning restore CS1591 { [EnumMember(Value = "web3_metamask_signature")] + #pragma warning disable CS1591 Web3_metamask_signature, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Models/Web3Wallet.cs b/src/Clerk.Net/Client/Models/Web3Wallet.cs index 630d299..3ae348d 100644 --- a/src/Clerk.Net/Client/Models/Web3Wallet.cs +++ b/src/Clerk.Net/Client/Models/Web3Wallet.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Models { - public class Web3Wallet : IParsable +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Web3Wallet : IParsable + #pragma warning restore CS1591 { /// Unix timestamp of creation public long? CreatedAt { get; set; } @@ -18,16 +22,16 @@ public class Web3Wallet : IParsable public string Id { get; set; } #endif /// String representing the object's type. Objects of the same type share the same value. - public Web3Wallet_object? Object { get; set; } + public global::Clerk.Net.Client.Models.Web3Wallet_object? Object { get; set; } /// Unix timestamp of creation public long? UpdatedAt { get; set; } /// The verification property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Web3Wallet_verification? Verification { get; set; } + public global::Clerk.Net.Client.Models.Web3Wallet.Web3Wallet_verification? Verification { get; set; } #nullable restore #else - public Web3Wallet_verification Verification { get; set; } + public global::Clerk.Net.Client.Models.Web3Wallet.Web3Wallet_verification Verification { get; set; } #endif /// The web3_wallet property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -40,12 +44,12 @@ public class Web3Wallet : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Web3Wallet CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Web3Wallet CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Web3Wallet(); + return new global::Clerk.Net.Client.Models.Web3Wallet(); } /// /// The deserialization information for the current model @@ -55,12 +59,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_at", n => { CreatedAt = n.GetLongValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, - {"verification", n => { Verification = n.GetObjectValue(Web3Wallet_verification.CreateFromDiscriminatorValue); } }, - {"web3_wallet", n => { Web3WalletProp = n.GetStringValue(); } }, + { "created_at", n => { CreatedAt = n.GetLongValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "verification", n => { Verification = n.GetObjectValue(global::Clerk.Net.Client.Models.Web3Wallet.Web3Wallet_verification.CreateFromDiscriminatorValue); } }, + { "web3_wallet", n => { Web3WalletProp = n.GetStringValue(); } }, }; } /// @@ -72,49 +76,50 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteLongValue("created_at", CreatedAt); writer.WriteStringValue("id", Id); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteLongValue("updated_at", UpdatedAt); - writer.WriteObjectValue("verification", Verification); + writer.WriteObjectValue("verification", Verification); writer.WriteStringValue("web3_wallet", Web3WalletProp); } /// - /// Composed type wrapper for classes , + /// Composed type wrapper for classes , /// - public class Web3Wallet_verification : IComposedTypeWrapper, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Web3Wallet_verification : IComposedTypeWrapper, IParsable { - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Clerk.Net.Client.Models.Admin? Admin { get; set; } + public global::Clerk.Net.Client.Models.Admin? Admin { get; set; } #nullable restore #else - public Clerk.Net.Client.Models.Admin Admin { get; set; } + public global::Clerk.Net.Client.Models.Admin Admin { get; set; } #endif - /// Composed type representation for type + /// Composed type representation for type #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Clerk.Net.Client.Models.Web3Signature? Web3Signature { get; set; } + public global::Clerk.Net.Client.Models.Web3Signature? Web3Signature { get; set; } #nullable restore #else - public Clerk.Net.Client.Models.Web3Signature Web3Signature { get; set; } + public global::Clerk.Net.Client.Models.Web3Signature Web3Signature { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Web3Wallet_verification CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Models.Web3Wallet.Web3Wallet_verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new Web3Wallet_verification(); + var result = new global::Clerk.Net.Client.Models.Web3Wallet.Web3Wallet_verification(); if("Admin".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.Admin = new Clerk.Net.Client.Models.Admin(); + result.Admin = new global::Clerk.Net.Client.Models.Admin(); } else if("Web3Signature".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { - result.Web3Signature = new Clerk.Net.Client.Models.Web3Signature(); + result.Web3Signature = new global::Clerk.Net.Client.Models.Web3Signature(); } return result; } @@ -143,11 +148,11 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); if(Admin != null) { - writer.WriteObjectValue(null, Admin); + writer.WriteObjectValue(null, Admin); } else if(Web3Signature != null) { - writer.WriteObjectValue(null, Web3Signature); + writer.WriteObjectValue(null, Web3Signature); } } } diff --git a/src/Clerk.Net/Client/Models/Web3Wallet_object.cs b/src/Clerk.Net/Client/Models/Web3Wallet_object.cs index 3579587..955fa73 100644 --- a/src/Clerk.Net/Client/Models/Web3Wallet_object.cs +++ b/src/Clerk.Net/Client/Models/Web3Wallet_object.cs @@ -1,11 +1,15 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Models { +namespace Clerk.Net.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// String representing the object's type. Objects of the same type share the same value. public enum Web3Wallet_object { [EnumMember(Value = "web3_wallet")] + #pragma warning disable CS1591 Web3_wallet, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Oauth_applications/Item/Rotate_secret/Rotate_secretRequestBuilder.cs b/src/Clerk.Net/Client/Oauth_applications/Item/Rotate_secret/Rotate_secretRequestBuilder.cs index fbd6005..9842879 100644 --- a/src/Clerk.Net/Client/Oauth_applications/Item/Rotate_secret/Rotate_secretRequestBuilder.cs +++ b/src/Clerk.Net/Client/Oauth_applications/Item/Rotate_secret/Rotate_secretRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Oauth_applications.Item.Rotate_secret { +namespace Clerk.Net.Client.Oauth_applications.Item.Rotate_secret +{ /// /// Builds and executes requests for operations under \oauth_applications\{oauth_application_id}\rotate_secret /// - public class Rotate_secretRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Rotate_secretRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Rotate_secretRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,27 +35,27 @@ public Rotate_secretRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Rotates the OAuth application's client secret.When the client secret is rotated, make sure to update it in authorized OAuth clients. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OAuthApplicationWithSecret.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OAuthApplicationWithSecret.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Rotates the OAuth application's client secret.When the client secret is rotated, make sure to update it in authorized OAuth clients. @@ -77,11 +79,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Rotate_secretRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Oauth_applications.Item.Rotate_secret.Rotate_secretRequestBuilder WithUrl(string rawUrl) { - return new Rotate_secretRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Oauth_applications.Item.Rotate_secret.Rotate_secretRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_ItemRequestBuilder.cs index 6b13f7e..de00eff 100644 --- a/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using Clerk.Net.Client.Models; using Clerk.Net.Client.Oauth_applications.Item.Rotate_secret; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Oauth_applications.Item { +namespace Clerk.Net.Client.Oauth_applications.Item +{ /// /// Builds and executes requests for operations under \oauth_applications\{oauth_application_id} /// - public class WithOauth_application_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithOauth_application_ItemRequestBuilder : BaseRequestBuilder { /// The rotate_secret property - public Rotate_secretRequestBuilder Rotate_secret + public global::Clerk.Net.Client.Oauth_applications.Item.Rotate_secret.Rotate_secretRequestBuilder Rotate_secret { - get => new Rotate_secretRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Oauth_applications.Item.Rotate_secret.Rotate_secretRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithOauth_application_ItemRequestBuilder(Dictionary pathP { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,81 +41,81 @@ public WithOauth_application_ItemRequestBuilder(string rawUrl, IRequestAdapter r /// /// Deletes the given OAuth application.This is not reversible. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Fetches the OAuth application whose ID matches the provided `id` in the path. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OAuthApplication.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OAuthApplication.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates an existing OAuth application /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithOauth_application_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Oauth_applications.Item.WithOauth_application_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithOauth_application_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Oauth_applications.Item.WithOauth_application_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OAuthApplication.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OAuthApplication.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes the given OAuth application.This is not reversible. @@ -161,11 +163,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(WithOauth_application_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Oauth_applications.Item.WithOauth_application_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithOauth_application_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Oauth_applications.Item.WithOauth_application_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -178,11 +180,11 @@ public RequestInformation ToPatchRequestInformation(WithOauth_application_PatchR /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithOauth_application_ItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Oauth_applications.Item.WithOauth_application_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithOauth_application_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Oauth_applications.Item.WithOauth_application_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_PatchRequestBody.cs b/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_PatchRequestBody.cs index 3da7063..2f45d88 100644 --- a/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Oauth_applications/Item/WithOauth_application_PatchRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Oauth_applications.Item { - public class WithOauth_application_PatchRequestBody : IParsable +namespace Clerk.Net.Client.Oauth_applications.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithOauth_application_PatchRequestBody : IParsable + #pragma warning restore CS1591 { /// The new callback URL of the OAuth application #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -32,7 +36,7 @@ public class WithOauth_application_PatchRequestBody : IParsable public string Scopes { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithOauth_application_PatchRequestBody() { @@ -41,12 +45,12 @@ public WithOauth_application_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithOauth_application_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Oauth_applications.Item.WithOauth_application_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithOauth_application_PatchRequestBody(); + return new global::Clerk.Net.Client.Oauth_applications.Item.WithOauth_application_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -56,9 +60,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"callback_url", n => { CallbackUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"scopes", n => { Scopes = n.GetStringValue(); } }, + { "callback_url", n => { CallbackUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "scopes", n => { Scopes = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsPostRequestBody.cs b/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsPostRequestBody.cs index ad5a0fe..5e244d1 100644 --- a/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Oauth_applications { - public class Oauth_applicationsPostRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Oauth_applications +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Oauth_applicationsPostRequestBody : IAdditionalDataHolder, 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; set; } @@ -36,7 +40,7 @@ public class Oauth_applicationsPostRequestBody : IAdditionalDataHolder, IParsabl public string Scopes { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Oauth_applicationsPostRequestBody() { @@ -46,12 +50,12 @@ public Oauth_applicationsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Oauth_applicationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Oauth_applications.Oauth_applicationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Oauth_applicationsPostRequestBody(); + return new global::Clerk.Net.Client.Oauth_applications.Oauth_applicationsPostRequestBody(); } /// /// The deserialization information for the current model @@ -61,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"callback_url", n => { CallbackUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"public", n => { Public = n.GetBoolValue(); } }, - {"scopes", n => { Scopes = n.GetStringValue(); } }, + { "callback_url", n => { CallbackUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "public", n => { Public = n.GetBoolValue(); } }, + { "scopes", n => { Scopes = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsRequestBuilder.cs b/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsRequestBuilder.cs index c8c1845..db991b5 100644 --- a/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Oauth_applications/Oauth_applicationsRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Models; using Clerk.Net.Client.Oauth_applications.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Oauth_applications { +namespace Clerk.Net.Client.Oauth_applications +{ /// /// Builds and executes requests for operations under \oauth_applications /// - public class Oauth_applicationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Oauth_applicationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.oauth_applications.item collection /// The ID of the OAuth application - /// A - public WithOauth_application_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Oauth_applications.Item.WithOauth_application_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("oauth_application_id", position); - return new WithOauth_application_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Oauth_applications.Item.WithOauth_application_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Oauth_applicationsRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,58 +48,58 @@ public Oauth_applicationsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// /// This request returns the list of OAuth applications for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The OAuth applications are ordered by descending creation date.Most recent OAuth applications will be returned first. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OAuthApplications.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OAuthApplications.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Creates a new OAuth application with the given name and callback URL for an instance.The callback URL must be a valid url.All URL schemes are allowed such as `http://`, `https://`, `myapp://`, etc... /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Oauth_applicationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Oauth_applications.Oauth_applicationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Oauth_applicationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Oauth_applications.Oauth_applicationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OAuthApplicationWithSecret.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OAuthApplicationWithSecret.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// This request returns the list of OAuth applications for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The OAuth applications are ordered by descending creation date.Most recent OAuth applications will be returned first. @@ -106,11 +108,11 @@ public async Task PostAsync(Oauth_applicationsPostRe /// 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) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -126,15 +128,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Oauth_applicationsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Oauth_applications.Oauth_applicationsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Oauth_applicationsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Oauth_applications.Oauth_applicationsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/oauth_applications", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -143,16 +145,17 @@ public RequestInformation ToPostRequestInformation(Oauth_applicationsPostRequest /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Oauth_applicationsRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Oauth_applications.Oauth_applicationsRequestBuilder WithUrl(string rawUrl) { - return new Oauth_applicationsRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Oauth_applications.Oauth_applicationsRequestBuilder(rawUrl, RequestAdapter); } /// /// This request returns the list of OAuth applications for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The OAuth applications are ordered by descending creation date.Most recent OAuth applications will be returned first. /// - public class Oauth_applicationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Oauth_applicationsRequestBuilderGetQueryParameters { /// Applies a limit to the number of results returned.Can be used for paginating the results together with `offset`. [QueryParameter("limit")] diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk.cs index e7ae459..4078b0e 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Invitations.Bulk { - public class Bulk : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Organizations.Item.Invitations.Bulk +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Bulk : IAdditionalDataHolder, 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; set; } @@ -28,18 +32,18 @@ public class Bulk : IAdditionalDataHolder, IParsable /// Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Bulk_private_metadata? PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk_private_metadata? PrivateMetadata { get; set; } #nullable restore #else - public Bulk_private_metadata PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk_private_metadata PrivateMetadata { get; set; } #endif /// Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Bulk_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public Bulk_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk_public_metadata PublicMetadata { get; set; } #endif /// Optional URL that the invitee will be redirected to once they accept the invitation by clicking the join link in the invitation email. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -58,7 +62,7 @@ public class Bulk : IAdditionalDataHolder, IParsable public string Role { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Bulk() { @@ -67,12 +71,12 @@ public Bulk() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Bulk CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Bulk(); + return new global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk(); } /// /// The deserialization information for the current model @@ -82,12 +86,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email_address", n => { EmailAddress = n.GetStringValue(); } }, - {"inviter_user_id", n => { InviterUserId = n.GetStringValue(); } }, - {"private_metadata", n => { PrivateMetadata = n.GetObjectValue(Bulk_private_metadata.CreateFromDiscriminatorValue); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(Bulk_public_metadata.CreateFromDiscriminatorValue); } }, - {"redirect_url", n => { RedirectUrl = n.GetStringValue(); } }, - {"role", n => { Role = n.GetStringValue(); } }, + { "email_address", n => { EmailAddress = n.GetStringValue(); } }, + { "inviter_user_id", n => { InviterUserId = n.GetStringValue(); } }, + { "private_metadata", n => { PrivateMetadata = n.GetObjectValue(global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk_private_metadata.CreateFromDiscriminatorValue); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk_public_metadata.CreateFromDiscriminatorValue); } }, + { "redirect_url", n => { RedirectUrl = n.GetStringValue(); } }, + { "role", n => { Role = n.GetStringValue(); } }, }; } /// @@ -99,8 +103,8 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("email_address", EmailAddress); writer.WriteStringValue("inviter_user_id", InviterUserId); - writer.WriteObjectValue("private_metadata", PrivateMetadata); - writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteObjectValue("private_metadata", PrivateMetadata); + writer.WriteObjectValue("public_metadata", PublicMetadata); writer.WriteStringValue("redirect_url", RedirectUrl); writer.WriteStringValue("role", Role); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/BulkRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/BulkRequestBuilder.cs index 2896b35..cc56413 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/BulkRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/BulkRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Organizations.Item.Invitations.Bulk { +namespace Clerk.Net.Client.Organizations.Item.Invitations.Bulk +{ /// /// Builds and executes requests for operations under \organizations\{organization_id}\invitations\bulk /// - public class BulkRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class BulkRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public BulkRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,33 +35,33 @@ public BulkRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// /// Creates new organization invitations in bulk and sends out emails to the provided email addresses with a link to accept the invitation and join the organization.You can specify a different `role` for each invited organization member.New organization invitations get a "pending" status until they are revoked by an organization administrator or accepted by the invitee.The request body supports passing an optional `redirect_url` parameter for each invitation.When the invited user clicks the link to accept the invitation, they will be redirected to the provided URL.Use this parameter to implement a custom invitation acceptance flow.You must specify the ID of the user that will send the invitation with the `inviter_user_id` parameter. Each invitationcan have a different inviter user.Inviter users must be members with administrator privileges in the organization.Only "admin" members can create organization invitations.You can optionally provide public and private metadata for each organization invitation. The public metadata are visibleby both the Frontend and the Backend, whereas the private metadata are only visible by the Backend.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationInvitations.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OrganizationInvitations.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Creates new organization invitations in bulk and sends out emails to the provided email addresses with a link to accept the invitation and join the organization.You can specify a different `role` for each invited organization member.New organization invitations get a "pending" status until they are revoked by an organization administrator or accepted by the invitee.The request body supports passing an optional `redirect_url` parameter for each invitation.When the invited user clicks the link to accept the invitation, they will be redirected to the provided URL.Use this parameter to implement a custom invitation acceptance flow.You must specify the ID of the user that will send the invitation with the `inviter_user_id` parameter. Each invitationcan have a different inviter user.Inviter users must be members with administrator privileges in the organization.Only "admin" members can create organization invitations.You can optionally provide public and private metadata for each organization invitation. The public metadata are visibleby both the Frontend and the Backend, whereas the private metadata are only visible by the Backend.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. @@ -69,11 +71,11 @@ public async Task PostAsync(List body, ActionConfiguration 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(List body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -86,11 +88,11 @@ public RequestInformation ToPostRequestInformation(List body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public BulkRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.BulkRequestBuilder WithUrl(string rawUrl) { - return new BulkRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.BulkRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_private_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_private_metadata.cs index 1c9b176..524d0ba 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_private_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Invitations.Bulk { +namespace Clerk.Net.Client.Organizations.Item.Invitations.Bulk +{ /// /// Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. /// - public class Bulk_private_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Bulk_private_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Bulk_private_metadata() { @@ -22,12 +24,12 @@ public Bulk_private_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Bulk_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Bulk_private_metadata(); + return new global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk_private_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_public_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_public_metadata.cs index 4325148..0f52a0d 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Bulk/Bulk_public_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Invitations.Bulk { +namespace Clerk.Net.Client.Organizations.Item.Invitations.Bulk +{ /// /// Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. /// - public class Bulk_public_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Bulk_public_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Bulk_public_metadata() { @@ -22,12 +24,12 @@ public Bulk_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Bulk_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Bulk_public_metadata(); + return new global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.Bulk_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/GetStatusQueryParameterType.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/GetStatusQueryParameterType.cs index abc212b..2b788b1 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/GetStatusQueryParameterType.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/GetStatusQueryParameterType.cs @@ -1,14 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Organizations.Item.Invitations { +namespace Clerk.Net.Client.Organizations.Item.Invitations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum GetStatusQueryParameterType + #pragma warning restore CS1591 { [EnumMember(Value = "pending")] + #pragma warning disable CS1591 Pending, + #pragma warning restore CS1591 [EnumMember(Value = "accepted")] + #pragma warning disable CS1591 Accepted, + #pragma warning restore CS1591 [EnumMember(Value = "revoked")] + #pragma warning disable CS1591 Revoked, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody.cs index d5580c0..c90bec7 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Invitations { - public class InvitationsPostRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Organizations.Item.Invitations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class InvitationsPostRequestBody : IAdditionalDataHolder, 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; set; } @@ -28,18 +32,18 @@ public class InvitationsPostRequestBody : IAdditionalDataHolder, IParsable /// Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public InvitationsPostRequestBody_private_metadata? PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody_private_metadata? PrivateMetadata { get; set; } #nullable restore #else - public InvitationsPostRequestBody_private_metadata PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody_private_metadata PrivateMetadata { get; set; } #endif /// Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public InvitationsPostRequestBody_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public InvitationsPostRequestBody_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody_public_metadata PublicMetadata { get; set; } #endif /// Optional URL that the invitee will be redirected to once they accept the invitation by clicking the join link in the invitation email. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -58,7 +62,7 @@ public class InvitationsPostRequestBody : IAdditionalDataHolder, IParsable public string Role { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InvitationsPostRequestBody() { @@ -67,12 +71,12 @@ public InvitationsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InvitationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InvitationsPostRequestBody(); + return new global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody(); } /// /// The deserialization information for the current model @@ -82,12 +86,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email_address", n => { EmailAddress = n.GetStringValue(); } }, - {"inviter_user_id", n => { InviterUserId = n.GetStringValue(); } }, - {"private_metadata", n => { PrivateMetadata = n.GetObjectValue(InvitationsPostRequestBody_private_metadata.CreateFromDiscriminatorValue); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(InvitationsPostRequestBody_public_metadata.CreateFromDiscriminatorValue); } }, - {"redirect_url", n => { RedirectUrl = n.GetStringValue(); } }, - {"role", n => { Role = n.GetStringValue(); } }, + { "email_address", n => { EmailAddress = n.GetStringValue(); } }, + { "inviter_user_id", n => { InviterUserId = n.GetStringValue(); } }, + { "private_metadata", n => { PrivateMetadata = n.GetObjectValue(global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody_private_metadata.CreateFromDiscriminatorValue); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody_public_metadata.CreateFromDiscriminatorValue); } }, + { "redirect_url", n => { RedirectUrl = n.GetStringValue(); } }, + { "role", n => { Role = n.GetStringValue(); } }, }; } /// @@ -99,8 +103,8 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("email_address", EmailAddress); writer.WriteStringValue("inviter_user_id", InviterUserId); - writer.WriteObjectValue("private_metadata", PrivateMetadata); - writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteObjectValue("private_metadata", PrivateMetadata); + writer.WriteObjectValue("public_metadata", PublicMetadata); writer.WriteStringValue("redirect_url", RedirectUrl); writer.WriteStringValue("role", Role); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_private_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_private_metadata.cs index e278035..02c9268 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_private_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Invitations { +namespace Clerk.Net.Client.Organizations.Item.Invitations +{ /// /// Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. /// - public class InvitationsPostRequestBody_private_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class InvitationsPostRequestBody_private_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InvitationsPostRequestBody_private_metadata() { @@ -22,12 +24,12 @@ public InvitationsPostRequestBody_private_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InvitationsPostRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InvitationsPostRequestBody_private_metadata(); + return new global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody_private_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_public_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_public_metadata.cs index fb0639b..3c2624a 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsPostRequestBody_public_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Invitations { +namespace Clerk.Net.Client.Organizations.Item.Invitations +{ /// /// Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. /// - public class InvitationsPostRequestBody_public_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class InvitationsPostRequestBody_public_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InvitationsPostRequestBody_public_metadata() { @@ -22,12 +24,12 @@ public InvitationsPostRequestBody_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InvitationsPostRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InvitationsPostRequestBody_public_metadata(); + return new global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsRequestBuilder.cs index 99533d8..3eff63a 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/InvitationsRequestBuilder.cs @@ -3,44 +3,46 @@ using Clerk.Net.Client.Organizations.Item.Invitations.Bulk; using Clerk.Net.Client.Organizations.Item.Invitations.Item; using Clerk.Net.Client.Organizations.Item.Invitations.Pending; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Organizations.Item.Invitations { +namespace Clerk.Net.Client.Organizations.Item.Invitations +{ /// /// Builds and executes requests for operations under \organizations\{organization_id}\invitations /// - public class InvitationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class InvitationsRequestBuilder : BaseRequestBuilder { /// The bulk property - public BulkRequestBuilder Bulk + public global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.BulkRequestBuilder Bulk { - get => new BulkRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Organizations.Item.Invitations.Bulk.BulkRequestBuilder(PathParameters, RequestAdapter); } /// The pending property - public PendingRequestBuilder Pending + public global::Clerk.Net.Client.Organizations.Item.Invitations.Pending.PendingRequestBuilder Pending { - get => new PendingRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Organizations.Item.Invitations.Pending.PendingRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Clerk.Net.Client.organizations.item.invitations.item collection /// The organization invitation ID. - /// A - public WithInvitation_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Organizations.Item.Invitations.Item.WithInvitation_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("invitation_id", position); - return new WithInvitation_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.Invitations.Item.WithInvitation_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -48,7 +50,7 @@ public InvitationsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -58,58 +60,58 @@ public InvitationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// This request returns the list of organization invitations.Results can be paginated using the optional `limit` and `offset` query parameters.You can filter them by providing the 'status' query parameter, that accepts multiple values.The organization invitations are ordered by descending creation date.Most recent invitations will be returned first.Any invitations created as a result of an Organization Domain are not included in the results. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationInvitations.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OrganizationInvitations.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Creates a new organization invitation and sends an email to the provided `email_address` with a link to accept the invitation and join the organization.You can specify the `role` for the invited organization member.New organization invitations get a "pending" status until they are revoked by an organization administrator or accepted by the invitee.The request body supports passing an optional `redirect_url` parameter.When the invited user clicks the link to accept the invitation, they will be redirected to the URL provided.Use this parameter to implement a custom invitation acceptance flow.You must specify the ID of the user that will send the invitation with the `inviter_user_id` parameter.That user must be a member with administrator privileges in the organization.Only "admin" members can create organization invitations.You can optionally provide public and private metadata for the organization invitation.The public metadata are visible by both the Frontend and the Backend whereas the private ones only by the Backend.When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(InvitationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(InvitationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OrganizationInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// This request returns the list of organization invitations.Results can be paginated using the optional `limit` and `offset` query parameters.You can filter them by providing the 'status' query parameter, that accepts multiple values.The organization invitations are ordered by descending creation date.Most recent invitations will be returned first.Any invitations created as a result of an Organization Domain are not included in the results. @@ -118,11 +120,11 @@ public async Task PostAsync(InvitationsPostRequestBody b /// 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) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -138,15 +140,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(InvitationsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(InvitationsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/organizations/{organization_id}/invitations", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -155,16 +157,17 @@ public RequestInformation ToPostRequestInformation(InvitationsPostRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InvitationsRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsRequestBuilder WithUrl(string rawUrl) { - return new InvitationsRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsRequestBuilder(rawUrl, RequestAdapter); } /// /// This request returns the list of organization invitations.Results can be paginated using the optional `limit` and `offset` query parameters.You can filter them by providing the 'status' query parameter, that accepts multiple values.The organization invitations are ordered by descending creation date.Most recent invitations will be returned first.Any invitations created as a result of an Organization Domain are not included in the results. /// - public class InvitationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class InvitationsRequestBuilderGetQueryParameters { /// Applies a limit to the number of results returned.Can be used for paginating the results together with `offset`. [QueryParameter("limit")] @@ -174,7 +177,7 @@ public class InvitationsRequestBuilderGetQueryParameters public double? Offset { get; set; } /// Filter organization invitations based on their status [QueryParameter("status")] - public GetStatusQueryParameterType? Status { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Invitations.GetStatusQueryParameterType? Status { get; set; } } } } diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokePostRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokePostRequestBody.cs index 4cbdbba..a04ff41 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokePostRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokePostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke { - public class RevokePostRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RevokePostRequestBody : IAdditionalDataHolder, 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; set; } @@ -18,7 +22,7 @@ public class RevokePostRequestBody : IAdditionalDataHolder, IParsable public string RequestingUserId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RevokePostRequestBody() { @@ -27,12 +31,12 @@ public RevokePostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RevokePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke.RevokePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RevokePostRequestBody(); + return new global::Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke.RevokePostRequestBody(); } /// /// The deserialization information for the current model @@ -42,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"requesting_user_id", n => { RequestingUserId = n.GetStringValue(); } }, + { "requesting_user_id", n => { RequestingUserId = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokeRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokeRequestBuilder.cs index aa69b24..51bdd22 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokeRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/Revoke/RevokeRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke { +namespace Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke +{ /// /// Builds and executes requests for operations under \organizations\{organization_id}\invitations\{invitation_id}\revoke /// - public class RevokeRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RevokeRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RevokeRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,31 +35,31 @@ public RevokeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Use this request to revoke a previously issued organization invitation.Revoking an organization invitation makes it invalid; the invited user will no longer be able to join the organization with the revoked invitation.Only organization invitations with "pending" status can be revoked.The request needs the `requesting_user_id` parameter to specify the user which revokes the invitation.Only users with "admin" role can revoke invitations. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RevokePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke.RevokePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(RevokePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke.RevokePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OrganizationInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Use this request to revoke a previously issued organization invitation.Revoking an organization invitation makes it invalid; the invited user will no longer be able to join the organization with the revoked invitation.Only organization invitations with "pending" status can be revoked.The request needs the `requesting_user_id` parameter to specify the user which revokes the invitation.Only users with "admin" role can revoke invitations. @@ -67,11 +69,11 @@ public async Task PostAsync(RevokePostRequestBody 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(RevokePostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke.RevokePostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(RevokePostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke.RevokePostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -84,11 +86,11 @@ public RequestInformation ToPostRequestInformation(RevokePostRequestBody body, A /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RevokeRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke.RevokeRequestBuilder WithUrl(string rawUrl) { - return new RevokeRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke.RevokeRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs index 82d888f..3e0cc7c 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Item/WithInvitation_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using Clerk.Net.Client.Models; using Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Organizations.Item.Invitations.Item { +namespace Clerk.Net.Client.Organizations.Item.Invitations.Item +{ /// /// Builds and executes requests for operations under \organizations\{organization_id}\invitations\{invitation_id} /// - public class WithInvitation_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithInvitation_ItemRequestBuilder : BaseRequestBuilder { /// The revoke property - public RevokeRequestBuilder Revoke + public global::Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke.RevokeRequestBuilder Revoke { - get => new RevokeRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Organizations.Item.Invitations.Item.Revoke.RevokeRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithInvitation_ItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,29 +41,29 @@ public WithInvitation_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA /// /// Use this request to get an existing organization invitation by ID. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OrganizationInvitation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Use this request to get an existing organization invitation by ID. @@ -85,11 +87,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithInvitation_ItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Organizations.Item.Invitations.Item.WithInvitation_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithInvitation_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.Invitations.Item.WithInvitation_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Organizations/Item/Invitations/Pending/PendingRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Invitations/Pending/PendingRequestBuilder.cs index eacadcb..3207383 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Invitations/Pending/PendingRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Invitations/Pending/PendingRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Organizations.Item.Invitations.Pending { +namespace Clerk.Net.Client.Organizations.Item.Invitations.Pending +{ /// /// Builds and executes requests for operations under \organizations\{organization_id}\invitations\pending /// - public class PendingRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PendingRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PendingRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,28 +35,28 @@ public PendingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// This request returns the list of organization invitations with "pending" status.These are the organization invitations that can still be used to join the organization, but have not been accepted by the invited user yet.Results can be paginated using the optional `limit` and `offset` query parameters.The organization invitations are ordered by descending creation date.Most recent invitations will be returned first.Any invitations created as a result of an Organization Domain are not included in the results. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 404 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationInvitations.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OrganizationInvitations.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// This request returns the list of organization invitations with "pending" status.These are the organization invitations that can still be used to join the organization, but have not been accepted by the invited user yet.Results can be paginated using the optional `limit` and `offset` query parameters.The organization invitations are ordered by descending creation date.Most recent invitations will be returned first.Any invitations created as a result of an Organization Domain are not included in the results. @@ -64,11 +66,11 @@ public async Task GetAsync(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -79,17 +81,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public PendingRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Organizations.Item.Invitations.Pending.PendingRequestBuilder WithUrl(string rawUrl) { - return new PendingRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.Invitations.Pending.PendingRequestBuilder(rawUrl, RequestAdapter); } /// /// This request returns the list of organization invitations with "pending" status.These are the organization invitations that can still be used to join the organization, but have not been accepted by the invited user yet.Results can be paginated using the optional `limit` and `offset` query parameters.The organization invitations are ordered by descending creation date.Most recent invitations will be returned first.Any invitations created as a result of an Organization Domain are not included in the results. /// - public class PendingRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PendingRequestBuilderGetQueryParameters { /// Applies a limit to the number of results returned.Can be used for paginating the results together with `offset`. [QueryParameter("limit")] diff --git a/src/Clerk.Net/Client/Organizations/Item/Logo/LogoPutRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Logo/LogoPutRequestBody.cs new file mode 100644 index 0000000..bfa0faf --- /dev/null +++ b/src/Clerk.Net/Client/Organizations/Item/Logo/LogoPutRequestBody.cs @@ -0,0 +1,73 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Clerk.Net.Client.Organizations.Item.Logo +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class LogoPutRequestBody : IAdditionalDataHolder, 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; set; } + /// The file property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? File { get; set; } +#nullable restore +#else + public string File { get; set; } +#endif + /// The ID of the user that will be credited with the image upload. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UploaderUserId { get; set; } +#nullable restore +#else + public string UploaderUserId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public LogoPutRequestBody() + { + 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::Clerk.Net.Client.Organizations.Item.Logo.LogoPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Clerk.Net.Client.Organizations.Item.Logo.LogoPutRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "file", n => { File = n.GetStringValue(); } }, + { "uploader_user_id", n => { UploaderUserId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("file", File); + writer.WriteStringValue("uploader_user_id", UploaderUserId); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Clerk.Net/Client/Organizations/Item/Logo/LogoRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Logo/LogoRequestBuilder.cs index ac7f57b..4a68678 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Logo/LogoRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Logo/LogoRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Organizations.Item.Logo { +namespace Clerk.Net.Client.Organizations.Item.Logo +{ /// /// Builds and executes requests for operations under \organizations\{organization_id}\logo /// - public class LogoRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class LogoRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public LogoRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,56 +35,56 @@ public LogoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// /// Delete the organization's logo. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Set or replace an organization's logo, by uploading an image file.This endpoint uses the `multipart/form-data` request content type and accepts a file of image type.The file size cannot exceed 10MB.Only the following file content types are supported: `image/jpeg`, `image/png`, `image/gif`, `image/webp`, `image/x-icon`, `image/vnd.microsoft.icon`. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 413 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 413 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(MultipartBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::Clerk.Net.Client.Organizations.Item.Logo.LogoPutRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(MultipartBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::Clerk.Net.Client.Organizations.Item.Logo.LogoPutRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"413", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "413", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationWithLogo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OrganizationWithLogo.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Delete the organization's logo. @@ -111,11 +113,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(MultipartBody body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::Clerk.Net.Client.Organizations.Item.Logo.LogoPutRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(MultipartBody body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::Clerk.Net.Client.Organizations.Item.Logo.LogoPutRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -128,11 +130,11 @@ public RequestInformation ToPutRequestInformation(MultipartBody body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LogoRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Organizations.Item.Logo.LogoRequestBuilder WithUrl(string rawUrl) { - return new LogoRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.Logo.LogoRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody.cs index 419f762..517808c 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody.cs @@ -1,37 +1,41 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata { - public class MetadataPatchRequestBody : IParsable +namespace Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class MetadataPatchRequestBody : IParsable + #pragma warning restore CS1591 { /// Metadata saved on the organization membership that is only visible to your backend.The new object will be merged with the existing value. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MetadataPatchRequestBody_private_metadata? PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody_private_metadata? PrivateMetadata { get; set; } #nullable restore #else - public MetadataPatchRequestBody_private_metadata PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody_private_metadata PrivateMetadata { get; set; } #endif /// Metadata saved on the organization membership, that is visible to both your frontend and backend.The new object will be merged with the existing value. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MetadataPatchRequestBody_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public MetadataPatchRequestBody_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody_public_metadata PublicMetadata { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MetadataPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MetadataPatchRequestBody(); + return new global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody(); } /// /// The deserialization information for the current model @@ -41,8 +45,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"private_metadata", n => { PrivateMetadata = n.GetObjectValue(MetadataPatchRequestBody_private_metadata.CreateFromDiscriminatorValue); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(MetadataPatchRequestBody_public_metadata.CreateFromDiscriminatorValue); } }, + { "private_metadata", n => { PrivateMetadata = n.GetObjectValue(global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody_private_metadata.CreateFromDiscriminatorValue); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody_public_metadata.CreateFromDiscriminatorValue); } }, }; } /// @@ -52,8 +56,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("private_metadata", PrivateMetadata); - writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteObjectValue("private_metadata", PrivateMetadata); + writer.WriteObjectValue("public_metadata", PublicMetadata); } } } diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs index ed8a773..a670984 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata { +namespace Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata +{ /// /// Metadata saved on the organization membership that is only visible to your backend.The new object will be merged with the existing value. /// - public class MetadataPatchRequestBody_private_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MetadataPatchRequestBody_private_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MetadataPatchRequestBody_private_metadata() { @@ -22,12 +24,12 @@ public MetadataPatchRequestBody_private_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MetadataPatchRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MetadataPatchRequestBody_private_metadata(); + return new global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody_private_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs index 4173d09..1f6e999 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata { +namespace Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata +{ /// /// Metadata saved on the organization membership, that is visible to both your frontend and backend.The new object will be merged with the existing value. /// - public class MetadataPatchRequestBody_public_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MetadataPatchRequestBody_public_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MetadataPatchRequestBody_public_metadata() { @@ -22,12 +24,12 @@ public MetadataPatchRequestBody_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MetadataPatchRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MetadataPatchRequestBody_public_metadata(); + return new global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataRequestBuilder.cs index 4fad396..40f34e3 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/Metadata/MetadataRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata { +namespace Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata +{ /// /// Builds and executes requests for operations under \organizations\{organization_id}\memberships\{user_id}\metadata /// - public class MetadataRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MetadataRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public MetadataRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,31 +35,31 @@ public MetadataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// /// Update an organization membership's metadata attributes by merging existing values with the provided parameters.Metadata values will be updated via a deep merge. Deep means that any nested JSON objects will be merged as well.You can remove metadata keys at any level by setting their value to `null`. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(MetadataPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(MetadataPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OrganizationMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update an organization membership's metadata attributes by merging existing values with the provided parameters.Metadata values will be updated via a deep merge. Deep means that any nested JSON objects will be merged as well.You can remove metadata keys at any level by setting their value to `null`. @@ -67,11 +69,11 @@ public async Task PatchAsync(MetadataPatchRequestBody bo /// 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(MetadataPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MetadataPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -84,11 +86,11 @@ public RequestInformation ToPatchRequestInformation(MetadataPatchRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MetadataRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataRequestBuilder WithUrl(string rawUrl) { - return new MetadataRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_ItemRequestBuilder.cs index 05bb35f..f936e12 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_ItemRequestBuilder.cs @@ -1,27 +1,29 @@ // using Clerk.Net.Client.Models; using Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Organizations.Item.Memberships.Item { +namespace Clerk.Net.Client.Organizations.Item.Memberships.Item +{ /// /// Builds and executes requests for operations under \organizations\{organization_id}\memberships\{user_id} /// - public class WithUser_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithUser_ItemRequestBuilder : BaseRequestBuilder { /// The metadata property - public MetadataRequestBuilder Metadata + public global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataRequestBuilder Metadata { - get => new MetadataRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Organizations.Item.Memberships.Item.Metadata.MetadataRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -29,7 +31,7 @@ public WithUser_ItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,58 +41,58 @@ public WithUser_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Removes the given membership from the organization /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OrganizationMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates the properties of an existing organization membership /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithUser_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Organizations.Item.Memberships.Item.WithUser_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithUser_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Organizations.Item.Memberships.Item.WithUser_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OrganizationMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Removes the given membership from the organization @@ -119,11 +121,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration 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(WithUser_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Organizations.Item.Memberships.Item.WithUser_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithUser_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Organizations.Item.Memberships.Item.WithUser_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -136,11 +138,11 @@ public RequestInformation ToPatchRequestInformation(WithUser_PatchRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithUser_ItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Organizations.Item.Memberships.Item.WithUser_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithUser_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.Memberships.Item.WithUser_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_PatchRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_PatchRequestBody.cs index 8dc416f..9cde9ca 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/Item/WithUser_PatchRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Memberships.Item { - public class WithUser_PatchRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Organizations.Item.Memberships.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithUser_PatchRequestBody : IAdditionalDataHolder, 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; set; } @@ -18,7 +22,7 @@ public class WithUser_PatchRequestBody : IAdditionalDataHolder, IParsable public string Role { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithUser_PatchRequestBody() { @@ -27,12 +31,12 @@ public WithUser_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithUser_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Memberships.Item.WithUser_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithUser_PatchRequestBody(); + return new global::Clerk.Net.Client.Organizations.Item.Memberships.Item.WithUser_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -42,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"role", n => { Role = n.GetStringValue(); } }, + { "role", n => { Role = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsPostRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsPostRequestBody.cs index 39fe5db..6753e11 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Memberships { - public class MembershipsPostRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Organizations.Item.Memberships +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class MembershipsPostRequestBody : IAdditionalDataHolder, 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; set; } @@ -26,7 +30,7 @@ public class MembershipsPostRequestBody : IAdditionalDataHolder, IParsable public string UserId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MembershipsPostRequestBody() { @@ -35,12 +39,12 @@ public MembershipsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MembershipsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Memberships.MembershipsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MembershipsPostRequestBody(); + return new global::Clerk.Net.Client.Organizations.Item.Memberships.MembershipsPostRequestBody(); } /// /// The deserialization information for the current model @@ -50,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"role", n => { Role = n.GetStringValue(); } }, - {"user_id", n => { UserId = n.GetStringValue(); } }, + { "role", n => { Role = n.GetStringValue(); } }, + { "user_id", n => { UserId = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsRequestBuilder.cs index 5f271be..e376251 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Memberships/MembershipsRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Models; using Clerk.Net.Client.Organizations.Item.Memberships.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Organizations.Item.Memberships { +namespace Clerk.Net.Client.Organizations.Item.Memberships +{ /// /// Builds and executes requests for operations under \organizations\{organization_id}\memberships /// - public class MembershipsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MembershipsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.organizations.item.memberships.item collection /// The ID of the user that this membership belongs to - /// A - public WithUser_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Organizations.Item.Memberships.Item.WithUser_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("user_id", position); - return new WithUser_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.Memberships.Item.WithUser_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public MembershipsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,58 +48,58 @@ public MembershipsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// Retrieves all user memberships for the given organization /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 422 status code + /// When receiving a 401 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationMemberships.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OrganizationMemberships.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Adds a user as a member to the given organization.Only users in the same instance as the organization can be added as members. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(MembershipsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Organizations.Item.Memberships.MembershipsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(MembershipsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Organizations.Item.Memberships.MembershipsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, OrganizationMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.OrganizationMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieves all user memberships for the given organization @@ -106,11 +108,11 @@ public async Task PostAsync(MembershipsPostRequestBody b /// 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) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -126,15 +128,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(MembershipsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Organizations.Item.Memberships.MembershipsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MembershipsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Organizations.Item.Memberships.MembershipsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/organizations/{organization_id}/memberships", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -143,16 +145,17 @@ public RequestInformation ToPostRequestInformation(MembershipsPostRequestBody bo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MembershipsRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Organizations.Item.Memberships.MembershipsRequestBuilder WithUrl(string rawUrl) { - return new MembershipsRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.Memberships.MembershipsRequestBuilder(rawUrl, RequestAdapter); } /// /// Retrieves all user memberships for the given organization /// - public class MembershipsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MembershipsRequestBuilderGetQueryParameters { /// Applies a limit to the number of results returned.Can be used for paginating the results together with `offset`. [QueryParameter("limit")] diff --git a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody.cs index 6a9cae2..a431d9b 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody.cs @@ -1,37 +1,41 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Metadata { - public class MetadataPatchRequestBody : IParsable +namespace Clerk.Net.Client.Organizations.Item.Metadata +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class MetadataPatchRequestBody : IParsable + #pragma warning restore CS1591 { /// Metadata saved on the organization that is only visible to your backend.The new object will be merged with the existing value. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MetadataPatchRequestBody_private_metadata? PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody_private_metadata? PrivateMetadata { get; set; } #nullable restore #else - public MetadataPatchRequestBody_private_metadata PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody_private_metadata PrivateMetadata { get; set; } #endif /// Metadata saved on the organization, that is visible to both your frontend and backend.The new object will be merged with the existing value. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MetadataPatchRequestBody_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public MetadataPatchRequestBody_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody_public_metadata PublicMetadata { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MetadataPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MetadataPatchRequestBody(); + return new global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody(); } /// /// The deserialization information for the current model @@ -41,8 +45,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"private_metadata", n => { PrivateMetadata = n.GetObjectValue(MetadataPatchRequestBody_private_metadata.CreateFromDiscriminatorValue); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(MetadataPatchRequestBody_public_metadata.CreateFromDiscriminatorValue); } }, + { "private_metadata", n => { PrivateMetadata = n.GetObjectValue(global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody_private_metadata.CreateFromDiscriminatorValue); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody_public_metadata.CreateFromDiscriminatorValue); } }, }; } /// @@ -52,8 +56,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("private_metadata", PrivateMetadata); - writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteObjectValue("private_metadata", PrivateMetadata); + writer.WriteObjectValue("public_metadata", PublicMetadata); } } } diff --git a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs index 9e1e154..4585c0b 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_private_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Metadata { +namespace Clerk.Net.Client.Organizations.Item.Metadata +{ /// /// Metadata saved on the organization that is only visible to your backend.The new object will be merged with the existing value. /// - public class MetadataPatchRequestBody_private_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MetadataPatchRequestBody_private_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MetadataPatchRequestBody_private_metadata() { @@ -22,12 +24,12 @@ public MetadataPatchRequestBody_private_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MetadataPatchRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MetadataPatchRequestBody_private_metadata(); + return new global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody_private_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs index 3b8555c..80608df 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataPatchRequestBody_public_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item.Metadata { +namespace Clerk.Net.Client.Organizations.Item.Metadata +{ /// /// Metadata saved on the organization, that is visible to both your frontend and backend.The new object will be merged with the existing value. /// - public class MetadataPatchRequestBody_public_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MetadataPatchRequestBody_public_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MetadataPatchRequestBody_public_metadata() { @@ -22,12 +24,12 @@ public MetadataPatchRequestBody_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MetadataPatchRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MetadataPatchRequestBody_public_metadata(); + return new global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataRequestBuilder.cs index 58e0d61..1c226f8 100644 --- a/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/Metadata/MetadataRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Organizations.Item.Metadata { +namespace Clerk.Net.Client.Organizations.Item.Metadata +{ /// /// Builds and executes requests for operations under \organizations\{organization_id}\metadata /// - public class MetadataRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MetadataRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public MetadataRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,33 +35,33 @@ public MetadataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// /// Update organization metadata attributes by merging existing values with the provided parameters.Metadata values will be updated via a deep merge.Deep meaning that any nested JSON objects will be merged as well.You can remove metadata keys at any level by setting their value to `null`. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(MetadataPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(MetadataPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update organization metadata attributes by merging existing values with the provided parameters.Metadata values will be updated via a deep merge.Deep meaning that any nested JSON objects will be merged as well.You can remove metadata keys at any level by setting their value to `null`. @@ -69,11 +71,11 @@ public async Task PatchAsync(MetadataPatchRequestBody body, Action /// 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(MetadataPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MetadataPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -86,11 +88,11 @@ public RequestInformation ToPatchRequestInformation(MetadataPatchRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MetadataRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataRequestBuilder WithUrl(string rawUrl) { - return new MetadataRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_ItemRequestBuilder.cs index 2906958..08222dd 100644 --- a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_ItemRequestBuilder.cs @@ -4,42 +4,44 @@ using Clerk.Net.Client.Organizations.Item.Logo; using Clerk.Net.Client.Organizations.Item.Memberships; using Clerk.Net.Client.Organizations.Item.Metadata; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Organizations.Item { +namespace Clerk.Net.Client.Organizations.Item +{ /// /// Builds and executes requests for operations under \organizations\{organization_id} /// - public class WithOrganization_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithOrganization_ItemRequestBuilder : BaseRequestBuilder { /// The invitations property - public InvitationsRequestBuilder Invitations + public global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsRequestBuilder Invitations { - get => new InvitationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Organizations.Item.Invitations.InvitationsRequestBuilder(PathParameters, RequestAdapter); } /// The logo property - public LogoRequestBuilder Logo + public global::Clerk.Net.Client.Organizations.Item.Logo.LogoRequestBuilder Logo { - get => new LogoRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Organizations.Item.Logo.LogoRequestBuilder(PathParameters, RequestAdapter); } /// The memberships property - public MembershipsRequestBuilder Memberships + public global::Clerk.Net.Client.Organizations.Item.Memberships.MembershipsRequestBuilder Memberships { - get => new MembershipsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Organizations.Item.Memberships.MembershipsRequestBuilder(PathParameters, RequestAdapter); } /// The metadata property - public MetadataRequestBuilder Metadata + public global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataRequestBuilder Metadata { - get => new MetadataRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Organizations.Item.Metadata.MetadataRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -47,7 +49,7 @@ public WithOrganization_ItemRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -57,79 +59,79 @@ public WithOrganization_ItemRequestBuilder(string rawUrl, IRequestAdapter reques /// /// Deletes the given organization.Please note that deleting an organization will also delete all memberships and invitations.This is not reversible. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Fetches the organization whose ID or slug matches the provided `id_or_slug` URL query parameter. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates an existing organization /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 402 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 402 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithOrganization_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithOrganization_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes the given organization.Please note that deleting an organization will also delete all memberships and invitations.This is not reversible. @@ -177,11 +179,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(WithOrganization_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithOrganization_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -194,11 +196,11 @@ public RequestInformation ToPatchRequestInformation(WithOrganization_PatchReques /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithOrganization_ItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Organizations.Item.WithOrganization_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithOrganization_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.WithOrganization_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody.cs b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody.cs index 3c6b60a..4c60f62 100644 --- a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item { - public class WithOrganization_PatchRequestBody : IParsable +namespace Clerk.Net.Client.Organizations.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithOrganization_PatchRequestBody : IParsable + #pragma warning restore CS1591 { /// If true, an admin can delete this organization with the Frontend API. public bool? AdminDeleteEnabled { get; set; } @@ -22,18 +26,18 @@ public class WithOrganization_PatchRequestBody : IParsable /// Metadata saved on the organization that is only visible to your backend. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithOrganization_PatchRequestBody_private_metadata? PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody_private_metadata? PrivateMetadata { get; set; } #nullable restore #else - public WithOrganization_PatchRequestBody_private_metadata PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody_private_metadata PrivateMetadata { get; set; } #endif /// Metadata saved on the organization, that is visible to both your frontend and backend. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithOrganization_PatchRequestBody_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public WithOrganization_PatchRequestBody_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody_public_metadata PublicMetadata { get; set; } #endif /// The new slug of the organization, which needs to be unique in the instance #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -46,12 +50,12 @@ public class WithOrganization_PatchRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithOrganization_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithOrganization_PatchRequestBody(); + return new global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -61,12 +65,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"admin_delete_enabled", n => { AdminDeleteEnabled = n.GetBoolValue(); } }, - {"max_allowed_memberships", n => { MaxAllowedMemberships = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"private_metadata", n => { PrivateMetadata = n.GetObjectValue(WithOrganization_PatchRequestBody_private_metadata.CreateFromDiscriminatorValue); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(WithOrganization_PatchRequestBody_public_metadata.CreateFromDiscriminatorValue); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, + { "admin_delete_enabled", n => { AdminDeleteEnabled = n.GetBoolValue(); } }, + { "max_allowed_memberships", n => { MaxAllowedMemberships = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "private_metadata", n => { PrivateMetadata = n.GetObjectValue(global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody_private_metadata.CreateFromDiscriminatorValue); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody_public_metadata.CreateFromDiscriminatorValue); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, }; } /// @@ -79,8 +83,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("admin_delete_enabled", AdminDeleteEnabled); writer.WriteIntValue("max_allowed_memberships", MaxAllowedMemberships); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("private_metadata", PrivateMetadata); - writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteObjectValue("private_metadata", PrivateMetadata); + writer.WriteObjectValue("public_metadata", PublicMetadata); writer.WriteStringValue("slug", Slug); } } diff --git a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_private_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_private_metadata.cs index e2a39d6..d84b28b 100644 --- a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_private_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item { +namespace Clerk.Net.Client.Organizations.Item +{ /// /// Metadata saved on the organization that is only visible to your backend. /// - public class WithOrganization_PatchRequestBody_private_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithOrganization_PatchRequestBody_private_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithOrganization_PatchRequestBody_private_metadata() { @@ -22,12 +24,12 @@ public WithOrganization_PatchRequestBody_private_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithOrganization_PatchRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithOrganization_PatchRequestBody_private_metadata(); + return new global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody_private_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_public_metadata.cs b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_public_metadata.cs index 6354263..7130f0d 100644 --- a/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/Item/WithOrganization_PatchRequestBody_public_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations.Item { +namespace Clerk.Net.Client.Organizations.Item +{ /// /// Metadata saved on the organization, that is visible to both your frontend and backend. /// - public class WithOrganization_PatchRequestBody_public_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithOrganization_PatchRequestBody_public_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithOrganization_PatchRequestBody_public_metadata() { @@ -22,12 +24,12 @@ public WithOrganization_PatchRequestBody_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithOrganization_PatchRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithOrganization_PatchRequestBody_public_metadata(); + return new global::Clerk.Net.Client.Organizations.Item.WithOrganization_PatchRequestBody_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody.cs b/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody.cs index c3aca11..2cee4cd 100644 --- a/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations { - public class OrganizationsPostRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Organizations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OrganizationsPostRequestBody : IAdditionalDataHolder, 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; set; } @@ -30,18 +34,18 @@ public class OrganizationsPostRequestBody : IAdditionalDataHolder, IParsable /// Metadata saved on the organization, accessible only from the Backend API #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationsPostRequestBody_private_metadata? PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody_private_metadata? PrivateMetadata { get; set; } #nullable restore #else - public OrganizationsPostRequestBody_private_metadata PrivateMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody_private_metadata PrivateMetadata { get; set; } #endif /// Metadata saved on the organization, read-only from the Frontend API and fully accessible (read/write) from the Backend API #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OrganizationsPostRequestBody_public_metadata? PublicMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody_public_metadata? PublicMetadata { get; set; } #nullable restore #else - public OrganizationsPostRequestBody_public_metadata PublicMetadata { get; set; } + public global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody_public_metadata PublicMetadata { get; set; } #endif /// A slug for the new organization.Can contain only lowercase alphanumeric characters and the dash "-".Must be unique for the instance. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -52,7 +56,7 @@ public class OrganizationsPostRequestBody : IAdditionalDataHolder, IParsable public string Slug { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationsPostRequestBody() { @@ -61,12 +65,12 @@ public OrganizationsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationsPostRequestBody(); + return new global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody(); } /// /// The deserialization information for the current model @@ -76,12 +80,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"created_by", n => { CreatedBy = n.GetStringValue(); } }, - {"max_allowed_memberships", n => { MaxAllowedMemberships = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"private_metadata", n => { PrivateMetadata = n.GetObjectValue(OrganizationsPostRequestBody_private_metadata.CreateFromDiscriminatorValue); } }, - {"public_metadata", n => { PublicMetadata = n.GetObjectValue(OrganizationsPostRequestBody_public_metadata.CreateFromDiscriminatorValue); } }, - {"slug", n => { Slug = n.GetStringValue(); } }, + { "created_by", n => { CreatedBy = n.GetStringValue(); } }, + { "max_allowed_memberships", n => { MaxAllowedMemberships = n.GetIntValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "private_metadata", n => { PrivateMetadata = n.GetObjectValue(global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody_private_metadata.CreateFromDiscriminatorValue); } }, + { "public_metadata", n => { PublicMetadata = n.GetObjectValue(global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody_public_metadata.CreateFromDiscriminatorValue); } }, + { "slug", n => { Slug = n.GetStringValue(); } }, }; } /// @@ -94,8 +98,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("created_by", CreatedBy); writer.WriteIntValue("max_allowed_memberships", MaxAllowedMemberships); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("private_metadata", PrivateMetadata); - writer.WriteObjectValue("public_metadata", PublicMetadata); + writer.WriteObjectValue("private_metadata", PrivateMetadata); + writer.WriteObjectValue("public_metadata", PublicMetadata); writer.WriteStringValue("slug", Slug); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_private_metadata.cs b/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_private_metadata.cs index 8db3260..94a6960 100644 --- a/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_private_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_private_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations { +namespace Clerk.Net.Client.Organizations +{ /// /// Metadata saved on the organization, accessible only from the Backend API /// - public class OrganizationsPostRequestBody_private_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class OrganizationsPostRequestBody_private_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationsPostRequestBody_private_metadata() { @@ -22,12 +24,12 @@ public OrganizationsPostRequestBody_private_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationsPostRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody_private_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationsPostRequestBody_private_metadata(); + return new global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody_private_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_public_metadata.cs b/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_public_metadata.cs index 938e8ef..6036b85 100644 --- a/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_public_metadata.cs +++ b/src/Clerk.Net/Client/Organizations/OrganizationsPostRequestBody_public_metadata.cs @@ -1,19 +1,21 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Organizations { +namespace Clerk.Net.Client.Organizations +{ /// /// Metadata saved on the organization, read-only from the Frontend API and fully accessible (read/write) from the Backend API /// - public class OrganizationsPostRequestBody_public_metadata : IAdditionalDataHolder, IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class OrganizationsPostRequestBody_public_metadata : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationsPostRequestBody_public_metadata() { @@ -22,12 +24,12 @@ public OrganizationsPostRequestBody_public_metadata() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OrganizationsPostRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody_public_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OrganizationsPostRequestBody_public_metadata(); + return new global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody_public_metadata(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Organizations/OrganizationsRequestBuilder.cs b/src/Clerk.Net/Client/Organizations/OrganizationsRequestBuilder.cs index a43bfbf..e9af63a 100644 --- a/src/Clerk.Net/Client/Organizations/OrganizationsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Organizations/OrganizationsRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Models; using Clerk.Net.Client.Organizations.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Organizations { +namespace Clerk.Net.Client.Organizations +{ /// /// Builds and executes requests for operations under \organizations /// - public class OrganizationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class OrganizationsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.organizations.item collection /// The ID or slug of the organization - /// A - public WithOrganization_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Organizations.Item.WithOrganization_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("organization_id", position); - return new WithOrganization_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.Item.WithOrganization_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public OrganizationsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,58 +48,58 @@ public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// This request returns the list of organizations for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The organizations are ordered by descending creation date.Most recent organizations will be returned first. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Clerk.Net.Client.Models.Organizations.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Organizations.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Creates a new organization with the given name for an instance.In order to successfully create an organization you need to provide the ID of the User who will become the organization administrator.You can specify an optional slug for the new organization.If provided, the organization slug can contain only lowercase alphanumeric characters (letters and digits) and the dash "-".Organization slugs must be unique for the instance.You can provide additional metadata for the organization and set any custom attribute you want.Organizations support private and public metadata.Private metadata can only be accessed from the Backend API.Public metadata can be accessed from the Backend API, and are read-only from the Frontend API. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(OrganizationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(OrganizationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// This request returns the list of organizations for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The organizations are ordered by descending creation date.Most recent organizations will be returned first. @@ -106,11 +108,11 @@ public async Task PostAsync(OrganizationsPostRequestBody body, Act /// 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) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -126,15 +128,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(OrganizationsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(OrganizationsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Organizations.OrganizationsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/organizations", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -143,16 +145,17 @@ public RequestInformation ToPostRequestInformation(OrganizationsPostRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public OrganizationsRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) { - return new OrganizationsRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); } /// /// This request returns the list of organizations for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The organizations are ordered by descending creation date.Most recent organizations will be returned first. /// - public class OrganizationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class OrganizationsRequestBuilderGetQueryParameters { /// Flag to denote whether the member counts of each organization should be included in the response or not. [QueryParameter("include_members_count")] diff --git a/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_ItemRequestBuilder.cs index 97a1275..137bda6 100644 --- a/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Phone_numbers.Item { +namespace Clerk.Net.Client.Phone_numbers.Item +{ /// /// Builds and executes requests for operations under \phone_numbers\{phone_number_id} /// - public class WithPhone_number_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithPhone_number_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithPhone_number_ItemRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,91 +35,91 @@ public WithPhone_number_ItemRequestBuilder(string rawUrl, IRequestAdapter reques /// /// Delete the phone number with the given ID /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Returns the details of a phone number /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, PhoneNumber.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.PhoneNumber.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates a phone number /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithPhone_number_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Phone_numbers.Item.WithPhone_number_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithPhone_number_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Phone_numbers.Item.WithPhone_number_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, PhoneNumber.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.PhoneNumber.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Delete the phone number with the given ID @@ -165,11 +167,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(WithPhone_number_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Phone_numbers.Item.WithPhone_number_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithPhone_number_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Phone_numbers.Item.WithPhone_number_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -182,11 +184,11 @@ public RequestInformation ToPatchRequestInformation(WithPhone_number_PatchReques /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithPhone_number_ItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Phone_numbers.Item.WithPhone_number_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithPhone_number_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Phone_numbers.Item.WithPhone_number_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_PatchRequestBody.cs b/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_PatchRequestBody.cs index a4c6a51..dd67d36 100644 --- a/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Phone_numbers/Item/WithPhone_number_PatchRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Phone_numbers.Item { - public class WithPhone_number_PatchRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Phone_numbers.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithPhone_number_PatchRequestBody : IAdditionalDataHolder, 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; set; } @@ -16,7 +20,7 @@ public class WithPhone_number_PatchRequestBody : IAdditionalDataHolder, IParsabl /// The phone number will be marked as verified. public bool? Verified { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithPhone_number_PatchRequestBody() { @@ -25,12 +29,12 @@ public WithPhone_number_PatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithPhone_number_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Phone_numbers.Item.WithPhone_number_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithPhone_number_PatchRequestBody(); + return new global::Clerk.Net.Client.Phone_numbers.Item.WithPhone_number_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -40,9 +44,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"primary", n => { Primary = n.GetBoolValue(); } }, - {"reserved_for_second_factor", n => { ReservedForSecondFactor = n.GetBoolValue(); } }, - {"verified", n => { Verified = n.GetBoolValue(); } }, + { "primary", n => { Primary = n.GetBoolValue(); } }, + { "reserved_for_second_factor", n => { ReservedForSecondFactor = n.GetBoolValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Phone_numbers/Phone_numbersPostRequestBody.cs b/src/Clerk.Net/Client/Phone_numbers/Phone_numbersPostRequestBody.cs index 35881af..2024f88 100644 --- a/src/Clerk.Net/Client/Phone_numbers/Phone_numbersPostRequestBody.cs +++ b/src/Clerk.Net/Client/Phone_numbers/Phone_numbersPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Phone_numbers { - public class Phone_numbersPostRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Phone_numbers +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Phone_numbersPostRequestBody : IAdditionalDataHolder, 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; set; } @@ -32,7 +36,7 @@ public class Phone_numbersPostRequestBody : IAdditionalDataHolder, IParsable /// When created, the phone number will be marked as verified. public bool? Verified { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Phone_numbersPostRequestBody() { @@ -41,12 +45,12 @@ public Phone_numbersPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Phone_numbersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Phone_numbers.Phone_numbersPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Phone_numbersPostRequestBody(); + return new global::Clerk.Net.Client.Phone_numbers.Phone_numbersPostRequestBody(); } /// /// The deserialization information for the current model @@ -56,11 +60,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"phone_number", n => { PhoneNumber = n.GetStringValue(); } }, - {"primary", n => { Primary = n.GetBoolValue(); } }, - {"reserved_for_second_factor", n => { ReservedForSecondFactor = n.GetBoolValue(); } }, - {"user_id", n => { UserId = n.GetStringValue(); } }, - {"verified", n => { Verified = n.GetBoolValue(); } }, + { "phone_number", n => { PhoneNumber = n.GetStringValue(); } }, + { "primary", n => { Primary = n.GetBoolValue(); } }, + { "reserved_for_second_factor", n => { ReservedForSecondFactor = n.GetBoolValue(); } }, + { "user_id", n => { UserId = n.GetStringValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Phone_numbers/Phone_numbersRequestBuilder.cs b/src/Clerk.Net/Client/Phone_numbers/Phone_numbersRequestBuilder.cs index 1c80fb5..da11515 100644 --- a/src/Clerk.Net/Client/Phone_numbers/Phone_numbersRequestBuilder.cs +++ b/src/Clerk.Net/Client/Phone_numbers/Phone_numbersRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Models; using Clerk.Net.Client.Phone_numbers.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Phone_numbers { +namespace Clerk.Net.Client.Phone_numbers +{ /// /// Builds and executes requests for operations under \phone_numbers /// - public class Phone_numbersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Phone_numbersRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.phone_numbers.item collection /// The ID of the phone number to retrieve - /// A - public WithPhone_number_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Phone_numbers.Item.WithPhone_number_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("phone_number_id", position); - return new WithPhone_number_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Phone_numbers.Item.WithPhone_number_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Phone_numbersRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,35 +48,35 @@ public Phone_numbersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Create a new phone number /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Phone_numbersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Phone_numbers.Phone_numbersPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Phone_numbersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Phone_numbers.Phone_numbersPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, PhoneNumber.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.PhoneNumber.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Create a new phone number @@ -84,11 +86,11 @@ public async Task PostAsync(Phone_numbersPostRequestBody body, Acti /// 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(Phone_numbersPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Phone_numbers.Phone_numbersPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Phone_numbersPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Phone_numbers.Phone_numbersPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -101,11 +103,11 @@ public RequestInformation ToPostRequestInformation(Phone_numbersPostRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Phone_numbersRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Phone_numbers.Phone_numbersRequestBuilder WithUrl(string rawUrl) { - return new Phone_numbersRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Phone_numbers.Phone_numbersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Proxy_checks/Proxy_checksPostRequestBody.cs b/src/Clerk.Net/Client/Proxy_checks/Proxy_checksPostRequestBody.cs index cb69a48..2e50a9d 100644 --- a/src/Clerk.Net/Client/Proxy_checks/Proxy_checksPostRequestBody.cs +++ b/src/Clerk.Net/Client/Proxy_checks/Proxy_checksPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Proxy_checks { - public class Proxy_checksPostRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Proxy_checks +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Proxy_checksPostRequestBody : IAdditionalDataHolder, 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; set; } @@ -26,7 +30,7 @@ public class Proxy_checksPostRequestBody : IAdditionalDataHolder, IParsable public string ProxyUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Proxy_checksPostRequestBody() { @@ -35,12 +39,12 @@ public Proxy_checksPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Proxy_checksPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Proxy_checks.Proxy_checksPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Proxy_checksPostRequestBody(); + return new global::Clerk.Net.Client.Proxy_checks.Proxy_checksPostRequestBody(); } /// /// The deserialization information for the current model @@ -50,8 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"domain_id", n => { DomainId = n.GetStringValue(); } }, - {"proxy_url", n => { ProxyUrl = n.GetStringValue(); } }, + { "domain_id", n => { DomainId = n.GetStringValue(); } }, + { "proxy_url", n => { ProxyUrl = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Proxy_checks/Proxy_checksRequestBuilder.cs b/src/Clerk.Net/Client/Proxy_checks/Proxy_checksRequestBuilder.cs index 01e78d5..b89f530 100644 --- a/src/Clerk.Net/Client/Proxy_checks/Proxy_checksRequestBuilder.cs +++ b/src/Clerk.Net/Client/Proxy_checks/Proxy_checksRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Proxy_checks { +namespace Clerk.Net.Client.Proxy_checks +{ /// /// Builds and executes requests for operations under \proxy_checks /// - public class Proxy_checksRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Proxy_checksRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Proxy_checksRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,29 +35,29 @@ public Proxy_checksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// This endpoint can be used to validate that a proxy-enabled domain is operational.It tries to verify that the proxy URL provided in the parameters maps to a functional proxy that can reach the Clerk Frontend API.You can use this endpoint before you set a proxy URL for a domain. This way you can ensure that switching to proxy-basedconfiguration will not lead to downtime for your instance.The `proxy_url` parameter allows for testing proxy configurations for domains that don't have a proxy URL yet, or operate ona different proxy URL than the one provided. It can also be used to re-validate a domain that is already configured to work with a proxy. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Proxy_checksPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Proxy_checks.Proxy_checksPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Proxy_checksPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Proxy_checks.Proxy_checksPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ProxyCheck.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.ProxyCheck.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// This endpoint can be used to validate that a proxy-enabled domain is operational.It tries to verify that the proxy URL provided in the parameters maps to a functional proxy that can reach the Clerk Frontend API.You can use this endpoint before you set a proxy URL for a domain. This way you can ensure that switching to proxy-basedconfiguration will not lead to downtime for your instance.The `proxy_url` parameter allows for testing proxy configurations for domains that don't have a proxy URL yet, or operate ona different proxy URL than the one provided. It can also be used to re-validate a domain that is already configured to work with a proxy. @@ -65,11 +67,11 @@ public async Task PostAsync(Proxy_checksPostRequestBody body, Action /// 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(Proxy_checksPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Proxy_checks.Proxy_checksPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Proxy_checksPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Proxy_checks.Proxy_checksPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -82,11 +84,11 @@ public RequestInformation ToPostRequestInformation(Proxy_checksPostRequestBody b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Proxy_checksRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Proxy_checks.Proxy_checksRequestBuilder WithUrl(string rawUrl) { - return new Proxy_checksRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Proxy_checks.Proxy_checksRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Public/Interstitial/InterstitialRequestBuilder.cs b/src/Clerk.Net/Client/Public/Interstitial/InterstitialRequestBuilder.cs index 65b4e9f..8aa9e27 100644 --- a/src/Clerk.Net/Client/Public/Interstitial/InterstitialRequestBuilder.cs +++ b/src/Clerk.Net/Client/Public/Interstitial/InterstitialRequestBuilder.cs @@ -1,20 +1,22 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Public.Interstitial { +namespace Clerk.Net.Client.Public.Interstitial +{ /// /// Builds and executes requests for operations under \public\interstitial /// - public class InterstitialRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class InterstitialRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -22,7 +24,7 @@ public InterstitialRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -37,11 +39,11 @@ public InterstitialRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); @@ -54,11 +56,11 @@ public async Task GetAsync(ActionConfiguration 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) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -68,16 +70,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InterstitialRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Public.Interstitial.InterstitialRequestBuilder WithUrl(string rawUrl) { - return new InterstitialRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Public.Interstitial.InterstitialRequestBuilder(rawUrl, RequestAdapter); } /// /// The Clerk interstitial endpoint serves an html page that loads clerk.js in order to check the user's authentication state.It is used by Clerk SDKs when the user's authentication state cannot be immediately determined. /// - public class InterstitialRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class InterstitialRequestBuilderGetQueryParameters { /// The Frontend API key of your instance #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Clerk.Net/Client/Public/PublicRequestBuilder.cs b/src/Clerk.Net/Client/Public/PublicRequestBuilder.cs index f48df3f..1627464 100644 --- a/src/Clerk.Net/Client/Public/PublicRequestBuilder.cs +++ b/src/Clerk.Net/Client/Public/PublicRequestBuilder.cs @@ -1,24 +1,26 @@ // using Clerk.Net.Client.Public.Interstitial; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Clerk.Net.Client.Public { +namespace Clerk.Net.Client.Public +{ /// /// Builds and executes requests for operations under \public /// - public class PublicRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PublicRequestBuilder : BaseRequestBuilder { /// The interstitial property - public InterstitialRequestBuilder Interstitial + public global::Clerk.Net.Client.Public.Interstitial.InterstitialRequestBuilder Interstitial { - get => new InterstitialRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Public.Interstitial.InterstitialRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public PublicRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/Clerk.Net/Client/Redirect_urls/Item/Redirect_urlsItemRequestBuilder.cs b/src/Clerk.Net/Client/Redirect_urls/Item/Redirect_urlsItemRequestBuilder.cs index f0b9786..938001d 100644 --- a/src/Clerk.Net/Client/Redirect_urls/Item/Redirect_urlsItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Redirect_urls/Item/Redirect_urlsItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Redirect_urls.Item { +namespace Clerk.Net.Client.Redirect_urls.Item +{ /// /// Builds and executes requests for operations under \redirect_urls\{id} /// - public class Redirect_urlsItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Redirect_urlsItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Redirect_urlsItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,48 +35,48 @@ public Redirect_urlsItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// /// Remove the selected redirect URL from the whitelist of the instance /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve the details of the redirect URL with the given ID /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, RedirectURL.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.RedirectURL.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Remove the selected redirect URL from the whitelist of the instance @@ -117,11 +119,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Redirect_urlsItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Redirect_urls.Item.Redirect_urlsItemRequestBuilder WithUrl(string rawUrl) { - return new Redirect_urlsItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Redirect_urls.Item.Redirect_urlsItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsPostRequestBody.cs b/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsPostRequestBody.cs index a7d0d7d..bb40363 100644 --- a/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Redirect_urls { - public class Redirect_urlsPostRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Redirect_urls +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Redirect_urlsPostRequestBody : IAdditionalDataHolder, 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; set; } @@ -18,7 +22,7 @@ public class Redirect_urlsPostRequestBody : IAdditionalDataHolder, IParsable public string Url { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Redirect_urlsPostRequestBody() { @@ -27,12 +31,12 @@ public Redirect_urlsPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Redirect_urlsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Redirect_urls.Redirect_urlsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Redirect_urlsPostRequestBody(); + return new global::Clerk.Net.Client.Redirect_urls.Redirect_urlsPostRequestBody(); } /// /// The deserialization information for the current model @@ -42,7 +46,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"url", n => { Url = n.GetStringValue(); } }, + { "url", n => { Url = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsRequestBuilder.cs b/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsRequestBuilder.cs index ae2a9f1..30f28d8 100644 --- a/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Redirect_urls/Redirect_urlsRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Models; using Clerk.Net.Client.Redirect_urls.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Redirect_urls { +namespace Clerk.Net.Client.Redirect_urls +{ /// /// Builds and executes requests for operations under \redirect_urls /// - public class Redirect_urlsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Redirect_urlsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.redirect_urls.item collection /// The ID of the redirect URL - /// A - public Redirect_urlsItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Redirect_urls.Item.Redirect_urlsItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("id", position); - return new Redirect_urlsItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Redirect_urls.Item.Redirect_urlsItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Redirect_urlsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,48 +48,48 @@ public Redirect_urlsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Lists all whitelisted redirect_urls for the instance /// - /// A List<RedirectURL> + /// A List<global::Clerk.Net.Client.Models.RedirectURL> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RedirectURL.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Clerk.Net.Client.Models.RedirectURL.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a redirect URL /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Redirect_urlsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Redirect_urls.Redirect_urlsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Redirect_urlsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Redirect_urls.Redirect_urlsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, RedirectURL.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.RedirectURL.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists all whitelisted redirect_urls for the instance @@ -116,11 +118,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Redirect_urlsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Redirect_urls.Redirect_urlsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Redirect_urlsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Redirect_urls.Redirect_urlsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -133,11 +135,11 @@ public RequestInformation ToPostRequestInformation(Redirect_urlsPostRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Redirect_urlsRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Redirect_urls.Redirect_urlsRequestBuilder WithUrl(string rawUrl) { - return new Redirect_urlsRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Redirect_urls.Redirect_urlsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_ItemRequestBuilder.cs index 3882efb..7a6532a 100644 --- a/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_ItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Saml_connections.Item { +namespace Clerk.Net.Client.Saml_connections.Item +{ /// /// Builds and executes requests for operations under \saml_connections\{saml_connection_id} /// - public class WithSaml_connection_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithSaml_connection_ItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithSaml_connection_ItemRequestBuilder(Dictionary pathPar { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,87 +35,87 @@ public WithSaml_connection_ItemRequestBuilder(string rawUrl, IRequestAdapter req /// /// Deletes the SAML Connection whose ID matches the provided `id` in the path. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 402 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 402 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.DeletedObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Fetches the SAML Connection whose ID matches the provided `saml_connection_id` in the path. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 402 status code - /// When receiving a 403 status code - /// When receiving a 404 status code + /// When receiving a 402 status code + /// When receiving a 403 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, SAMLConnection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.SAMLConnection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Updates the SAML Connection whose ID matches the provided `id` in the path. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 402 status code - /// When receiving a 403 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 402 status code + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(WithSaml_connection_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_PatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(WithSaml_connection_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_PatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, SAMLConnection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.SAMLConnection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Deletes the SAML Connection whose ID matches the provided `id` in the path. @@ -161,11 +163,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(WithSaml_connection_PatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_PatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(WithSaml_connection_PatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_PatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -178,11 +180,11 @@ public RequestInformation ToPatchRequestInformation(WithSaml_connection_PatchReq /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithSaml_connection_ItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithSaml_connection_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody.cs b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody.cs index 387004d..4e16c53 100644 --- a/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody.cs +++ b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Saml_connections.Item { - public class WithSaml_connection_PatchRequestBody : IParsable +namespace Clerk.Net.Client.Saml_connections.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithSaml_connection_PatchRequestBody : IParsable + #pragma warning restore CS1591 { /// Activate or de-activate the SAML Connection public bool? Active { get; set; } @@ -16,10 +20,10 @@ public class WithSaml_connection_PatchRequestBody : IParsable /// Define the atrtibute name mapping between Identity Provider and Clerk's user properties #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithSaml_connection_PatchRequestBody_attribute_mapping? AttributeMapping { get; set; } + public global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_PatchRequestBody_attribute_mapping? AttributeMapping { get; set; } #nullable restore #else - public WithSaml_connection_PatchRequestBody_attribute_mapping AttributeMapping { get; set; } + public global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_PatchRequestBody_attribute_mapping AttributeMapping { get; set; } #endif /// The domain to use for the new SAML Connection #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,12 +86,12 @@ public class WithSaml_connection_PatchRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSaml_connection_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_PatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSaml_connection_PatchRequestBody(); + return new global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_PatchRequestBody(); } /// /// The deserialization information for the current model @@ -97,18 +101,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"active", n => { Active = n.GetBoolValue(); } }, - {"allow_idp_initiated", n => { AllowIdpInitiated = n.GetBoolValue(); } }, - {"allow_subdomains", n => { AllowSubdomains = n.GetBoolValue(); } }, - {"attribute_mapping", n => { AttributeMapping = n.GetObjectValue(WithSaml_connection_PatchRequestBody_attribute_mapping.CreateFromDiscriminatorValue); } }, - {"domain", n => { Domain = n.GetStringValue(); } }, - {"idp_certificate", n => { IdpCertificate = n.GetStringValue(); } }, - {"idp_entity_id", n => { IdpEntityId = n.GetStringValue(); } }, - {"idp_metadata", n => { IdpMetadata = n.GetStringValue(); } }, - {"idp_metadata_url", n => { IdpMetadataUrl = n.GetStringValue(); } }, - {"idp_sso_url", n => { IdpSsoUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"sync_user_attributes", n => { SyncUserAttributes = n.GetBoolValue(); } }, + { "active", n => { Active = n.GetBoolValue(); } }, + { "allow_idp_initiated", n => { AllowIdpInitiated = n.GetBoolValue(); } }, + { "allow_subdomains", n => { AllowSubdomains = n.GetBoolValue(); } }, + { "attribute_mapping", n => { AttributeMapping = n.GetObjectValue(global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_PatchRequestBody_attribute_mapping.CreateFromDiscriminatorValue); } }, + { "domain", n => { Domain = n.GetStringValue(); } }, + { "idp_certificate", n => { IdpCertificate = n.GetStringValue(); } }, + { "idp_entity_id", n => { IdpEntityId = n.GetStringValue(); } }, + { "idp_metadata", n => { IdpMetadata = n.GetStringValue(); } }, + { "idp_metadata_url", n => { IdpMetadataUrl = n.GetStringValue(); } }, + { "idp_sso_url", n => { IdpSsoUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "sync_user_attributes", n => { SyncUserAttributes = n.GetBoolValue(); } }, }; } /// @@ -121,7 +125,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("active", Active); writer.WriteBoolValue("allow_idp_initiated", AllowIdpInitiated); writer.WriteBoolValue("allow_subdomains", AllowSubdomains); - writer.WriteObjectValue("attribute_mapping", AttributeMapping); + writer.WriteObjectValue("attribute_mapping", AttributeMapping); writer.WriteStringValue("domain", Domain); writer.WriteStringValue("idp_certificate", IdpCertificate); writer.WriteStringValue("idp_entity_id", IdpEntityId); diff --git a/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody_attribute_mapping.cs b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody_attribute_mapping.cs index 343bb5e..987c82e 100644 --- a/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody_attribute_mapping.cs +++ b/src/Clerk.Net/Client/Saml_connections/Item/WithSaml_connection_PatchRequestBody_attribute_mapping.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Saml_connections.Item { +namespace Clerk.Net.Client.Saml_connections.Item +{ /// /// Define the atrtibute name mapping between Identity Provider and Clerk's user properties /// - public class WithSaml_connection_PatchRequestBody_attribute_mapping : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithSaml_connection_PatchRequestBody_attribute_mapping : IParsable { /// The email_address property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -45,12 +47,12 @@ public class WithSaml_connection_PatchRequestBody_attribute_mapping : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithSaml_connection_PatchRequestBody_attribute_mapping CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_PatchRequestBody_attribute_mapping CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithSaml_connection_PatchRequestBody_attribute_mapping(); + return new global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_PatchRequestBody_attribute_mapping(); } /// /// The deserialization information for the current model @@ -60,10 +62,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email_address", n => { EmailAddress = n.GetStringValue(); } }, - {"first_name", n => { FirstName = n.GetStringValue(); } }, - {"last_name", n => { LastName = n.GetStringValue(); } }, - {"user_id", n => { UserId = n.GetStringValue(); } }, + { "email_address", n => { EmailAddress = n.GetStringValue(); } }, + { "first_name", n => { FirstName = n.GetStringValue(); } }, + { "last_name", n => { LastName = n.GetStringValue(); } }, + { "user_id", n => { UserId = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody.cs b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody.cs index fb697fa..96769ea 100644 --- a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody.cs +++ b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody.cs @@ -1,19 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Saml_connections { - public class Saml_connectionsPostRequestBody : IParsable +namespace Clerk.Net.Client.Saml_connections +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Saml_connectionsPostRequestBody : IParsable + #pragma warning restore CS1591 { /// Define the attribute name mapping between Identity Provider and Clerk's user properties #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Saml_connectionsPostRequestBody_attribute_mapping? AttributeMapping { get; set; } + public global::Clerk.Net.Client.Saml_connections.Saml_connectionsPostRequestBody_attribute_mapping? AttributeMapping { get; set; } #nullable restore #else - public Saml_connectionsPostRequestBody_attribute_mapping AttributeMapping { get; set; } + public global::Clerk.Net.Client.Saml_connections.Saml_connectionsPostRequestBody_attribute_mapping AttributeMapping { get; set; } #endif /// The domain of your organization. Sign in flows using an email with this domain, will use this SAML Connection. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -72,16 +76,16 @@ public class Saml_connectionsPostRequestBody : IParsable public string Name { get; set; } #endif /// The IdP provider of the connection. - public Saml_connectionsPostRequestBody_provider? Provider { get; set; } + public global::Clerk.Net.Client.Saml_connections.Saml_connectionsPostRequestBody_provider? Provider { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Saml_connectionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Saml_connections.Saml_connectionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Saml_connectionsPostRequestBody(); + return new global::Clerk.Net.Client.Saml_connections.Saml_connectionsPostRequestBody(); } /// /// The deserialization information for the current model @@ -91,15 +95,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"attribute_mapping", n => { AttributeMapping = n.GetObjectValue(Saml_connectionsPostRequestBody_attribute_mapping.CreateFromDiscriminatorValue); } }, - {"domain", n => { Domain = n.GetStringValue(); } }, - {"idp_certificate", n => { IdpCertificate = n.GetStringValue(); } }, - {"idp_entity_id", n => { IdpEntityId = n.GetStringValue(); } }, - {"idp_metadata", n => { IdpMetadata = n.GetStringValue(); } }, - {"idp_metadata_url", n => { IdpMetadataUrl = n.GetStringValue(); } }, - {"idp_sso_url", n => { IdpSsoUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"provider", n => { Provider = n.GetEnumValue(); } }, + { "attribute_mapping", n => { AttributeMapping = n.GetObjectValue(global::Clerk.Net.Client.Saml_connections.Saml_connectionsPostRequestBody_attribute_mapping.CreateFromDiscriminatorValue); } }, + { "domain", n => { Domain = n.GetStringValue(); } }, + { "idp_certificate", n => { IdpCertificate = n.GetStringValue(); } }, + { "idp_entity_id", n => { IdpEntityId = n.GetStringValue(); } }, + { "idp_metadata", n => { IdpMetadata = n.GetStringValue(); } }, + { "idp_metadata_url", n => { IdpMetadataUrl = n.GetStringValue(); } }, + { "idp_sso_url", n => { IdpSsoUrl = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "provider", n => { Provider = n.GetEnumValue(); } }, }; } /// @@ -109,7 +113,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("attribute_mapping", AttributeMapping); + writer.WriteObjectValue("attribute_mapping", AttributeMapping); writer.WriteStringValue("domain", Domain); writer.WriteStringValue("idp_certificate", IdpCertificate); writer.WriteStringValue("idp_entity_id", IdpEntityId); @@ -117,7 +121,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("idp_metadata_url", IdpMetadataUrl); writer.WriteStringValue("idp_sso_url", IdpSsoUrl); writer.WriteStringValue("name", Name); - writer.WriteEnumValue("provider", Provider); + writer.WriteEnumValue("provider", Provider); } } } diff --git a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_attribute_mapping.cs b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_attribute_mapping.cs index 878dd45..a4fc9c4 100644 --- a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_attribute_mapping.cs +++ b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_attribute_mapping.cs @@ -1,14 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Saml_connections { +namespace Clerk.Net.Client.Saml_connections +{ /// /// Define the attribute name mapping between Identity Provider and Clerk's user properties /// - public class Saml_connectionsPostRequestBody_attribute_mapping : IParsable + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Saml_connectionsPostRequestBody_attribute_mapping : IParsable { /// The email_address property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -45,12 +47,12 @@ public class Saml_connectionsPostRequestBody_attribute_mapping : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Saml_connectionsPostRequestBody_attribute_mapping CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Saml_connections.Saml_connectionsPostRequestBody_attribute_mapping CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Saml_connectionsPostRequestBody_attribute_mapping(); + return new global::Clerk.Net.Client.Saml_connections.Saml_connectionsPostRequestBody_attribute_mapping(); } /// /// The deserialization information for the current model @@ -60,10 +62,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"email_address", n => { EmailAddress = n.GetStringValue(); } }, - {"first_name", n => { FirstName = n.GetStringValue(); } }, - {"last_name", n => { LastName = n.GetStringValue(); } }, - {"user_id", n => { UserId = n.GetStringValue(); } }, + { "email_address", n => { EmailAddress = n.GetStringValue(); } }, + { "first_name", n => { FirstName = n.GetStringValue(); } }, + { "last_name", n => { LastName = n.GetStringValue(); } }, + { "user_id", n => { UserId = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_provider.cs b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_provider.cs index 542bdb0..9a90f5e 100644 --- a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_provider.cs +++ b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsPostRequestBody_provider.cs @@ -1,17 +1,27 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Saml_connections { +namespace Clerk.Net.Client.Saml_connections +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] /// The IdP provider of the connection. public enum Saml_connectionsPostRequestBody_provider { [EnumMember(Value = "saml_custom")] + #pragma warning disable CS1591 Saml_custom, + #pragma warning restore CS1591 [EnumMember(Value = "saml_okta")] + #pragma warning disable CS1591 Saml_okta, + #pragma warning restore CS1591 [EnumMember(Value = "saml_google")] + #pragma warning disable CS1591 Saml_google, + #pragma warning restore CS1591 [EnumMember(Value = "saml_microsoft")] + #pragma warning disable CS1591 Saml_microsoft, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsRequestBuilder.cs b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsRequestBuilder.cs index 70dcb2e..385cbc0 100644 --- a/src/Clerk.Net/Client/Saml_connections/Saml_connectionsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Saml_connections/Saml_connectionsRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Models; using Clerk.Net.Client.Saml_connections.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Saml_connections { +namespace Clerk.Net.Client.Saml_connections +{ /// /// Builds and executes requests for operations under \saml_connections /// - public class Saml_connectionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Saml_connectionsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.saml_connections.item collection /// The ID of the SAML Connection - /// A - public WithSaml_connection_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("saml_connection_id", position); - return new WithSaml_connection_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Saml_connections.Item.WithSaml_connection_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Saml_connectionsRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,58 +48,58 @@ public Saml_connectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Returns the list of SAML Connections for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The SAML Connections are ordered by descending creation date and the most recent will be returned first. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 402 status code - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 402 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, SAMLConnections.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.SAMLConnections.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Create a new SAML Connection. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 402 status code - /// When receiving a 403 status code - /// When receiving a 422 status code + /// When receiving a 402 status code + /// When receiving a 403 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Saml_connectionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Saml_connections.Saml_connectionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Saml_connectionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Saml_connections.Saml_connectionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"402", ClerkErrors.CreateFromDiscriminatorValue}, - {"403", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "402", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, SAMLConnection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.SAMLConnection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Returns the list of SAML Connections for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The SAML Connections are ordered by descending creation date and the most recent will be returned first. @@ -106,11 +108,11 @@ public async Task PostAsync(Saml_connectionsPostRequestBody 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 ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -126,15 +128,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Saml_connectionsPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Saml_connections.Saml_connectionsPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Saml_connectionsPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Saml_connections.Saml_connectionsPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/saml_connections", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -143,16 +145,17 @@ public RequestInformation ToPostRequestInformation(Saml_connectionsPostRequestBo /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Saml_connectionsRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Saml_connections.Saml_connectionsRequestBuilder WithUrl(string rawUrl) { - return new Saml_connectionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Saml_connections.Saml_connectionsRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns the list of SAML Connections for an instance.Results can be paginated using the optional `limit` and `offset` query parameters.The SAML Connections are ordered by descending creation date and the most recent will be returned first. /// - public class Saml_connectionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Saml_connectionsRequestBuilderGetQueryParameters { /// Applies a limit to the number of results returned.Can be used for paginating the results together with `offset`. [QueryParameter("limit")] diff --git a/src/Clerk.Net/Client/Sessions/GetStatusQueryParameterType.cs b/src/Clerk.Net/Client/Sessions/GetStatusQueryParameterType.cs index dc8cfa9..c4bc56f 100644 --- a/src/Clerk.Net/Client/Sessions/GetStatusQueryParameterType.cs +++ b/src/Clerk.Net/Client/Sessions/GetStatusQueryParameterType.cs @@ -1,22 +1,40 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Sessions { +namespace Clerk.Net.Client.Sessions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum GetStatusQueryParameterType + #pragma warning restore CS1591 { [EnumMember(Value = "abandoned")] + #pragma warning disable CS1591 Abandoned, + #pragma warning restore CS1591 [EnumMember(Value = "active")] + #pragma warning disable CS1591 Active, + #pragma warning restore CS1591 [EnumMember(Value = "ended")] + #pragma warning disable CS1591 Ended, + #pragma warning restore CS1591 [EnumMember(Value = "expired")] + #pragma warning disable CS1591 Expired, + #pragma warning restore CS1591 [EnumMember(Value = "removed")] + #pragma warning disable CS1591 Removed, + #pragma warning restore CS1591 [EnumMember(Value = "replaced")] + #pragma warning disable CS1591 Replaced, + #pragma warning restore CS1591 [EnumMember(Value = "revoked")] + #pragma warning disable CS1591 Revoked, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Sessions/Item/Revoke/RevokeRequestBuilder.cs b/src/Clerk.Net/Client/Sessions/Item/Revoke/RevokeRequestBuilder.cs index c84ef6e..f1048b8 100644 --- a/src/Clerk.Net/Client/Sessions/Item/Revoke/RevokeRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sessions/Item/Revoke/RevokeRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Sessions.Item.Revoke { +namespace Clerk.Net.Client.Sessions.Item.Revoke +{ /// /// Builds and executes requests for operations under \sessions\{session_id}\revoke /// - public class RevokeRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RevokeRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RevokeRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,29 +35,29 @@ public RevokeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Sets the status of a session as "revoked", which is an unauthenticated state.In multi-session mode, a revoked session will still be returned along with its client object, however the user will need to sign in again. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Session.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Session.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Sets the status of a session as "revoked", which is an unauthenticated state.In multi-session mode, a revoked session will still be returned along with its client object, however the user will need to sign in again. @@ -79,11 +81,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RevokeRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Sessions.Item.Revoke.RevokeRequestBuilder WithUrl(string rawUrl) { - return new RevokeRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Sessions.Item.Revoke.RevokeRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_nameItemRequestBuilder.cs b/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_nameItemRequestBuilder.cs index eff883b..0ca7412 100644 --- a/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_nameItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_nameItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Sessions.Item.Tokens.Item { +namespace Clerk.Net.Client.Sessions.Item.Tokens.Item +{ /// /// Builds and executes requests for operations under \sessions\{session_id}\tokens\{template_name} /// - public class WithTemplate_nameItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithTemplate_nameItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public WithTemplate_nameItemRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,27 +35,27 @@ public WithTemplate_nameItemRequestBuilder(string rawUrl, IRequestAdapter reques /// /// Creates a JSON Web Token(JWT) based on a session and a JWT Template name defined for your instance /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 401 status code - /// When receiving a 404 status code + /// When receiving a 401 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, WithTemplate_namePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Sessions.Item.Tokens.Item.WithTemplate_namePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Creates a JSON Web Token(JWT) based on a session and a JWT Template name defined for your instance @@ -77,11 +79,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithTemplate_nameItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Sessions.Item.Tokens.Item.WithTemplate_nameItemRequestBuilder WithUrl(string rawUrl) { - return new WithTemplate_nameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Sessions.Item.Tokens.Item.WithTemplate_nameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_namePostResponse.cs b/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_namePostResponse.cs index 6c4d360..e5f2b39 100644 --- a/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_namePostResponse.cs +++ b/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_namePostResponse.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Sessions.Item.Tokens.Item { - public class WithTemplate_namePostResponse : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Sessions.Item.Tokens.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithTemplate_namePostResponse : IAdditionalDataHolder, 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; set; } @@ -18,9 +22,9 @@ public class WithTemplate_namePostResponse : IAdditionalDataHolder, IParsable public string Jwt { get; set; } #endif /// The object property - public WithTemplate_namePostResponse_object? Object { get; set; } + public global::Clerk.Net.Client.Sessions.Item.Tokens.Item.WithTemplate_namePostResponse_object? Object { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public WithTemplate_namePostResponse() { @@ -29,12 +33,12 @@ public WithTemplate_namePostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithTemplate_namePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Sessions.Item.Tokens.Item.WithTemplate_namePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithTemplate_namePostResponse(); + return new global::Clerk.Net.Client.Sessions.Item.Tokens.Item.WithTemplate_namePostResponse(); } /// /// The deserialization information for the current model @@ -44,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"jwt", n => { Jwt = n.GetStringValue(); } }, - {"object", n => { Object = n.GetEnumValue(); } }, + { "jwt", n => { Jwt = n.GetStringValue(); } }, + { "object", n => { Object = n.GetEnumValue(); } }, }; } /// @@ -56,7 +60,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("jwt", Jwt); - writer.WriteEnumValue("object", Object); + writer.WriteEnumValue("object", Object); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_namePostResponse_object.cs b/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_namePostResponse_object.cs index 805591a..8868997 100644 --- a/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_namePostResponse_object.cs +++ b/src/Clerk.Net/Client/Sessions/Item/Tokens/Item/WithTemplate_namePostResponse_object.cs @@ -1,10 +1,16 @@ // using System.Runtime.Serialization; using System; -namespace Clerk.Net.Client.Sessions.Item.Tokens.Item { +namespace Clerk.Net.Client.Sessions.Item.Tokens.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 public enum WithTemplate_namePostResponse_object + #pragma warning restore CS1591 { [EnumMember(Value = "token")] + #pragma warning disable CS1591 Token, + #pragma warning restore CS1591 } } diff --git a/src/Clerk.Net/Client/Sessions/Item/Tokens/TokensRequestBuilder.cs b/src/Clerk.Net/Client/Sessions/Item/Tokens/TokensRequestBuilder.cs index 72a3c8d..9aa360d 100644 --- a/src/Clerk.Net/Client/Sessions/Item/Tokens/TokensRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sessions/Item/Tokens/TokensRequestBuilder.cs @@ -1,31 +1,33 @@ // using Clerk.Net.Client.Sessions.Item.Tokens.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Clerk.Net.Client.Sessions.Item.Tokens { +namespace Clerk.Net.Client.Sessions.Item.Tokens +{ /// /// Builds and executes requests for operations under \sessions\{session_id}\tokens /// - public class TokensRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class TokensRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.sessions.item.tokens.item collection /// The name of the JWT Template defined in your instance (e.g. `custom_hasura`). - /// A - public WithTemplate_nameItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Sessions.Item.Tokens.Item.WithTemplate_nameItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("template_name", position); - return new WithTemplate_nameItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Sessions.Item.Tokens.Item.WithTemplate_nameItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public TokensRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyPostRequestBody.cs b/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyPostRequestBody.cs index 5adeb4b..d08bf56 100644 --- a/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyPostRequestBody.cs +++ b/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Sessions.Item.Verify { - public class VerifyPostRequestBody : IParsable +namespace Clerk.Net.Client.Sessions.Item.Verify +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class VerifyPostRequestBody : IParsable + #pragma warning restore CS1591 { /// The JWT that is sent via the `__session` cookie from your frontend.Note: this JWT must be associated with the supplied session ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -18,12 +22,12 @@ public class VerifyPostRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static VerifyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Sessions.Item.Verify.VerifyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VerifyPostRequestBody(); + return new global::Clerk.Net.Client.Sessions.Item.Verify.VerifyPostRequestBody(); } /// /// The deserialization information for the current model @@ -33,7 +37,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"token", n => { Token = n.GetStringValue(); } }, + { "token", n => { Token = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyRequestBuilder.cs b/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyRequestBuilder.cs index d4bae39..0f4c903 100644 --- a/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sessions/Item/Verify/VerifyRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Sessions.Item.Verify { +namespace Clerk.Net.Client.Sessions.Item.Verify +{ /// /// Builds and executes requests for operations under \sessions\{session_id}\verify /// - public class VerifyRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class VerifyRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public VerifyRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,34 +35,34 @@ public VerifyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Returns the session if it is authenticated, otherwise returns an error.WARNING: This endpoint is deprecated and will be removed in future versions. We strongly recommend switching to networkless verification using short-lived session tokens, which is implemented transparently in all recent SDK versions (e.g. [NodeJS SDK](https://clerk.com/docs/backend-requests/handling/nodejs#clerk-express-require-auth)). For more details on how networkless verification works, refer to our [Session Tokens documentation](https://clerk.com/docs/backend-requests/resources/session-tokens). /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 404 status code - /// When receiving a 410 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 404 status code + /// When receiving a 410 status code [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(VerifyPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Sessions.Item.Verify.VerifyPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(VerifyPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Sessions.Item.Verify.VerifyPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"410", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "410", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Session.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Session.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Returns the session if it is authenticated, otherwise returns an error.WARNING: This endpoint is deprecated and will be removed in future versions. We strongly recommend switching to networkless verification using short-lived session tokens, which is implemented transparently in all recent SDK versions (e.g. [NodeJS SDK](https://clerk.com/docs/backend-requests/handling/nodejs#clerk-express-require-auth)). For more details on how networkless verification works, refer to our [Session Tokens documentation](https://clerk.com/docs/backend-requests/resources/session-tokens). @@ -71,11 +73,11 @@ public async Task PostAsync(VerifyPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Sessions.Item.Verify.VerifyPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(VerifyPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Sessions.Item.Verify.VerifyPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -88,12 +90,12 @@ public RequestInformation ToPostRequestInformation(VerifyPostRequestBody body, A /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public VerifyRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Sessions.Item.Verify.VerifyRequestBuilder WithUrl(string rawUrl) { - return new VerifyRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Sessions.Item.Verify.VerifyRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Sessions/Item/WithSession_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Sessions/Item/WithSession_ItemRequestBuilder.cs index 61f3507..3c97445 100644 --- a/src/Clerk.Net/Client/Sessions/Item/WithSession_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sessions/Item/WithSession_ItemRequestBuilder.cs @@ -3,37 +3,39 @@ using Clerk.Net.Client.Sessions.Item.Revoke; using Clerk.Net.Client.Sessions.Item.Tokens; using Clerk.Net.Client.Sessions.Item.Verify; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Sessions.Item { +namespace Clerk.Net.Client.Sessions.Item +{ /// /// Builds and executes requests for operations under \sessions\{session_id} /// - public class WithSession_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithSession_ItemRequestBuilder : BaseRequestBuilder { /// The revoke property - public RevokeRequestBuilder Revoke + public global::Clerk.Net.Client.Sessions.Item.Revoke.RevokeRequestBuilder Revoke { - get => new RevokeRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Sessions.Item.Revoke.RevokeRequestBuilder(PathParameters, RequestAdapter); } /// The tokens property - public TokensRequestBuilder Tokens + public global::Clerk.Net.Client.Sessions.Item.Tokens.TokensRequestBuilder Tokens { - get => new TokensRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Sessions.Item.Tokens.TokensRequestBuilder(PathParameters, RequestAdapter); } /// The verify property - public VerifyRequestBuilder Verify + public global::Clerk.Net.Client.Sessions.Item.Verify.VerifyRequestBuilder Verify { - get => new VerifyRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Sessions.Item.Verify.VerifyRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -41,7 +43,7 @@ public WithSession_ItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,29 +53,29 @@ public WithSession_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Retrieve the details of a session /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Session.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.Session.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve the details of a session @@ -97,11 +99,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithSession_ItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Sessions.Item.WithSession_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithSession_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Sessions.Item.WithSession_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Sessions/SessionsRequestBuilder.cs b/src/Clerk.Net/Client/Sessions/SessionsRequestBuilder.cs index ea56ba7..0832434 100644 --- a/src/Clerk.Net/Client/Sessions/SessionsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sessions/SessionsRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Models; using Clerk.Net.Client.Sessions.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Sessions { +namespace Clerk.Net.Client.Sessions +{ /// /// Builds and executes requests for operations under \sessions /// - public class SessionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SessionsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.sessions.item collection /// The ID of the session - /// A - public WithSession_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Sessions.Item.WithSession_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("session_id", position); - return new WithSession_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Sessions.Item.WithSession_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public SessionsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,30 +48,30 @@ public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// /// Returns a list of all sessions.The sessions are returned sorted by creation date, with the newest sessions appearing first.**Deprecation Notice (2024-01-01):** All parameters were initially considered optional, howevermoving forward at least one of `client_id` or `user_id` parameters should be provided. /// - /// A List<Session> + /// A List<global::Clerk.Net.Client.Models.Session> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Session.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Clerk.Net.Client.Models.Session.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns a list of all sessions.The sessions are returned sorted by creation date, with the newest sessions appearing first.**Deprecation Notice (2024-01-01):** All parameters were initially considered optional, howevermoving forward at least one of `client_id` or `user_id` parameters should be provided. @@ -78,11 +80,11 @@ public async Task> GetAsync(ActionConfiguration 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) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -93,16 +95,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SessionsRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Sessions.SessionsRequestBuilder WithUrl(string rawUrl) { - return new SessionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Sessions.SessionsRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a list of all sessions.The sessions are returned sorted by creation date, with the newest sessions appearing first.**Deprecation Notice (2024-01-01):** All parameters were initially considered optional, howevermoving forward at least one of `client_id` or `user_id` parameters should be provided. /// - public class SessionsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SessionsRequestBuilderGetQueryParameters { /// List sessions for the given client #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -122,7 +125,7 @@ public class SessionsRequestBuilderGetQueryParameters public double? Offset { get; set; } /// Filter sessions by the provided status [QueryParameter("status")] - public GetStatusQueryParameterType? Status { get; set; } + public global::Clerk.Net.Client.Sessions.GetStatusQueryParameterType? Status { get; set; } /// List sessions for the given user #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Clerk.Net/Client/Sign_in_tokens/Item/Revoke/RevokeRequestBuilder.cs b/src/Clerk.Net/Client/Sign_in_tokens/Item/Revoke/RevokeRequestBuilder.cs index b65970a..8414e7a 100644 --- a/src/Clerk.Net/Client/Sign_in_tokens/Item/Revoke/RevokeRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sign_in_tokens/Item/Revoke/RevokeRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Sign_in_tokens.Item.Revoke { +namespace Clerk.Net.Client.Sign_in_tokens.Item.Revoke +{ /// /// Builds and executes requests for operations under \sign_in_tokens\{sign_in_token_id}\revoke /// - public class RevokeRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RevokeRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RevokeRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,27 +35,27 @@ public RevokeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Revokes a pending sign-in token /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 404 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, SignInToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.SignInToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Revokes a pending sign-in token @@ -77,11 +79,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RevokeRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Sign_in_tokens.Item.Revoke.RevokeRequestBuilder WithUrl(string rawUrl) { - return new RevokeRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Sign_in_tokens.Item.Revoke.RevokeRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Sign_in_tokens/Item/WithSign_in_token_ItemRequestBuilder.cs b/src/Clerk.Net/Client/Sign_in_tokens/Item/WithSign_in_token_ItemRequestBuilder.cs index f626170..ee08f26 100644 --- a/src/Clerk.Net/Client/Sign_in_tokens/Item/WithSign_in_token_ItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sign_in_tokens/Item/WithSign_in_token_ItemRequestBuilder.cs @@ -1,24 +1,26 @@ // using Clerk.Net.Client.Sign_in_tokens.Item.Revoke; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Clerk.Net.Client.Sign_in_tokens.Item { +namespace Clerk.Net.Client.Sign_in_tokens.Item +{ /// /// Builds and executes requests for operations under \sign_in_tokens\{sign_in_token_id} /// - public class WithSign_in_token_ItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithSign_in_token_ItemRequestBuilder : BaseRequestBuilder { /// The revoke property - public RevokeRequestBuilder Revoke + public global::Clerk.Net.Client.Sign_in_tokens.Item.Revoke.RevokeRequestBuilder Revoke { - get => new RevokeRequestBuilder(PathParameters, RequestAdapter); + get => new global::Clerk.Net.Client.Sign_in_tokens.Item.Revoke.RevokeRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -26,7 +28,7 @@ public WithSign_in_token_ItemRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensPostRequestBody.cs b/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensPostRequestBody.cs index 5b4b00e..e885c6b 100644 --- a/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensPostRequestBody.cs +++ b/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Sign_in_tokens { - public class Sign_in_tokensPostRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Sign_in_tokens +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Sign_in_tokensPostRequestBody : IAdditionalDataHolder, 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; set; } @@ -20,7 +24,7 @@ public class Sign_in_tokensPostRequestBody : IAdditionalDataHolder, IParsable public string UserId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Sign_in_tokensPostRequestBody() { @@ -29,12 +33,12 @@ public Sign_in_tokensPostRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Sign_in_tokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Sign_in_tokens.Sign_in_tokensPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Sign_in_tokensPostRequestBody(); + return new global::Clerk.Net.Client.Sign_in_tokens.Sign_in_tokensPostRequestBody(); } /// /// The deserialization information for the current model @@ -44,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"expires_in_seconds", n => { ExpiresInSeconds = n.GetIntValue(); } }, - {"user_id", n => { UserId = n.GetStringValue(); } }, + { "expires_in_seconds", n => { ExpiresInSeconds = n.GetIntValue(); } }, + { "user_id", n => { UserId = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensRequestBuilder.cs b/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensRequestBuilder.cs index 9393e05..fce1001 100644 --- a/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sign_in_tokens/Sign_in_tokensRequestBuilder.cs @@ -1,34 +1,36 @@ // using Clerk.Net.Client.Models; using Clerk.Net.Client.Sign_in_tokens.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Sign_in_tokens { +namespace Clerk.Net.Client.Sign_in_tokens +{ /// /// Builds and executes requests for operations under \sign_in_tokens /// - public class Sign_in_tokensRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Sign_in_tokensRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.sign_in_tokens.item collection /// The ID of the sign-in token to be revoked - /// A - public WithSign_in_token_ItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Sign_in_tokens.Item.WithSign_in_token_ItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("sign_in_token_id", position); - return new WithSign_in_token_ItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Sign_in_tokens.Item.WithSign_in_token_ItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public Sign_in_tokensRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,29 +48,29 @@ public Sign_in_tokensRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// /// Creates a new sign-in token and associates it with the given user.By default, sign-in tokens expire in 30 days.You can optionally supply a different duration in seconds using the `expires_in_seconds` property. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 404 status code + /// When receiving a 422 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Sign_in_tokensPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Sign_in_tokens.Sign_in_tokensPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Sign_in_tokensPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Sign_in_tokens.Sign_in_tokensPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, SignInToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.SignInToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Creates a new sign-in token and associates it with the given user.By default, sign-in tokens expire in 30 days.You can optionally supply a different duration in seconds using the `expires_in_seconds` property. @@ -78,11 +80,11 @@ public async Task PostAsync(Sign_in_tokensPostRequestBody body, Act /// 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(Sign_in_tokensPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Sign_in_tokens.Sign_in_tokensPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Sign_in_tokensPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Sign_in_tokens.Sign_in_tokensPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -95,11 +97,11 @@ public RequestInformation ToPostRequestInformation(Sign_in_tokensPostRequestBody /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Sign_in_tokensRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Sign_in_tokens.Sign_in_tokensRequestBuilder WithUrl(string rawUrl) { - return new Sign_in_tokensRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Sign_in_tokens.Sign_in_tokensRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsItemRequestBuilder.cs b/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsItemRequestBuilder.cs index 6921082..101c501 100644 --- a/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsItemRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsItemRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Sign_ups.Item { +namespace Clerk.Net.Client.Sign_ups.Item +{ /// /// Builds and executes requests for operations under \sign_ups\{id} /// - public class Sign_upsItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Sign_upsItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public Sign_upsItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,27 +35,27 @@ public Sign_upsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// Update the sign-up with the given ID /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 403 status code + /// When receiving a 403 status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(Sign_upsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Sign_ups.Item.Sign_upsPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Sign_upsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(global::Clerk.Net.Client.Sign_ups.Item.Sign_upsPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"403", ClerkErrors.CreateFromDiscriminatorValue}, + { "403", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, SignUp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Models.SignUp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the sign-up with the given ID @@ -63,11 +65,11 @@ public async Task PatchAsync(Sign_upsPatchRequestBody body, ActionConfiguration 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(Sign_upsPatchRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Sign_ups.Item.Sign_upsPatchRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Sign_upsPatchRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(global::Clerk.Net.Client.Sign_ups.Item.Sign_upsPatchRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -80,11 +82,11 @@ public RequestInformation ToPatchRequestInformation(Sign_upsPatchRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public Sign_upsItemRequestBuilder WithUrl(string rawUrl) + public global::Clerk.Net.Client.Sign_ups.Item.Sign_upsItemRequestBuilder WithUrl(string rawUrl) { - return new Sign_upsItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Sign_ups.Item.Sign_upsItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsPatchRequestBody.cs b/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsPatchRequestBody.cs index 1ae8461..d1c5c37 100644 --- a/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsPatchRequestBody.cs +++ b/src/Clerk.Net/Client/Sign_ups/Item/Sign_upsPatchRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Sign_ups.Item { - public class Sign_upsPatchRequestBody : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Sign_ups.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Sign_upsPatchRequestBody : IAdditionalDataHolder, 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; set; } @@ -20,7 +24,7 @@ public class Sign_upsPatchRequestBody : IAdditionalDataHolder, IParsable public string ExternalId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Sign_upsPatchRequestBody() { @@ -29,12 +33,12 @@ public Sign_upsPatchRequestBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Sign_upsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Sign_ups.Item.Sign_upsPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Sign_upsPatchRequestBody(); + return new global::Clerk.Net.Client.Sign_ups.Item.Sign_upsPatchRequestBody(); } /// /// The deserialization information for the current model @@ -44,8 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"custom_action", n => { CustomAction = n.GetBoolValue(); } }, - {"external_id", n => { ExternalId = n.GetStringValue(); } }, + { "custom_action", n => { CustomAction = n.GetBoolValue(); } }, + { "external_id", n => { ExternalId = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Sign_ups/Sign_upsRequestBuilder.cs b/src/Clerk.Net/Client/Sign_ups/Sign_upsRequestBuilder.cs index 328b00b..844b193 100644 --- a/src/Clerk.Net/Client/Sign_ups/Sign_upsRequestBuilder.cs +++ b/src/Clerk.Net/Client/Sign_ups/Sign_upsRequestBuilder.cs @@ -1,31 +1,33 @@ // using Clerk.Net.Client.Sign_ups.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Clerk.Net.Client.Sign_ups { +namespace Clerk.Net.Client.Sign_ups +{ /// /// Builds and executes requests for operations under \sign_ups /// - public class Sign_upsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class Sign_upsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Clerk.Net.Client.sign_ups.item collection /// The ID of the sign-up to update - /// A - public Sign_upsItemRequestBuilder this[string position] + /// A + public global::Clerk.Net.Client.Sign_ups.Item.Sign_upsItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("id", position); - return new Sign_upsItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Clerk.Net.Client.Sign_ups.Item.Sign_upsItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +35,7 @@ public Sign_upsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostRequestBody.cs b/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostRequestBody.cs index 9721aa7..dec0d7c 100644 --- a/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostRequestBody.cs +++ b/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostRequestBody.cs @@ -1,11 +1,15 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Templates.Item.Item.Preview { - public class PreviewPostRequestBody : IParsable +namespace Clerk.Net.Client.Templates.Item.Item.Preview +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PreviewPostRequestBody : IParsable + #pragma warning restore CS1591 { /// The template body before variable interpolation #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -42,12 +46,12 @@ public class PreviewPostRequestBody : IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PreviewPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Templates.Item.Item.Preview.PreviewPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PreviewPostRequestBody(); + return new global::Clerk.Net.Client.Templates.Item.Item.Preview.PreviewPostRequestBody(); } /// /// The deserialization information for the current model @@ -57,10 +61,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"body", n => { Body = n.GetStringValue(); } }, - {"from_email_name", n => { FromEmailName = n.GetStringValue(); } }, - {"reply_to_email_name", n => { ReplyToEmailName = n.GetStringValue(); } }, - {"subject", n => { Subject = n.GetStringValue(); } }, + { "body", n => { Body = n.GetStringValue(); } }, + { "from_email_name", n => { FromEmailName = n.GetStringValue(); } }, + { "reply_to_email_name", n => { ReplyToEmailName = n.GetStringValue(); } }, + { "subject", n => { Subject = n.GetStringValue(); } }, }; } /// diff --git a/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostResponse.cs b/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostResponse.cs index c708a34..f48bbfe 100644 --- a/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostResponse.cs +++ b/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewPostResponse.cs @@ -1,16 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Clerk.Net.Client.Templates.Item.Item.Preview { - public class PreviewPostResponse : IAdditionalDataHolder, IParsable +namespace Clerk.Net.Client.Templates.Item.Item.Preview +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PreviewPostResponse : IAdditionalDataHolder, 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; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public PreviewPostResponse() { @@ -19,12 +23,12 @@ public PreviewPostResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PreviewPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Clerk.Net.Client.Templates.Item.Item.Preview.PreviewPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PreviewPostResponse(); + return new global::Clerk.Net.Client.Templates.Item.Item.Preview.PreviewPostResponse(); } /// /// The deserialization information for the current model diff --git a/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewRequestBuilder.cs b/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewRequestBuilder.cs index 39c8f51..378591d 100644 --- a/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewRequestBuilder.cs +++ b/src/Clerk.Net/Client/Templates/Item/Item/Preview/PreviewRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Templates.Item.Item.Preview { +namespace Clerk.Net.Client.Templates.Item.Item.Preview +{ /// /// Builds and executes requests for operations under \templates\{template_type}\{slug}\preview /// - public class PreviewRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PreviewRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public PreviewRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,33 +35,34 @@ public PreviewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// Returns a preview of a template for a given template_type, slug and body /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 404 status code - /// When receiving a 422 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(PreviewPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Templates.Item.Item.Preview.PreviewPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(PreviewPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Clerk.Net.Client.Templates.Item.Item.Preview.PreviewPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"400", ClerkErrors.CreateFromDiscriminatorValue}, - {"401", ClerkErrors.CreateFromDiscriminatorValue}, - {"404", ClerkErrors.CreateFromDiscriminatorValue}, - {"422", ClerkErrors.CreateFromDiscriminatorValue}, + { "400", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "401", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "404", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, + { "422", global::Clerk.Net.Client.Models.ClerkErrors.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, PreviewPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Clerk.Net.Client.Templates.Item.Item.Preview.PreviewPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Returns a preview of a template for a given template_type, slug and body @@ -67,13 +70,14 @@ public async Task PostAsync(PreviewPostRequestBody body, Ac /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(PreviewPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Templates.Item.Item.Preview.PreviewPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(PreviewPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Clerk.Net.Client.Templates.Item.Item.Preview.PreviewPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -86,11 +90,12 @@ public RequestInformation ToPostRequestInformation(PreviewPostRequestBody body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PreviewRequestBuilder WithUrl(string rawUrl) + [Obsolete("")] + public global::Clerk.Net.Client.Templates.Item.Item.Preview.PreviewRequestBuilder WithUrl(string rawUrl) { - return new PreviewRequestBuilder(rawUrl, RequestAdapter); + return new global::Clerk.Net.Client.Templates.Item.Item.Preview.PreviewRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Clerk.Net/Client/Templates/Item/Item/Revert/RevertRequestBuilder.cs b/src/Clerk.Net/Client/Templates/Item/Item/Revert/RevertRequestBuilder.cs index 95d4007..63919ec 100644 --- a/src/Clerk.Net/Client/Templates/Item/Item/Revert/RevertRequestBuilder.cs +++ b/src/Clerk.Net/Client/Templates/Item/Item/Revert/RevertRequestBuilder.cs @@ -1,21 +1,23 @@ // using Clerk.Net.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Clerk.Net.Client.Templates.Item.Item.Revert { +namespace Clerk.Net.Client.Templates.Item.Item.Revert +{ /// /// Builds and executes requests for operations under \templates\{template_type}\{slug}\revert /// - public class RevertRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RevertRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +25,7 @@ public RevertRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,37 +35,39 @@ public RevertRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Reverts an updated template to its default state /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 400 status code - /// When receiving a 401 status code - /// When receiving a 402 status code - /// When receiving a 404 status code + /// When receiving a 400 status code + /// When receiving a 401 status code + /// When receiving a 402 status code + /// When receiving a 404 status code + [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task